Class: Google::Apis::ComputeBeta::SecurityPolicyRuleMatcher

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

Overview

Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleMatcher

Returns a new instance of SecurityPolicyRuleMatcher



15482
15483
15484
# File 'generated/google/apis/compute_beta/classes.rb', line 15482

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

Instance Attribute Details

#src_ip_rangesArray<String>

CIDR IP address range. Only IPv4 is supported. Corresponds to the JSON property srcIpRanges

Returns:

  • (Array<String>)


15480
15481
15482
# File 'generated/google/apis/compute_beta/classes.rb', line 15480

def src_ip_ranges
  @src_ip_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15487
15488
15489
# File 'generated/google/apis/compute_beta/classes.rb', line 15487

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