# 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/vertexai/property/pipelinejob_job_detail_task_details_executor_detail_container_detail'
require 'google/vertexai/property/pipelinejob_job_detail_task_details_executor_detail_custom_job_detail'
module GoogleInSpec
  module VertexAI
    module Property
      class PipelineJobJobDetailTaskDetailsExecutorDetail
        attr_reader :container_detail

        attr_reader :custom_job_detail

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @container_detail = GoogleInSpec::VertexAI::Property::PipelineJobJobDetailTaskDetailsExecutorDetailContainerDetail.new(args['containerDetail'], to_s)
          @custom_job_detail = GoogleInSpec::VertexAI::Property::PipelineJobJobDetailTaskDetailsExecutorDetailCustomJobDetail.new(args['customJobDetail'], to_s)
        end

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