Class: Azure::Consumption::Mgmt::V2019_10_01::Models::ReservationRecommendation
- Inherits:
-
Object
- Object
- Azure::Consumption::Mgmt::V2019_10_01::Models::ReservationRecommendation
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb
Overview
A reservation recommendation resource.
Direct Known Subclasses
LegacyReservationRecommendation, ModernReservationRecommendation
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#id ⇒ String
Resource Id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#location ⇒ String
Resource location.
-
#name ⇒ String
Resource name.
-
#sku ⇒ String
Resource sku.
-
#tags ⇒ Hash{String => String}
Resource tags.
-
#type ⇒ String
Resource type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ReservationRecommendation class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ReservationRecommendation
constructor
A new instance of ReservationRecommendation.
Constructor Details
#initialize ⇒ ReservationRecommendation
Returns a new instance of ReservationRecommendation.
19 20 21 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 19 def initialize @kind = "ReservationRecommendation" end |
Instance Attribute Details
#id ⇒ String
Returns Resource Id.
26 27 28 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 26 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
23 24 25 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 23 def kind @kind end |
#location ⇒ String
Returns Resource location.
38 39 40 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 38 def location @location end |
#name ⇒ String
Returns Resource name.
29 30 31 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 29 def name @name end |
#sku ⇒ String
Returns Resource sku.
41 42 43 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 41 def sku @sku end |
#tags ⇒ Hash{String => String}
Returns Resource tags.
35 36 37 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 35 def @tags end |
#type ⇒ String
Returns Resource type.
32 33 34 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 32 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for ReservationRecommendation class as Ruby Hash. This will be used for serialization/deserialization.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 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 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb', line 48 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ReservationRecommendation', type: { name: 'Composite', polymorphic_discriminator: 'kind', uber_parent: 'ReservationRecommendation', 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' } } } } } end |