# 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/customjob_job_spec_worker_pool_specs_python_package_spec_env'
module GoogleInSpec
  module VertexAI
    module Property
      class CustomJobJobSpecWorkerPoolSpecsPythonPackageSpec
        attr_reader :package_uris

        attr_reader :env

        attr_reader :executor_image_uri

        attr_reader :args

        attr_reader :python_module

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @package_uris = args['packageUris']
          @env = GoogleInSpec::VertexAI::Property::CustomJobJobSpecWorkerPoolSpecsPythonPackageSpecEnvArray.parse(args['env'], to_s)
          @executor_image_uri = args['executorImageUri']
          @args = args['args']
          @python_module = args['pythonModule']
        end

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