public class StorageStub extends com.vmware.vapi.internal.bindings.Stub implements Storage
Storage
API service.
WARNING: Internal API, subject to change in future versions.
StorageTypes.Info| Constructor and Description |
|---|
StorageStub(ApiProvider apiProvider,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
List<StorageTypes.Info> |
get(String libraryItemId,
String fileName)
Retrieves the storage information for a specific file in a library item.
|
void |
get(String libraryItemId,
String fileName,
AsyncCallback<List<StorageTypes.Info>> asyncCallback)
Retrieves the storage information for a specific file in a library item.
|
void |
get(String libraryItemId,
String fileName,
AsyncCallback<List<StorageTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the storage information for a specific file in a library item.
|
List<StorageTypes.Info> |
get(String libraryItemId,
String fileName,
InvocationConfig invocationConfig)
Retrieves the storage information for a specific file in a library item.
|
List<StorageTypes.Info> |
list(String libraryItemId)
Lists all storage items for a given library item.
|
void |
list(String libraryItemId,
AsyncCallback<List<StorageTypes.Info>> asyncCallback)
Lists all storage items for a given library item.
|
void |
list(String libraryItemId,
AsyncCallback<List<StorageTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Lists all storage items for a given library item.
|
List<StorageTypes.Info> |
list(String libraryItemId,
InvocationConfig invocationConfig)
Lists all storage items for a given library item.
|
public StorageStub(ApiProvider apiProvider, StubConfigurationBase config)
public List<StorageTypes.Info> get(String libraryItemId, String fileName)
StorageSynchronous method overload. Result of the invocation will be reported as a method return value.
get in interface StoragelibraryItemId - Identifier of the library item whose storage information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item.fileName - Name of the file for which the storage information should be listed.List of all the storage items for the given file within
the given library item.public List<StorageTypes.Info> get(String libraryItemId, String fileName, InvocationConfig invocationConfig)
StorageSynchronous 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 StoragelibraryItemId - Identifier of the library item whose storage information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item.fileName - Name of the file for which the storage information should be listed.invocationConfig - Configuration for the method invocation.List of all the storage items for the given file within
the given library item.public void get(String libraryItemId, String fileName, AsyncCallback<List<StorageTypes.Info>> asyncCallback)
StorageAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
The List of all the storage items for the given file within
the given library item.
Operation Errors:
NotFound - if the specified library item does not exist.
NotFound - if the specified file does not exist in the given library item.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.content.library.Item referenced by the parameter
libraryItemId requires ContentLibrary.ReadStorage. get in interface StoragelibraryItemId - Identifier of the library item whose storage information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item.fileName - Name of the file for which the storage information should be listed.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void get(String libraryItemId, String fileName, AsyncCallback<List<StorageTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
StorageAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
The List of all the storage items for the given file within
the given library item.
Operation Errors:
NotFound - if the specified library item does not exist.
NotFound - if the specified file does not exist in the given library item.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.content.library.Item referenced by the parameter
libraryItemId requires ContentLibrary.ReadStorage. get in interface StoragelibraryItemId - Identifier of the library item whose storage information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item.fileName - Name of the file for which the storage information should be listed.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public List<StorageTypes.Info> list(String libraryItemId)
StorageSynchronous method overload. Result of the invocation will be reported as a method return value.
public List<StorageTypes.Info> list(String libraryItemId, InvocationConfig invocationConfig)
StorageSynchronous 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 StoragelibraryItemId - Identifier of the library item whose storage information should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item.invocationConfig - Configuration for the method invocation.List of all storage items for a given library item.public void list(String libraryItemId, AsyncCallback<List<StorageTypes.Info>> asyncCallback)
StorageAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
The List of all storage items for a given library item.
Operation Errors:
NotFound - if the specified library item does not exist.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.content.library.Item referenced by the parameter
libraryItemId requires ContentLibrary.ReadStorage. list in interface StoragelibraryItemId - Identifier of the library item whose storage information should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void list(String libraryItemId, AsyncCallback<List<StorageTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
StorageAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
The List of all storage items for a given library item.
Operation Errors:
NotFound - if the specified library item does not exist.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.content.library.Item referenced by the parameter
libraryItemId requires ContentLibrary.ReadStorage. list in interface StoragelibraryItemId - Identifier of the library item whose storage information should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.Copyright © 2016. All Rights Reserved.