Class: Com::Vmware::Cis::Tagging::TagAssociation::ObjectToTags
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Cis::Tagging::TagAssociation::ObjectToTags
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb
Overview
The ``Com::Vmware::Cis::Tagging::TagAssociation::ObjectToTags`` class describes an object and its related tags. Use the :func:`Com::Vmware::Cis::Tagging::TagAssociation.list_attached_tags_on_objects` method to retrieve a list with each element containing an object and the tags attached to it.
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vapi::Std::DynamicID) object_id
The identifier of the object.
-
- (Array<String>) tag_ids
The identifiers of the related tags.
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)
-
- (ObjectToTags) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (ObjectToTags) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
1316 1317 1318 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb', line 1316 def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end |
Instance Attribute Details
- (Com::Vmware::Vapi::Std::DynamicID) object_id
The identifier of the object.
1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb', line 1291 class ObjectToTags < 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.cis.tagging.tag_association.object_to_tags', { 'object_id' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::DynamicID'), 'tag_ids' => VAPI::Bindings::ListType.new(VAPI::Bindings::IdType.new), }, ObjectToTags, false, nil) end end attr_accessor :object_id, :tag_ids # 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 |
- (Array<String>) tag_ids
The identifiers of the related tags.
1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb', line 1291 class ObjectToTags < 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.cis.tagging.tag_association.object_to_tags', { 'object_id' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::DynamicID'), 'tag_ids' => VAPI::Bindings::ListType.new(VAPI::Bindings::IdType.new), }, ObjectToTags, false, nil) end end attr_accessor :object_id, :tag_ids # 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.
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb', line 1297 def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.cis.tagging.tag_association.object_to_tags', { 'object_id' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::DynamicID'), 'tag_ids' => VAPI::Bindings::ListType.new(VAPI::Bindings::IdType.new), }, ObjectToTags, false, nil) end |