|
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 | evict () |
| public method | sync () |
| public method | new () |
The Com::Vmware::Content::Library::SubscribedItem interface manages the unique features of library items that are members of a subscribed library.
| public method Com::Vmware::Content::Library::SubscribedItem::evict | ( | ) |
Evicts the cached content of a library item in a subscribed library.
This method allows the cached content of a library item to be removed to free up storage capacity. This method will only work when a library item is synchronized on-demand. When a library is not synchronized on-demand, it always attempts to keep its cache up-to-date with the published source. Evicting the library item will set :attr:Com::Vmware::Content::Library::ItemModel.cached to false.
| library_item_id | [REQUIRED] Identifier of the library item whose content should be evicted. The value must be an identifier for the resource type getQualifiedName(com.vmware.content.library.Item). . The value must be str. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the library item specified by library_item_id does not exist. |
| Com::Vmware::Vapi::Std::Errors::InvalidElementType | if the library item specified by library_item_id is not a member of a subscribed library. |
| Com::Vmware::Vapi::Std::Errors::InvalidElementConfiguration | if the library item specified by library_item_id is a member of a subscribed library that does not synchronize on-demand. |
Code:
| public method Com::Vmware::Content::Library::SubscribedItem::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::SubscribedItem::sync | ( | ) |
Forces the synchronization of an individual library item in a subscribed library.
Synchronizing an individual item will update that item's metadata from the remote source. If the source library item on the remote library has been deleted, this method will delete the library item from the subscribed library as well.
The default behavior of the synchronization is determined by the class Com::Vmware::Content::Library::SubscriptionInfo of the library which owns the library item.
Com::Vmware::Content::Library::SubscriptionInfo.on_demand is true, then the file content is not synchronized by default. In this case, only the library item metadata is synchronized. The file content may still be forcefully synchronized by passing true for the force_sync_content parameter . Com::Vmware::Content::Library::SubscriptionInfo.on_demand is false, then this call will always synchronize the file content. The force_sync_content parameter* is ignored when the subscription is not on-demand. When the file content has been synchronized, the :attr:Com::Vmware::Content::Library::ItemModel.cached field will be true.
This method will return immediately and create an asynchronous task to perform the synchronization.
| library_item_id | [REQUIRED] Identifier of the library item to synchronize. The value must be an identifier for the resource type getQualifiedName(com.vmware.content.library.Item). . The value must be str. |
| force_sync_content | [REQUIRED] Whether to synchronize file content as well as metadata. This parameter applies only if the subscription is on-demand. . The value must be Boolean. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the library item specified by library_item_id could not be found. |
| Com::Vmware::Vapi::Std::Errors::InvalidElementType | if the library item specified by library_item_id is not a member of a subscribed library. |
Code: