Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::SecurityPolicyRuleNetworkMatcher (v2.10.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::SecurityPolicyRuleNetworkMatcher.

Represents a match condition that incoming network traffic is evaluated against.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dest_ip_ranges

def dest_ip_ranges() -> ::Array<::String>
Returns
  • (::Array<::String>) — Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

#dest_ip_ranges=

def dest_ip_ranges=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
Returns
  • (::Array<::String>) — Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

#dest_ports

def dest_ports() -> ::Array<::String>
Returns
  • (::Array<::String>) — Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

#dest_ports=

def dest_ports=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
Returns
  • (::Array<::String>) — Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

#ip_protocols

def ip_protocols() -> ::Array<::String>
Returns
  • (::Array<::String>) — IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".

#ip_protocols=

def ip_protocols=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
Returns
  • (::Array<::String>) — IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".

#src_asns

def src_asns() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — BGP Autonomous System Number associated with the source IP address.

#src_asns=

def src_asns=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — BGP Autonomous System Number associated with the source IP address.
Returns
  • (::Array<::Integer>) — BGP Autonomous System Number associated with the source IP address.

#src_ip_ranges

def src_ip_ranges() -> ::Array<::String>
Returns
  • (::Array<::String>) — Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

#src_ip_ranges=

def src_ip_ranges=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
Returns
  • (::Array<::String>) — Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

#src_ports

def src_ports() -> ::Array<::String>
Returns
  • (::Array<::String>) — Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

#src_ports=

def src_ports=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
Returns
  • (::Array<::String>) — Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

#src_region_codes

def src_region_codes() -> ::Array<::String>
Returns
  • (::Array<::String>) — Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.

#src_region_codes=

def src_region_codes=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
Returns
  • (::Array<::String>) — Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.

#user_defined_fields

def user_defined_fields() -> ::Array<::Google::Cloud::Compute::V1::SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>
Returns

#user_defined_fields=

def user_defined_fields=(value) -> ::Array<::Google::Cloud::Compute::V1::SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>
Parameter
Returns