def remove_access_settings(self, access_settings_list=None, remove_all=False): """Remove access settings from a particular vapp. :param access_settings_list: (list of dict): list of access_setting in the dict format. Each dict contains: - type: (str): type of the subject. Only 'user' allowed for vapp. - name: (str): name of the user. :param remove_all: (bool) : True if all access settings of the vapp should be removed :return: A :class:`lxml.objectify.StringElement` object representing the updated access control setting of the vapp. """ acl = Acl(self.client, self.get_resource()) return acl.remove_access_settings(access_settings_list, remove_all)
def remove_access_settings(self, access_settings_list=None, remove_all=False): """Remove access settings from a particular vdc. :param access_settings_list: (list of dict): list of access_setting in the dict format. Each dict contains: type: (str): type of the subject. Only 'user' allowed for vdc. name: (str): name of the user. :param remove_all: (bool) : True if all access settings of the vdc should be removed :return: A :class:`lxml.objectify.StringElement` object representing the updated access control setting of the vdc. """ acl = Acl(self.client, self.get_resource()) return acl.remove_access_settings(access_settings_list, remove_all)
def remove_catalog_access_settings(self, catalog_name, access_settings_list=None, remove_all=False): """Remove access settings from a particular catalog. :param catalog_name: (name): catalog name from which access_settings should be removed. :param access_settings_list: (list of dict): list of access_setting in the dict format. Each dict contains: type: (str): type of the subject. One of 'org' or 'user'. name: (str): name of the user or org. :param remove_all: (bool) : True if all access settings of the catalog should be removed :return: A :class:`lxml.objectify.StringElement` object representing the updated access control setting of the catalog. """ catalog_resource = self.get_catalog(name=catalog_name) acl = Acl(self.client, catalog_resource) return acl.remove_access_settings(access_settings_list, remove_all)
def remove_access_settings(self, access_settings_list=None, remove_all=False): """Remove access settings from the vApp. :param list access_settings_list: list of dictionaries, where each dictionary represents a single access setting. The dictionary structure is as follows, - type: (str): type of the subject. One of 'org' or 'user'. - name: (str): name of the user or org. :param bool remove_all: True, if the entire Access Control List of the vApp should be removed, else False. :return: an object containing EntityType.CONTROL_ACCESS_PARAMS XML data representing the updated access control setting of the vdc. :rtype: lxml.objectify.ObjectifiedElement` """ acl = Acl(self.client, self.get_resource()) return acl.remove_access_settings(access_settings_list, remove_all)
def remove_catalog_access_settings(self, catalog_name, access_settings_list=None, remove_all=False): """Remove access settings from a particular catalog. :param catalog_name: (name): catalog name from which access_settings should be removed. :param access_settings_list: (list of dict): list of access_setting in the dict format. Each dict contains: type: (str): type of the subject. One of 'org' or 'user'. name: (str): name of the user or org. :param remove_all: (bool) : True if all access settings of the catalog should be removed :return: A :class:`lxml.objectify.StringElement` object representing the updated access control setting of the catalog. """ catalog_resource = self.get_catalog(name=catalog_name) acl = Acl(self.client, catalog_resource) return acl.remove_access_settings(access_settings_list, remove_all)