public class SubscribedLibraryStub extends com.vmware.vapi.internal.bindings.Stub implements SubscribedLibrary
SubscribedLibrary
API service.
WARNING: Internal class, subject to change in future versions.
SubscribedLibraryTypes.ProbeResult
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
SubscribedLibraryStub(ApiProvider apiProvider,
StubConfigurationBase config) |
SubscribedLibraryStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
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.
|
public SubscribedLibraryStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public SubscribedLibraryStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String create(java.lang.String clientToken, LibraryModel createSpec)
SubscribedLibrary
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.
create
in interface SubscribedLibrary
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
.public java.lang.String create(java.lang.String clientToken, LibraryModel createSpec, InvocationConfig invocationConfig)
SubscribedLibrary
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.
create
in interface SubscribedLibrary
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
.public void create(java.lang.String clientToken, LibraryModel createSpec, AsyncCallback<java.lang.String> asyncCallback)
SubscribedLibrary
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
. create
in interface SubscribedLibrary
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.public void create(java.lang.String clientToken, LibraryModel createSpec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibrary
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
. create
in interface SubscribedLibrary
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.public void delete(java.lang.String libraryId)
SubscribedLibrary
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.
delete
in interface SubscribedLibrary
libraryId
- Identifier of the subscribed library to delete.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.public void delete(java.lang.String libraryId, InvocationConfig invocationConfig)
SubscribedLibrary
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.
delete
in interface SubscribedLibrary
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.public void delete(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback)
SubscribedLibrary
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
. delete
in interface SubscribedLibrary
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.public void delete(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibrary
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
. delete
in interface SubscribedLibrary
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.public void evict(java.lang.String libraryId)
SubscribedLibrary
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.
evict
in interface SubscribedLibrary
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
.public void evict(java.lang.String libraryId, InvocationConfig invocationConfig)
SubscribedLibrary
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.
evict
in interface SubscribedLibrary
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.public void evict(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback)
SubscribedLibrary
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.
evict
in interface SubscribedLibrary
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.public void evict(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibrary
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.
evict
in interface SubscribedLibrary
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.public LibraryModel get(java.lang.String libraryId)
SubscribedLibrary
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface SubscribedLibrary
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
.public LibraryModel get(java.lang.String libraryId, InvocationConfig invocationConfig)
SubscribedLibrary
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface SubscribedLibrary
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
.public void get(java.lang.String libraryId, AsyncCallback<LibraryModel> asyncCallback)
SubscribedLibrary
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
. get
in interface SubscribedLibrary
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.public void get(java.lang.String libraryId, AsyncCallback<LibraryModel> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibrary
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
. get
in interface SubscribedLibrary
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.public java.util.List<java.lang.String> list()
SubscribedLibrary
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface SubscribedLibrary
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
.public java.util.List<java.lang.String> list(InvocationConfig invocationConfig)
SubscribedLibrary
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface SubscribedLibrary
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
.public void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
SubscribedLibrary
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
. list
in interface SubscribedLibrary
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibrary
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
. list
in interface SubscribedLibrary
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void sync(java.lang.String libraryId)
SubscribedLibrary
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.
sync
in interface SubscribedLibrary
libraryId
- Identifier of the subscribed library to synchronize.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.public void sync(java.lang.String libraryId, InvocationConfig invocationConfig)
SubscribedLibrary
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.
sync
in interface SubscribedLibrary
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.public void sync(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback)
SubscribedLibrary
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.
sync
in interface SubscribedLibrary
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.public void sync(java.lang.String libraryId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibrary
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.
sync
in interface SubscribedLibrary
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.public void update(java.lang.String libraryId, LibraryModel updateSpec)
SubscribedLibrary
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.
update
in interface SubscribedLibrary
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.public void update(java.lang.String libraryId, LibraryModel updateSpec, InvocationConfig invocationConfig)
SubscribedLibrary
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.
update
in interface SubscribedLibrary
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.public void update(java.lang.String libraryId, LibraryModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback)
SubscribedLibrary
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
. update
in interface SubscribedLibrary
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.public void update(java.lang.String libraryId, LibraryModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibrary
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
. update
in interface SubscribedLibrary
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.public SubscribedLibraryTypes.ProbeResult probe(SubscriptionInfo subscriptionInfo)
SubscribedLibrary
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.
probe
in interface SubscribedLibrary
subscriptionInfo
- The subscription info to be probed.public SubscribedLibraryTypes.ProbeResult probe(SubscriptionInfo subscriptionInfo, InvocationConfig invocationConfig)
SubscribedLibrary
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.
probe
in interface SubscribedLibrary
subscriptionInfo
- The subscription info to be probed.invocationConfig
- Configuration for the method invocation.public void probe(SubscriptionInfo subscriptionInfo, AsyncCallback<SubscribedLibraryTypes.ProbeResult> asyncCallback)
SubscribedLibrary
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
. probe
in interface SubscribedLibrary
subscriptionInfo
- The subscription info to be probed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void probe(SubscriptionInfo subscriptionInfo, AsyncCallback<SubscribedLibraryTypes.ProbeResult> asyncCallback, InvocationConfig invocationConfig)
SubscribedLibrary
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
. probe
in interface SubscribedLibrary
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.