Class: Com::Vmware::Vapi::Metadata::Metamodel::ComponentData
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Vapi::Metadata::Metamodel::ComponentData
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb
Overview
The ``Com::Vmware::Vapi::Metadata::Metamodel::ComponentData`` class contains the metamodel metadata information of a component element along with its fingerprint.
Instance Attribute Summary (collapse)
-
- (String) fingerprint
Fingerprint of the metamodel metadata of the component component.
-
- (Com::Vmware::Vapi::Metadata::Metamodel::ComponentInfo) info
Metamodel information of the component element.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
Instance Method Summary (collapse)
-
- (ComponentData) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (ComponentData) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
870 871 872 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 870 def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end |
Instance Attribute Details
- (String) fingerprint
Fingerprint of the metamodel metadata of the component component.
Metamodel information could change when there is an infrastructure update and new functionality is added to an existing component.
Since the data present in :attr:`Com::Vmware::Vapi::Metadata::Metamodel::ComponentData.info` could be quite large, ``fingerprint`` provides a convenient way to check if the data for a particular component is updated.
You should store the fingerprint associated with a component. After an update, by invoking the :func:`Com::Vmware::Vapi::Metadata::Metamodel::Component.fingerprint` method , you can retrieve the new fingerprint for the component. If the new fingerprint and the previously stored fingerprint do not match, clients can use the :func:`Com::Vmware::Vapi::Metadata::Metamodel::Component.get` to retrieve the new metamodel information for the component.
845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 845 class ComponentData < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vapi.metadata.metamodel.component_data', { 'info' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Metadata::Metamodel::ComponentInfo'), 'fingerprint' => VAPI::Bindings::StringType.instance, }, ComponentData, false, nil) end end attr_accessor :info, :fingerprint # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end end |
- (Com::Vmware::Vapi::Metadata::Metamodel::ComponentInfo) info
Metamodel information of the component element. This includes information about all the package elements contained in this component element.
The metamodel information about a component could be quite large if there are a lot of package elements contained in this component.
845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 845 class ComponentData < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vapi.metadata.metamodel.component_data', { 'info' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Metadata::Metamodel::ComponentInfo'), 'fingerprint' => VAPI::Bindings::StringType.instance, }, ComponentData, false, nil) end end attr_accessor :info, :fingerprint # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end end |
Class Method Details
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
851 852 853 854 855 856 857 858 859 860 861 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 851 def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vapi.metadata.metamodel.component_data', { 'info' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Metadata::Metamodel::ComponentInfo'), 'fingerprint' => VAPI::Bindings::StringType.instance, }, ComponentData, false, nil) end |