Class: Azure::Consumption::Mgmt::V2019_04_01_preview::Models::ReservationRecommendation

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01-preview/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



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

def cost_with_no_reserved_instances
  @cost_with_no_reserved_instances
end

#first_usage_dateDateTime



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

def first_usage_date
  @first_usage_date
end

#idString



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

def id
  @id
end

#locationString



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

def location
  @location
end

#look_back_periodString

recommendation.



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

def look_back_period
  @look_back_period
end

#meter_idObject



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

def meter_id
  @meter_id
end

#nameString



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

def name
  @name
end

#net_savingsObject



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

def net_savings
  @net_savings
end


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

def recommended_quantity
  @recommended_quantity
end

#scopeString



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

def scope
  @scope
end

#skuString



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

def sku
  @sku
end

#tagsHash{String => String}



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

def tags
  @tags
end

#termString



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

def term
  @term
end

#total_cost_with_reserved_instancesObject



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

def total_cost_with_reserved_instances
  @total_cost_with_reserved_instances
end

#typeString



22
23
24
# File 'lib/2019-04-01-preview/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.



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
221
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 66

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'
          }
        },
        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'
          }
        }
      }
    }
  }
end