# 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/run/property/job_template_annotations'
require 'google/run/property/job_template_labels'
require 'google/run/property/job_template_template'
require 'google/run/property/job_template_template_containers'
require 'google/run/property/job_template_template_volumes'
require 'google/run/property/job_template_template_vpc_access'
require 'google/run/property/job_template_template_vpc_access_network_interfaces'
module GoogleInSpec
  module Run
    module Property
      class JobTemplate
        attr_reader :labels

        attr_reader :annotations

        attr_reader :parallelism

        attr_reader :task_count

        attr_reader :template

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @labels = GoogleInSpec::Run::Property::JobTemplateLabels.new(args['labels'], to_s)
          @annotations = GoogleInSpec::Run::Property::JobTemplateAnnotations.new(args['annotations'], to_s)
          @parallelism = args['parallelism']
          @task_count = args['taskCount']
          @template = GoogleInSpec::Run::Property::JobTemplateTemplate.new(args['template'], to_s)
        end

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