Http protocol rpc provider
Bases: object
Gzip reader
Gzip reader init
Parameters: |
|
---|
Bases: vmware.vapi.protocol.client.rpc.provider.RpcProvider
http rpc provider
http rpc provider init
Parameters: |
|
---|
Return type: | vmware.vapi.protocol.client.rpc.provider.RpcProvider |
---|---|
Returns: | http rpc provider |
disable nagle algorithm for a connection
Parameters: | conn (http_client.HTTPConnection) – http connection |
---|
Do rpc request
Parameters: |
|
---|---|
Return type: | tuple of (dict of str, str), str |
Returns: | Tuple of (response_ctx, response_body) where response_ctx: Response context dictionary. The valid key/value pairs are:
response: The response body |
Bases: httplib.HTTPSConnection
Internal version of https connection
Internal version of https connection init
Parameters: |
|
---|
Bases: httplib.HTTPConnection
Variant of http_client.HTTPConnection that supports HTTP connections over Unix domain sockets.
Initialize a Unix domain socket HTTP connection
The HTTPConnection __init__ method expects a single argument, which it interprets as the host to connect to. For this class, we instead interpret the parameter as the filesystem path of the Unix domain socket.
Parameters: | path (str) – Unix domain socket path |
---|
rpc provider interface
Bases: object
Rpc provider interface
Rpc provider interface init
Return type: | vmware.vapi.protocol.client.rpc.provider.RpcProvider |
---|---|
Returns: | a rpc provider |
Do rpc request
Parameters: |
|
---|---|
Return type: | tuple of (dict of str, str), str |
Returns: | Tuple of (response_ctx, response_body) where response_ctx: Response context dictionary. The valid key/value pairs are:
response: The response body |
rpc provider factory
Bases: object
Rpc provider factory
Rpc provider factory init
RPC Provider using Requests Library
Bases: vmware.vapi.protocol.client.rpc.provider.RpcProvider
vAPI RPC provider using requests library
Initialize RequestsRpcProvider
Parameters: |
|
---|
Return type: | vmware.vapi.protocol.client.rpc.provider.RpcProvider |
---|---|
Returns: | http rpc provider |
Do rpc request
Parameters: |
|
---|---|
Return type: | tuple of (dict of str, str), str |
Returns: | Tuple of (response_ctx, response_body) where response_ctx: Response context dictionary. The valid key/value pairs are:
response: The response body |