Class: Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter

Inherits:
ProxyOnlyResource show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb

Overview

App Service billing entity that contains information about meter which the Azure billing system utilizes to charge users for services.

Instance Attribute Summary collapse

Attributes inherited from ProxyOnlyResource

#id, #kind, #name, #type

Class Method Summary collapse

Instance Attribute Details

#billing_locationString

Returns Azure Location of billable resource.

Returns:

  • (String)

    Azure Location of billable resource



20
21
22
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb', line 20

def billing_location
  @billing_location
end

#friendly_nameString

Returns Friendly name of the meter.

Returns:

  • (String)

    Friendly name of the meter



26
27
28
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb', line 26

def friendly_name
  @friendly_name
end

#meter_idString

Returns Meter GUID onboarded in Commerce.

Returns:

  • (String)

    Meter GUID onboarded in Commerce



17
18
19
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb', line 17

def meter_id
  @meter_id
end

#os_typeString

Returns App Service OS type meter used for.

Returns:

  • (String)

    App Service OS type meter used for



32
33
34
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb', line 32

def os_type
  @os_type
end

#resource_typeString

Returns App Service ResourceType meter used for.

Returns:

  • (String)

    App Service ResourceType meter used for



29
30
31
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb', line 29

def resource_type
  @resource_type
end

#short_nameString

Returns Short Name from App Service Azure pricing Page.

Returns:

  • (String)

    Short Name from App Service Azure pricing Page



23
24
25
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb', line 23

def short_name
  @short_name
end

Class Method Details

.mapperObject

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



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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BillingMeter',
    type: {
      name: 'Composite',
      class_name: 'BillingMeter',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        meter_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.meterId',
          type: {
            name: 'String'
          }
        },
        billing_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.billingLocation',
          type: {
            name: 'String'
          }
        },
        short_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.shortName',
          type: {
            name: 'String'
          }
        },
        friendly_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.friendlyName',
          type: {
            name: 'String'
          }
        },
        resource_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.resourceType',
          type: {
            name: 'String'
          }
        },
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end