public class LinksStub extends com.vmware.vapi.internal.bindings.Stub implements Links
Links
API service.
WARNING: Internal class, subject to change in future versions.
LinksTypes.CertificateInfo, LinksTypes.CreateSpec, LinksTypes.Credentials, LinksTypes.Info, LinksTypes.SummaryapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID| Constructor and Description |
|---|
LinksStub(ApiProvider apiProvider,
StubConfigurationBase config) |
LinksStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
create(LinksTypes.CreateSpec spec)
Creates a new hybrid link between the local and foreign PSC.
|
void |
create(LinksTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a new hybrid link between the local and foreign PSC.
|
void |
create(LinksTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a new hybrid link between the local and foreign PSC.
|
java.lang.String |
create(LinksTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a new hybrid link between the local and foreign PSC.
|
void |
delete(java.lang.String link)
Deletes an existing hybrid link.
|
void |
delete(java.lang.String link,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes an existing hybrid link.
|
void |
delete(java.lang.String link,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an existing hybrid link.
|
void |
delete(java.lang.String link,
InvocationConfig invocationConfig)
Deletes an existing hybrid link.
|
void |
deleteWithCredentials(java.lang.String link,
LinksTypes.Credentials credentials)
Deletes an existing hybrid link.
|
void |
deleteWithCredentials(java.lang.String link,
LinksTypes.Credentials credentials,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes an existing hybrid link.
|
void |
deleteWithCredentials(java.lang.String link,
LinksTypes.Credentials credentials,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an existing hybrid link.
|
void |
deleteWithCredentials(java.lang.String link,
LinksTypes.Credentials credentials,
InvocationConfig invocationConfig)
Deletes an existing hybrid link.
|
LinksTypes.Info |
get(java.lang.String link)
Gets information for a link.
|
void |
get(java.lang.String link,
AsyncCallback<LinksTypes.Info> asyncCallback)
Gets information for a link.
|
void |
get(java.lang.String link,
AsyncCallback<LinksTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Gets information for a link.
|
LinksTypes.Info |
get(java.lang.String link,
InvocationConfig invocationConfig)
Gets information for a link.
|
java.util.List<LinksTypes.Summary> |
list()
Enumerates the list of registered hybrid links.
|
void |
list(AsyncCallback<java.util.List<LinksTypes.Summary>> asyncCallback)
Enumerates the list of registered hybrid links.
|
void |
list(AsyncCallback<java.util.List<LinksTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Enumerates the list of registered hybrid links.
|
java.util.List<LinksTypes.Summary> |
list(InvocationConfig invocationConfig)
Enumerates the list of registered hybrid links.
|
public LinksStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public LinksStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String create(LinksTypes.CreateSpec spec)
LinksSynchronous method overload. Result of the invocation will be reported as a method return value.
public java.lang.String create(LinksTypes.CreateSpec spec, InvocationConfig invocationConfig)
LinksSynchronous 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 Linksspec - Specification for the new link to be created.invocationConfig - Configuration for the method invocation.com.vmware.vcenter.hvc.Links.public void create(LinksTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
LinksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
The identifier of the newly linked domain.
The return value will be an identifier for the resource type: com.vmware.vcenter.hvc.Links.
Operation Errors:
AlreadyExists - If the link already exists.
InvalidArgument - If the values of any of the properties of the spec parameter are not
valid.
Unsupported - If the PSC or the VC version is not supported.
Unauthorized - If the user is not authorized.
UnverifiedPeer - If the SSL certificate of the foreign PSC cannot be validated by comparing with
the thumbprint provided in LinksTypes.CreateSpec.getSslThumbprint() or if LinksTypes.CreateSpec.getSslThumbprint() is null.
The value of the UnverifiedPeer#data) property will be a class that
contains all the properties defined in {@link
com.vmware.vcenter.hvc.LinksTypes.CertificateInfo}.
{@link com.vmware.vapi.std.errors.Error} - if the system reports an error while responding to the request.
public void create(LinksTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
LinksAsynchronous 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 identifier of the newly linked domain.
The return value will be an identifier for the resource type: com.vmware.vcenter.hvc.Links.
Operation Errors:
AlreadyExists - If the link already exists.
InvalidArgument - If the values of any of the properties of the spec parameter are not
valid.
Unsupported - If the PSC or the VC version is not supported.
Unauthorized - If the user is not authorized.
UnverifiedPeer - If the SSL certificate of the foreign PSC cannot be validated by comparing with
the thumbprint provided in LinksTypes.CreateSpec.getSslThumbprint() or if LinksTypes.CreateSpec.getSslThumbprint() is null.
The value of the UnverifiedPeer#data) property will be a class that
contains all the properties defined in {@link
com.vmware.vcenter.hvc.LinksTypes.CertificateInfo}.
{@link com.vmware.vapi.std.errors.Error} - if the system reports an error while responding to the request.
public void delete(java.lang.String link)
LinksSynchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String link,
InvocationConfig invocationConfig)
LinksSynchronous 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 delete(java.lang.String link,
AsyncCallback<java.lang.Void> asyncCallback)
LinksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotFound - If the hybrid link associated with link does not exist.
Unauthorized - If the user is not authorized.
Error - if the system reports an error while responding to the request.
public void delete(java.lang.String link,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
LinksAsynchronous 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 hybrid link associated with link does not exist.
Unauthorized - If the user is not authorized.
Error - if the system reports an error while responding to the request.
delete in interface Linkslink - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void deleteWithCredentials(java.lang.String link,
LinksTypes.Credentials credentials)
LinksSynchronous method overload. Result of the invocation will be reported as a method return value.
deleteWithCredentials in interface Linkslink - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.credentials - Credentials to use for authentication to the remote system.
This parameter is currently required. In the future, it may become optional.public void deleteWithCredentials(java.lang.String link,
LinksTypes.Credentials credentials,
InvocationConfig invocationConfig)
LinksSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
deleteWithCredentials in interface Linkslink - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.credentials - Credentials to use for authentication to the remote system.
This parameter is currently required. In the future, it may become optional.invocationConfig - Configuration for the method invocation.public void deleteWithCredentials(java.lang.String link,
LinksTypes.Credentials credentials,
AsyncCallback<java.lang.Void> asyncCallback)
LinksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotFound - if the hybrid link associated with link does not exist.
Unauthorized - if the user is not authorized.
Error - if the system reports an error while responding to the request.
deleteWithCredentials in interface Linkslink - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.credentials - Credentials to use for authentication to the remote system.
This parameter is currently required. In the future, it may become optional.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void deleteWithCredentials(java.lang.String link,
LinksTypes.Credentials credentials,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
LinksAsynchronous 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 hybrid link associated with link does not exist.
Unauthorized - if the user is not authorized.
Error - if the system reports an error while responding to the request.
deleteWithCredentials in interface Linkslink - Identifier of the hybrid link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.credentials - Credentials to use for authentication to the remote system.
This parameter is currently required. In the future, it may become optional.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public java.util.List<LinksTypes.Summary> list()
LinksSynchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<LinksTypes.Summary> list(InvocationConfig invocationConfig)
LinksSynchronous 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<LinksTypes.Summary>> asyncCallback)
LinksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
The List of hybrid link information.
Operation Errors:
Error - if the system reports an error while responding to the request.
public void list(AsyncCallback<java.util.List<LinksTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
LinksAsynchronous 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 hybrid link information.
Operation Errors:
Error - if the system reports an error while responding to the request.
public LinksTypes.Info get(java.lang.String link)
LinksSynchronous method overload. Result of the invocation will be reported as a method return value.
public LinksTypes.Info get(java.lang.String link, InvocationConfig invocationConfig)
LinksSynchronous 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 link,
AsyncCallback<LinksTypes.Info> asyncCallback)
LinksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Information about the link.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if the hybrid link associated with link does not exist.
Unauthorized - if the user is not authorized to perform this operation.
ResourceBusy - if the service is busy.
public void get(java.lang.String link,
AsyncCallback<LinksTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
LinksAsynchronous 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 link.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if the hybrid link associated with link does not exist.
Unauthorized - if the user is not authorized to perform this operation.
ResourceBusy - if the service is busy.
get in interface Linkslink - Unique identifier of the link.
The parameter must be an identifier for the resource type: com.vmware.vcenter.hvc.Links.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.