コード例 #1
0
ファイル: api.py プロジェクト: adriansr/midonet-fork
 def __init__(self,
              base_uri,
              username,
              password,
              project_id=None,
              disable_ssl_certificate_validation=False):
     self.base_uri = base_uri.rstrip('/')
     self.project_id = project_id
     self.app = None
     self.auth = auth_lib.Auth(self.base_uri + '/login', username, password,
                               project_id,
                               disable_ssl_certificate_validation)
コード例 #2
0
 def __init__(self, base_uri, username, password, project_id=None):
     self.base_uri = base_uri
     self.project_id = project_id
     self.app = None
     self.auth = auth_lib.Auth(base_uri + '/login', username, password,
                               project_id)
コード例 #3
0
ファイル: httpclient.py プロジェクト: williamwang0/MusicGen
 def __init__(self, base_uri, username, password, project_id=None):
     self.auth_lib = auth_lib.Auth(base_uri + '/login', username, password,
                                   project_id)