class Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo

Detailed information about the meter.

Attributes

effective_date[RW]

@return [DateTime] Indicates the date from which the meter rate is effective.

included_quantity[RW]

@return [Float] The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged.

meter_category[RW]

@return [String] The category of the meter, e.g., 'Cloud services', 'Networking', etc..

meter_id[RW]

@return The unique identifier of the resource.

meter_name[RW]

@return [String] The name of the meter, within the given meter category

meter_rates[RW]

@return [Hash{String => Float}] The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price

meter_region[RW]

@return [String] The region in which the Azure service is available.

meter_sub_category[RW]

@return [String] The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..

meter_tags[RW]

@return [Array<String>] Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party.

unit[RW]

@return [String] The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.

Private Class Methods

mapper() click to toggle source

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

# File lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/meter_info.rb, line 58
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MeterInfo',
    type: {
      name: 'Composite',
      class_name: 'MeterInfo',
      model_properties: {
        meter_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MeterId',
          type: {
            name: 'String'
          }
        },
        meter_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MeterName',
          type: {
            name: 'String'
          }
        },
        meter_category: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MeterCategory',
          type: {
            name: 'String'
          }
        },
        meter_sub_category: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MeterSubCategory',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Unit',
          type: {
            name: 'String'
          }
        },
        meter_tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MeterTags',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        meter_region: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MeterRegion',
          type: {
            name: 'String'
          }
        },
        meter_rates: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MeterRates',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'FloatElementType',
                type: {
                  name: 'Double'
                }
            }
          }
        },
        effective_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'EffectiveDate',
          type: {
            name: 'DateTime'
          }
        },
        included_quantity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'IncludedQuantity',
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end