Class: Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GpuResource
- Inherits:
-
Object
- Object
- Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GpuResource
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb
Overview
The GPU resource.
Instance Attribute Summary collapse
-
#count ⇒ Integer
The count of the GPU resource.
-
#sku ⇒ GpuSku
‘K80’, ‘P100’, ‘V100’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for GpuResource class as Ruby Hash.
Instance Attribute Details
#count ⇒ Integer
Returns The count of the GPU resource.
16 17 18 |
# File 'lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb', line 16 def count @count end |
#sku ⇒ GpuSku
‘K80’, ‘P100’, ‘V100’
20 21 22 |
# File 'lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb', line 20 def sku @sku end |
Class Method Details
.mapper ⇒ Object
Mapper for GpuResource class as Ruby Hash. This will be used for serialization/deserialization.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb', line 27 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'GpuResource', type: { name: 'Composite', class_name: 'GpuResource', model_properties: { count: { client_side_validation: true, required: true, serialized_name: 'count', type: { name: 'Number' } }, sku: { client_side_validation: true, required: true, serialized_name: 'sku', type: { name: 'String' } } } } } end |