### Navigation

- index
- modules |
- next |
- previous |
- vSphere Automation SDK for Python 6.5.0 documentation »
- vmware Package »
- vapi Package »
- protocol Package »
- client Package »

# msg Package

## `msg` Package

## `connector_factory` Module

Protocol connector factory

class `vmware.vapi.protocol.client.msg.connector_factory.``ProtocolConnectorFactory`

  Bases: `object`

  Protocol connector factory

  Protocol connector factory init

  `get_connector`(protocol, *args, **kwargs)

    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)

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

  A generic protocol connector

  Generic protocol connector init

  Parameters: | rpc_provider (`vmware.vapi.protocol.client.rpc.provider.RpcProvider`) – rpc provider object api_provider (`vmware.vapi.core.ApiProvider`) – api provider object

  `connect`()

    rpc provider connect

  `disconnect`()

    rpc provider disconnect

  `get_api_provider`()

    get api provider

    Return type: | `vmware.vapi.core.ApiProvider`
    Returns: | api provider

  `new_context`()

    create new execution context object

    Return type: | `vmware.vapi.core.ExecutionContext`
    Returns: | execution context

  `set_application_context`(ctx)

    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)

    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

### Navigation

- index
- modules |
- next |
- previous |
- vSphere Automation SDK for Python 6.5.0 documentation »
- vmware Package »
- vapi Package »
- protocol Package »
- client Package »