def session(): session = create_session_from_config() yield session
def session() -> CloudShellAPISession: yield create_session_from_config()
def update_script(self): session = create_session_from_config() os.chdir(self.dist) session.UpdateScript(self.script_definition['metadata']['script_name'], self.script_zip.name) os.chdir('..')
def session() -> CloudShellAPISession: """Yield CloudShell session.""" return create_session_from_config()
def session() -> CloudShellAPISession: """ Yields active session. """ yield create_session_from_config()