def create_identity(self, username, password, project_name, max_quota=False, account_admin=False): if not self.core_provider: raise Exception("AccountDriver not initialized by provider, " "cannot create identity") identity = Identity.create_identity( username, self.core_provider.location, #Flags.. max_quota=max_quota, account_admin=account_admin, ##Pass in credentials with cred_ namespace cred_key=username, cred_secret=password, cred_ex_tenant_name=project_name, cred_ex_project_name=project_name) #Return the identity return identity
def create_identity(self, username, access_key, secret_key, max_quota=False, account_admin=False): """ """ identity = Identity.create_identity( username, self.core_provider.location, max_quota=max_quota, account_admin=account_admin, cred_key=access_key, cred_secret=secret_key) return identity
def create_identity(self, username, access_key, secret_key, max_quota=False, account_admin=False): """ max_quota - Set this user to have the maximum quota, instead of the default quota """ identity = Identity.create_identity( username, self.core_provider.location, max_quota=max_quota, account_admin=account_admin, cred_key=access_key, cred_secret=secret_key) return identity
def create_identity(self, username, access_key, secret_key, max_quota=False, account_admin=False): """ """ identity = Identity.create_identity(username, self.core_provider.location, max_quota=max_quota, account_admin=account_admin, cred_key=access_key, cred_secret=secret_key) return identity
def create_identity(self, username, access_key, secret_key, max_quota=False, account_admin=False): """ max_quota - Set this user to have the maximum quota, instead of the default quota """ identity = Identity.create_identity(username, self.core_provider.location, max_quota=max_quota, account_admin=account_admin, cred_key=access_key, cred_secret=secret_key) return identity
def create_identity(self, username, password, project_name, quota=None, max_quota=False, account_admin=False): if not self.core_provider: raise Exception("AccountDriver not initialized by provider, " "cannot create identity") identity = Identity.create_identity( username, self.core_provider.location, quota=quota, #Flags.. max_quota=max_quota, account_admin=account_admin, ##Pass in credentials with cred_ namespace cred_key=username, cred_secret=password, cred_ex_tenant_name=project_name, cred_ex_project_name=project_name) #Return the identity return identity