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.Summary| 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.
|
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.
Operation 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.
InvalidRequest - 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 InvalidRequest#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.
Operation 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.
InvalidRequest - 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 InvalidRequest#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 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.
Operation 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.
Operation Result:
The List of hybrid link information.
Operation Errors:
Error - if the system reports an error while responding to the request.