msg Package

msg Package

connector_factory Module

Protocol connector factory

class vmware.vapi.protocol.client.msg.connector_factory.ProtocolConnectorFactory[source]

Bases: object

Protocol connector factory

Protocol connector factory init

get_connector(protocol, *args, **kwargs)[source]

Create protocol connector

Parameters:
  • protocol (str) – protocol name
  • args (tuple) – position parameters to protocol connector constructor
  • kwargs (dict) – key parameters to protocol connector constructor
Return type:

vmware.vapi.protocol.client.connector.Connector

Returns:

Connector object

generic_connector Module

Generic client connector

class vmware.vapi.protocol.client.msg.generic_connector.GenericConnector(rpc_provider, api_provider)[source]

Bases: vmware.vapi.protocol.client.connector.Connector

A generic protocol connector

Generic protocol connector init

Parameters:
connect()[source]

rpc provider connect

disconnect()[source]

rpc provider disconnect

get_api_provider()[source]

get api provider

Return type:vmware.vapi.core.ApiProvider
Returns:api provider
new_context()[source]

create new execution context object

Return type:vmware.vapi.core.ExecutionContext
Returns:execution context
set_application_context(ctx)[source]

Set the application context

All the subsequent calls made using this connector will use this as the application context in the ExecutionContext

Parameters:ctx (vmware.vapi.core.ApplicationContext) – New application context
set_security_context(ctx)[source]

Set the security context

All the subsequent calls made using this connector will use this as the security context in the ExecutionContext

Parameters:ctx (vmware.vapi.core.SecurityContext) – New security context

json_connector Module

Table Of Contents

Previous topic

client Package

Next topic

rpc Package

This Page