|
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 | LibraryType |
Avaliable Methods | |
| public method | set_publish_info () |
| public method | get_optimization_info () |
| public method | get_last_sync_time () |
| public method | set_type () |
| public method | set_creation_time () |
| public method | get_id () |
| public method | set_optimization_info () |
| public method | set_name () |
| public method | get_last_modified_time () |
| public method | get_creation_time () |
| public method | get_subscription_info () |
| public method | get_server_guid () |
| public method | get_version () |
| public method | set_storage_backings () |
| public method | new () |
| public method | set_last_sync_time () |
| public method | set_version () |
| public method | set_description () |
| public method | set_id () |
| public method | set_server_guid () |
| public method | get_storage_backings () |
| public method | set_last_modified_time () |
| public method | set_subscription_info () |
| public method | get_description () |
| public method | get_type () |
| public method | get_publish_info () |
| public method | get_name () |
The class Com::Vmware::Content::LibraryModel class represents a Content Library resource model.
A Com::Vmware::Content::LibraryModel is a container for a set of items which represent a usable set of files. The Content Library Service allows for multiple libraries to be created with separate authorization and sharing policies.
Each Com::Vmware::Content::LibraryModel is a container for a set of class Com::Vmware::Content::Library::ItemModel instances. Each item is a logical object in a library, which may have multiple files.
A Com::Vmware::Content::LibraryModel may be local or subscribed. A local library has its source of truth about items within this Content Library Service. Items may be added to or removed from the library. A local library may also be private or published. When published, the library is exposed by a network endpoint and can be used by another Content Library Service for synchronization. A private local library cannot be used for synchronization.
A subscribed library is a library which gets its source of truth from another library that may be across a network in another Content Library Service. A subscribed library may have a different name and metadata from the library to which it subscribes, but the set of library items is always the same as those in the source library. Library items cannot be manually added to a subscribed library – they can only be added by adding new items to the source library.
| public method Com::Vmware::Content::LibraryModel::get_creation_time | ( | ) |
Gets the value of 'creation_time' property.
| creation_time | - The current value of the field. The date and time when this library was created. optional# |
Code:
| public method Com::Vmware::Content::LibraryModel::get_description | ( | ) |
Gets the value of 'description' property.
| description | - The current value of the field. A human-readable description for this library. optional# |
Code:
| public method Com::Vmware::Content::LibraryModel::get_id | ( | ) |
Gets the value of 'id' property.
| id | - The current value of the field. An identifier which uniquely identifies this Com::Vmware::Content::LibraryModel . optional# |
Code:
| public method Com::Vmware::Content::LibraryModel::get_last_modified_time | ( | ) |
Gets the value of 'last_modified_time' property.
| last_modified_time | - The current value of the field. The date and time when this library was last updated. |
This field is updated automatically when the library properties are changed. This field* is not affected by adding, removing, or modifying a library item or its content within the library. Tagging the library or syncing the subscribed library does not alter this field .
optional#
Code:
| public method Com::Vmware::Content::LibraryModel::get_last_sync_time | ( | ) |
Gets the value of 'last_sync_time' property.
| last_sync_time | - The current value of the field. The date and time when this library was last synchronized. |
This field applies only to subscribed libraries. It is updated every time a synchronization is triggered on the library. The value is null for a local library.
optional#
Code:
| public method Com::Vmware::Content::LibraryModel::get_name | ( | ) |
| public method Com::Vmware::Content::LibraryModel::get_optimization_info | ( | ) |
Gets the value of 'optimization_info' property.
| optimization_info | - The current value of the field. Defines various optimizations and optimization parameters applied to this library. optional# |
Code:
| public method Com::Vmware::Content::LibraryModel::get_publish_info | ( | ) |
Gets the value of 'publish_info' property.
| publish_info | - The current value of the field. Defines how this library is published so that it can be subscribed to by a remote subscribed library. |
The class Com::Vmware::Content::Library::PublishInfo defines where and how the metadata for this local library is accessible. A local library is only published publically if :attr:Com::Vmware::Content::Library::PublishInfo.published is true .
optional#
Code:
| public method Com::Vmware::Content::LibraryModel::get_server_guid | ( | ) |
Gets the value of 'server_guid' property.
| server_guid | - The current value of the field. The unique identifier of the vCenter server where the library exists. optional# |
Code:
| public method Com::Vmware::Content::LibraryModel::get_storage_backings | ( | ) |
Gets the value of 'storage_backings' property.
| storage_backings | - The current value of the field. The list of storage backings which are available for this library. |
A class Com::Vmware::Content::Library::StorageBacking defines a storage location which can be used to store files for the library items in this library. Multiple storage locations are not currently supported but may become supported in future releases.
optional#
Code:
| public method Com::Vmware::Content::LibraryModel::get_subscription_info | ( | ) |
Gets the value of 'subscription_info' property.
| subscription_info | - The current value of the field. Defines the subscription behavior for this Library. |
The class Com::Vmware::Content::Library::SubscriptionInfo defines how this subscribed library synchronizes to a remote source. Setting the value will determine the remote source to which the library synchronizes, and how. Changing the subscription will result in synchronizing to a new source. If the new source differs from the old one, the old library items and data will be lost. Setting :attr:Com::Vmware::Content::Library::SubscriptionInfo.automatic_sync_enabled to false will halt subscription but will not remove existing cached data.
optional#
Code:
| public method Com::Vmware::Content::LibraryModel::get_type | ( | ) |
Gets the value of 'type' property.
| type | - The current value of the field. The type (LOCAL, SUBSCRIBED) of this library. |
This value can be used to determine what additional services and information can be available for this library.
optional#
Code:
| public method Com::Vmware::Content::LibraryModel::get_version | ( | ) |
Gets the value of 'version' property.
| version | - The current value of the field. A version number which is updated on metadata changes. This value allows clients to detect concurrent updates and prevent accidental clobbering of data. |
This value represents a number which is incremented every time library properties, such as name or description, are changed. It is not incremented by changes to a library item within the library, including adding or removing items. It is also not affected by tagging the library.
optional#
Code:
| public method Com::Vmware::Content::LibraryModel::new | ( | ) |
Constructor to initialize the Com::Vmware::Content::LibraryModel structure
| Blessed | object |
Code:
| public method Com::Vmware::Content::LibraryModel::set_creation_time | ( | ) |
Sets the given value for 'creation_time' property.
| creation_time | - New value for the field. The date and time when this library was created. |
Code:
| public method Com::Vmware::Content::LibraryModel::set_description | ( | ) |
Sets the given value for 'description' property.
| description | - New value for the field. A human-readable description for this library. |
Code:
| public method Com::Vmware::Content::LibraryModel::set_id | ( | ) |
Sets the given value for 'id' property.
| id | - New value for the field. An identifier which uniquely identifies this Com::Vmware::Content::LibraryModel . |
Code:
| public method Com::Vmware::Content::LibraryModel::set_last_modified_time | ( | ) |
Sets the given value for 'last_modified_time' property.
| last_modified_time | - New value for the field. The date and time when this library was last updated. |
This field is updated automatically when the library properties are changed. This field* is not affected by adding, removing, or modifying a library item or its content within the library. Tagging the library or syncing the subscribed library does not alter this field .
Code:
| public method Com::Vmware::Content::LibraryModel::set_last_sync_time | ( | ) |
Sets the given value for 'last_sync_time' property.
| last_sync_time | - New value for the field. The date and time when this library was last synchronized. |
This field applies only to subscribed libraries. It is updated every time a synchronization is triggered on the library. The value is null for a local library.
Code:
| public method Com::Vmware::Content::LibraryModel::set_name | ( | ) |
| public method Com::Vmware::Content::LibraryModel::set_optimization_info | ( | ) |
Sets the given value for 'optimization_info' property.
| optimization_info | - New value for the field. Defines various optimizations and optimization parameters applied to this library. |
Code:
| public method Com::Vmware::Content::LibraryModel::set_publish_info | ( | ) |
Sets the given value for 'publish_info' property.
| publish_info | - New value for the field. Defines how this library is published so that it can be subscribed to by a remote subscribed library. |
The class Com::Vmware::Content::Library::PublishInfo defines where and how the metadata for this local library is accessible. A local library is only published publically if :attr:Com::Vmware::Content::Library::PublishInfo.published is true .
Code:
| public method Com::Vmware::Content::LibraryModel::set_server_guid | ( | ) |
Sets the given value for 'server_guid' property.
| server_guid | - New value for the field. The unique identifier of the vCenter server where the library exists. |
Code:
| public method Com::Vmware::Content::LibraryModel::set_storage_backings | ( | ) |
Sets the given value for 'storage_backings' property.
| storage_backings | - New value for the field. The list of storage backings which are available for this library. |
A class Com::Vmware::Content::Library::StorageBacking defines a storage location which can be used to store files for the library items in this library. Multiple storage locations are not currently supported but may become supported in future releases.
Code:
| public method Com::Vmware::Content::LibraryModel::set_subscription_info | ( | ) |
Sets the given value for 'subscription_info' property.
| subscription_info | - New value for the field. Defines the subscription behavior for this Library. |
The class Com::Vmware::Content::Library::SubscriptionInfo defines how this subscribed library synchronizes to a remote source. Setting the value will determine the remote source to which the library synchronizes, and how. Changing the subscription will result in synchronizing to a new source. If the new source differs from the old one, the old library items and data will be lost. Setting :attr:Com::Vmware::Content::Library::SubscriptionInfo.automatic_sync_enabled to false will halt subscription but will not remove existing cached data.
Code:
| public method Com::Vmware::Content::LibraryModel::set_type | ( | ) |
Sets the given value for 'type' property.
| type | - New value for the field. The type (LOCAL, SUBSCRIBED) of this library. |
This value can be used to determine what additional services and information can be available for this library.
Code:
| public method Com::Vmware::Content::LibraryModel::set_version | ( | ) |
Sets the given value for 'version' property.
| version | - New value for the field. A version number which is updated on metadata changes. This value allows clients to detect concurrent updates and prevent accidental clobbering of data. |
This value represents a number which is incremented every time library properties, such as name or description, are changed. It is not incremented by changes to a library item within the library, including adding or removing items. It is also not affected by tagging the library.
Code: