# 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_rules_match_config'
require 'google/compute/property/regionsecuritypolicy_rules_match_config_dest_ports'
require 'google/compute/property/regionsecuritypolicy_rules_match_config_layer4_configs'
require 'google/compute/property/regionsecuritypolicy_rules_match_expr'
require 'google/compute/property/regionsecuritypolicy_rules_match_expr_options'
require 'google/compute/property/regionsecuritypolicy_rules_match_expr_options_recaptcha_options'
module GoogleInSpec
  module Compute
    module Property
      class RegionSecurityPolicyRulesMatch
        attr_reader :expr

        attr_reader :expr_options

        attr_reader :versioned_expr

        attr_reader :config

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @expr = GoogleInSpec::Compute::Property::RegionSecurityPolicyRulesMatchExpr.new(args['expr'], to_s)
          @expr_options = GoogleInSpec::Compute::Property::RegionSecurityPolicyRulesMatchExprOptions.new(args['exprOptions'], to_s)
          @versioned_expr = args['versionedExpr']
          @config = GoogleInSpec::Compute::Property::RegionSecurityPolicyRulesMatchConfig.new(args['config'], to_s)
        end

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