Class: Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GpuResource

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#countInteger

Returns The count of the GPU resource.

Returns:

  • (Integer)

    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

#skuGpuSku

‘K80’, ‘P100’, ‘V100’

Returns:

  • (GpuSku)

    The SKU of the GPU resource. Possible values include:



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

.mapperObject

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