Class: Azure::Consumption::Mgmt::V2018_01_31::Models::MeterDetails

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb

Overview

The properties of the meter detail.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#meter_categoryString

services’, ‘Networking’, etc..

Returns:

  • (String)

    The category of the meter, for example, ‘Cloud



20
21
22
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb', line 20

def meter_category
  @meter_category
end

#meter_locationString

Returns The location in which the Azure service is available.

Returns:

  • (String)

    The location in which the Azure service is available.



31
32
33
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb', line 31

def meter_location
  @meter_location
end

#meter_nameString

Returns The name of the meter, within the given meter category.

Returns:

  • (String)

    The name of the meter, within the given meter category



16
17
18
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb', line 16

def meter_name
  @meter_name
end

#meter_sub_categoryString

services’, ‘ExpressRoute (IXP)’, etc..

Returns:

  • (String)

    The subcategory of the meter, for example, ‘A6 Cloud



24
25
26
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb', line 24

def meter_sub_category
  @meter_sub_category
end

#pretax_standard_rateObject

Returns The pretax listing price.

Returns:

  • The pretax listing price.



37
38
39
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb', line 37

def pretax_standard_rate
  @pretax_standard_rate
end

#total_included_quantityObject

Returns The total included quantity associated with the offer.

Returns:

  • The total included quantity associated with the offer.



34
35
36
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb', line 34

def total_included_quantity
  @total_included_quantity
end

#unitString

for example, ‘Hours’, ‘GB’, etc.

Returns:

  • (String)

    The unit in which the meter consumption is charged,



28
29
30
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb', line 28

def unit
  @unit
end

Class Method Details

.mapperObject

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



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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MeterDetails',
    type: {
      name: 'Composite',
      class_name: 'MeterDetails',
      model_properties: {
        meter_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'meterName',
          type: {
            name: 'String'
          }
        },
        meter_category: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'meterCategory',
          type: {
            name: 'String'
          }
        },
        meter_sub_category: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'meterSubCategory',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        meter_location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'meterLocation',
          type: {
            name: 'String'
          }
        },
        total_included_quantity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'totalIncludedQuantity',
          type: {
            name: 'Number'
          }
        },
        pretax_standard_rate: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'pretaxStandardRate',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end