# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    Type: MMv1     ***
#
# ----------------------------------------------------------------------------
#
#     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/dataproc/property/autoscalingpolicy_basic_algorithm_spark_standalone_config'
require 'google/dataproc/property/autoscalingpolicy_basic_algorithm_yarn_config'
module GoogleInSpec
  module Dataproc
    module Property
      class AutoscalingPolicyBasicAlgorithm
        attr_reader :yarn_config

        attr_reader :spark_standalone_config

        attr_reader :cooldown_period

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @yarn_config = GoogleInSpec::Dataproc::Property::AutoscalingPolicyBasicAlgorithmYarnConfig.new(args['yarnConfig'], to_s)
          @spark_standalone_config = GoogleInSpec::Dataproc::Property::AutoscalingPolicyBasicAlgorithmSparkStandaloneConfig.new(args['sparkStandaloneConfig'], to_s)
          @cooldown_period = args['cooldownPeriod']
        end

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