vmware.vapi.stdlib.client package

Submodules

vmware.vapi.stdlib.client.factories module

StubConfiguration factory

class vmware.vapi.stdlib.client.factories.StubConfigurationFactory

Bases: object

Factory class for creating stub configuration objects

static new_configuration(connector, *errorTypes)

Return a stub configuration using the specified connection, with no registered errors.

Parameters:
  • connector (vmware.vapi.protocol.client.connector.Connector) – Connection to be used to talk to the remote ApiProvider
  • error_types (list of vmware.vapi.bindings.type.ErrorType) – error types to be registered in the configuration
static new_runtime_configuration(connector, *errorTypes)

Return a stub configuration using the specified connection, with the errors reported by the vAPI runtime registered.

Parameters:
  • connector (vmware.vapi.protocol.client.connector.Connector) – Connection to be used to talk to the remote ApiProvider
  • error_types (list of vmware.vapi.bindings.type.ErrorType) – additional error types to be registered in the configuration
static new_std_configuration(connector, *errorTypes)

Return a stub configuration using the specified connection, with all the standard errors registered.

Parameters:
  • connector (vmware.vapi.protocol.client.connector.Connector) – Connection to be used to talk to the remote ApiProvider
  • error_types (list of vmware.vapi.bindings.type.ErrorType) – additional error types to be registered in the configuration