# 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.
#
# ----------------------------------------------------------------------------
module GoogleInSpec
  module Run
    module Property
      class JobTerminalCondition
        attr_reader :type

        attr_reader :state

        attr_reader :message

        attr_reader :last_transition_time

        attr_reader :severity

        attr_reader :reason

        attr_reader :revision_reason

        attr_reader :execution_reason

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @type = args['type']
          @state = args['state']
          @message = args['message']
          @last_transition_time = args['lastTransitionTime']
          @severity = args['severity']
          @reason = args['reason']
          @revision_reason = args['revisionReason']
          @execution_reason = args['executionReason']
        end

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