Sha256: 477d9fc7f6193ecb45df65320ddda548c62890ee1f0a702639e9f944eb25d9a9

Contents?: true

Size: 1.82 KB

Versions: 6

Compression:

Stored size: 1.82 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ContainerInstance::Mgmt::V2018_10_01
  module Models
    #
    # The resource requests.
    #
    class ResourceRequests

      include MsRestAzure

      # @return [Float] The memory request in GB of this container instance.
      attr_accessor :memory_in_gb

      # @return [Float] The CPU request of this container instance.
      attr_accessor :cpu

      # @return [GpuResource] The GPU request of this container instance.
      attr_accessor :gpu


      #
      # Mapper for ResourceRequests class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ResourceRequests',
          type: {
            name: 'Composite',
            class_name: 'ResourceRequests',
            model_properties: {
              memory_in_gb: {
                client_side_validation: true,
                required: true,
                serialized_name: 'memoryInGB',
                type: {
                  name: 'Double'
                }
              },
              cpu: {
                client_side_validation: true,
                required: true,
                serialized_name: 'cpu',
                type: {
                  name: 'Double'
                }
              },
              gpu: {
                client_side_validation: true,
                required: false,
                serialized_name: 'gpu',
                type: {
                  name: 'Composite',
                  class_name: 'GpuResource'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
azure_mgmt_container_instance-0.18.0 lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb
azure_mgmt_container_instance-0.17.6 lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb
azure_mgmt_container_instance-0.17.5 lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb
azure_mgmt_container_instance-0.17.4 lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb
azure_mgmt_container_instance-0.17.3 lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb
azure_mgmt_container_instance-0.17.2 lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb