public class NetworksStub extends com.vmware.vapi.internal.bindings.Stub implements Networks
Networks
API service.
WARNING: Internal class, subject to change in future versions.
NetworksTypes.CreateSpec, NetworksTypes.Info, NetworksTypes.IPAssignmentMode, NetworksTypes.LoadBalancerSize, NetworksTypes.NsxNetworkCreateSpec, NetworksTypes.NsxNetworkInfo, NetworksTypes.NsxNetworkSetSpec, NetworksTypes.NsxNetworkUpdateSpec, NetworksTypes.SetSpec, NetworksTypes.UpdateSpec, NetworksTypes.VsphereDVPGNetworkCreateSpec, NetworksTypes.VsphereDVPGNetworkInfo, NetworksTypes.VsphereDVPGNetworkSetSpec, NetworksTypes.VsphereDVPGNetworkUpdateSpecapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID, RESOURCE_TYPE| Constructor and Description |
|---|
NetworksStub(ApiProvider apiProvider,
StubConfigurationBase config) |
NetworksStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String cluster,
NetworksTypes.CreateSpec spec)
Create a vSphere Namespaces network object associated with the given cluster.
|
void |
create(java.lang.String cluster,
NetworksTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Create a vSphere Namespaces network object associated with the given cluster.
|
void |
create(java.lang.String cluster,
NetworksTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Create a vSphere Namespaces network object associated with the given cluster.
|
void |
create(java.lang.String cluster,
NetworksTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Create a vSphere Namespaces network object associated with the given cluster.
|
void |
delete(java.lang.String cluster,
java.lang.String network)
Delete the vSphere Namespaces object in the cluster.
|
void |
delete(java.lang.String cluster,
java.lang.String network,
AsyncCallback<java.lang.Void> asyncCallback)
Delete the vSphere Namespaces object in the cluster.
|
void |
delete(java.lang.String cluster,
java.lang.String network,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Delete the vSphere Namespaces object in the cluster.
|
void |
delete(java.lang.String cluster,
java.lang.String network,
InvocationConfig invocationConfig)
Delete the vSphere Namespaces object in the cluster.
|
NetworksTypes.Info |
get(java.lang.String cluster,
java.lang.String network)
Return information about a specific vSphere Namespaces network.
|
void |
get(java.lang.String cluster,
java.lang.String network,
AsyncCallback<NetworksTypes.Info> asyncCallback)
Return information about a specific vSphere Namespaces network.
|
void |
get(java.lang.String cluster,
java.lang.String network,
AsyncCallback<NetworksTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Return information about a specific vSphere Namespaces network.
|
NetworksTypes.Info |
get(java.lang.String cluster,
java.lang.String network,
InvocationConfig invocationConfig)
Return information about a specific vSphere Namespaces network.
|
java.util.List<NetworksTypes.Info> |
list(java.lang.String cluster)
Return information about all vSphere Namespaces networks in the cluster.
|
void |
list(java.lang.String cluster,
AsyncCallback<java.util.List<NetworksTypes.Info>> asyncCallback)
Return information about all vSphere Namespaces networks in the cluster.
|
void |
list(java.lang.String cluster,
AsyncCallback<java.util.List<NetworksTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Return information about all vSphere Namespaces networks in the cluster.
|
java.util.List<NetworksTypes.Info> |
list(java.lang.String cluster,
InvocationConfig invocationConfig)
Return information about all vSphere Namespaces networks in the cluster.
|
void |
set(java.lang.String cluster,
java.lang.String network,
NetworksTypes.SetSpec spec)
Set a new configuration for the vSphere Namespaces network object associated
with the given cluster.
|
void |
set(java.lang.String cluster,
java.lang.String network,
NetworksTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Set a new configuration for the vSphere Namespaces network object associated
with the given cluster.
|
void |
set(java.lang.String cluster,
java.lang.String network,
NetworksTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Set a new configuration for the vSphere Namespaces network object associated
with the given cluster.
|
void |
set(java.lang.String cluster,
java.lang.String network,
NetworksTypes.SetSpec spec,
InvocationConfig invocationConfig)
Set a new configuration for the vSphere Namespaces network object associated
with the given cluster.
|
void |
update(java.lang.String cluster,
java.lang.String network,
NetworksTypes.UpdateSpec spec)
Update the configuration of the vSphere Namespaces network object associated
with the given cluster.
|
void |
update(java.lang.String cluster,
java.lang.String network,
NetworksTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Update the configuration of the vSphere Namespaces network object associated
with the given cluster.
|
void |
update(java.lang.String cluster,
java.lang.String network,
NetworksTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Update the configuration of the vSphere Namespaces network object associated
with the given cluster.
|
void |
update(java.lang.String cluster,
java.lang.String network,
NetworksTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Update the configuration of the vSphere Namespaces network object associated
with the given cluster.
|
public NetworksStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public NetworksStub(ApiProvider apiProvider, StubConfigurationBase config)
public void create(java.lang.String cluster,
NetworksTypes.CreateSpec spec)
NetworksSynchronous method overload. Result of the invocation will be reported as a method return value.
public void create(java.lang.String cluster,
NetworksTypes.CreateSpec spec,
InvocationConfig invocationConfig)
NetworksSynchronous 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 create(java.lang.String cluster,
NetworksTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
AlreadyExists - if a network by the name as specified in the CreateSpec already exists.
Error - if the system reports an error while responding to the request.
InvalidArgument - if spec contains any errors.
NotAllowedInCurrentState - if the associated cluster is being disabled.
NotFound - if cluster cannot be located.
Unsupported - if spec contains NsxNetworkCreateSpec which is unsupported via create
API.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
create in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - Information about the network object to be created.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String cluster,
NetworksTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
AlreadyExists - if a network by the name as specified in the CreateSpec already exists.
Error - if the system reports an error while responding to the request.
InvalidArgument - if spec contains any errors.
NotAllowedInCurrentState - if the associated cluster is being disabled.
NotFound - if cluster cannot be located.
Unsupported - if spec contains NsxNetworkCreateSpec which is unsupported via create
API.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
create in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - Information about the network object to be created.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void set(java.lang.String cluster,
java.lang.String network,
NetworksTypes.SetSpec spec)
NetworksSynchronous method overload. Result of the invocation will be reported as a method return value.
set in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.spec - Information about the network object to be set.public void set(java.lang.String cluster,
java.lang.String network,
NetworksTypes.SetSpec spec,
InvocationConfig invocationConfig)
NetworksSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
set in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.spec - Information about the network object to be set.invocationConfig - Configuration for the method invocation.public void set(java.lang.String cluster,
java.lang.String network,
NetworksTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
Error - if the system reports an error while responding to the request.
InvalidArgument - if spec contains any errors.
NotAllowedInCurrentState - if the associated cluster is being disabled.
NotFound - if cluster or the network cannot be located.
ResourceInUse - if the network is in use and the spec contains field values that are
un-settable in such a case.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
set in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.spec - Information about the network object to be set.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void set(java.lang.String cluster,
java.lang.String network,
NetworksTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
Error - if the system reports an error while responding to the request.
InvalidArgument - if spec contains any errors.
NotAllowedInCurrentState - if the associated cluster is being disabled.
NotFound - if cluster or the network cannot be located.
ResourceInUse - if the network is in use and the spec contains field values that are
un-settable in such a case.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
set in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.spec - Information about the network object to be set.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void update(java.lang.String cluster,
java.lang.String network,
NetworksTypes.UpdateSpec spec)
NetworksSynchronous method overload. Result of the invocation will be reported as a method return value.
update in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.spec - Information about the network object to be updated.public void update(java.lang.String cluster,
java.lang.String network,
NetworksTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
NetworksSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
update in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.spec - Information about the network object to be updated.invocationConfig - Configuration for the method invocation.public void update(java.lang.String cluster,
java.lang.String network,
NetworksTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
Error - if the system reports an error while responding to the request.
InvalidArgument - if spec contains any errors.
NotAllowedInCurrentState - if the associated cluster is being disabled.
NotFound - if cluster or the network cannot be located.
ResourceInUse - if the network is in use and the spec contains field values that are
un-updatable in such a case.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
update in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.spec - Information about the network object to be updated.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String cluster,
java.lang.String network,
NetworksTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
Error - if the system reports an error while responding to the request.
InvalidArgument - if spec contains any errors.
NotAllowedInCurrentState - if the associated cluster is being disabled.
NotFound - if cluster or the network cannot be located.
ResourceInUse - if the network is in use and the spec contains field values that are
un-updatable in such a case.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
update in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.spec - Information about the network object to be updated.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public NetworksTypes.Info get(java.lang.String cluster, java.lang.String network)
NetworksSynchronous method overload. Result of the invocation will be reported as a method return value.
get in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.public NetworksTypes.Info get(java.lang.String cluster, java.lang.String network, InvocationConfig invocationConfig)
NetworksSynchronous 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 Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.invocationConfig - Configuration for the method invocation.public void get(java.lang.String cluster,
java.lang.String network,
AsyncCallback<NetworksTypes.Info> asyncCallback)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
List of information about all vSphere Namespaces networks in the cluster.
Operation Errors:
NotFound - if cluster or network could not be located.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have System.Read privilege.
get in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String cluster,
java.lang.String network,
AsyncCallback<NetworksTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
List of information about all vSphere Namespaces networks in the cluster.
Operation Errors:
NotFound - if cluster or network could not be located.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have System.Read privilege.
get in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public java.util.List<NetworksTypes.Info> list(java.lang.String cluster)
NetworksSynchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<NetworksTypes.Info> list(java.lang.String cluster, InvocationConfig invocationConfig)
NetworksSynchronous 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 Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.invocationConfig - Configuration for the method invocation.public void list(java.lang.String cluster,
AsyncCallback<java.util.List<NetworksTypes.Info>> asyncCallback)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Information about the specified vSphere Namespaces network..
Operation Errors:
NotFound - if cluster or network could not be located.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have System.Read privilege.
public void list(java.lang.String cluster,
AsyncCallback<java.util.List<NetworksTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
NetworksAsynchronous 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 specified vSphere Namespaces network..
Operation Errors:
NotFound - if cluster or network could not be located.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have System.Read privilege.
list in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void delete(java.lang.String cluster,
java.lang.String network)
NetworksSynchronous method overload. Result of the invocation will be reported as a method return value.
delete in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.public void delete(java.lang.String cluster,
java.lang.String network,
InvocationConfig invocationConfig)
NetworksSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
delete in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.invocationConfig - Configuration for the method invocation.public void delete(java.lang.String cluster,
java.lang.String network,
AsyncCallback<java.lang.Void> asyncCallback)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if cluster or network could not be located.
ResourceInUse - if the network is associated with a Namespace.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
delete in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String cluster,
java.lang.String network,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
NetworksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if cluster or network could not be located.
ResourceInUse - if the network is associated with a Namespace.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
delete in interface Networkscluster - Identifier for the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource.network - Identifier for the vSphere Namespaces network.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.Network.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.