public class PartsStub extends com.vmware.vapi.internal.bindings.Stub implements Parts
Parts
API service.
WARNING: Internal class, subject to change in future versions.
PartsTypes.LocalizableMessage, PartsTypes.Part
Constructor and Description |
---|
PartsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
PartsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
long |
get(java.lang.String id)
Gets the size (in MB) of the part.
|
void |
get(java.lang.String id,
AsyncCallback<java.lang.Long> asyncCallback)
Gets the size (in MB) of the part.
|
void |
get(java.lang.String id,
AsyncCallback<java.lang.Long> asyncCallback,
InvocationConfig invocationConfig)
Gets the size (in MB) of the part.
|
long |
get(java.lang.String id,
InvocationConfig invocationConfig)
Gets the size (in MB) of the part.
|
java.util.List<PartsTypes.Part> |
list()
Gets a list of the backup parts.
|
void |
list(AsyncCallback<java.util.List<PartsTypes.Part>> asyncCallback)
Gets a list of the backup parts.
|
void |
list(AsyncCallback<java.util.List<PartsTypes.Part>> asyncCallback,
InvocationConfig invocationConfig)
Gets a list of the backup parts.
|
java.util.List<PartsTypes.Part> |
list(InvocationConfig invocationConfig)
Gets a list of the backup parts.
|
public PartsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public PartsStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<PartsTypes.Part> list()
Parts
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<PartsTypes.Part> list(InvocationConfig invocationConfig)
Parts
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<PartsTypes.Part>> asyncCallback)
Parts
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Information about each of the backup parts.
Operation Errors:
Error
- if any error occurs during the execution of the operation.
public void list(AsyncCallback<java.util.List<PartsTypes.Part>> asyncCallback, InvocationConfig invocationConfig)
Parts
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Information about each of the backup parts.
Operation Errors:
Error
- if any error occurs during the execution of the operation.
public long get(java.lang.String id)
Parts
Synchronous method overload. Result of the invocation will be reported as a method return value.
public long get(java.lang.String id, InvocationConfig invocationConfig)
Parts
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 get(java.lang.String id, AsyncCallback<java.lang.Long> asyncCallback)
Parts
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
long Size of the part in megabytes.
Operation Errors:
Error
- if any error occurs during the execution of the operation.
public void get(java.lang.String id, AsyncCallback<java.lang.Long> asyncCallback, InvocationConfig invocationConfig)
Parts
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
long Size of the part in megabytes.
Operation Errors:
Error
- if any error occurs during the execution of the operation.
get
in interface Parts
id
- Identifier of the part.
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.parts
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.