Class: Com::Vmware::Vapi::Metadata::Metamodel::Resource::Model
- Inherits:
-
VAPI::Bindings::VapiService
- Object
- VAPI::Bindings::VapiService
- Com::Vmware::Vapi::Metadata::Metamodel::Resource::Model
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel/resource.rb
Overview
The ``Com::Vmware::Vapi::Metadata::Metamodel::Resource::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 ``Com::Vmware::Vapi::Metadata::Metamodel::Resource::Model`` class you can retrieve the list of all the structure elements that are model structures for a given resource type.
Instance Method Summary (collapse)
-
- (Model) initialize(config)
constructor
Constructs a new instance.
-
- (Set<String>) list(resource_id)
Returns the set of identifiers for the structure elements that are models for the resource type corresponding to ``resource_id`` .
Constructor Details
- (Model) initialize(config)
Constructs a new instance.
60 61 62 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel/resource.rb', line 60 def initialize(config) super(config, @@service_info) end |
Instance Method Details
- (Set<String>) list(resource_id)
Returns the set of identifiers for the structure elements that are models for the resource type corresponding to ``resource_id`` .
The :class:`Com::Vmware::Vapi::Metadata::Metamodel::Structure` class provides methods to retrieve more details about the structure elements corresponding to the identifiers returned by this method .
75 76 77 78 79 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel/resource.rb', line 75 def list(resource_id) invoke_with_info(@@list_info, { 'resource_id' => resource_id, }) end |