|
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
|
Classes | |
| class | CreateSpec |
| class | Info |
Avaliable Methods | |
| public method | reload () |
| public method | create () |
| public method | get () |
| public method | delete () |
| public method | fingerprint () |
| public method | new () |
| public method | list () |
The Com::Vmware::Vapi::Metadata::Cli::Source interface provides methods to manage the sources of command line interface (CLI) metadata information.
The interface definition language infrastructure provides tools to generate various kinds of metadata in JSON format from the interface definition files and additional properties files. One of the generated files contains CLI information.
A CLI metadata file contains information about one component element. When a CLI metadata file is added as a source, each source contributes only one component element's metadata.
CLI metadata can also be discovered from a remote server that supports the CLI metadata services (see :mod:com.vmware.vapi.metadata.cli ) package . Since multiple components can be registered with a single metadata server, when a remote server is registered as a source, that source can contribute more than one component.
| public method Com::Vmware::Vapi::Metadata::Cli::Source::create | ( | ) |
Creates a new metadata source. Once the server validates the registration information of the metadata source, the CLI metadata is retrieved from the source. This populates elements in all the interfaces defined in :mod:com.vmware.vapi.metadata.cli package* .
| source_id | [REQUIRED] metadata source identifier. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.metadata.source). . The value must be str. |
| spec | [REQUIRED] create specification. . The value must be Com::Vmware::Vapi::Metadata::Cli::Source::CreateSpec. |
| Com::Vmware::Vapi::Std::Errors::AlreadyExists | If the metadata source identifier is already registered with the infrastructure. |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | If type of the source specified in null is invalid. |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | If the file specified in null is not a valid JSON file or if the format of the CLI metadata in the JSON file is invalid. |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | If the URI specified in null is unreachable or if there is a transport protocol or message protocol mismatch between the client and the server or if the remote server do not have interfaces present in :mod:com.vmware.vapi.metadata.cli package . |
| Com::Vmware::Vapi::Std::Errors::NotFound | If the file specified in null does not exist. |
Code:
| public method Com::Vmware::Vapi::Metadata::Cli::Source::delete | ( | ) |
Deletes an existing CLI metadata source from the infrastructure.
| source_id | [REQUIRED] Identifier of the metadata source. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.metadata.source). . The value must be str. |
| Com::Vmware::Vapi::Std::Errors::NotFound | If the metadata source identifier is not found. |
Code:
| public method Com::Vmware::Vapi::Metadata::Cli::Source::fingerprint | ( | ) |
Returns the aggregate fingerprint of metadata from all the metadata sources or from a particular metadata source if source_id is specified.
| source_id | [OPTIONAL] Identifier of the metadata source. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.metadata.source). If unspecified, the fingerprint of all the metadata sources is returned. . The value must be str or None. |
| Aggregate | fingerprint of all the metadata sources or of a particular metadata source. The return type will be String |
| Com::Vmware::Vapi::Std::Errors::NotFound | If the metadata source identifier is not found. |
Code:
| public method Com::Vmware::Vapi::Metadata::Cli::Source::get | ( | ) |
Retrieves information about the metadata source corresponding to source_id .
| source_id | [REQUIRED] Identifier of the metadata source. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.metadata.source). . The value must be str. |
| The | class Com::Vmware::Vapi::Metadata::Cli::Source::Info instance that corresponds to source_id The return type will be Com::Vmware::Vapi::Metadata::Cli::Source::Info |
| Com::Vmware::Vapi::Std::Errors::NotFound | If the metadata source identifier is not found. |
Code:
| public method Com::Vmware::Vapi::Metadata::Cli::Source::list | ( | ) |
Returns the identifiers of the metadata sources currently registered with the infrastructure.
| The | list of identifiers for metadata sources currently registered. The value will be an identifier for the resource type getQualifiedName(com.vmware.vapi.metadata.source). The return type will be Array of str |
Code:
| public method Com::Vmware::Vapi::Metadata::Cli::Source::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:
| public method Com::Vmware::Vapi::Metadata::Cli::Source::reload | ( | ) |
Reloads the CLI metadata from all the metadata sources or of a particular metadata source if source_id is specified.
| source_id | [OPTIONAL] Identifier of the metadata source. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.metadata.source). If unspecified, all the metadata sources are reloaded. . The value must be str or None. |
| Com::Vmware::Vapi::Std::Errors::NotFound | If the metadata source identifier is not found. |
Code: