Class: Azure::Consumption::Mgmt::V2019_06_01::Models::ReservationDetail

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb

Overview

reservation detail resource.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #tags, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#instance_flexibility_groupString

Returns The instance Flexibility Group.

Returns:

  • (String)

    The instance Flexibility Group.



26
27
28
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 26

def instance_flexibility_group
  @instance_flexibility_group
end

#instance_flexibility_ratioString

Returns The instance Flexibility Ratio.

Returns:

  • (String)

    The instance Flexibility Ratio.



23
24
25
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 23

def instance_flexibility_ratio
  @instance_flexibility_ratio
end

#instance_idString

fully qualified Resource ID.

Returns:

  • (String)

    This identifier is the name of the resource or the



51
52
53
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 51

def instance_id
  @instance_id
end

#kindString

Returns The reservation kind.

Returns:

  • (String)

    The reservation kind.



58
59
60
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 58

def kind
  @kind
end

#reservation_idString

within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.

Returns:

  • (String)

    The reservation ID is the identifier of a reservation



32
33
34
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 32

def reservation_id
  @reservation_id
end

#reservation_order_idString

reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.

Returns:

  • (String)

    The reservation order ID is the identifier for a



20
21
22
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 20

def reservation_order_id
  @reservation_order_id
end

#reserved_hoursObject

reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days.

Returns:

  • This is the total hours reserved for the day. E.g. if



41
42
43
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 41

def reserved_hours
  @reserved_hours
end

#sku_nameString

the serviceType field in additional info in usage records.

Returns:

  • (String)

    This is the ARM Sku name. It can be used to join with



36
37
38
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 36

def sku_name
  @sku_name
end

#total_reserved_quantityObject

reservationId.

Returns:

  • This is the total count of instances that are reserved for the



55
56
57
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 55

def total_reserved_quantity
  @total_reserved_quantity
end

#usage_dateDateTime

Returns The date on which consumption occurred.

Returns:

  • (DateTime)

    The date on which consumption occurred.



44
45
46
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 44

def usage_date
  @usage_date
end

#used_hoursObject

Returns This is the total hours used by the instance.

Returns:

  • This is the total hours used by the instance.



47
48
49
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 47

def used_hours
  @used_hours
end

Class Method Details

.mapperObject

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



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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb', line 65

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ReservationDetail',
    type: {
      name: 'Composite',
      class_name: 'ReservationDetail',
      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'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        reservation_order_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.reservationOrderId',
          type: {
            name: 'String'
          }
        },
        instance_flexibility_ratio: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceFlexibilityRatio',
          type: {
            name: 'String'
          }
        },
        instance_flexibility_group: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceFlexibilityGroup',
          type: {
            name: 'String'
          }
        },
        reservation_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.reservationId',
          type: {
            name: 'String'
          }
        },
        sku_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.skuName',
          type: {
            name: 'String'
          }
        },
        reserved_hours: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.reservedHours',
          type: {
            name: 'Number'
          }
        },
        usage_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.usageDate',
          type: {
            name: 'DateTime'
          }
        },
        used_hours: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.usedHours',
          type: {
            name: 'Number'
          }
        },
        instance_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceId',
          type: {
            name: 'String'
          }
        },
        total_reserved_quantity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.totalReservedQuantity',
          type: {
            name: 'Number'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.kind',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end