# 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/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_rec_tf_rec_sup_con_exp_con_con_field'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_rec_tf_rec_sup_con_exp_con_con_new_val'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_rec_tf_rec_sup_con_exp_con_con_new_val_date_val'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_rec_tf_rec_sup_con_exp_con_con_new_val_time_val'
module GoogleInSpec
  module DLP
    module Property
      class JobActDetDtDetReqOptSnapshotImgRtDtConRecTfRecSupConExpConCon
        attr_reader :field

        attr_reader :operator

        attr_reader :new_val

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @field = GoogleInSpec::DLP::Property::JobActDetDtDetReqOptSnapshotImgRtDtConRecTfRecSupConExpConConField.new(args['field'], to_s)
          @operator = args['operator']
          @new_val = GoogleInSpec::DLP::Property::JobActDetDtDetReqOptSnapshotImgRtDtConRecTfRecSupConExpConConNewVal.new(args['newVal'], to_s)
        end

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

      class JobActDetDtDetReqOptSnapshotImgRtDtConRecTfRecSupConExpConConArray
        def self.parse(value, parent_identifier)
          return if value.nil?
          return JobActDetDtDetReqOptSnapshotImgRtDtConRecTfRecSupConExpConCon.new(value, parent_identifier) unless value.is_a?(::Array)
          value.map { |v| JobActDetDtDetReqOptSnapshotImgRtDtConRecTfRecSupConExpConCon.new(v, parent_identifier) }
        end
      end
    end
  end
end
