Sha256: 7f4177aba8b99eca666669baa5c8fac3b6e2e0fa1fd9e585e089d315f9a7edb0

Contents?: true

Size: 1.43 KB

Versions: 8

Compression:

Stored size: 1.43 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_04_01
  module Models
    #
    # The resource limits.
    #
    class ResourceLimits

      include MsRestAzure

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

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


      #
      # Mapper for ResourceLimits class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
azure_mgmt_container_instance-0.18.0 lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb
azure_mgmt_container_instance-0.17.6 lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb
azure_mgmt_container_instance-0.17.5 lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb
azure_mgmt_container_instance-0.17.4 lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb
azure_mgmt_container_instance-0.17.3 lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb
azure_mgmt_container_instance-0.17.2 lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb
azure_mgmt_container_instance-0.17.1 lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb
azure_mgmt_container_instance-0.17.0 lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb