# 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::Web::Mgmt::V2020_09_01
  module Models
    #
    # Worker pool of an App Service Environment ARM resource.
    #
    class WorkerPoolResource < ProxyOnlyResource

      include MsRestAzure

      # @return [Integer] Worker size ID for referencing this worker pool.
      attr_accessor :worker_size_id

      # @return [ComputeModeOptions] Shared or dedicated app hosting. Possible
      # values include: 'Shared', 'Dedicated', 'Dynamic'
      attr_accessor :compute_mode

      # @return [String] VM size of the worker pool instances.
      attr_accessor :worker_size

      # @return [Integer] Number of instances in the worker pool.
      attr_accessor :worker_count

      # @return [Array<String>] Names of all instances in the worker pool (read
      # only).
      attr_accessor :instance_names

      # @return [SkuDescription]
      attr_accessor :sku


      #
      # Mapper for WorkerPoolResource class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'WorkerPoolResource',
          type: {
            name: 'Composite',
            class_name: 'WorkerPoolResource',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              kind: {
                client_side_validation: true,
                required: false,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              system_data: {
                client_side_validation: true,
                required: false,
                serialized_name: 'systemData',
                type: {
                  name: 'Composite',
                  class_name: 'SystemData'
                }
              },
              worker_size_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.workerSizeId',
                type: {
                  name: 'Number'
                }
              },
              compute_mode: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.computeMode',
                type: {
                  name: 'Enum',
                  module: 'ComputeModeOptions'
                }
              },
              worker_size: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.workerSize',
                type: {
                  name: 'String'
                }
              },
              worker_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.workerCount',
                type: {
                  name: 'Number'
                }
              },
              instance_names: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.instanceNames',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              sku: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sku',
                type: {
                  name: 'Composite',
                  class_name: 'SkuDescription'
                }
              }
            }
          }
        }
      end
    end
  end
end
