Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfig

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

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) ⇒ SecurityPolicyRuleMatcherConfig

Returns a new instance of SecurityPolicyRuleMatcherConfig



27217
27218
27219
# File 'generated/google/apis/compute_alpha/classes.rb', line 27217

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>)


27204
27205
27206
# File 'generated/google/apis/compute_alpha/classes.rb', line 27204

def dest_ip_ranges
  @dest_ip_ranges
end

#dest_portsArray<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



27210
27211
27212
# File 'generated/google/apis/compute_alpha/classes.rb', line 27210

def dest_ports
  @dest_ports
end

#src_ip_rangesArray<String>

CIDR IP address range. Corresponds to the JSON property srcIpRanges

Returns:

  • (Array<String>)


27215
27216
27217
# File 'generated/google/apis/compute_alpha/classes.rb', line 27215

def src_ip_ranges
  @src_ip_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27222
27223
27224
27225
27226
# File 'generated/google/apis/compute_alpha/classes.rb', line 27222

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)
  @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
end