本文整理匯總了Python中S3.user.S3User類的典型用法代碼示例。如果您正苦於以下問題:Python S3User類的具體用法?Python S3User怎麽用?Python S3User使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了S3User類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: getUser
def getUser(self, uid):
Log.debug("____get user with uid " + uid)
return S3User.view(uid, self.getAdminConnection())
示例2: deleteCapability
def deleteCapability(self, uid):
capType = request.form['type']
capPerm = request.form['perm']
Log.debug( "deleteCapability "+capType+"="+capPerm+" for user with uid "+ uid)
return S3User.deleteCapability(uid, capType, capPerm, self.getAdminConnection())
示例3: deleteSubuser
def deleteSubuser(self, uid, subuser):
Log.debug( "delete subuser "+subuser+" for user with uid "+ uid)
return S3User.deleteSubuser(uid, subuser, self.getAdminConnection())
示例4: removeUserKey
def removeUserKey(self, uid, key):
Log.debug( "remove key for user with uid "+ uid)
return S3User.removeKey(key,self.getAdminConnection())
示例5: createSubuser
def createSubuser(self, uid):
Log.debug( "create subuser for user with uid "+ uid)
jsonform = request.form['json']
return S3User.createSubuser(uid,jsonform,self.getAdminConnection())
示例6: modifyUser
def modifyUser(self, uid):
Log.debug( "modify user with uid "+ uid)
jsonform = request.form['json']
return S3User.modify(uid,jsonform,self.getAdminConnection())
示例7: removeUser
def removeUser(self, uid):
Log.debug( "remove user with uid "+ uid)
return S3User.remove(uid,self.getAdminConnection())
示例8: createUser
def createUser(self):
Log.debug( "user creation")
jsonform = request.form['json']
return S3User.create(jsonform,self.getAdminConnection())
示例9: listUsers
def listUsers(self):
Log.debug( "list users from rgw api")
return S3User.list(self.getAdminConnection())
示例10: getUserBuckets
def getUserBuckets(self, uid):
Log.debug( "getBuckets for uid " + uid)
jsonform = None
return S3User.getBuckets(uid,jsonform,self.getAdminConnection())
示例11: createSubuserKey
def createSubuserKey(self, uid, subuser):
Log.debug( "create key for subuser "+subuser+" for user with uid "+ uid)
generate_key = request.form['generate_key']
secret_key = request.form['secret_key']
return S3User.createSubuserKey(uid, subuser, generate_key, secret_key, self.getAdminConnection())
示例12: deleteSubuserKey
def deleteSubuserKey(self, uid, subuser, key):
Log.debug( "delete key "+key+" for subuser "+subuser+" for user with uid "+ uid)
return S3User.deleteSubuserKey(uid, subuser, key, self.getAdminConnection())