public interface VirtualMachineClasses extends com.vmware.vapi.bindings.Service, VirtualMachineClassesTypes
VirtualMachineClasses interface provides management methods for
customizable virtual machine classes. A virtual machine class represents a
policy and configuration resource which defines a set of attributes to be used
in the configuration of a virtual machine instance. This interface was added in
vSphere API 7.0.2.00100.VirtualMachineClassesTypes.ConfigStatus, VirtualMachineClassesTypes.CreateSpec, VirtualMachineClassesTypes.DynamicDirectPathIODevice, VirtualMachineClassesTypes.Info, VirtualMachineClassesTypes.InstanceStorage, VirtualMachineClassesTypes.InstanceStorageVolume, VirtualMachineClassesTypes.Message, VirtualMachineClassesTypes.UpdateSpec, VirtualMachineClassesTypes.VGPUDevice, VirtualMachineClassesTypes.VirtualDevices_VAPI_SERVICE_ID, RESOURCE_TYPE| Modifier and Type | Method and Description |
|---|---|
void |
create(VirtualMachineClassesTypes.CreateSpec spec)
Create a VM class object.
|
void |
create(VirtualMachineClassesTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Create a VM class object.
|
void |
create(VirtualMachineClassesTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create a VM class object.
|
void |
create(VirtualMachineClassesTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create a VM class object.
|
void |
delete(java.lang.String vmClass)
Delete the VM class object.
|
void |
delete(java.lang.String vmClass,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Delete the VM class object.
|
void |
delete(java.lang.String vmClass,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Delete the VM class object.
|
void |
delete(java.lang.String vmClass,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Delete the VM class object.
|
VirtualMachineClassesTypes.Info |
get(java.lang.String vmClass)
Return information about a VM class.
|
void |
get(java.lang.String vmClass,
com.vmware.vapi.bindings.client.AsyncCallback<VirtualMachineClassesTypes.Info> asyncCallback)
Return information about a VM class.
|
void |
get(java.lang.String vmClass,
com.vmware.vapi.bindings.client.AsyncCallback<VirtualMachineClassesTypes.Info> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Return information about a VM class.
|
VirtualMachineClassesTypes.Info |
get(java.lang.String vmClass,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Return information about a VM class.
|
java.util.List<VirtualMachineClassesTypes.Info> |
list()
Return information about all VirtualMachine classes.
|
void |
list(com.vmware.vapi.bindings.client.AsyncCallback<java.util.List<VirtualMachineClassesTypes.Info>> asyncCallback)
Return information about all VirtualMachine classes.
|
void |
list(com.vmware.vapi.bindings.client.AsyncCallback<java.util.List<VirtualMachineClassesTypes.Info>> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Return information about all VirtualMachine classes.
|
java.util.List<VirtualMachineClassesTypes.Info> |
list(com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Return information about all VirtualMachine classes.
|
void |
update(java.lang.String vmClass,
VirtualMachineClassesTypes.UpdateSpec spec)
Update the configuration of the VM class object.
|
void |
update(java.lang.String vmClass,
VirtualMachineClassesTypes.UpdateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Update the configuration of the VM class object.
|
void |
update(java.lang.String vmClass,
VirtualMachineClassesTypes.UpdateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Update the configuration of the VM class object.
|
void |
update(java.lang.String vmClass,
VirtualMachineClassesTypes.UpdateSpec spec,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Update the configuration of the VM class object.
|
void create(VirtualMachineClassesTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec - Information about the VM class object to be created.AlreadyExists - if a VM class by the name as specified in the spec already exists in the
vCenter inventory.Error - if the system reports an error while responding to the request.InvalidArgument - if the input spec.instanceStorage.policy refers to an invalid storage
policy or if the input spec includes settings that are out of acceptable
bounds or a combination of settings that are not internally consistent with the
input spec.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.void create(VirtualMachineClassesTypes.CreateSpec spec, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
spec - Information about the VM class object to be created.invocationConfig - Configuration for the method invocation.AlreadyExists - if a VM class by the name as specified in the spec already exists in the
vCenter inventory.Error - if the system reports an error while responding to the request.InvalidArgument - if the input spec.instanceStorage.policy refers to an invalid storage
policy or if the input spec includes settings that are out of acceptable
bounds or a combination of settings that are not internally consistent with the
input spec.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.void create(VirtualMachineClassesTypes.CreateSpec spec, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
AlreadyExists - if a VM class by the name as specified in the spec already exists in the
vCenter inventory.
Error - if the system reports an error while responding to the request.
InvalidArgument - if the input spec.instanceStorage.policy refers to an invalid storage
policy or if the input spec includes settings that are out of acceptable
bounds or a combination of settings that are not internally consistent with the
input spec.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.
spec - Information about the VM class object to be created.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void create(VirtualMachineClassesTypes.CreateSpec spec, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
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:
AlreadyExists - if a VM class by the name as specified in the spec already exists in the
vCenter inventory.
Error - if the system reports an error while responding to the request.
InvalidArgument - if the input spec.instanceStorage.policy refers to an invalid storage
policy or if the input spec includes settings that are out of acceptable
bounds or a combination of settings that are not internally consistent with the
input spec.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.
spec - Information about the VM class object to be created.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void update(java.lang.String vmClass,
VirtualMachineClassesTypes.UpdateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.spec - Information about the VM class object to be updated.AlreadyExists - if a VM class by the name as specified in the spec already exists in the
vCenter inventory.Error - if the system reports an error while responding to the request.InvalidArgument - if the input spec.instanceStorage.policy refers to an invalid storage
policy or if the input spec includes settings that are out of acceptable
bounds or a combination of settings that are not internally consistent with the
input spec.NotFound - if or the vmClass cannot be located.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.void update(java.lang.String vmClass,
VirtualMachineClassesTypes.UpdateSpec spec,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.spec - Information about the VM class object to be updated.invocationConfig - Configuration for the method invocation.AlreadyExists - if a VM class by the name as specified in the spec already exists in the
vCenter inventory.Error - if the system reports an error while responding to the request.InvalidArgument - if the input spec.instanceStorage.policy refers to an invalid storage
policy or if the input spec includes settings that are out of acceptable
bounds or a combination of settings that are not internally consistent with the
input spec.NotFound - if or the vmClass cannot be located.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.void update(java.lang.String vmClass,
VirtualMachineClassesTypes.UpdateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
AlreadyExists - if a VM class by the name as specified in the spec already exists in the
vCenter inventory.
Error - if the system reports an error while responding to the request.
InvalidArgument - if the input spec.instanceStorage.policy refers to an invalid storage
policy or if the input spec includes settings that are out of acceptable
bounds or a combination of settings that are not internally consistent with the
input spec.
NotFound - if or the vmClass cannot be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.spec - Information about the VM class object to be updated.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void update(java.lang.String vmClass,
VirtualMachineClassesTypes.UpdateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
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:
AlreadyExists - if a VM class by the name as specified in the spec already exists in the
vCenter inventory.
Error - if the system reports an error while responding to the request.
InvalidArgument - if the input spec.instanceStorage.policy refers to an invalid storage
policy or if the input spec includes settings that are out of acceptable
bounds or a combination of settings that are not internally consistent with the
input spec.
NotFound - if or the vmClass cannot be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.spec - Information about the VM class object to be updated.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.VirtualMachineClassesTypes.Info get(java.lang.String vmClass)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.NotFound - if VM class can not be found in the vCenter inventory.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.VirtualMachineClassesTypes.Info get(java.lang.String vmClass, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.invocationConfig - Configuration for the method invocation.NotFound - if VM class can not be found in the vCenter inventory.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.void get(java.lang.String vmClass,
com.vmware.vapi.bindings.client.AsyncCallback<VirtualMachineClassesTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Information about the specified VM class.
Operation Errors:
NotFound - if VM class can not be found in the vCenter inventory.
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.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String vmClass,
com.vmware.vapi.bindings.client.AsyncCallback<VirtualMachineClassesTypes.Info> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
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 specified VM class.
Operation Errors:
NotFound - if VM class can not be found in the vCenter inventory.
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.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.java.util.List<VirtualMachineClassesTypes.Info> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
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.java.util.List<VirtualMachineClassesTypes.Info> list(com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
invocationConfig - Configuration for the method invocation.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.void list(com.vmware.vapi.bindings.client.AsyncCallback<java.util.List<VirtualMachineClassesTypes.Info>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
List of information about all VirtualMachine classes
Operation Errors:
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.
asyncCallback - Receives the status (progress, result or error) of the operation invocation.void list(com.vmware.vapi.bindings.client.AsyncCallback<java.util.List<VirtualMachineClassesTypes.Info>> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
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:
List of information about all VirtualMachine classes
Operation Errors:
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.
asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void delete(java.lang.String vmClass)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.Error - if the system reports an error while responding to the request.ResourceInUse - - TBDNotFound - VM class could not be located.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.void delete(java.lang.String vmClass,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.invocationConfig - Configuration for the method invocation.Error - if the system reports an error while responding to the request.ResourceInUse - - TBDNotFound - VM class could not be located.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.void delete(java.lang.String vmClass,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous 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.
ResourceInUse - - TBD
NotFound - VM class could not be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String vmClass,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
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:
Error - if the system reports an error while responding to the request.
ResourceInUse - - TBD
NotFound - VM class could not be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have VirtualMachineClasses.Manage privilege.
vmClass - Identifier for the VM class.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.