com.vmware.vapi.metadata.metamodel package¶
Submodules¶
com.vmware.vapi.metadata.metamodel.resource_client module¶
The com.vmware.vapi.metadata.metamodel.resource_client module provides
classes to retrieve metamodel information for resource types.
- 
class com.vmware.vapi.metadata.metamodel.resource_client.Model(config)¶
- Bases: - vmware.vapi.bindings.stub.VapiInterface- The - Modelclass provides methods to retrieve information about models.- A structure is used as a model if it is used for persisting data about an entity. Some of the fields in the model structure are also used for creating indexes for querying. - One or more services can operate on the same resource type. One or more services can provide the model structure for an entity of this resource type. Using - Modelclass you can retrieve the list of all the structure elements that are model structures for a given resource type.- Parameters
- config ( - vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
 - 
list(resource_id)¶
- Returns the set of identifiers for the structure elements that are models for the resource type corresponding to - resource_id.- The - com.vmware.vapi.metadata.metamodel_client.Structureclass provides methods to retrieve more details about the structure elements corresponding to the identifiers returned by this method.- Parameters
- resource_id ( - str) – Identifier of the resource type. The parameter must be an identifier for the resource type:- com.vmware.vapi.resource.
- Return type
- setof- str
- Returns
- The set of identifiers for the models that are associated with the resource type in - resource_id. The return value will contain identifiers for the resource type:- com.vmware.vapi.structure.
- Raise
- com.vmware.vapi.std.errors_client.NotFoundif the resource type associated with- resource_iddoes not exist.
 
 
- 
class com.vmware.vapi.metadata.metamodel.resource_client.StubFactory(stub_config)¶
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
 
com.vmware.vapi.metadata.metamodel.service_client module¶
The com.vmware.vapi.metadata.metamodel.service_client module provides
classes to retrieve metamodel information about the elements contained in a
service element.
- 
class com.vmware.vapi.metadata.metamodel.service_client.Operation(config)¶
- Bases: - vmware.vapi.bindings.stub.VapiInterface- The - Operationclass provides methods to retrieve metamodel information of an operation element in the interface definition language.- Parameters
- config ( - vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
 - 
RESOURCE_TYPE= 'com.vmware.vapi.operation'¶
- Resource type for operation element. 
 - 
get(service_id, operation_id)¶
- Retrieves the metamodel information about an operation element corresponding to - operation_idcontained in the service element corresponding to- service_id.- Parameters
- service_id ( - str) – Identifier of the service element. The parameter must be an identifier for the resource type:- com.vmware.vapi.service.
- operation_id ( - str) – Identifier of the operation element. The parameter must be an identifier for the resource type:- com.vmware.vapi.operation.
 
- Return type
- Returns
- The - com.vmware.vapi.metadata.metamodel_client.OperationInfoinstance that corresponds to- operation_iddefined in scope- service_id.
- Raise
- com.vmware.vapi.std.errors_client.NotFoundif the service element associated with- service_iddoes not exist in any of the package elements.
- Raise
- com.vmware.vapi.std.errors_client.NotFoundif the operation element associated with- operation_iddoes not exist in the service element.
 
 - 
list(service_id)¶
- Returns the identifiers for the operation elements that are defined in the scope of - service_id.- Parameters
- service_id ( - str) – Identifier of the service element. The parameter must be an identifier for the resource type:- com.vmware.vapi.service.
- Return type
- listof- str
- Returns
- The list of identifiers for the operation elements that are defined in the scope of - service_id. The return value will contain identifiers for the resource type:- com.vmware.vapi.operation.
- Raise
- com.vmware.vapi.std.errors_client.NotFoundif the service element associated with- service_iddoes not exist in any of the package elements.
 
 
- 
class com.vmware.vapi.metadata.metamodel.service_client.StubFactory(stub_config)¶
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance