public class ZonesStub extends com.vmware.vapi.internal.bindings.Stub implements Zones
Zones
API service.
WARNING: Internal class, subject to change in future versions.
ZonesTypes.CreateSpec, ZonesTypes.FilterSpec, ZonesTypes.Info, ZonesTypes.ListItem, ZonesTypes.ListResult
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
ZonesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ZonesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(ZonesTypes.CreateSpec spec)
Creates a zone based on the provided specifications.
|
void |
create(ZonesTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a zone based on the provided specifications.
|
void |
create(ZonesTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a zone based on the provided specifications.
|
java.lang.String |
create(ZonesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a zone based on the provided specifications.
|
void |
delete(java.lang.String zone)
Deletes the zone with the specified identifier.
|
void |
delete(java.lang.String zone,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes the zone with the specified identifier.
|
void |
delete(java.lang.String zone,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes the zone with the specified identifier.
|
void |
delete(java.lang.String zone,
InvocationConfig invocationConfig)
Deletes the zone with the specified identifier.
|
ZonesTypes.Info |
get(java.lang.String zone)
Returns the information about a specific zone.
|
void |
get(java.lang.String zone,
AsyncCallback<ZonesTypes.Info> asyncCallback)
Returns the information about a specific zone.
|
void |
get(java.lang.String zone,
AsyncCallback<ZonesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the information about a specific zone.
|
ZonesTypes.Info |
get(java.lang.String zone,
InvocationConfig invocationConfig)
Returns the information about a specific zone.
|
ZonesTypes.ListResult |
list(ZonesTypes.FilterSpec spec)
Returns information about the zones available on this vCenter server, where the
zones need to match
ZonesTypes.FilterSpec . |
void |
list(ZonesTypes.FilterSpec spec,
AsyncCallback<ZonesTypes.ListResult> asyncCallback)
Returns information about the zones available on this vCenter server, where the
zones need to match
ZonesTypes.FilterSpec . |
void |
list(ZonesTypes.FilterSpec spec,
AsyncCallback<ZonesTypes.ListResult> asyncCallback,
InvocationConfig invocationConfig)
Returns information about the zones available on this vCenter server, where the
zones need to match
ZonesTypes.FilterSpec . |
ZonesTypes.ListResult |
list(ZonesTypes.FilterSpec spec,
InvocationConfig invocationConfig)
Returns information about the zones available on this vCenter server, where the
zones need to match
ZonesTypes.FilterSpec . |
public ZonesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ZonesStub(ApiProvider apiProvider, StubConfigurationBase config)
public ZonesTypes.ListResult list(ZonesTypes.FilterSpec spec)
Zones
ZonesTypes.FilterSpec
. This method was
added in vSphere API 8.0.0.1.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Zones
spec
- Return only the zones matching the specified filters.
If null
, the behavior is equivalent to a ZonesTypes.FilterSpec
with all
properties null
, which means all zones are returned.ZonesTypes.FilterSpec
.public ZonesTypes.ListResult list(ZonesTypes.FilterSpec spec, InvocationConfig invocationConfig)
Zones
ZonesTypes.FilterSpec
. This method was
added in vSphere API 8.0.0.1.
Synchronous 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 Zones
spec
- Return only the zones matching the specified filters.
If null
, the behavior is equivalent to a ZonesTypes.FilterSpec
with all
properties null
, which means all zones are returned.invocationConfig
- Configuration for the method invocation.ZonesTypes.FilterSpec
.public void list(ZonesTypes.FilterSpec spec, AsyncCallback<ZonesTypes.ListResult> asyncCallback)
Zones
ZonesTypes.FilterSpec
. This method was
added in vSphere API 8.0.0.1.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The list of zones available on this vCenter that match the criteria specified in
ZonesTypes.FilterSpec
.
Operation Errors:
Unauthorized
- if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zones in FilterSpec
requires System.Read privilege.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. list
in interface Zones
spec
- Return only the zones matching the specified filters.
If null
, the behavior is equivalent to a ZonesTypes.FilterSpec
with all
properties null
, which means all zones are returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(ZonesTypes.FilterSpec spec, AsyncCallback<ZonesTypes.ListResult> asyncCallback, InvocationConfig invocationConfig)
Zones
ZonesTypes.FilterSpec
. This method was
added in vSphere API 8.0.0.1.
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:
The list of zones available on this vCenter that match the criteria specified in
ZonesTypes.FilterSpec
.
Operation Errors:
Unauthorized
- if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zones in FilterSpec
requires System.Read privilege.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. list
in interface Zones
spec
- Return only the zones matching the specified filters.
If null
, the behavior is equivalent to a ZonesTypes.FilterSpec
with all
properties null
, which means all zones are returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public ZonesTypes.Info get(java.lang.String zone)
Zones
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ZonesTypes.Info get(java.lang.String zone, InvocationConfig invocationConfig)
Zones
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 Zones
zone
- Identifier of the zone for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String zone, AsyncCallback<ZonesTypes.Info> asyncCallback)
Zones
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Detailed information about the specified zone.
Operation Errors:
NotFound
- if a zone with this identifier does not exist.
Unauthorized
- if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires System.Read privilege.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. get
in interface Zones
zone
- Identifier of the zone for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String zone, AsyncCallback<ZonesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Zones
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:
Detailed information about the specified zone.
Operation Errors:
NotFound
- if a zone with this identifier does not exist.
Unauthorized
- if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires System.Read privilege.
Unauthenticated
- if the user can not be authenticated.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. get
in interface Zones
zone
- Identifier of the zone for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String create(ZonesTypes.CreateSpec spec)
Zones
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.lang.String create(ZonesTypes.CreateSpec spec, InvocationConfig invocationConfig)
Zones
Synchronous 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 Zones
spec
- Specifications for the zone to be created.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.consumption_domains.Zone
.public void create(ZonesTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Zones
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The identifier of the created zone.
The return value will be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.
Operation Errors:
AlreadyExists
- if a zone with the same identifier already exists in this vCenter server.
InvalidArgument
- if any of the input information in the createSpec
is invalid.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have Zones.Manage privilege.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
Zone.Manage
. public void create(ZonesTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Zones
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:
The identifier of the created zone.
The return value will be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.
Operation Errors:
AlreadyExists
- if a zone with the same identifier already exists in this vCenter server.
InvalidArgument
- if any of the input information in the createSpec
is invalid.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have Zones.Manage privilege.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
Zone.Manage
. public void delete(java.lang.String zone)
Zones
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String zone, InvocationConfig invocationConfig)
Zones
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 delete(java.lang.String zone, AsyncCallback<java.lang.Void> asyncCallback)
Zones
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if no zone with the specified identifier is found in this vCenter server.
NotAllowedInCurrentState
- if there is a workload running in the specified zone and depends on this zone to
be present.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires Zones.Manage privilege.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
Zone.Manage
. public void delete(java.lang.String zone, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Zones
Asynchronous 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 no zone with the specified identifier is found in this vCenter server.
NotAllowedInCurrentState
- if there is a workload running in the specified zone and depends on this zone to
be present.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires Zones.Manage privilege.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
Zone.Manage
. delete
in interface Zones
zone
- Identifier of the zone to be deleted.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.