Class: Azure::Consumption::Mgmt::V2019_10_01::Models::ModernReservationRecommendation
- Inherits:
-
ReservationRecommendation
- Object
- ReservationRecommendation
- Azure::Consumption::Mgmt::V2019_10_01::Models::ModernReservationRecommendation
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb
Overview
Modern reservation recommendation.
Instance Attribute Summary collapse
-
#cost_with_no_reserved_instances ⇒ Amount
The total amount of cost without reserved instances.
-
#first_usage_date ⇒ DateTime
The usage date for looking back.
-
#instance_flexibility_group ⇒ String
The instance Flexibility Group.
-
#instance_flexibility_ratio ⇒ Integer
The instance Flexibility Ratio.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#look_back_period ⇒ String
recommendation.
-
#meter_id ⇒ Object
The meter id (GUID).
-
#net_savings ⇒ Amount
Total estimated savings with reserved instances.
-
#normalized_size ⇒ String
The normalized Size.
-
#recommended_quantity ⇒ Object
Recommended quality for reserved instances.
-
#recommended_quantity_normalized ⇒ Float
The recommended Quantity Normalized.
-
#scope ⇒ String
Shared or single recommendation.
-
#sku_properties ⇒ Array<SkuProperty>
List of sku properties.
-
#term ⇒ String
RI recommendations in one or three year terms.
-
#total_cost_with_reserved_instances ⇒ Amount
The total amount of cost with reserved instances.
Attributes inherited from ReservationRecommendation
#id, #location, #name, #sku, #tags, #type
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ModernReservationRecommendation class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ModernReservationRecommendation
constructor
A new instance of ModernReservationRecommendation.
Constructor Details
#initialize ⇒ ModernReservationRecommendation
Returns a new instance of ModernReservationRecommendation.
16 17 18 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 16 def initialize @kind = "modern" end |
Instance Attribute Details
#cost_with_no_reserved_instances ⇒ Amount
Returns The total amount of cost without reserved instances.
45 46 47 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 45 def cost_with_no_reserved_instances @cost_with_no_reserved_instances end |
#first_usage_date ⇒ DateTime
Returns The usage date for looking back.
57 58 59 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 57 def first_usage_date @first_usage_date end |
#instance_flexibility_group ⇒ String
Returns The instance Flexibility Group.
30 31 32 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 30 def instance_flexibility_group @instance_flexibility_group end |
#instance_flexibility_ratio ⇒ Integer
Returns The instance Flexibility Ratio.
27 28 29 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 27 def instance_flexibility_ratio @instance_flexibility_ratio end |
#kind ⇒ Object
Returns the value of attribute kind.
20 21 22 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 20 def kind @kind end |
#look_back_period ⇒ String
recommendation.
24 25 26 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 24 def look_back_period @look_back_period end |
#meter_id ⇒ Object
Returns The meter id (GUID).
39 40 41 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 39 def meter_id @meter_id end |
#net_savings ⇒ Amount
Returns Total estimated savings with reserved instances.
54 55 56 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 54 def net_savings @net_savings end |
#normalized_size ⇒ String
Returns The normalized Size.
33 34 35 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 33 def normalized_size @normalized_size end |
#recommended_quantity ⇒ Object
Returns Recommended quality for reserved instances.
48 49 50 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 48 def recommended_quantity @recommended_quantity end |
#recommended_quantity_normalized ⇒ Float
Returns The recommended Quantity Normalized.
36 37 38 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 36 def recommended_quantity_normalized @recommended_quantity_normalized end |
#scope ⇒ String
Returns Shared or single recommendation.
60 61 62 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 60 def scope @scope end |
#sku_properties ⇒ Array<SkuProperty>
Returns List of sku properties.
63 64 65 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 63 def sku_properties @sku_properties end |
#term ⇒ String
Returns RI recommendations in one or three year terms.
42 43 44 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 42 def term @term end |
#total_cost_with_reserved_instances ⇒ Amount
Returns The total amount of cost with reserved instances.
51 52 53 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 51 def total_cost_with_reserved_instances @total_cost_with_reserved_instances end |
Class Method Details
.mapper ⇒ Object
Mapper for ModernReservationRecommendation class as Ruby Hash. This will be used for serialization/deserialization.
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 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-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb', line 70 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'modern', type: { name: 'Composite', class_name: 'ModernReservationRecommendation', 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' } }, kind: { client_side_validation: true, required: true, serialized_name: 'kind', 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: 'Composite', class_name: 'Amount' } }, 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: 'Composite', class_name: 'Amount' } }, net_savings: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.netSavings', type: { name: 'Composite', class_name: 'Amount' } }, 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 |