Class: Azure::Consumption::Mgmt::V2019_04_01_preview::Models::ReservationRecommendation
- Inherits:
-
Object
- Object
- Azure::Consumption::Mgmt::V2019_04_01_preview::Models::ReservationRecommendation
- 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
-
#cost_with_no_reserved_instances ⇒ Object
The total amount of cost without reserved instances.
-
#first_usage_date ⇒ DateTime
The usage date for looking back.
-
#id ⇒ String
Resource Id.
-
#location ⇒ String
Resource location.
-
#look_back_period ⇒ String
recommendation.
-
#meter_id ⇒ Object
The meter id (GUID).
-
#name ⇒ String
Resource name.
-
#net_savings ⇒ Object
Total estimated savings with reserved instances.
-
#recommended_quantity ⇒ Object
Recommended quality for reserved instances.
-
#scope ⇒ String
Shared or single recommendation.
-
#sku ⇒ String
Resource sku.
-
#tags ⇒ Hash{String => String}
Resource tags.
-
#term ⇒ String
RI recommendations in one or three year terms.
-
#total_cost_with_reserved_instances ⇒ Object
The total amount of cost with reserved instances.
-
#type ⇒ String
Resource type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ReservationRecommendation class as Ruby Hash.
Instance Attribute Details
#cost_with_no_reserved_instances ⇒ Object
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_date ⇒ DateTime
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 |
#id ⇒ String
16 17 18 |
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 16 def id @id end |
#location ⇒ String
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_period ⇒ String
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_id ⇒ Object
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 |
#name ⇒ String
19 20 21 |
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 19 def name @name end |
#net_savings ⇒ Object
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 |
#recommended_quantity ⇒ Object
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 |
#scope ⇒ String
59 60 61 |
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 59 def scope @scope end |
#sku ⇒ String
31 32 33 |
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 31 def sku @sku end |
#tags ⇒ Hash{String => String}
25 26 27 |
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 25 def end |
#term ⇒ String
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_instances ⇒ Object
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 |
#type ⇒ String
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
.mapper ⇒ Object
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 |