本文整理汇总了Python中archipelcore.archipelEntity.TNArchipelEntity.init_permissions方法的典型用法代码示例。如果您正苦于以下问题:Python TNArchipelEntity.init_permissions方法的具体用法?Python TNArchipelEntity.init_permissions怎么用?Python TNArchipelEntity.init_permissions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类archipelcore.archipelEntity.TNArchipelEntity
的用法示例。
在下文中一共展示了TNArchipelEntity.init_permissions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: init_permissions
# 需要导入模块: from archipelcore.archipelEntity import TNArchipelEntity [as 别名]
# 或者: from archipelcore.archipelEntity.TNArchipelEntity import init_permissions [as 别名]
def init_permissions(self):
"""
Initialize the permissions.
"""
TNArchipelEntity.init_permissions(self)
self.permission_center.create_permission("alloc", "Authorizes users to allocate new virtual machines", False)
self.permission_center.create_permission("free", "Authorizes users to free allocated virtual machines", False)
self.permission_center.create_permission("rostervm", "Authorizes users to access the hypervisor's roster", False)
self.permission_center.create_permission("clone", "Authorizes users to clone virtual machines", False)
self.permission_center.create_permission("ip", "Authorizes users to get hypervisor's IP address", False)
self.permission_center.create_permission("uri", "Authorizes users to get the hypervisor's libvirt URI", False)
self.permission_center.create_permission("capabilities", "Authorizes users to access the hypervisor capabilities", False)
示例2: init_permissions
# 需要导入模块: from archipelcore.archipelEntity import TNArchipelEntity [as 别名]
# 或者: from archipelcore.archipelEntity.TNArchipelEntity import init_permissions [as 别名]
def init_permissions(self):
"""
Initialize the permissions.
"""
TNArchipelEntity.init_permissions(self)
self.permission_center.create_permission("alloc", "Authorizes users to allocate new virtual machines", False)
self.permission_center.create_permission("free", "Authorizes users to free allocated virtual machines", False)
self.permission_center.create_permission("rostervm", "Authorizes users to access the hypervisor's roster", False)
self.permission_center.create_permission("clone", "Authorizes users to clone virtual machines", False)
self.permission_center.create_permission("ip", "Authorizes users to get hypervisor's IP address", False)
self.permission_center.create_permission("migrationinfo", "Authorizes users to get the migration informations", False)
self.permission_center.create_permission("capabilities", "Authorizes users to access the hypervisor capabilities", False)
self.permission_center.create_permission("manage", "Authorizes users make Archipel able to manage external virtual machines", False)
self.permission_center.create_permission("unmanage", "Authorizes users to make Archipel able to unmanage virtual machines", False)
示例3: init_permissions
# 需要导入模块: from archipelcore.archipelEntity import TNArchipelEntity [as 别名]
# 或者: from archipelcore.archipelEntity.TNArchipelEntity import init_permissions [as 别名]
def init_permissions(self):
"""
Initialize the permissions.
"""
TNArchipelEntity.init_permissions(self)