Class: Azure::Consumption::Mgmt::V2018_06_30::Models::Tag

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb

Overview

The tag resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#keyString

Returns Tag key.

Returns:

  • (String)

    Tag key.



16
17
18
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb', line 16

def key
  @key
end

Class Method Details

.mapperObject

Mapper for Tag class as Ruby Hash. This will be used for serialization/deserialization.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb', line 23

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Tag',
    type: {
      name: 'Composite',
      class_name: 'Tag',
      model_properties: {
        key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'key',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end