class Azure::ContainerInstance::Mgmt::V2019_12_01::Models::ResourceLimits

The resource limits.

Attributes

cpu[RW]

@return [Float] The CPU limit of this container instance.

gpu[RW]

@return [GpuResource] The GPU limit of this container instance.

memory_in_gb[RW]

@return [Float] The memory limit in GB of this container instance.

Public Class Methods

mapper() click to toggle source

Mapper for ResourceLimits class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-12-01/generated/azure_mgmt_container_instance/models/resource_limits.rb, line 29
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ResourceLimits',
    type: {
      name: 'Composite',
      class_name: 'ResourceLimits',
      model_properties: {
        memory_in_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'memoryInGB',
          type: {
            name: 'Double'
          }
        },
        cpu: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cpu',
          type: {
            name: 'Double'
          }
        },
        gpu: {
          client_side_validation: true,
          required: false,
          serialized_name: 'gpu',
          type: {
            name: 'Composite',
            class_name: 'GpuResource'
          }
        }
      }
    }
  }
end