# 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 DLP
    module Property
      class DTConfigInfoTypeTfTfPrimitiveTfCharacterMaskConfigCharactersToIgnore
        attr_reader :characters_to_skip

        attr_reader :common_characters_to_ignore

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @characters_to_skip = args['charactersToSkip']
          @common_characters_to_ignore = args['commonCharactersToIgnore']
        end

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

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