|
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 | FindSpec |
Avaliable Methods | |
| public method | get () |
| public method | new () |
| public method | update () |
| public method | find () |
| public method | list () |
The Com::Vmware::Content::Library interface provides methods to manage and find class Com::Vmware::Content::LibraryModel entities.
The Com::Vmware::Content::Library interface provides support for generic functionality which can be applied equally to all types of libraries. The functionality provided by this interface will not affect the properties specific to the type of library. See also class Com::Vmware::Content::LocalLibrary and class Com::Vmware::Content::SubscribedLibrary .
Constant String::RESOURCE_TYPE # Resource type for library.
| public method Com::Vmware::Content::Library::find | ( | ) |
Returns a list of all the visible (as determined by authorization policy) libraries matching the requested class Com::Vmware::Content::Library::FindSpec .
| spec | [REQUIRED] Specification describing what properties to filter on. . The value must be Com::Vmware::Content::Library::FindSpec. |
| The | list of identifiers of all the visible libraries matching the given specThe value will be an identifier for the resource type getQualifiedName(com.vmware.content.Library). The return type will be Array of str |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | if no properties are specified in the spec . |
Code:
| public method Com::Vmware::Content::Library::get | ( | ) |
Returns a given class Com::Vmware::Content::LibraryModel .
| library_id | [REQUIRED] Identifier of the library to return. The value must be an identifier for the resource type getQualifiedName(com.vmware.content.Library). . The value must be str. |
| The | class Com::Vmware::Content::LibraryModel instance with the specified library_id . The return type will be Com::Vmware::Content::LibraryModel |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the specified library does not exist. |
Code:
| public method Com::Vmware::Content::Library::list | ( | ) |
Returns the identifiers of all libraries of any type in the Content Library.
| The | list of all identifiers of all libraries in the Content Library. The value will be an identifier for the resource type getQualifiedName(com.vmware.content.Library). The return type will be Array of str |
Code:
| public method Com::Vmware::Content::Library::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::Content::Library::update | ( | ) |
Updates the properties of a library.
This is an incremental update to the library. Any field in the class Com::Vmware::Content::LibraryModel class that is null will not be modified.
This method will only update the common properties for all library types. This will not, for example, update the :attr:Com::Vmware::Content::LibraryModel.publish_info of a local library, nor the :attr:Com::Vmware::Content::LibraryModel.subscription_info of a subscribed library. Specific properties are updated in :func:Com::Vmware::Content::LocalLibrary.update and :func:Com::Vmware::Content::SubscribedLibrary.update .
| library_id | [REQUIRED] Identifier of the library to update. The value must be an identifier for the resource type getQualifiedName(com.vmware.content.Library). . The value must be str. |
| update_spec | [REQUIRED] Specification of the new property values to set on the library. . The value must be Com::Vmware::Content::LibraryModel. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the library associated with library_id does not exist. |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | if the update_spec is not valid. |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | if the :attr:Com::Vmware::Content::LibraryModel.version of update_spec is not equal to the current version of the library. |
Code: