def __init__( self, credentials: Credentials, ) -> None: """RuntimeClient constructor. Args: credentials: Account credentials. """ self._session = RetrySession(credentials.runtime_url, credentials.access_token, **credentials.connection_parameters()) self.api = Runtime(self._session)
def __init__( self, credentials: Credentials, ) -> None: """RandomClient constructor. Args: credentials: Account credentials. """ self._session = RetrySession(credentials.extractor_url, credentials.access_token, **credentials.connection_parameters()) self.random_api = Random(self._session)
def __init__( self, access_token: str, credentials: Credentials, ) -> None: """RandomClient constructor. Args: access_token: IBM Quantum Experience access token. credentials: Account credentials. """ self._session = RetrySession(credentials.extractor_url, access_token, **credentials.connection_parameters()) self.random_api = Random(self._session)