Class: Azure::Policy::Mgmt::V2019_01_01::Models::PolicySku

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb

Overview

The policy sku. This property is optional, obsolete, and will be ignored.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameString

A1.

Returns:

  • (String)

    The name of the policy sku. Possible values are A0 and



17
18
19
# File 'lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb', line 17

def name
  @name
end

#tierString

Standard.

Returns:

  • (String)

    The policy sku tier. Possible values are Free and



21
22
23
# File 'lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb', line 21

def tier
  @tier
end

Class Method Details

.mapperObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb', line 28

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