public interface SubscribedLibrary extends Service, SubscribedLibraryTypes
SubscribedLibraryTypes.ProbeResult
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(java.lang.String clientToken,
LibraryModel createSpec)
Creates a new subscribed library.
|
void |
create(java.lang.String clientToken,
LibraryModel createSpec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a new subscribed library.
|
void |
create(java.lang.String clientToken,
LibraryModel createSpec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a new subscribed library.
|
java.lang.String |
create(java.lang.String clientToken,
LibraryModel createSpec,
InvocationConfig invocationConfig)
Creates a new subscribed library.
|
void |
delete(java.lang.String libraryId)
Deletes the specified subscribed library.
|
void |
delete(java.lang.String libraryId,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes the specified subscribed library.
|
void |
delete(java.lang.String libraryId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes the specified subscribed library.
|
void |
delete(java.lang.String libraryId,
InvocationConfig invocationConfig)
Deletes the specified subscribed library.
|
void |
evict(java.lang.String libraryId)
Evicts the cached content of an on-demand subscribed library.
|
void |
evict(java.lang.String libraryId,
AsyncCallback<java.lang.Void> asyncCallback)
Evicts the cached content of an on-demand subscribed library.
|
void |
evict(java.lang.String libraryId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Evicts the cached content of an on-demand subscribed library.
|
void |
evict(java.lang.String libraryId,
InvocationConfig invocationConfig)
Evicts the cached content of an on-demand subscribed library.
|
LibraryModel |
get(java.lang.String libraryId)
Returns a given subscribed library.
|
void |
get(java.lang.String libraryId,
AsyncCallback<LibraryModel> asyncCallback)
Returns a given subscribed library.
|
void |
get(java.lang.String libraryId,
AsyncCallback<LibraryModel> asyncCallback,
InvocationConfig invocationConfig)
Returns a given subscribed library.
|
LibraryModel |
get(java.lang.String libraryId,
InvocationConfig invocationConfig)
Returns a given subscribed library.
|
java.util.List<java.lang.String> |
list()
Returns the identifiers of all subscribed libraries in the Content Library.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns the identifiers of all subscribed libraries in the Content Library.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers of all subscribed libraries in the Content Library.
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Returns the identifiers of all subscribed libraries in the Content Library.
|
SubscribedLibraryTypes.ProbeResult |
probe(SubscriptionInfo subscriptionInfo)
Probes remote library subscription information, including URL, SSL certificate
and password.
|
void |
probe(SubscriptionInfo subscriptionInfo,
AsyncCallback<SubscribedLibraryTypes.ProbeResult> asyncCallback)
Probes remote library subscription information, including URL, SSL certificate
and password.
|
void |
probe(SubscriptionInfo subscriptionInfo,
AsyncCallback<SubscribedLibraryTypes.ProbeResult> asyncCallback,
InvocationConfig invocationConfig)
Probes remote library subscription information, including URL, SSL certificate
and password.
|
SubscribedLibraryTypes.ProbeResult |
probe(SubscriptionInfo subscriptionInfo,
InvocationConfig invocationConfig)
Probes remote library subscription information, including URL, SSL certificate
and password.
|
void |
sync(java.lang.String libraryId)
Forces the synchronization of the subscribed library.
|
void |
sync(java.lang.String libraryId,
AsyncCallback<java.lang.Void> asyncCallback)
Forces the synchronization of the subscribed library.
|
void |
sync(java.lang.String libraryId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Forces the synchronization of the subscribed library.
|
void |
sync(java.lang.String libraryId,
InvocationConfig invocationConfig)
Forces the synchronization of the subscribed library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec)
Updates the properties of a subscribed library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates the properties of a subscribed library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the properties of a subscribed library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
InvocationConfig invocationConfig)
Updates the properties of a subscribed library.
|
java.lang.String create(java.lang.String clientToken, LibraryModel createSpec)
Once created, the subscribed library will
be empty. If the LibraryModel.getSubscriptionInfo()
property is set, the Content Library Service will attempt to synchronize to the
remote source. This is an asynchronous operation so the content of the published
library may not immediately appear.
Synchronous method overload. Result of the invocation will be reported as a method return value.
clientToken
- Unique token generated on the client for each creation request. The token should
be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new subscribed library.com.vmware.content.Library
.InvalidArgument
- if the createSpec
is not valid.InvalidArgument
- if the clientToken
does not conform to the UUID format.Unsupported
- if using multiple storage backings.ResourceInaccessible
- if subscribing to a published library which cannot be accessed.Unauthorized
- if you do not have all of the privileges described as follows: ContentLibrary.CreateSubscribedLibrary
. Datastore
referenced by the property StorageBacking.getDatastoreId()
requires Datastore.AllocateSpace
. java.lang.String create(java.lang.String clientToken, LibraryModel createSpec, InvocationConfig invocationConfig)
Once created, the subscribed library will
be empty. If the LibraryModel.getSubscriptionInfo()
property is set, the Content Library Service will attempt to synchronize to the
remote source. This is an asynchronous operation so the content of the published
library may not immediately appear.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
clientToken
- Unique token generated on the client for each creation request. The token should
be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new subscribed library.invocationConfig
- Configuration for the method invocation.com.vmware.content.Library
.InvalidArgument
- if the createSpec
is not valid.InvalidArgument
- if the clientToken
does not conform to the UUID format.Unsupported
- if using multiple storage backings.ResourceInaccessible
- if subscribing to a published library which cannot be accessed.Unauthorized
- if you do not have all of the privileges described as follows: ContentLibrary.CreateSubscribedLibrary
. Datastore
referenced by the property StorageBacking.getDatastoreId()
requires Datastore.AllocateSpace
. void create(java.lang.String clientToken, LibraryModel createSpec, AsyncCallback<java.lang.String> asyncCallback)
Once created, the subscribed library will
be empty. If the LibraryModel.getSubscriptionInfo()
property is set, the Content Library Service will attempt to synchronize to the
remote source. This is an asynchronous operation so the content of the published
library may not immediately appear.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Identifier of the newly created subscribed library.
The return value will be an identifier for the resource type: com.vmware.content.Library
.
Operation Errors:
InvalidArgument
- if the createSpec
is not valid.
InvalidArgument
- if the clientToken
does not conform to the UUID format.
Unsupported
- if using multiple storage backings.
ResourceInaccessible
- if subscribing to a published library which cannot be accessed.
Unauthorized
- if you do not have all of the privileges described as follows:
ContentLibrary.CreateSubscribedLibrary
. Datastore
referenced by the property StorageBacking.getDatastoreId()
requires Datastore.AllocateSpace
. clientToken
- Unique token generated on the client for each creation request. The token should
be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new subscribed library.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(java.lang.String clientToken, LibraryModel createSpec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Once created, the subscribed library will
be empty. If the LibraryModel.getSubscriptionInfo()
property is set, the Content Library Service will attempt to synchronize to the
remote source. This is an asynchronous operation so the content of the published
library may not immediately appear.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Identifier of the newly created subscribed library.
The return value will be an identifier for the resource type: com.vmware.content.Library
.
Operation Errors:
InvalidArgument
- if the createSpec
is not valid.
InvalidArgument
- if the clientToken
does not conform to the UUID format.
Unsupported
- if using multiple storage backings.
ResourceInaccessible
- if subscribing to a published library which cannot be accessed.
Unauthorized
- if you do not have all of the privileges described as follows:
ContentLibrary.CreateSubscribedLibrary
. Datastore
referenced by the property StorageBacking.getDatastoreId()
requires Datastore.AllocateSpace
. clientToken
- Unique token generated on the client for each creation request. The token should
be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new subscribed library.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String libraryId)
Deleting a subscribed library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryId
- Identifier of the subscribed library to delete.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.InvalidElementType
- if the library referenced by libraryId
is not a subscribed library.NotFound
- if the library referenced by libraryId
does not exist.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.DeleteSubscribedLibrary
. void delete(java.lang.String libraryId, InvocationConfig invocationConfig)
Deleting a subscribed library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
libraryId
- Identifier of the subscribed library to delete.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.invocationConfig
- Configuration for the method invocation.InvalidElementType
- if the library referenced by libraryId
is not a subscribed library.NotFound
- if the library referenced by libraryId
does not exist.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.DeleteSubscribedLibrary
. void delete(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback)
Deleting a subscribed library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
InvalidElementType
- if the library referenced by libraryId
is not a subscribed library.
NotFound
- if the library referenced by libraryId
does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.DeleteSubscribedLibrary
. libraryId
- Identifier of the subscribed library to delete.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Deleting a subscribed library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
InvalidElementType
- if the library referenced by libraryId
is not a subscribed library.
NotFound
- if the library referenced by libraryId
does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.DeleteSubscribedLibrary
. libraryId
- Identifier of the subscribed library to delete.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void evict(java.lang.String libraryId)
This method allows the cached content of a subscribed library to be removed to free up storage capacity. This method will only work when a subscribed library is synchronized on-demand.
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryId
- Identifier of the subscribed library whose content should be evicted.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.NotFound
- if the library specified by libraryId
does not exist.InvalidElementType
- if the library specified by libraryId
is not a subscribed library.NotAllowedInCurrentState
- if the library specified by libraryId
does not synchronize on-demand, or
if the content of the library specified by libraryId
has been deleted
from the storage backings (see LibraryModel.getStorageBackings()
) associated with it.
For instance, this {@term error) is reported on evicting an on-demand subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted.
Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.EvictSubscribedLibrary
. void evict(java.lang.String libraryId, InvocationConfig invocationConfig)
This method allows the cached content of a subscribed library to be removed to free up storage capacity. This method will only work when a subscribed library is synchronized on-demand.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
libraryId
- Identifier of the subscribed library whose content should be evicted.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.invocationConfig
- Configuration for the method invocation.NotFound
- if the library specified by libraryId
does not exist.InvalidElementType
- if the library specified by libraryId
is not a subscribed library.NotAllowedInCurrentState
- if the library specified by libraryId
does not synchronize on-demand, or
if the content of the library specified by libraryId
has been deleted
from the storage backings (see LibraryModel.getStorageBackings()
) associated with it.
For instance, this {@term error) is reported on evicting an on-demand subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted.
Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.EvictSubscribedLibrary
. void evict(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback)
This method allows the cached content of a subscribed library to be removed to free up storage capacity. This method will only work when a subscribed library is synchronized on-demand.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the library specified by libraryId
does not exist.
InvalidElementType
- if the library specified by libraryId
is not a subscribed library.
NotAllowedInCurrentState
- if the library specified by libraryId
does not synchronize on-demand, or
if the content of the library specified by libraryId
has been deleted
from the storage backings (see LibraryModel.getStorageBackings()
) associated with it.
For instance, this error) is reported on evicting an on-demand subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted.
libraryId
- Identifier of the subscribed library whose content should be evicted.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void evict(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
This method allows the cached content of a subscribed library to be removed to free up storage capacity. This method will only work when a subscribed library is synchronized on-demand.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if the library specified by libraryId
does not exist.
InvalidElementType
- if the library specified by libraryId
is not a subscribed library.
NotAllowedInCurrentState
- if the library specified by libraryId
does not synchronize on-demand, or
if the content of the library specified by libraryId
has been deleted
from the storage backings (see LibraryModel.getStorageBackings()
) associated with it.
For instance, this error) is reported on evicting an on-demand subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted.
libraryId
- Identifier of the subscribed library whose content should be evicted.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.LibraryModel get(java.lang.String libraryId)
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryId
- Identifier of the subscribed library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.LibraryModel
instance that corresponds to libraryId
.NotFound
- if the library associated with libraryId
does not exist.InvalidElementType
- if the library associated with libraryId
is not a subscribed library.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires System.Read
. LibraryModel get(java.lang.String libraryId, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
libraryId
- Identifier of the subscribed library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.invocationConfig
- Configuration for the method invocation.LibraryModel
instance that corresponds to libraryId
.NotFound
- if the library associated with libraryId
does not exist.InvalidElementType
- if the library associated with libraryId
is not a subscribed library.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires System.Read
. void get(java.lang.String libraryId, AsyncCallback<LibraryModel> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The LibraryModel
instance that corresponds to libraryId
.
Operation Errors:
NotFound
- if the library associated with libraryId
does not exist.
InvalidElementType
- if the library associated with libraryId
is not a subscribed library.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.Library
referenced by the parameter libraryId
requires System.Read
. libraryId
- Identifier of the subscribed library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String libraryId, AsyncCallback<LibraryModel> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
The LibraryModel
instance that corresponds to libraryId
.
Operation Errors:
NotFound
- if the library associated with libraryId
does not exist.
InvalidElementType
- if the library associated with libraryId
is not a subscribed library.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.Library
referenced by the parameter libraryId
requires System.Read
. libraryId
- Identifier of the subscribed library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<java.lang.String> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
List
of identifiers of all subscribed libraries in the
Content Library.
The return value will contain identifiers for the resource type: com.vmware.content.Library
.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. java.util.List<java.lang.String> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.List
of identifiers of all subscribed libraries in the
Content Library.
The return value will contain identifiers for the resource type: com.vmware.content.Library
.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The List
of identifiers of all subscribed libraries in the
Content Library.
The return value will contain identifiers for the resource type: com.vmware.content.Library
.
Operation Errors:
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
The List
of identifiers of all subscribed libraries in the
Content Library.
The return value will contain identifiers for the resource type: com.vmware.content.Library
.
Operation Errors:
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void sync(java.lang.String libraryId)
Synchronizing a
subscribed library forcefully with this method will perform the same
synchronization behavior as would run periodically for the library. The SubscriptionInfo.getOnDemand()
setting is respected.
Calling this method on a library that is already in the process of synchronizing
will have no effect.
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryId
- Identifier of the subscribed library to synchronize.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.NotFound
- if the library specified by libraryId
does not exist.InvalidElementType
- if the library specified by libraryId
is not a subscribed library.NotAllowedInCurrentState
- if the content of the library specified by libraryId
has been deleted
from the storage backings (see LibraryModel.getStorageBackings()
) associated with it.
For instance, this {@term error) is reported on synchronizing a subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted.
InvalidArgument
- if some parameter in the subscribed library subscription info is invalid.ResourceInaccessible
- if the published library cannot be contacted or found.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.SyncLibrary
. void sync(java.lang.String libraryId, InvocationConfig invocationConfig)
Synchronizing a
subscribed library forcefully with this method will perform the same
synchronization behavior as would run periodically for the library. The SubscriptionInfo.getOnDemand()
setting is respected.
Calling this method on a library that is already in the process of synchronizing
will have no effect.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
libraryId
- Identifier of the subscribed library to synchronize.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.invocationConfig
- Configuration for the method invocation.NotFound
- if the library specified by libraryId
does not exist.InvalidElementType
- if the library specified by libraryId
is not a subscribed library.NotAllowedInCurrentState
- if the content of the library specified by libraryId
has been deleted
from the storage backings (see LibraryModel.getStorageBackings()
) associated with it.
For instance, this {@term error) is reported on synchronizing a subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted.
InvalidArgument
- if some parameter in the subscribed library subscription info is invalid.ResourceInaccessible
- if the published library cannot be contacted or found.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.SyncLibrary
. void sync(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback)
Synchronizing a
subscribed library forcefully with this method will perform the same
synchronization behavior as would run periodically for the library. The SubscriptionInfo.getOnDemand()
setting is respected.
Calling this method on a library that is already in the process of synchronizing
will have no effect.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the library specified by libraryId
does not exist.
InvalidElementType
- if the library specified by libraryId
is not a subscribed library.
NotAllowedInCurrentState
- if the content of the library specified by libraryId
has been deleted
from the storage backings (see LibraryModel.getStorageBackings()
) associated with it.
For instance, this error) is reported on synchronizing a subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted.
libraryId
- Identifier of the subscribed library to synchronize.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void sync(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Synchronizing a
subscribed library forcefully with this method will perform the same
synchronization behavior as would run periodically for the library. The SubscriptionInfo.getOnDemand()
setting is respected.
Calling this method on a library that is already in the process of synchronizing
will have no effect.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if the library specified by libraryId
does not exist.
InvalidElementType
- if the library specified by libraryId
is not a subscribed library.
NotAllowedInCurrentState
- if the content of the library specified by libraryId
has been deleted
from the storage backings (see LibraryModel.getStorageBackings()
) associated with it.
For instance, this error) is reported on synchronizing a subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted.
libraryId
- Identifier of the subscribed library to synchronize.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void update(java.lang.String libraryId, LibraryModel updateSpec)
This is an incremental
update to the subscribed library. Properties that are null
in the update
specification will be left unchanged.
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryId
- Identifier of the subscribed library to update.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.updateSpec
- Specification of the new property values to set on the subscribed library.NotFound
- if the library specified by libraryId
does not exist.NotAllowedInCurrentState
- if the updateSpec
updates the subscription URL (see SubscriptionInfo.getSubscriptionUrl()
) and the content
of the library specified by libraryId
has been deleted from the storage
backings (see LibraryModel.getStorageBackings()
)
associated with it.InvalidElementType
- if the library specified by libraryId
is not a subscribed library.InvalidArgument
- if the updateSpec
is not valid.ResourceInaccessible
- if the subscription info is being updated but the published library cannot be
contacted or found.ResourceBusy
- if the LibraryModel.getVersion()
of updateSpec
is null
and the library is being concurrently updated by another user.ConcurrentChange
- if the LibraryModel.getVersion()
of updateSpec
is not equal to the current version of the library.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.UpdateSubscribedLibrary
. void update(java.lang.String libraryId, LibraryModel updateSpec, InvocationConfig invocationConfig)
This is an incremental
update to the subscribed library. Properties that are null
in the update
specification will be left unchanged.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
libraryId
- Identifier of the subscribed library to update.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.updateSpec
- Specification of the new property values to set on the subscribed library.invocationConfig
- Configuration for the method invocation.NotFound
- if the library specified by libraryId
does not exist.NotAllowedInCurrentState
- if the updateSpec
updates the subscription URL (see SubscriptionInfo.getSubscriptionUrl()
) and the content
of the library specified by libraryId
has been deleted from the storage
backings (see LibraryModel.getStorageBackings()
)
associated with it.InvalidElementType
- if the library specified by libraryId
is not a subscribed library.InvalidArgument
- if the updateSpec
is not valid.ResourceInaccessible
- if the subscription info is being updated but the published library cannot be
contacted or found.ResourceBusy
- if the LibraryModel.getVersion()
of updateSpec
is null
and the library is being concurrently updated by another user.ConcurrentChange
- if the LibraryModel.getVersion()
of updateSpec
is not equal to the current version of the library.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.UpdateSubscribedLibrary
. void update(java.lang.String libraryId, LibraryModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback)
This is an incremental
update to the subscribed library. Properties that are null
in the update
specification will be left unchanged.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the library specified by libraryId
does not exist.
NotAllowedInCurrentState
- if the updateSpec
updates the subscription URL (see SubscriptionInfo.getSubscriptionUrl()
) and the content
of the library specified by libraryId
has been deleted from the storage
backings (see LibraryModel.getStorageBackings()
)
associated with it.
InvalidElementType
- if the library specified by libraryId
is not a subscribed library.
InvalidArgument
- if the updateSpec
is not valid.
ResourceInaccessible
- if the subscription info is being updated but the published library cannot be
contacted or found.
ResourceBusy
- if the LibraryModel.getVersion()
of updateSpec
is null
and the library is being concurrently updated by another user.
ConcurrentChange
- if the LibraryModel.getVersion()
of updateSpec
is not equal to the current version of the library.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.UpdateSubscribedLibrary
. libraryId
- Identifier of the subscribed library to update.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.updateSpec
- Specification of the new property values to set on the subscribed library.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void update(java.lang.String libraryId, LibraryModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
This is an incremental
update to the subscribed library. Properties that are null
in the update
specification will be left unchanged.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if the library specified by libraryId
does not exist.
NotAllowedInCurrentState
- if the updateSpec
updates the subscription URL (see SubscriptionInfo.getSubscriptionUrl()
) and the content
of the library specified by libraryId
has been deleted from the storage
backings (see LibraryModel.getStorageBackings()
)
associated with it.
InvalidElementType
- if the library specified by libraryId
is not a subscribed library.
InvalidArgument
- if the updateSpec
is not valid.
ResourceInaccessible
- if the subscription info is being updated but the published library cannot be
contacted or found.
ResourceBusy
- if the LibraryModel.getVersion()
of updateSpec
is null
and the library is being concurrently updated by another user.
ConcurrentChange
- if the LibraryModel.getVersion()
of updateSpec
is not equal to the current version of the library.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.Library
referenced by the parameter libraryId
requires ContentLibrary.UpdateSubscribedLibrary
. libraryId
- Identifier of the subscribed library to update.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.updateSpec
- Specification of the new property values to set on the subscribed library.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.SubscribedLibraryTypes.ProbeResult probe(SubscriptionInfo subscriptionInfo)
SubscribedLibraryTypes.ProbeResult
class describes whether
or not the subscription configuration is successful.
Synchronous method overload. Result of the invocation will be reported as a method return value.
subscriptionInfo
- The subscription info to be probed.Unauthorized
- if you do not have all of the privileges described as follows: ContentLibrary.ProbeSubscription
. SubscribedLibraryTypes.ProbeResult probe(SubscriptionInfo subscriptionInfo, InvocationConfig invocationConfig)
SubscribedLibraryTypes.ProbeResult
class describes whether
or not the subscription configuration is successful.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
subscriptionInfo
- The subscription info to be probed.invocationConfig
- Configuration for the method invocation.Unauthorized
- if you do not have all of the privileges described as follows: ContentLibrary.ProbeSubscription
. void probe(SubscriptionInfo subscriptionInfo, AsyncCallback<SubscribedLibraryTypes.ProbeResult> asyncCallback)
SubscribedLibraryTypes.ProbeResult
class describes whether
or not the subscription configuration is successful.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The subscription info probe result.
Operation Errors:
Unauthorized
- if you do not have all of the privileges described as follows:
ContentLibrary.ProbeSubscription
. subscriptionInfo
- The subscription info to be probed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void probe(SubscriptionInfo subscriptionInfo, AsyncCallback<SubscribedLibraryTypes.ProbeResult> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibraryTypes.ProbeResult
class describes whether
or not the subscription configuration is successful.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
The subscription info probe result.
Operation Errors:
Unauthorized
- if you do not have all of the privileges described as follows:
ContentLibrary.ProbeSubscription
. subscriptionInfo
- The subscription info to be probed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.