本文整理汇总了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())