# 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/inspecttemplate_inspect_config_custom_info_types'
require 'google/dlp/property/inspecttemplate_inspect_config_info_types'
require 'google/dlp/property/inspecttemplate_inspect_config_limits'
require 'google/dlp/property/inspecttemplate_inspect_config_limits_max_findings_per_info_type'
require 'google/dlp/property/inspecttemplate_inspect_config_rule_set'
module GoogleInSpec
  module DLP
    module Property
      class InspectTemplateInspectConfig
        attr_reader :exclude_info_types

        attr_reader :include_quote

        attr_reader :min_likelihood

        attr_reader :limits

        attr_reader :info_types

        attr_reader :content_options

        attr_reader :rule_set

        attr_reader :custom_info_types

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @exclude_info_types = args['excludeInfoTypes']
          @include_quote = args['includeQuote']
          @min_likelihood = args['minLikelihood']
          @limits = GoogleInSpec::DLP::Property::InspectTemplateInspectConfigLimits.new(args['limits'], to_s)
          @info_types = GoogleInSpec::DLP::Property::InspectTemplateInspectConfigInfoTypesArray.parse(args['infoTypes'], to_s)
          @content_options = args['contentOptions']
          @rule_set = GoogleInSpec::DLP::Property::InspectTemplateInspectConfigRuleSetArray.parse(args['ruleSet'], to_s)
          @custom_info_types = GoogleInSpec::DLP::Property::InspectTemplateInspectConfigCustomInfoTypesArray.parse(args['customInfoTypes'], to_s)
        end

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