当前位置: 首页>>代码示例>>Python>>正文


Python TNArchipelEntity.init_permissions方法代码示例

本文整理汇总了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)
开发者ID:Bassbauer,项目名称:Archipel,代码行数:14,代码来源:archipelHypervisor.py

示例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)
开发者ID:Lezval,项目名称:Archipel,代码行数:16,代码来源:archipelHypervisor.py

示例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)
开发者ID:kris905,项目名称:Archipel,代码行数:7,代码来源:archipelCentralAgent.py


注:本文中的archipelcore.archipelEntity.TNArchipelEntity.init_permissions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。