# 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/compute/property/regionsecuritypolicy_advanced_options_config_json_custom_config'
module GoogleInSpec
  module Compute
    module Property
      class RegionSecurityPolicyAdvancedOptionsConfig
        attr_reader :json_parsing

        attr_reader :json_custom_config

        attr_reader :log_level

        attr_reader :user_ip_request_headers

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @json_parsing = args['jsonParsing']
          @json_custom_config = GoogleInSpec::Compute::Property::RegionSecurityPolicyAdvancedOptionsConfigJsonCustomConfig.new(args['jsonCustomConfig'], to_s)
          @log_level = args['logLevel']
          @user_ip_request_headers = args['userIpRequestHeaders']
        end

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