public class LibraryStub extends com.vmware.vapi.internal.bindings.Stub implements Library
Library
API service.
WARNING: Internal class, subject to change in future versions.
LibraryTypes.FindSpec
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
LibraryStub(ApiProvider apiProvider,
StubConfigurationBase config) |
LibraryStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
find(LibraryTypes.FindSpec spec)
Returns a list of all the visible (as determined by authorization policy)
libraries matching the requested
LibraryTypes.FindSpec . |
void |
find(LibraryTypes.FindSpec spec,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns a list of all the visible (as determined by authorization policy)
libraries matching the requested
LibraryTypes.FindSpec . |
void |
find(LibraryTypes.FindSpec spec,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns a list of all the visible (as determined by authorization policy)
libraries matching the requested
LibraryTypes.FindSpec . |
java.util.List<java.lang.String> |
find(LibraryTypes.FindSpec spec,
InvocationConfig invocationConfig)
Returns a list of all the visible (as determined by authorization policy)
libraries matching the requested
LibraryTypes.FindSpec . |
LibraryModel |
get(java.lang.String libraryId)
Returns a given
LibraryModel . |
void |
get(java.lang.String libraryId,
AsyncCallback<LibraryModel> asyncCallback)
Returns a given
LibraryModel . |
void |
get(java.lang.String libraryId,
AsyncCallback<LibraryModel> asyncCallback,
InvocationConfig invocationConfig)
Returns a given
LibraryModel . |
LibraryModel |
get(java.lang.String libraryId,
InvocationConfig invocationConfig)
Returns a given
LibraryModel . |
java.util.List<java.lang.String> |
list()
Returns the identifiers of all libraries of any type in the Content Library.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns the identifiers of all libraries of any type in the Content Library.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers of all libraries of any type in the Content Library.
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Returns the identifiers of all libraries of any type in the Content Library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec)
Updates the properties of a library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates the properties of a library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the properties of a library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
InvocationConfig invocationConfig)
Updates the properties of a library.
|
public LibraryStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public LibraryStub(ApiProvider apiProvider, StubConfigurationBase config)
public LibraryModel get(java.lang.String libraryId)
Library
LibraryModel
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Library
libraryId
- Identifier of the library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library
.LibraryModel
instance with the specified libraryId
.public LibraryModel get(java.lang.String libraryId, InvocationConfig invocationConfig)
Library
LibraryModel
.
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 Library
libraryId
- Identifier of the 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 with the specified libraryId
.public void get(java.lang.String libraryId, AsyncCallback<LibraryModel> asyncCallback)
Library
LibraryModel
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The LibraryModel
instance with the specified libraryId
.
Operation Errors:
NotFound
- if the specified library 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 System.Read
. public void get(java.lang.String libraryId, AsyncCallback<LibraryModel> asyncCallback, InvocationConfig invocationConfig)
Library
LibraryModel
.
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 with the specified libraryId
.
Operation Errors:
NotFound
- if the specified library 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 System.Read
. get
in interface Library
libraryId
- Identifier of the 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()
Library
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<java.lang.String> list(InvocationConfig invocationConfig)
Library
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Library
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The List
of all identifiers of all 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
. public void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Library
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 all identifiers of all 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
. public java.util.List<java.lang.String> find(LibraryTypes.FindSpec spec)
Library
LibraryTypes.FindSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<java.lang.String> find(LibraryTypes.FindSpec spec, InvocationConfig invocationConfig)
Library
LibraryTypes.FindSpec
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
find
in interface Library
spec
- Specification describing what properties to filter on.invocationConfig
- Configuration for the method invocation.List
of identifiers of all the visible libraries matching
the given spec
.
The return value will contain identifiers for the resource type: com.vmware.content.Library
.public void find(LibraryTypes.FindSpec spec, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Library
LibraryTypes.FindSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The List
of identifiers of all the visible libraries matching
the given spec
.
The return value will contain identifiers for the resource type: com.vmware.content.Library
.
Operation Errors:
InvalidArgument
- if no properties are specified in the spec
.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. public void find(LibraryTypes.FindSpec spec, AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Library
LibraryTypes.FindSpec
.
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 the visible libraries matching
the given spec
.
The return value will contain identifiers for the resource type: com.vmware.content.Library
.
Operation Errors:
InvalidArgument
- if no properties are specified in the spec
.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. public void update(java.lang.String libraryId, LibraryModel updateSpec)
Library
This is an incremental update to the
library. Any property in the LibraryModel
class that
is null
will not be modified.
This method will only update the
common properties for all library types. This will not, for example, update the
LibraryModel.getPublishInfo()
of a local library, nor
the LibraryModel.getSubscriptionInfo()
of a subscribed
library. Specific properties are updated in LocalLibrary.update(java.lang.String, com.vmware.content.LibraryModel)
and SubscribedLibrary.update(java.lang.String, com.vmware.content.LibraryModel)
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void update(java.lang.String libraryId, LibraryModel updateSpec, InvocationConfig invocationConfig)
Library
This is an incremental update to the
library. Any property in the LibraryModel
class that
is null
will not be modified.
This method will only update the
common properties for all library types. This will not, for example, update the
LibraryModel.getPublishInfo()
of a local library, nor
the LibraryModel.getSubscriptionInfo()
of a subscribed
library. Specific properties are updated in LocalLibrary.update(java.lang.String, com.vmware.content.LibraryModel)
and SubscribedLibrary.update(java.lang.String, com.vmware.content.LibraryModel)
.
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 Library
libraryId
- Identifier of the 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 library.invocationConfig
- Configuration for the method invocation.public void update(java.lang.String libraryId, LibraryModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback)
Library
This is an incremental update to the
library. Any property in the LibraryModel
class that
is null
will not be modified.
This method will only update the
common properties for all library types. This will not, for example, update the
LibraryModel.getPublishInfo()
of a local library, nor
the LibraryModel.getSubscriptionInfo()
of a subscribed
library. Specific properties are updated in LocalLibrary.update(java.lang.String, com.vmware.content.LibraryModel)
and SubscribedLibrary.update(java.lang.String, com.vmware.content.LibraryModel)
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the library associated with libraryId
does not exist.
InvalidArgument
- if the updateSpec
is not valid.
InvalidArgument
- 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.UpdateLibrary
. update
in interface Library
libraryId
- Identifier of the 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 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)
Library
This is an incremental update to the
library. Any property in the LibraryModel
class that
is null
will not be modified.
This method will only update the
common properties for all library types. This will not, for example, update the
LibraryModel.getPublishInfo()
of a local library, nor
the LibraryModel.getSubscriptionInfo()
of a subscribed
library. Specific properties are updated in LocalLibrary.update(java.lang.String, com.vmware.content.LibraryModel)
and SubscribedLibrary.update(java.lang.String, com.vmware.content.LibraryModel)
.
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 associated with libraryId
does not exist.
InvalidArgument
- if the updateSpec
is not valid.
InvalidArgument
- 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.UpdateLibrary
. update
in interface Library
libraryId
- Identifier of the 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 library.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.