當前位置: 首頁>>代碼示例>>Python>>正文


Python user.S3User類代碼示例

本文整理匯總了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())
開發者ID:minshenglin,項目名稱:inkscope,代碼行數:3,代碼來源:S3ObjectCtrl.py

示例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())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:5,代碼來源:S3Ctrl.py

示例3: deleteSubuser

 def deleteSubuser(self, uid, subuser):
     Log.debug( "delete subuser "+subuser+" for user with uid "+ uid)
     return S3User.deleteSubuser(uid, subuser, self.getAdminConnection())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:3,代碼來源:S3Ctrl.py

示例4: removeUserKey

 def removeUserKey(self, uid, key):
     Log.debug( "remove key for user with uid "+ uid)
     return S3User.removeKey(key,self.getAdminConnection())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:3,代碼來源:S3Ctrl.py

示例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())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:4,代碼來源:S3Ctrl.py

示例6: modifyUser

 def modifyUser(self, uid):
     Log.debug( "modify user with uid "+ uid)
     jsonform = request.form['json']
     return S3User.modify(uid,jsonform,self.getAdminConnection())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:4,代碼來源:S3Ctrl.py

示例7: removeUser

 def removeUser(self, uid):
     Log.debug( "remove user with uid "+ uid)
     return S3User.remove(uid,self.getAdminConnection())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:3,代碼來源:S3Ctrl.py

示例8: createUser

 def createUser(self):
     Log.debug( "user creation")
     jsonform = request.form['json']
     return S3User.create(jsonform,self.getAdminConnection())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:4,代碼來源:S3Ctrl.py

示例9: listUsers

 def listUsers(self):
     Log.debug( "list users from rgw api")
     return S3User.list(self.getAdminConnection())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:3,代碼來源:S3Ctrl.py

示例10: getUserBuckets

 def getUserBuckets(self, uid):
     Log.debug( "getBuckets for uid " + uid)
     jsonform = None
     return S3User.getBuckets(uid,jsonform,self.getAdminConnection())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:4,代碼來源:S3Ctrl.py

示例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())
開發者ID:inkscope,項目名稱:inkscope,代碼行數:5,代碼來源:S3Ctrl.py

示例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())
開發者ID:XakRu,項目名稱:inkscope,代碼行數:3,代碼來源:S3Ctrl.py


注:本文中的S3.user.S3User類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。