routing Package

routing Package

service_client Module

class com.vmware.vapi.metadata.routing.service_client.Operation(config)[source]

Bases: vmware.vapi.bindings.stub.VapiInterface

Operations to retrieve information about routing in a vAPI operation

Parameters:config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
RESOURCE_TYPE = 'com.vmware.vapi.operation'

Resource type for vAPI operation.

get(service_id, operation_id)[source]

Get information about a vAPI operation that contains routing information

Parameters:
  • service_id (str) – Identifier of the service The parameter must be an identifier for the resource type: com.vmware.vapi.service.
  • operation_id (str) – Identifier of the operation The parameter must be an identifier for the resource type: com.vmware.vapi.operation.
Return type:

com.vmware.vapi.metadata.routing_client.OperationInfo

Returns:

Operation info for the vAPI operation that contains routing information.

Raise :

com.vmware.vapi.std.errors_client.NotFound If the service identifier does not exist or if the specified operation identifier does not exist in the service.

list(service_id)[source]

Get the IDs of all the vAPI operations in the given service that contain routing information

Parameters:service_id (str) – Identifier of the service The parameter must be an identifier for the resource type: com.vmware.vapi.service.
Return type:list of str
Returns:list of operation identifiers The return value will contain identifiers for the resource type: com.vmware.vapi.operation.
Raise :com.vmware.vapi.std.errors_client.NotFound If the service identifier does not exist.

Table Of Contents

Previous topic

privilege Package

Next topic

std Package

This Page