Class: Com::Vmware::Cis::Tagging::TagAssociation::TagToObjects
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Cis::Tagging::TagAssociation::TagToObjects
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb
Overview
The ``Com::Vmware::Cis::Tagging::TagAssociation::TagToObjects`` class describes a tag and its related objects. Use the :func:`Com::Vmware::Cis::Tagging::TagAssociation.list_attached_objects_on_tags` method to retrieve a list with each element containing a tag and the objects to which it is attached.
Instance Attribute Summary (collapse)
-
- (Array<Com::Vmware::Vapi::Std::DynamicID>) object_ids
The identifiers of the related objects.
-
- (String) tag_id
The identifier of the tag.
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)
-
- (TagToObjects) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (TagToObjects) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
1278 1279 1280 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb', line 1278 def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end |
Instance Attribute Details
- (Array<Com::Vmware::Vapi::Std::DynamicID>) object_ids
The identifiers of the related objects.
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb', line 1253 class TagToObjects < 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.tag_to_objects', { 'tag_id' => VAPI::Bindings::IdType.new(resource_types='com.vmware.cis.tagging.Tag'), 'object_ids' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::DynamicID')), }, TagToObjects, false, nil) end end attr_accessor :tag_id, :object_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 |
- (String) tag_id
The identifier of the tag.
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb', line 1253 class TagToObjects < 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.tag_to_objects', { 'tag_id' => VAPI::Bindings::IdType.new(resource_types='com.vmware.cis.tagging.Tag'), 'object_ids' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::DynamicID')), }, TagToObjects, false, nil) end end attr_accessor :tag_id, :object_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.
1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/cis/tagging.rb', line 1259 def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.cis.tagging.tag_association.tag_to_objects', { 'tag_id' => VAPI::Bindings::IdType.new(resource_types='com.vmware.cis.tagging.Tag'), 'object_ids' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::DynamicID')), }, TagToObjects, false, nil) end |