示例#1
0
    def get_access_settings(self):
        """Get the access settings of the vapp.

        :return:  A :class:`lxml.objectify.StringElement` object representing
            the access settings of the vapp.
        """
        acl = Acl(self.client, self.get_resource())
        return acl.get_access_settings()
示例#2
0
    def get_access_settings(self):
        """Get the access settings of the vdc.

       :return:  A :class:`lxml.objectify.StringElement` object representing
           the access settings of the vdc.
       """
        acl = Acl(self.client, self.get_resource())
        return acl.get_access_settings()
示例#3
0
文件: org.py 项目: joybwang/pyvcloud
    def get_catalog_access_settings(self, catalog_name):
        """Get the access settings of a catalog.

        :param catalog_name: (str): The name of the catalog.
        :return:  A :class:`lxml.objectify.StringElement` object representing
            the access settings of the catalog.
        """
        catalog_resource = self.get_catalog(name=catalog_name)
        acl = Acl(self.client, catalog_resource)
        return acl.get_access_settings()
示例#4
0
文件: vapp.py 项目: avisi/pyvcloud
    def get_access_settings(self):
        """Get the access settings of the vApp.

        :return: an object containing EntityType.CONTROL_ACCESS_PARAMS which
            represents the access control list of the vApp.

        :rtype: lxml.objectify.ObjectifiedElement
        """
        acl = Acl(self.client, self.get_resource())
        return acl.get_access_settings()
示例#5
0
    def get_catalog_access_settings(self, catalog_name):
        """Get the access settings of a catalog.

        :param catalog_name: (str): The name of the catalog.
        :return:  A :class:`lxml.objectify.StringElement` object representing
            the access settings of the catalog.
        """
        catalog_resource = self.get_catalog(name=catalog_name)
        acl = Acl(self.client, catalog_resource)
        return acl.get_access_settings()