|
VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
|
Avaliable Methods | |
| public method | get () |
| public method | fingerprint () |
| public method | new () |
| public method | list () |
The Com::Vmware::Vapi::Metadata::Privilege::Component interface provides methods* to retrieve privilege information of a component element.
A component element is said to contain privilege information if any one of package elements in it contains privilege information.
Constant String::RESOURCE_TYPE # Resource type for vAPI component.
| public method Com::Vmware::Vapi::Metadata::Privilege::Component::fingerprint | ( | ) |
Retrieves the fingerprint computed from the privilege metadata of the component element corresponding to component_id .
The fingerprint provides clients an efficient way to check if the metadata for a particular component has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of :func:Com::Vmware::Vapi::Metadata::Privilege::Component.get .
| component_id | [REQUIRED] Identifier of the component element. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.component). . The value must be str. |
| The | fingerprint computed from the privilege metadata of the component. The return type will be String |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the component element associated with component_id does not have any privilege information. |
Code:
| public method Com::Vmware::Vapi::Metadata::Privilege::Component::get | ( | ) |
Retrieves privilege information about the component element corresponding to component_id .
The class Com::Vmware::Vapi::Metadata::Privilege::ComponentData contains the privilege information about the component element and its fingerprint. It contains information about all the package elements that belong to this component element.
| component_id | [REQUIRED] Identifier of the component element. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.component). . The value must be str. |
| The | class Com::Vmware::Vapi::Metadata::Privilege::ComponentData instance that corresponds to component_id The return type will be Com::Vmware::Vapi::Metadata::Privilege::ComponentData |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the component element associated with component_id does not have any privilege information. |
Code:
| public method Com::Vmware::Vapi::Metadata::Privilege::Component::list | ( | ) |
Returns the identifiers for the component elements that have privilege information.
| The | list of identifiers for the component elements that have privilege information. The value will be an identifier for the resource type getQualifiedName(com.vmware.vapi.component). The return type will be Array of str |
Code:
| public method Com::Vmware::Vapi::Metadata::Privilege::Component::new | ( | ) |
Constructor to initialize the object
| api_provider | - protocol connection to use with stubs created by this factory |
| StubConfig | - Stub's additional configuration |
| Blessed | object |
Code: