# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    AUTO GENERATED CODE     ***
#
# ----------------------------------------------------------------------------
#
#     This file is automatically generated by Magic Modules and manual
#     changes will be clobbered when the file is regenerated.
#
#     Please read more about how to change this file in README.md and
#     CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
require 'google/appengine/property/standardappversion_automatic_scaling_standard_scheduler_settings'
module GoogleInSpec
  module AppEngine
    module Property
      class StandardAppVersionAutomaticScaling
        attr_reader :max_concurrent_requests

        attr_reader :max_idle_instances

        attr_reader :max_pending_latency

        attr_reader :min_idle_instances

        attr_reader :min_pending_latency

        attr_reader :standard_scheduler_settings

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @max_concurrent_requests = args['maxConcurrentRequests']
          @max_idle_instances = args['maxIdleInstances']
          @max_pending_latency = args['maxPendingLatency']
          @min_idle_instances = args['minIdleInstances']
          @min_pending_latency = args['minPendingLatency']
          @standard_scheduler_settings = GoogleInSpec::AppEngine::Property::StandardAppVersionAutomaticScalingStandardSchedulerSettings.new(args['standardSchedulerSettings'], to_s)
        end

        def to_s
          "#{@parent_identifier} StandardAppVersionAutomaticScaling"
        end
      end
    end
  end
end
