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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleMatcherConfig

Returns a new instance of SecurityPolicyRuleMatcherConfig.



38639
38640
38641
# File 'lib/google/apis/compute_alpha/classes.rb', line 38639

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


38620
38621
38622
# File 'lib/google/apis/compute_alpha/classes.rb', line 38620

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



38626
38627
38628
# File 'lib/google/apis/compute_alpha/classes.rb', line 38626

def dest_ports
  @dest_ports
end

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



38632
38633
38634
# File 'lib/google/apis/compute_alpha/classes.rb', line 38632

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


38637
38638
38639
# File 'lib/google/apis/compute_alpha/classes.rb', line 38637

def src_ip_ranges
  @src_ip_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38644
38645
38646
38647
38648
38649
# File 'lib/google/apis/compute_alpha/classes.rb', line 38644

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