public class LibraryItemStub extends com.vmware.vapi.internal.bindings.Stub implements LibraryItem
LibraryItem
API service.
WARNING: Internal class, subject to change in future versions.
LibraryItemTypes.CheckOutInfo, LibraryItemTypes.Info
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
LibraryItemStub(ApiProvider apiProvider,
StubConfigurationBase config) |
LibraryItemStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
LibraryItemTypes.Info |
get(java.lang.String vm)
Returns the information about the library item associated with the virtual
machine.
|
void |
get(java.lang.String vm,
AsyncCallback<LibraryItemTypes.Info> asyncCallback)
Returns the information about the library item associated with the virtual
machine.
|
void |
get(java.lang.String vm,
AsyncCallback<LibraryItemTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the information about the library item associated with the virtual
machine.
|
LibraryItemTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Returns the information about the library item associated with the virtual
machine.
|
public LibraryItemStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public LibraryItemStub(ApiProvider apiProvider, StubConfigurationBase config)
public LibraryItemTypes.Info get(java.lang.String vm)
LibraryItem
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface LibraryItem
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.public LibraryItemTypes.Info get(java.lang.String vm, InvocationConfig invocationConfig)
LibraryItem
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 LibraryItem
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String vm, AsyncCallback<LibraryItemTypes.Info> asyncCallback)
LibraryItem
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the library item associated with the virtual machine.
Operation Errors:
NotFound
- if the virtual machine is not found.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
get
in interface LibraryItem
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String vm, AsyncCallback<LibraryItemTypes.Info> asyncCallback, InvocationConfig invocationConfig)
LibraryItem
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:
Information about the library item associated with the virtual machine.
Operation Errors:
NotFound
- if the virtual machine is not found.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
get
in interface LibraryItem
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.