Class: Azure::Labservices::Mgmt::V2018_10_15::Models::SizeInfo
- Inherits:
-
Object
- Object
- Azure::Labservices::Mgmt::V2018_10_15::Models::SizeInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-10-15/generated/azure_mgmt_labservices/models/size_info.rb
Overview
Contains detailed information about a size
Instance Attribute Summary collapse
-
#compute_size ⇒ String
Standard_A2_v2.
-
#memory ⇒ Float
The amount of memory available (in GB).
-
#number_of_cores ⇒ Integer
The number of cores a VM of this size has.
-
#price ⇒ Object
not include discounts and may not reflect the actual price the size will cost.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SizeInfo class as Ruby Hash.
Instance Attribute Details
#compute_size ⇒ String
Standard_A2_v2.
17 18 19 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/size_info.rb', line 17 def compute_size @compute_size end |
#memory ⇒ Float
Returns The amount of memory available (in GB).
28 29 30 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/size_info.rb', line 28 def memory @memory end |
#number_of_cores ⇒ Integer
Returns The number of cores a VM of this size has.
25 26 27 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/size_info.rb', line 25 def number_of_cores @number_of_cores end |
#price ⇒ Object
not include discounts and may not reflect the actual price the size will cost.
22 23 24 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/size_info.rb', line 22 def price @price end |
Class Method Details
.mapper ⇒ Object
Mapper for SizeInfo class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 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 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/size_info.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SizeInfo', type: { name: 'Composite', class_name: 'SizeInfo', model_properties: { compute_size: { client_side_validation: true, required: false, serialized_name: 'computeSize', type: { name: 'String' } }, price: { client_side_validation: true, required: false, serialized_name: 'price', type: { name: 'Number' } }, number_of_cores: { client_side_validation: true, required: false, serialized_name: 'numberOfCores', type: { name: 'Number' } }, memory: { client_side_validation: true, required: false, serialized_name: 'memory', type: { name: 'Double' } } } } } end |