Connecter interface
Bases: object
Connector interface
Connector interface init
get api provider
Return type: | vmware.vapi.core.ApiProvider |
---|---|
Returns: | api provider |
create new execution context object
Return type: | vmware.vapi.core.ExecutionContext |
---|---|
Returns: | execution context |
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 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 |
---|
Local connector
Bases: vmware.vapi.protocol.client.connector.Connector
Protocol connection class to get direct access to ApiProvider instead of going over the wire
Initialize LocalConnector
Parameters: | api_provider (vmware.vapi.core.ApiProvider) – ApiProvider instance to be used |
---|
Returns the ApiProvider instance backing this connection
Return type: | vmware.vapi.core.ApiProvider |
---|---|
Returns: | ApiProvider instance |
create new execution context object
Return type: | vmware.vapi.core.ExecutionContext |
---|---|
Returns: | execution context |
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 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 |
---|
Creates and returns a local connection for the input ApiProvider
Parameters: | api_provider (vmware.vapi.core.ApiProvider) – ApiProvider instance |
---|---|
Return type: | vmware.vapi.protocol.client.local_connector.LocalConnector |
Returns: | Newly created protocol connection for the given ApiProvider |