Class: Azure::Consumption::Mgmt::V2019_06_01::Models::ReservationRecommendation

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

Overview

Reservation recommendation resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cost_with_no_reserved_instancesObject

Returns The total amount of cost without reserved instances.

Returns:

  • The total amount of cost without reserved instances.



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

def cost_with_no_reserved_instances
  @cost_with_no_reserved_instances
end

#first_usage_dateDateTime

Returns The usage date for looking back.

Returns:

  • (DateTime)

    The usage date for looking back.



68
69
70
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 68

def first_usage_date
  @first_usage_date
end

#idString

Returns Resource Id.

Returns:

  • (String)

    Resource Id.



16
17
18
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 16

def id
  @id
end

#instance_flexibility_groupString

Returns The instance Flexibility Group.

Returns:

  • (String)

    The instance Flexibility Group.



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

def instance_flexibility_group
  @instance_flexibility_group
end

#instance_flexibility_ratioInteger

Returns The instance Flexibility Ratio.

Returns:

  • (Integer)

    The instance Flexibility Ratio.



38
39
40
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 38

def instance_flexibility_ratio
  @instance_flexibility_ratio
end

#locationString

Returns Resource location.

Returns:

  • (String)

    Resource location



28
29
30
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 28

def location
  @location
end

#look_back_periodString

recommendation.

Returns:

  • (String)

    The number of days of usage to look back for



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

def look_back_period
  @look_back_period
end

#meter_idObject

Returns The meter id (GUID).

Returns:

  • The meter id (GUID)



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

def meter_id
  @meter_id
end

#nameString

Returns Resource name.

Returns:

  • (String)

    Resource name.



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

def name
  @name
end

#net_savingsObject

Returns Total estimated savings with reserved instances.

Returns:

  • Total estimated savings with reserved instances.



65
66
67
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 65

def net_savings
  @net_savings
end

#normalized_sizeString

Returns The normalized Size.

Returns:

  • (String)

    The normalized Size.



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

def normalized_size
  @normalized_size
end

Returns Recommended quality for reserved instances.

Returns:

  • Recommended quality for reserved instances.



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

def recommended_quantity
  @recommended_quantity
end

Returns The recommended Quantity Normalized.

Returns:

  • (Float)

    The recommended Quantity Normalized.



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

def recommended_quantity_normalized
  @recommended_quantity_normalized
end

#scopeString

Returns Shared or single recommendation.

Returns:

  • (String)

    Shared or single recommendation.



71
72
73
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 71

def scope
  @scope
end

#skuString

Returns Resource sku.

Returns:

  • (String)

    Resource sku



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

def sku
  @sku
end

#sku_propertiesArray<SkuProperty>

Returns List of sku properties.

Returns:



74
75
76
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 74

def sku_properties
  @sku_properties
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags.



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

def tags
  @tags
end

#termString

Returns RI recommendations in one or three year terms.

Returns:

  • (String)

    RI recommendations in one or three year terms.



53
54
55
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 53

def term
  @term
end

#total_cost_with_reserved_instancesObject

Returns The total amount of cost with reserved instances.

Returns:

  • The total amount of cost with reserved instances.



62
63
64
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 62

def total_cost_with_reserved_instances
  @total_cost_with_reserved_instances
end

#typeString

Returns Resource type.

Returns:

  • (String)

    Resource type.



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

def type
  @type
end

Class Method Details

.mapperObject

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



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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 81

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ReservationRecommendation',
    type: {
      name: 'Composite',
      class_name: 'ReservationRecommendation',
      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'
                }
            }
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sku',
          type: {
            name: 'String'
          }
        },
        look_back_period: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lookBackPeriod',
          type: {
            name: 'String'
          }
        },
        instance_flexibility_ratio: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceFlexibilityRatio',
          type: {
            name: 'Number'
          }
        },
        instance_flexibility_group: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceFlexibilityGroup',
          type: {
            name: 'String'
          }
        },
        normalized_size: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.normalizedSize',
          type: {
            name: 'String'
          }
        },
        recommended_quantity_normalized: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.recommendedQuantityNormalized',
          type: {
            name: 'Double'
          }
        },
        meter_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.meterId',
          type: {
            name: 'String'
          }
        },
        term: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.term',
          type: {
            name: 'String'
          }
        },
        cost_with_no_reserved_instances: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.costWithNoReservedInstances',
          type: {
            name: 'Number'
          }
        },
        recommended_quantity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.recommendedQuantity',
          type: {
            name: 'Number'
          }
        },
        total_cost_with_reserved_instances: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.totalCostWithReservedInstances',
          type: {
            name: 'Number'
          }
        },
        net_savings: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.netSavings',
          type: {
            name: 'Number'
          }
        },
        first_usage_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.firstUsageDate',
          type: {
            name: 'DateTime'
          }
        },
        scope: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.scope',
          type: {
            name: 'String'
          }
        },
        sku_properties: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.skuProperties',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SkuPropertyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SkuProperty'
                }
            }
          }
        }
      }
    }
  }
end