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:
parent
f891974e3a
commit
e0fe86bcb2
7 changed files with 64 additions and 69 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue