grpc: updated start_session to have a definition option, to allow saving xml files and getting service configurations, without fully starting a session

This commit is contained in:
Blake Harnden 2021-04-27 10:49:52 -07:00
parent f891974e3a
commit e0fe86bcb2
7 changed files with 64 additions and 69 deletions

View file

@ -248,7 +248,10 @@ class CoreGrpcClient:
self.proxy: bool = proxy
def start_session(
self, session: wrappers.Session, asymmetric_links: List[wrappers.Link] = None
self,
session: wrappers.Session,
asymmetric_links: List[wrappers.Link] = None,
definition: bool = False,
) -> Tuple[bool, List[str]]:
"""
Start a session.
@ -331,6 +334,7 @@ class CoreGrpcClient:
config_service_configs=config_service_configs,
options=options,
user=session.user,
definition=definition,
)
response = self.stub.StartSession(request)
return response.result, list(response.exceptions)