# 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_limits_max_findings_per_info_type'
module GoogleInSpec
  module DLP
    module Property
      class InspectTemplateInspectConfigLimits
        attr_reader :max_findings_per_item

        attr_reader :max_findings_per_request

        attr_reader :max_findings_per_info_type

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @max_findings_per_item = args['maxFindingsPerItem']
          @max_findings_per_request = args['maxFindingsPerRequest']
          @max_findings_per_info_type = GoogleInSpec::DLP::Property::InspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArray.parse(args['maxFindingsPerInfoType'], to_s)
        end

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