The com.vmware.vapi.std.activation_client module provides classes that TODO.
Bases: vmware.vapi.bindings.stub.VapiInterface
WARNING: Use only as a sample. The API is experimental and subject to change in future versions.
Activation tracking/management service.
An activation describes a method invocation in the runtime.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Asks for cancellation of a running activation. Whether or not the cancellation request will have any effect depends on the implementation of the method that has to be canceled.
Parameters: | activation_id (str) – activation identifier |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound there is no activation with the specified id |
The com.vmware.vapi.std.errors_client module provides the standard exceptions that can be included in the list of exceptions in the specification of methods to indicate that the method might report those exceptions. It also provides some classes intended to be used as payload to provide additional information about those exceptions.
Bases: com.vmware.vapi.std.errors_client.Error
The AlreadyExists exception indicates that an attempt was made to create an entity but the entity already exists. Typically the entity has a name or identifier that is required to be unique in some context, but there is already an entity with that name or identifier in that context.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The AlreadyInDesiredState exception indicates that an attempt to change the state of a resource or service had no effect because the resource or service is already in the desired state.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ArgumentLocations class describes which part(s) of the input to the method caused the exception.
Some types of exceptions are caused by the value of one of the inputs to the method, possibly due to an interaction with other inputs to the method. This class is intended to be used as the payload to identify those inputs when the method reports exceptions like InvalidArgument or NotFound. See Error.data.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The Canceled exception indicates that the method canceled itself in response to an explicit request to do so. Methods being “canceled” for other reasons (for example the client connection was closed, a time out occured, or due to excessive resource consumption) should not report this exception.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ConcurrentChange exception indicates that a data structure, entity, or resource has been modified since some earlier point in time. Typically this happens when the client is doing the write portion of a read-modify-write sequence and indicates that it wants the server to notify it if the data in the server has changed after it did the read, so that it can avoid overwriting that change inadvertantly.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.error.VapiError
The Error exception describes theattributes common to all standard exceptions.
This exception serves two purposes:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The FeatureInUse exception indicates that an action cannot be completed because a feature is in use.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The FileLocations class identifies the file(s) that caused the method to report the exception.
Some types of exceptions are caused by a problem with one or more files. This class is intended to be used as the payload to identify those files when the method reports exceptions like NotFound. See Error.data.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InternalServerError exception indicates that the server encounters an unexpected condition that prevented it from fulfilling the request.
This exception is reported by the API infrastructure, so it could occur in response to the invocation of any method.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InvalidArgument exception indicates that the values received for one or more parameters are not acceptable.
This exception is reported by the API infrastructure, so it could occur in response to the invocation of any method. It may also be reported as the result of method-specific validation.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InvalidElementConfiguration exception indicates that an attempt to modify the configuration of an element or a group containing the element failed due to the configuraton of the element. A typical case is when the method is am attempt to change the group membership of the element fails, in which case a configuration change on the element may allow the group membership change to succeed.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InvalidElementType exception indicates that the server was unable to fulfil the request because an element of a specific type cannot be a member of particular group.
This exception could be reported, for example, if an attempt is made to put an element into the wrong type of container.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InvalidRequest exception indicates that the request is malformed in such a way that the server is unable to process it.
Examples:
Counterexamples:
Some transport protocols (for example JSON-RPC) include their own mechanism for reporting these kinds of errors, and the API infrastructure for a programming language may expose the errors using a language specific mechanism, so this exception might not be used.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The NotAllowedInCurrentState exception indicates that the requested method is not allowed with a resource or service in its current state. This could be because the method is performing a configuration change that is not allowed in the current state or because method itself is not allowed in the current state.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The NotFound exception indicates that a specified element could not be found.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The OperationNotFound exception indicates that the method specified in the request could not be found.
Every API request specifies a service identifier and an operation identifier along with the parameters. If the API infrastructure is unable to find the requested class or method it reports this exception.
This exception can be reported by the API infrastructure for any method, but it is specific to the API infrastructure, and should never be reported by the implementation of any method.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ResourceBusy exception indicates that the method could not be completed because a resource it needs is busy.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ResourceInUse exception indicates that the method could not be completed because a resource is in use.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ResourceInaccessible exception indicates that the method could not be completed because an entity is not accessible.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ServiceUnavailable exception indicates that the class is unavailable.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The TimedOut exception indicates that the method did not complete within the allowed amount of time. The allowed amount of time might be:
The method may or may not complete after the TimedOut exception was reported.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The TransientIndication class indicates whether or not the exception is transient.
Some types of exceptions are transient in certain situtations and not transient in other situtations. This exception payload can be used to indicate to clients whether a particular exception is transient. See Error.data.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | is_transient (bool) – Indicates that the exception this class is attached to is transient. |
---|
Bases: com.vmware.vapi.std.errors_client.Error
The UnableToAllocateResource exception indicates that the method failed because it was unable to allocate or acquire a required resource.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The Unauthenticated exception indicates that the method requires authentication and the user is not authenticated.
API requests may include a security context containing user credentials. For example, the user credentials could be a SAML token, a user name and password, or the session identifier for a previously established session.
Examples:
Counterexamples:
For security reasons, the Error.data attribute in this exception is None, and the Error.messages attribute in this exception does not disclose which part of the security context is correct or incorrect. For example the messages would not disclose whether a username or a password is valid or invalid, but only that a combination of username and password is invalid.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The Unauthorized exception indicates that the user is not authorized to perform the method.
API requests may include a security context containing user credentials. For example, the user credentials could be a SAML token, a user name and password, or the session identifier for a previously established session. Invoking the method may require that the user identified by those credentials has particular privileges on the method or on one or more resource identifiers passed to the method.
Examples:
Counterexamples:
For security reasons, the Error.data attribute in this exception is None, and the Error.messages attribute in this exception does not disclose why the user is not authorized to perform the method. For example the messages would not disclose which privilege the user did not have or which resource identifier the user did not have the required privilege to access. The API documentation should indicate what privileges are required.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The UnexpectedInput exception indicates that the request contained a parameter or attribute whose name is not known by the server.
Every method expects parameters with known names. Some of those parameters may be (or contain) classes, and the method expects those classes to contain attributes with known names. If the method receives parameters or attributes with names that is does not expect, this exception may be reported.
This exception can be reported by the API infrastructure for any method, but it is specific to the API infrastructure, and should never be reported by the implementation of any method.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The Unsupported exception indicates that the method is not supported by the class.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
The com.vmware.vapi.std.interposition_client module provides classes that TODO.
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about an interposed request for operation invocation. All interposers would receive an instance of this structure as an input parameter.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about the result from an interposed operation invocation. All POST interposers will receive an instance of this structure.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Type of the invocation result.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the ResultType instance. |
---|
Error invocation result.
Normal invocation result.
Bases: vmware.vapi.bindings.struct.VapiStruct
VMODL equivalent of com.vmware.vapi.security.PrincipalId.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
The com.vmware.vapi.std.introspection_client module provides classes that expose basic information about the vAPI classes registered with a vAPI provider.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Operation service provides operations to retrieve information about the operations present in a vAPI service.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Operation.DataDefinition structure describes a vAPI data type.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Operation.DataDefinition.DataType enumeration provides values representing the data types supported by the vAPI infrastructure.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the DataType instance. |
---|
Indicates the value is arbitrary error type. This means, any data of type Operation.DataDefinition.DataType.ERROR can be used.
Indicates the value is a binary type.
Indicates the value is a boolean type. The possible values are True and False equivalent of the language used to invoke this operation.
Indicates the value is a double type. It is a 64 bit floating point number.
Indicates the value is a dynamic structure. This means, any data of type Operation.DataDefinition.DataType.STRUCTURE can be used.
Indicates the value is a specific error type.
Indicates the value is a list data type. Any value of this type can have zero or more elements in the list.
Indicates the value is a long data type. It is a 64 bit signed integer number.
Indicates the value is an opaque type. This means, data of any Operation.DataDefinition.DataType can be used.
Indicates the value is an optional data type. Any value of this type can be null.
Indicates the value is a secret data type. This is used for sensitive information. The server will not log any data of this type and if possible wipe the data from the memory after usage.
Indicates the value is a string data type. This is a unicode string.
Indicates the value is a structure data type. A structure has string identifier and a set of fields with corresponding values.
Indicates the value is a structure reference. This is used to break circular dependencies in the type references. This just has a string identifier of the structure. Clients have to maintain a list of structures already visited and use that to resolve this reference.
Indicates the value is a void data type.
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about a vAPI operation.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Returns the Operation.Info for a given vAPI operation.
Parameters: |
|
---|---|
Return type: | |
Returns: | Operation.Info for a given vAPI operation. |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the operation identifier does not exist. |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the service identifier does not exist. |
Returns the set of operation identifiers for a given vAPI service.
Parameters: | service_id (str) – service identifier. The parameter must be an identifier for the resource type: com.vmware.vapi.service. |
---|---|
Return type: | set of str |
Returns: | set of operation identifiers for a given vAPI service. The return value will contain identifiers for the resource type: com.vmware.vapi.operation. |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the service identifier does not exist. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Provider service provides operations to retrieve information about a vAPI Provider. A provider is a container that exposes one or more vAPI services.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about a vAPI provider
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Returns a Provider.Info describing the vAPI provider on which the operation is invoked
Return type: | Provider.Info |
---|---|
Returns: | Provider.Info describing the vAPI provider on which the operation is invoked |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Service service provides operations to retrieve information about the services exposed by a vAPI provider. A provider is a container that exposes one or more vAPI services.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about a vAPI service
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | operations (set of str) – Set of identifiers of operations present in the service When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type: com.vmware.vapi.operation. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type: com.vmware.vapi.operation. |
---|
Returns the Service.Info for the specified service
Parameters: | id (str) – service identifier The parameter must be an identifier for the resource type: com.vmware.vapi.service. |
---|---|
Return type: | Service.Info |
Returns: | Service.Info for the specified service |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the service identifier does not exist |