Class: Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::QuotaCapability

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb

Overview

The regional quota capability.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cores_usedInteger

Returns The number of cores used in the subscription.

Returns:

  • (Integer)

    The number of cores used in the subscription.



16
17
18
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb', line 16

def cores_used
  @cores_used
end

#max_cores_allowedInteger

Returns The number of cores that the subscription allowed.

Returns:

  • (Integer)

    The number of cores that the subscription allowed.



19
20
21
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb', line 19

def max_cores_allowed
  @max_cores_allowed
end

#regional_quotasArray<RegionalQuotaCapability>

capabilities.

Returns:



23
24
25
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb', line 23

def regional_quotas
  @regional_quotas
end

Class Method Details

.mapperObject

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



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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'QuotaCapability',
    type: {
      name: 'Composite',
      class_name: 'QuotaCapability',
      model_properties: {
        cores_used: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cores_used',
          type: {
            name: 'Number'
          }
        },
        max_cores_allowed: {
          client_side_validation: true,
          required: false,
          serialized_name: 'max_cores_allowed',
          type: {
            name: 'Number'
          }
        },
        regional_quotas: {
          client_side_validation: true,
          required: false,
          serialized_name: 'regionalQuotas',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RegionalQuotaCapabilityElementType',
                type: {
                  name: 'Composite',
                  class_name: 'RegionalQuotaCapability'
                }
            }
          }
        }
      }
    }
  }
end