# 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/dataflow/property/projectlocationjob_environment_debug_options'
require 'google/dataflow/property/projectlocationjob_environment_debug_options_data_sampling'
require 'google/dataflow/property/projectlocationjob_environment_internal_experiments'
require 'google/dataflow/property/projectlocationjob_environment_sdk_pipeline_options'
require 'google/dataflow/property/projectlocationjob_environment_user_agent'
require 'google/dataflow/property/projectlocationjob_environment_version'
require 'google/dataflow/property/projectlocationjob_environment_worker_pools'
module GoogleInSpec
  module Dataflow
    module Property
      class ProjectLocationJobEnvironment
        attr_reader :temp_storage_prefix

        attr_reader :cluster_manager_api_service

        attr_reader :experiments

        attr_reader :service_options

        attr_reader :service_kms_key_name

        attr_reader :worker_pools

        attr_reader :user_agent

        attr_reader :version

        attr_reader :dataset

        attr_reader :sdk_pipeline_options

        attr_reader :internal_experiments

        attr_reader :service_account_email

        attr_reader :flex_resource_scheduling_goal

        attr_reader :worker_region

        attr_reader :worker_zone

        attr_reader :shuffle_mode

        attr_reader :debug_options

        attr_reader :use_streaming_engine_resource_based_billing

        attr_reader :streaming_mode

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @temp_storage_prefix = args['tempStoragePrefix']
          @cluster_manager_api_service = args['clusterManagerApiService']
          @experiments = args['experiments']
          @service_options = args['serviceOptions']
          @service_kms_key_name = args['serviceKmsKeyName']
          @worker_pools = GoogleInSpec::Dataflow::Property::ProjectLocationJobEnvironmentWorkerPoolsArray.parse(args['workerPools'], to_s)
          @user_agent = GoogleInSpec::Dataflow::Property::ProjectLocationJobEnvironmentUserAgent.new(args['userAgent'], to_s)
          @version = GoogleInSpec::Dataflow::Property::ProjectLocationJobEnvironmentVersion.new(args['version'], to_s)
          @dataset = args['dataset']
          @sdk_pipeline_options = GoogleInSpec::Dataflow::Property::ProjectLocationJobEnvironmentSdkPipelineOptions.new(args['sdkPipelineOptions'], to_s)
          @internal_experiments = GoogleInSpec::Dataflow::Property::ProjectLocationJobEnvironmentInternalExperiments.new(args['internalExperiments'], to_s)
          @service_account_email = args['serviceAccountEmail']
          @flex_resource_scheduling_goal = args['flexResourceSchedulingGoal']
          @worker_region = args['workerRegion']
          @worker_zone = args['workerZone']
          @shuffle_mode = args['shuffleMode']
          @debug_options = GoogleInSpec::Dataflow::Property::ProjectLocationJobEnvironmentDebugOptions.new(args['debugOptions'], to_s)
          @use_streaming_engine_resource_based_billing = args['useStreamingEngineResourceBasedBilling']
          @streaming_mode = args['streamingMode']
        end

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