VMware vCloud Suite SDK for .NET 6.0.0
vmware::content::library::SubscribedItem Interface Reference

The SubscribedItem interface manages the unique features of library items that are members of a subscribed library. More...

Inherited by vmware::content::library::SubscribedItemStub.

List of all members.

Public Member Functions

void Evict (string libraryItemId)
 Evicts the cached content of a library item in a subscribed library.
void Evict (string libraryItemId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Evicts the cached content of a library item in a subscribed library.
global::System.Threading.Tasks.Task EvictAsync (string libraryItemId)
 Evicts the cached content of a library item in a subscribed library.
global::System.Threading.Tasks.Task EvictAsync (string libraryItemId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Evicts the cached content of a library item in a subscribed library.
void Sync (string libraryItemId, bool forceSyncContent)
 Forces the synchronization of an individual library item in a subscribed library.
void Sync (string libraryItemId, bool forceSyncContent, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Forces the synchronization of an individual library item in a subscribed library.
global::System.Threading.Tasks.Task SyncAsync (string libraryItemId, bool forceSyncContent)
 Forces the synchronization of an individual library item in a subscribed library.
global::System.Threading.Tasks.Task SyncAsync (string libraryItemId, bool forceSyncContent, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Forces the synchronization of an individual library item in a subscribed library.

Detailed Description

The SubscribedItem interface manages the unique features of library items that are members of a subscribed library.


Member Function Documentation

void vmware::content::library::SubscribedItem::Evict ( string  libraryItemId)

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 ItemModel.cached to false.

Exceptions:
vmware.vapi.std.errors.NotFoundif the library item specified by libraryItemId does not exist.
vmware.vapi.std.errors.InvalidElementTypeif the library item specified by libraryItemId is not a member of a subscribed library.
vmware.vapi.std.errors.InvalidElementConfigurationif the library item specified by libraryItemId is a member of a subscribed library that does not synchronize on-demand.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.EvictLibraryItem .
Parameters:
libraryItemIdIdentifier of the library item whose content should be evicted. The parameter must be an identifier for the resource type: com.vmware.content.library.Item .

Implemented in vmware::content::library::SubscribedItemStub.

void vmware::content::library::SubscribedItem::Evict ( string  libraryItemId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

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 ItemModel.cached to false.

Exceptions:
vmware.vapi.std.errors.NotFoundif the library item specified by libraryItemId does not exist.
vmware.vapi.std.errors.InvalidElementTypeif the library item specified by libraryItemId is not a member of a subscribed library.
vmware.vapi.std.errors.InvalidElementConfigurationif the library item specified by libraryItemId is a member of a subscribed library that does not synchronize on-demand.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.EvictLibraryItem .
Parameters:
libraryItemIdIdentifier of the library item whose content should be evicted. The parameter must be an identifier for the resource type: com.vmware.content.library.Item .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::SubscribedItemStub.

global::System.Threading.Tasks.Task vmware::content::library::SubscribedItem::EvictAsync ( string  libraryItemId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

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 ItemModel.cached to false.

Exceptions:
vmware.vapi.std.errors.NotFoundif the library item specified by libraryItemId does not exist.
vmware.vapi.std.errors.InvalidElementTypeif the library item specified by libraryItemId is not a member of a subscribed library.
vmware.vapi.std.errors.InvalidElementConfigurationif the library item specified by libraryItemId is a member of a subscribed library that does not synchronize on-demand.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.EvictLibraryItem .
Parameters:
libraryItemIdIdentifier of the library item whose content should be evicted. The parameter must be an identifier for the resource type: com.vmware.content.library.Item .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::SubscribedItemStub.

global::System.Threading.Tasks.Task vmware::content::library::SubscribedItem::EvictAsync ( string  libraryItemId)

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 ItemModel.cached to false.

Exceptions:
vmware.vapi.std.errors.NotFoundif the library item specified by libraryItemId does not exist.
vmware.vapi.std.errors.InvalidElementTypeif the library item specified by libraryItemId is not a member of a subscribed library.
vmware.vapi.std.errors.InvalidElementConfigurationif the library item specified by libraryItemId is a member of a subscribed library that does not synchronize on-demand.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.EvictLibraryItem .
Parameters:
libraryItemIdIdentifier of the library item whose content should be evicted. The parameter must be an identifier for the resource type: com.vmware.content.library.Item .

Implemented in vmware::content::library::SubscribedItemStub.

void vmware::content::library::SubscribedItem::Sync ( string  libraryItemId,
bool  forceSyncContent 
)

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 SubscriptionInfo of the library which owns the library item.

  • If SubscriptionInfo.onDemand 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 forceSyncContent parameter.
  • If SubscriptionInfo.onDemand is false, then this call will always synchronize the file content. The forceSyncContent parameter is ignored when the subscription is not on-demand.

When the file content has been synchronized, the ItemModel.cached field will be true.

This method will return immediately and create an asynchronous task to perform the synchronization.

Exceptions:
vmware.vapi.std.errors.NotFoundif the library item specified by libraryItemId could not be found.
vmware.vapi.std.errors.InvalidElementTypeif the library item specified by libraryItemId is not a member of a subscribed library.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.SyncLibraryItem .
Parameters:
libraryItemIdIdentifier of the library item to synchronize. The parameter must be an identifier for the resource type: com.vmware.content.library.Item .
forceSyncContentWhether to synchronize file content as well as metadata. This parameter applies only if the subscription is on-demand.

Implemented in vmware::content::library::SubscribedItemStub.

void vmware::content::library::SubscribedItem::Sync ( string  libraryItemId,
bool  forceSyncContent,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

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 SubscriptionInfo of the library which owns the library item.

  • If SubscriptionInfo.onDemand 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 forceSyncContent parameter.
  • If SubscriptionInfo.onDemand is false, then this call will always synchronize the file content. The forceSyncContent parameter is ignored when the subscription is not on-demand.

When the file content has been synchronized, the ItemModel.cached field will be true.

This method will return immediately and create an asynchronous task to perform the synchronization.

Exceptions:
vmware.vapi.std.errors.NotFoundif the library item specified by libraryItemId could not be found.
vmware.vapi.std.errors.InvalidElementTypeif the library item specified by libraryItemId is not a member of a subscribed library.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.SyncLibraryItem .
Parameters:
libraryItemIdIdentifier of the library item to synchronize. The parameter must be an identifier for the resource type: com.vmware.content.library.Item .
forceSyncContentWhether to synchronize file content as well as metadata. This parameter applies only if the subscription is on-demand.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::SubscribedItemStub.

global::System.Threading.Tasks.Task vmware::content::library::SubscribedItem::SyncAsync ( string  libraryItemId,
bool  forceSyncContent,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

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 SubscriptionInfo of the library which owns the library item.

  • If SubscriptionInfo.onDemand 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 forceSyncContent parameter.
  • If SubscriptionInfo.onDemand is false, then this call will always synchronize the file content. The forceSyncContent parameter is ignored when the subscription is not on-demand.

When the file content has been synchronized, the ItemModel.cached field will be true.

This method will return immediately and create an asynchronous task to perform the synchronization.

Exceptions:
vmware.vapi.std.errors.NotFoundif the library item specified by libraryItemId could not be found.
vmware.vapi.std.errors.InvalidElementTypeif the library item specified by libraryItemId is not a member of a subscribed library.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.SyncLibraryItem .
Parameters:
libraryItemIdIdentifier of the library item to synchronize. The parameter must be an identifier for the resource type: com.vmware.content.library.Item .
forceSyncContentWhether to synchronize file content as well as metadata. This parameter applies only if the subscription is on-demand.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::SubscribedItemStub.

global::System.Threading.Tasks.Task vmware::content::library::SubscribedItem::SyncAsync ( string  libraryItemId,
bool  forceSyncContent 
)

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 SubscriptionInfo of the library which owns the library item.

  • If SubscriptionInfo.onDemand 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 forceSyncContent parameter.
  • If SubscriptionInfo.onDemand is false, then this call will always synchronize the file content. The forceSyncContent parameter is ignored when the subscription is not on-demand.

When the file content has been synchronized, the ItemModel.cached field will be true.

This method will return immediately and create an asynchronous task to perform the synchronization.

Exceptions:
vmware.vapi.std.errors.NotFoundif the library item specified by libraryItemId could not be found.
vmware.vapi.std.errors.InvalidElementTypeif the library item specified by libraryItemId is not a member of a subscribed library.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.SyncLibraryItem .
Parameters:
libraryItemIdIdentifier of the library item to synchronize. The parameter must be an identifier for the resource type: com.vmware.content.library.Item .
forceSyncContentWhether to synchronize file content as well as metadata. This parameter applies only if the subscription is on-demand.

Implemented in vmware::content::library::SubscribedItemStub.


The documentation for this interface was generated from the following file: