Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#dest_ip_ranges ⇒ Array<String>
CIDR IP address range.
-
#dest_ports ⇒ Array<Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigDestinationPort>
Pairs of IP protocols and ports that the rule should match.
-
#layer4_configs ⇒ Array<Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigLayer4Config>
Pairs of IP protocols and ports that the rule should match.
-
#src_ip_ranges ⇒ Array<String>
CIDR IP address range.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityPolicyRuleMatcherConfig
constructor
A new instance of SecurityPolicyRuleMatcherConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityPolicyRuleMatcherConfig
Returns a new instance of SecurityPolicyRuleMatcherConfig.
41513 41514 41515 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41513 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dest_ip_ranges ⇒ Array<String>
CIDR IP address range. This field may only be specified when versioned_expr is
set to FIREWALL.
Corresponds to the JSON property destIpRanges
41494 41495 41496 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41494 def dest_ip_ranges @dest_ip_ranges end |
#dest_ports ⇒ Array<Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigDestinationPort>
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 destPorts
41500 41501 41502 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41500 def dest_ports @dest_ports end |
#layer4_configs ⇒ Array<Google::Apis::ComputeAlpha::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
41506 41507 41508 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41506 def layer4_configs @layer4_configs end |
#src_ip_ranges ⇒ Array<String>
CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
Corresponds to the JSON property srcIpRanges
41511 41512 41513 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41511 def src_ip_ranges @src_ip_ranges end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
41518 41519 41520 41521 41522 41523 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41518 def update!(**args) @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges) @dest_ports = args[:dest_ports] if args.key?(:dest_ports) @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs) @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges) end |