Sha256: 44f90f0da742cb89611ae2a3c1f944acb9142bc97fec0e16f3e7f4335fa9c5d7

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

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

module Azure::ARM::Web
  module Models
    #
    # Represents metric limits set on a web app.
    #
    class SiteLimits

      include MsRestAzure

      # @return [Float] Maximum allowed CPU usage percentage
      attr_accessor :max_percentage_cpu

      # @return [Integer] Maximum allowed memory usage in MB
      attr_accessor :max_memory_in_mb

      # @return [Integer] Maximum allowed disk size usage in MB
      attr_accessor :max_disk_size_in_mb


      #
      # Mapper for SiteLimits class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'SiteLimits',
          type: {
            name: 'Composite',
            class_name: 'SiteLimits',
            model_properties: {
              max_percentage_cpu: {
                required: false,
                serialized_name: 'maxPercentageCpu',
                type: {
                  name: 'Double'
                }
              },
              max_memory_in_mb: {
                required: false,
                serialized_name: 'maxMemoryInMb',
                type: {
                  name: 'Number'
                }
              },
              max_disk_size_in_mb: {
                required: false,
                serialized_name: 'maxDiskSizeInMb',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_web-0.8.0 lib/generated/azure_mgmt_web/models/site_limits.rb