Google Cloud VMware Engine V1 API - Class Google::Cloud::VmwareEngine::V1::ExternalAccessRule (v0.7.1)

Reference documentation and code samples for the Google Cloud VMware Engine V1 API class Google::Cloud::VmwareEngine::V1::ExternalAccessRule.

External access firewall rules for filtering incoming traffic destined to ExternalAddress resources.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#action

def action() -> ::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::Action
Returns

#action=

def action=(value) -> ::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::Action
Parameter
Returns

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#description

def description() -> ::String
Returns
  • (::String) — User-provided description for this external access rule.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — User-provided description for this external access rule.
Returns
  • (::String) — User-provided description for this external access rule.

#destination_ip_ranges

def destination_ip_ranges() -> ::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>
Returns
  • (::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>) — If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

#destination_ip_ranges=

def destination_ip_ranges=(value) -> ::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>
Parameter
  • value (::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>) — If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.
Returns
  • (::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>) — If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

#destination_ports

def destination_ports() -> ::Array<::String>
Returns
  • (::Array<::String>) — A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

#destination_ports=

def destination_ports=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].
Returns
  • (::Array<::String>) — A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

#ip_protocol

def ip_protocol() -> ::String
Returns
  • (::String) — The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): tcp, udp, or icmp.

#ip_protocol=

def ip_protocol=(value) -> ::String
Parameter
  • value (::String) — The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): tcp, udp, or icmp.
Returns
  • (::String) — The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): tcp, udp, or icmp.

#name

def name() -> ::String
Returns
  • (::String) — Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule

#priority

def priority() -> ::Integer
Returns
  • (::Integer) — External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority 100 has higher precedence than a rule with priority 101.

#priority=

def priority=(value) -> ::Integer
Parameter
  • value (::Integer) — External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority 100 has higher precedence than a rule with priority 101.
Returns
  • (::Integer) — External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority 100 has higher precedence than a rule with priority 101.

#source_ip_ranges

def source_ip_ranges() -> ::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>
Returns
  • (::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>) — If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

#source_ip_ranges=

def source_ip_ranges=(value) -> ::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>
Parameter
  • value (::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>) — If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.
Returns
  • (::Array<::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::IpRange>) — If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

#source_ports

def source_ports() -> ::Array<::String>
Returns
  • (::Array<::String>) — A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

#source_ports=

def source_ports=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].
Returns
  • (::Array<::String>) — A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

#state

def state() -> ::Google::Cloud::VmwareEngine::V1::ExternalAccessRule::State
Returns

#uid

def uid() -> ::String
Returns
  • (::String) — Output only. System-generated unique identifier for the resource.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns