# 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_deidentify_stats'
require 'google/dlp/property/job_act_det_deidentify_stats_requested_options'
require 'google/dlp/property/job_act_det_deidentify_stats_requested_options_details'
require 'google/dlp/property/job_act_det_dt_det'
require 'google/dlp/property/job_act_det_dt_det_de_stats'
require 'google/dlp/property/job_act_det_dt_det_req_opt'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_dt'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_dt_config'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_image_tf'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_image_tf_all_info_types'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_image_tf_all_text'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_image_tf_redaction_color'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_image_tf_selected_info_types'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_info_type_tf'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_info_type_tf_tf'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_rec_tf'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_rec_tf_field_tf'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_img_rt_dt_con_rec_tf_rec_sup'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_structured_dt'
require 'google/dlp/property/job_act_det_dt_det_req_opt_snapshot_structured_dt_deidentify_config'
module GoogleInSpec
  module DLP
    module Property
      class JobActDet
        attr_reader :dt_det

        attr_reader :deidentify_stats

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @dt_det = GoogleInSpec::DLP::Property::JobActDetDtDet.new(args['dtDet'], to_s)
          @deidentify_stats = GoogleInSpec::DLP::Property::JobActDetDeidentifyStats.new(args['deidentifyStats'], to_s)
        end

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

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