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 for different use cases, seeNetwork endpoint groups overview.
Note: Use the following APIs to manage network endpoint groups:
- To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API
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}) — Optional. Metadata defined as annotations on the network endpoint group.
#annotations=
def annotations=(value) -> ::Google::Protobuf::Map{::String => ::String}- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Metadata defined as annotations on the network endpoint group.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Metadata defined as annotations on the network endpoint group.
#app_engine
def app_engine() -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupAppEngine- (::Google::Cloud::Compute::V1::NetworkEndpointGroupAppEngine) — Optional. Only valid when networkEndpointType isSERVERLESS. 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) — Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupAppEngine) — Optional. Only valid when networkEndpointType isSERVERLESS. 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) — Optional. Only valid when networkEndpointType isSERVERLESS. 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) — Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudFunction) — Optional. Only valid when networkEndpointType isSERVERLESS. 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) — Optional. Only valid when networkEndpointType isSERVERLESS. 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) — Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupCloudRun) — Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
#creation_timestamp
def creation_timestamp() -> ::String- (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
#creation_timestamp=
def creation_timestamp=(value) -> ::String- value (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
- (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
#default_port
def default_port() -> ::Integer-
(::Integer) — The default port used if the port number is not specified in the network
endpoint.
Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
#default_port=
def default_port=(value) -> ::Integer-
value (::Integer) — The default port used if the port number is not specified in the network
endpoint.
Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
-
(::Integer) — The default port used if the port number is not specified in the network
endpoint.
Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
#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. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#id=
def id=(value) -> ::Integer- value (::Integer) — Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
- (::Integer) — Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#kind
def kind() -> ::String- (::String) — Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
#kind=
def kind=(value) -> ::String- value (::String) — Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
- (::String) — Output only. [Output Only] Type of the resource. Alwayscompute#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 withRFC1035.
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 withRFC1035.
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 withRFC1035.
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 ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. 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 ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. Check the NetworkEndpointType enum for the list of possible values.
- (::String) — Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. Check the NetworkEndpointType enum for the list of possible values.
#psc_data
def psc_data() -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupPscData- (::Google::Cloud::Compute::V1::NetworkEndpointGroupPscData) — Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
#psc_data=
def psc_data=(value) -> ::Google::Cloud::Compute::V1::NetworkEndpointGroupPscData- value (::Google::Cloud::Compute::V1::NetworkEndpointGroupPscData) — Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
- (::Google::Cloud::Compute::V1::NetworkEndpointGroupPscData) — Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
#psc_target_service
def psc_target_service() -> ::String-
(::String) — The target service url used to set up private service connection to
a Google API or a PSC Producer Service Attachment.
An example value is: asia-northeast3-cloudkms.googleapis.com.
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
#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 or a PSC Producer Service Attachment.
An example value is: asia-northeast3-cloudkms.googleapis.com.
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
-
(::String) — The target service url used to set up private service connection to
a Google API or a PSC Producer Service Attachment.
An example value is: asia-northeast3-cloudkms.googleapis.com.
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
#region
def region() -> ::String- (::String) — Output only. [Output Only] The URL of theregion where the network endpoint group is located.
#region=
def region=(value) -> ::String- value (::String) — Output only. [Output Only] The URL of theregion where the network endpoint group is located.
- (::String) — Output only. [Output Only] The URL of theregion where the network endpoint group is located.
#self_link
def self_link() -> ::String- (::String) — Output only. [Output Only] Server-defined URL for the resource.
#self_link=
def self_link=(value) -> ::String- value (::String) — Output only. [Output Only] Server-defined URL for the resource.
- (::String) — Output only. [Output Only] Server-defined URL for the resource.
#size
def size() -> ::Integer- (::Integer) — Output only. [Output only] Number of network endpoints in the network endpoint group.
#size=
def size=(value) -> ::Integer- value (::Integer) — Output only. [Output only] Number of network endpoints in the network endpoint group.
- (::Integer) — Output only. [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. [Output Only] The URL of thezone where the network endpoint group is located.
#zone=
def zone=(value) -> ::String- value (::String) — Output only. [Output Only] The URL of thezone where the network endpoint group is located.
- (::String) — Output only. [Output Only] The URL of thezone where the network endpoint group is located.