Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::NetworkEndpointGroup.
Represents a collection of network endpoints. A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs, see Setting up external HTTP(S) Load Balancing with internet NEGs, Setting up zonal NEGs, or Setting up external HTTP(S) Load Balancing with serverless NEGs.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#annotations
def annotations() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Metadata defined as annotations on the network endpoint group.
#annotations=
def annotations=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Metadata defined as annotations on the network endpoint group.
- (::Google::Protobuf::Map{::String => ::String}) — Metadata defined as annotations on the network endpoint group.
#app_engine
def app_engine() -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupAppEngine
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupAppEngine) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
#app_engine=
def app_engine=(value) -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupAppEngine
- value (::Google::Cloud::Compute::V1::NetworkEndpointGroupAppEngine) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupAppEngine) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
#cloud_function
def cloud_function() -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudFunction
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudFunction) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
#cloud_function=
def cloud_function=(value) -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudFunction
- value (::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudFunction) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudFunction) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
#cloud_run
def cloud_run() -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudRun
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudRun) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
#cloud_run=
def cloud_run=(value) -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudRun
- value (::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudRun) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudRun) — Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
#creation_timestamp
def creation_timestamp() -> ::String
- (::String) — [Output Only] Creation timestamp in RFC3339 text format.
#creation_timestamp=
def creation_timestamp=(value) -> ::String
- value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
- (::String) — [Output Only] Creation timestamp in RFC3339 text format.
#default_port
def default_port() -> ::Integer
- (::Integer) — The default port used if the port number is not specified in the network endpoint.
#default_port=
def default_port=(value) -> ::Integer
- value (::Integer) — The default port used if the port number is not specified in the network endpoint.
- (::Integer) — The default port used if the port number is not specified in the network endpoint.
#description
def description() -> ::String
- (::String) — An optional description of this resource. Provide this property when you create the resource.
#description=
def description=(value) -> ::String
- value (::String) — An optional description of this resource. Provide this property when you create the resource.
- (::String) — An optional description of this resource. Provide this property when you create the resource.
#id
def id() -> ::Integer
- (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#id=
def id=(value) -> ::Integer
- value (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
- (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#kind
def kind() -> ::String
- (::String) — [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
#kind=
def kind=(value) -> ::String
- value (::String) — [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
- (::String) — [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
#name
def name() -> ::String
-
(::String) — Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#name=
def name=(value) -> ::String
-
value (::String) — Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
-
(::String) — Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#network
def network() -> ::String
- (::String) — The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.
#network=
def network=(value) -> ::String
- value (::String) — The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.
- (::String) — The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.
#network_endpoint_type
def network_endpoint_type() -> ::String
- (::String) — Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT. Check the NetworkEndpointType enum for the list of possible values.
#network_endpoint_type=
def network_endpoint_type=(value) -> ::String
- value (::String) — Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT. Check the NetworkEndpointType enum for the list of possible values.
- (::String) — Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT. Check the NetworkEndpointType enum for the list of possible values.
#psc_target_service
def psc_target_service() -> ::String
- (::String) — The target service url used to set up private service connection to a Google API. An example value is: "asia-northeast3-cloudkms.googleapis.com"
#psc_target_service=
def psc_target_service=(value) -> ::String
- value (::String) — The target service url used to set up private service connection to a Google API. An example value is: "asia-northeast3-cloudkms.googleapis.com"
- (::String) — The target service url used to set up private service connection to a Google API. An example value is: "asia-northeast3-cloudkms.googleapis.com"
#region
def region() -> ::String
- (::String) — [Output Only] The URL of the region where the network endpoint group is located.
#region=
def region=(value) -> ::String
- value (::String) — [Output Only] The URL of the region where the network endpoint group is located.
- (::String) — [Output Only] The URL of the region where the network endpoint group is located.
#self_link
def self_link() -> ::String
- (::String) — [Output Only] Server-defined URL for the resource.
#self_link=
def self_link=(value) -> ::String
- value (::String) — [Output Only] Server-defined URL for the resource.
- (::String) — [Output Only] Server-defined URL for the resource.
#size
def size() -> ::Integer
- (::Integer) — [Output only] Number of network endpoints in the network endpoint group.
#size=
def size=(value) -> ::Integer
- value (::Integer) — [Output only] Number of network endpoints in the network endpoint group.
- (::Integer) — [Output only] Number of network endpoints in the network endpoint group.
#subnetwork
def subnetwork() -> ::String
- (::String) — Optional URL of the subnetwork to which all network endpoints in the NEG belong.
#subnetwork=
def subnetwork=(value) -> ::String
- value (::String) — Optional URL of the subnetwork to which all network endpoints in the NEG belong.
- (::String) — Optional URL of the subnetwork to which all network endpoints in the NEG belong.
#zone
def zone() -> ::String
- (::String) — [Output Only] The URL of the zone where the network endpoint group is located.
#zone=
def zone=(value) -> ::String
- value (::String) — [Output Only] The URL of the zone where the network endpoint group is located.
- (::String) — [Output Only] The URL of the zone where the network endpoint group is located.