# 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/networkfirewallpolicy_rules_match_layer4_configs'
require 'google/compute/property/networkfirewallpolicy_rules_match_src_secure_tags'
module GoogleInSpec
  module Compute
    module Property
      class NetworkFirewallPolicyRulesMatch
        attr_reader :src_ip_ranges

        attr_reader :dest_ip_ranges

        attr_reader :layer4_configs

        attr_reader :src_secure_tags

        attr_reader :dest_address_groups

        attr_reader :src_address_groups

        attr_reader :src_fqdns

        attr_reader :dest_fqdns

        attr_reader :src_region_codes

        attr_reader :dest_region_codes

        attr_reader :dest_threat_intelligences

        attr_reader :src_threat_intelligences

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @src_ip_ranges = args['srcIpRanges']
          @dest_ip_ranges = args['destIpRanges']
          @layer4_configs = GoogleInSpec::Compute::Property::NetworkFirewallPolicyRulesMatchLayer4ConfigsArray.parse(args['layer4Configs'], to_s)
          @src_secure_tags = GoogleInSpec::Compute::Property::NetworkFirewallPolicyRulesMatchSrcSecureTagsArray.parse(args['srcSecureTags'], to_s)
          @dest_address_groups = args['destAddressGroups']
          @src_address_groups = args['srcAddressGroups']
          @src_fqdns = args['srcFqdns']
          @dest_fqdns = args['destFqdns']
          @src_region_codes = args['srcRegionCodes']
          @dest_region_codes = args['destRegionCodes']
          @dest_threat_intelligences = args['destThreatIntelligences']
          @src_threat_intelligences = args['srcThreatIntelligences']
        end

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