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
Model
class 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
Model
class 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.Structure
class 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
set
ofstr
- 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.NotFound
if the resource type associated withresource_id
does 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¶
-
class
com.vmware.vapi.metadata.metamodel.service_client.
Operation
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
The
Operation
class 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_id
contained in the service element corresponding toservice_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.OperationInfo
instance that corresponds tooperation_id
defined in scopeservice_id
.- Raise
com.vmware.vapi.std.errors_client.NotFound
if the service element associated withservice_id
does not exist in any of the package elements.- Raise
com.vmware.vapi.std.errors_client.NotFound
if the operation element associated withoperation_id
does 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
list
ofstr
- 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.NotFound
if the service element associated withservice_id
does 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