Ejemplo n.º 1
0
    def share_with_org_members(self, everyone_access_level='ReadOnly'):
        """Share the vdc to all members of the organization.

        :param everyone_access_level: (str) : access level when sharing the
            vdc with everyone. Only 'ReadOnly' is allowed for vdc.

        :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.share_with_org_members(everyone_access_level)
Ejemplo n.º 2
0
    def share_with_org_members(self, everyone_access_level='ReadOnly'):
        """Share the vdc to all members of the organization.

        :param everyone_access_level: (str) : access level when sharing the
            vdc with everyone. Only 'ReadOnly' is allowed for vdc.

        :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.share_with_org_members(everyone_access_level)
Ejemplo n.º 3
0
    def share_with_org_members(self, everyone_access_level='ReadOnly'):
        """Share the vapp to all members of the organization.

        :param everyone_access_level: (str) : access level when sharing the
            vapp with everyone. One of 'ReadOnly', 'Change', 'FullControl'.
            'ReadOnly' by default.

        :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.share_with_org_members(everyone_access_level)
Ejemplo n.º 4
0
    def share_with_org_members(self, everyone_access_level='ReadOnly'):
        """Share the vapp to all members of the organization.

        :param everyone_access_level: (str) : access level when sharing the
            vapp with everyone. One of 'ReadOnly', 'Change', 'FullControl'.
            'ReadOnly' by default.

        :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.share_with_org_members(everyone_access_level)
Ejemplo n.º 5
0
    def share_with_org_members(self, everyone_access_level='ReadOnly'):
        """Share the vApp to all members of the organization.

        :param everyone_access_level: (str) : access level when sharing the
            vApp with everyone. Allowed values are 'ReadOnly', 'Change', or
            'FullControl'. Default value is 'ReadOnly'.

        :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.share_with_org_members(everyone_access_level)
Ejemplo n.º 6
0
    def share_catalog_with_org_members(self,
                                       catalog_name,
                                       everyone_access_level='ReadOnly'):
        """Share the catalog to all members of the organization.

        :param catalog_name: (str): catalog name whose access should be
            shared to everyone.
        :param everyone_access_level: (str) : access level when sharing the
            catalog with everyone. One of 'ReadOnly', 'Change', 'FullControl'
            'ReadOnly' by default.

        :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.share_with_org_members(everyone_access_level)
Ejemplo n.º 7
0
    def share_catalog_with_org_members(self,
                                       catalog_name,
                                       everyone_access_level='ReadOnly'):
        """Share the catalog to all members of the organization.

        :param catalog_name: (str): catalog name whose access should be
            shared to everyone.
        :param everyone_access_level: (str) : access level when sharing the
            catalog with everyone. One of 'ReadOnly', 'Change', 'FullControl'
            'ReadOnly' by default.

        :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.share_with_org_members(everyone_access_level)