# 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/workflowtemplate_placement_managed_cluster_config_autoscaling_config'
require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_encryption_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config'
require 'google/dataproc/property/workflowtemplate_gke_cluster_config'
require 'google/dataproc/property/workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target'
require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config'
require 'google/dataproc/property/workflowtemplate_master_config'
require 'google/dataproc/property/workflowtemplate_master_config_accelerators'
require 'google/dataproc/property/workflowtemplate_master_config_disk_config'
require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy'
require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list'
require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results'
require 'google/dataproc/property/workflowtemplate_master_config_instance_references'
require 'google/dataproc/property/workflowtemplate_master_config_managed_group_config'
require 'google/dataproc/property/workflowtemplate_master_config_startup_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config_accelerators'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config_disk_config'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_references'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config_managed_group_config'
require 'google/dataproc/property/workflowtemplate_secondary_worker_config_startup_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config'
require 'google/dataproc/property/workflowtemplate_security_config_identity_config'
require 'google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config'
require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties'
require 'google/dataproc/property/workflowtemplate_worker_config'
require 'google/dataproc/property/workflowtemplate_worker_config_accelerators'
require 'google/dataproc/property/workflowtemplate_worker_config_disk_config'
require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy'
require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list'
require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results'
require 'google/dataproc/property/workflowtemplate_worker_config_instance_references'
require 'google/dataproc/property/workflowtemplate_worker_config_managed_group_config'
require 'google/dataproc/property/workflowtemplate_worker_config_startup_config'
module GoogleInSpec
  module Dataproc
    module Property
      class WorkflowTemplatePlacementManagedClusterConfig
        attr_reader :config_bucket

        attr_reader :temp_bucket

        attr_reader :gce_cluster_config

        attr_reader :master_config

        attr_reader :worker_config

        attr_reader :secondary_worker_config

        attr_reader :software_config

        attr_reader :initialization_actions

        attr_reader :encryption_config

        attr_reader :autoscaling_config

        attr_reader :security_config

        attr_reader :lifecycle_config

        attr_reader :endpoint_config

        attr_reader :metastore_config

        attr_reader :gke_cluster_config

        attr_reader :dataproc_metric_config

        attr_reader :auxiliary_node_groups

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @config_bucket = args['configBucket']
          @temp_bucket = args['tempBucket']
          @gce_cluster_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGceClusterConfig.new(args['gceClusterConfig'], to_s)
          @master_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfig.new(args['masterConfig'], to_s)
          @worker_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfig.new(args['workerConfig'], to_s)
          @secondary_worker_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfig.new(args['secondaryWorkerConfig'], to_s)
          @software_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSoftwareConfig.new(args['softwareConfig'], to_s)
          @initialization_actions = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigInitializationActionsArray.parse(args['initializationActions'], to_s)
          @encryption_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigEncryptionConfig.new(args['encryptionConfig'], to_s)
          @autoscaling_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig.new(args['autoscalingConfig'], to_s)
          @security_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecurityConfig.new(args['securityConfig'], to_s)
          @lifecycle_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigLifecycleConfig.new(args['lifecycleConfig'], to_s)
          @endpoint_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigEndpointConfig.new(args['endpointConfig'], to_s)
          @metastore_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMetastoreConfig.new(args['metastoreConfig'], to_s)
          @gke_cluster_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateGkeClusterConfig.new(args['gkeClusterConfig'], to_s)
          @dataproc_metric_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig.new(args['dataprocMetricConfig'], to_s)
          @auxiliary_node_groups = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsArray.parse(args['auxiliaryNodeGroups'], to_s)
        end

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