Class: Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleMatcherConfig

Returns a new instance of SecurityPolicyRuleMatcherConfig.



29678
29679
29680
# File 'generated/google/apis/compute_beta/classes.rb', line 29678

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dest_ip_rangesArray<String>

CIDR IP address range. This field may only be specified when versioned_expr is set to FIREWALL. Corresponds to the JSON property destIpRanges

Returns:

  • (Array<String>)


29665
29666
29667
# File 'generated/google/apis/compute_beta/classes.rb', line 29665

def dest_ip_ranges
  @dest_ip_ranges
end

#layer4_configsArray<Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfigLayer4Config>

Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL. Corresponds to the JSON property layer4Configs



29671
29672
29673
# File 'generated/google/apis/compute_beta/classes.rb', line 29671

def layer4_configs
  @layer4_configs
end

#src_ip_rangesArray<String>

CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. Corresponds to the JSON property srcIpRanges

Returns:

  • (Array<String>)


29676
29677
29678
# File 'generated/google/apis/compute_beta/classes.rb', line 29676

def src_ip_ranges
  @src_ip_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29683
29684
29685
29686
29687
# File 'generated/google/apis/compute_beta/classes.rb', line 29683

def update!(**args)
  @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges)
  @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs)
  @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
end