Compute Engine v1 API - Class NetworkEndpointGroup (2.2.0)

public sealed class NetworkEndpointGroup : IMessage<NetworkEndpointGroup>, IEquatable<NetworkEndpointGroup>, IDeepCloneable<NetworkEndpointGroup>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class 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.

Inheritance

Object > NetworkEndpointGroup

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

NetworkEndpointGroup()

public NetworkEndpointGroup()

NetworkEndpointGroup(NetworkEndpointGroup)

public NetworkEndpointGroup(NetworkEndpointGroup other)
Parameter
NameDescription
otherNetworkEndpointGroup

Properties

Annotations

public MapField<string, string> Annotations { get; }

Metadata defined as annotations on the network endpoint group.

Property Value
TypeDescription
MapField<String, String>

AppEngine

public NetworkEndpointGroupAppEngine AppEngine { get; set; }

Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.

Property Value
TypeDescription
NetworkEndpointGroupAppEngine

CloudFunction

public NetworkEndpointGroupCloudFunction CloudFunction { get; set; }

Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.

Property Value
TypeDescription
NetworkEndpointGroupCloudFunction

CloudRun

public NetworkEndpointGroupCloudRun CloudRun { get; set; }

Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.

Property Value
TypeDescription
NetworkEndpointGroupCloudRun

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] Creation timestamp in RFC3339 text format.

Property Value
TypeDescription
String

DefaultPort

public int DefaultPort { get; set; }

The default port used if the port number is not specified in the network endpoint.

Property Value
TypeDescription
Int32

Description

public string Description { get; set; }

An optional description of this resource. Provide this property when you create the resource.

Property Value
TypeDescription
String

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
Boolean

HasDefaultPort

public bool HasDefaultPort { get; }

Gets whether the "default_port" field is set

Property Value
TypeDescription
Boolean

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
Boolean

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasNetwork

public bool HasNetwork { get; }

Gets whether the "network" field is set

Property Value
TypeDescription
Boolean

HasNetworkEndpointType

public bool HasNetworkEndpointType { get; }

Gets whether the "network_endpoint_type" field is set

Property Value
TypeDescription
Boolean

HasPscTargetService

public bool HasPscTargetService { get; }

Gets whether the "psc_target_service" field is set

Property Value
TypeDescription
Boolean

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
TypeDescription
Boolean
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
Boolean

HasSize

public bool HasSize { get; }

Gets whether the "size" field is set

Property Value
TypeDescription
Boolean

HasSubnetwork

public bool HasSubnetwork { get; }

Gets whether the "subnetwork" field is set

Property Value
TypeDescription
Boolean

HasZone

public bool HasZone { get; }

Gets whether the "zone" field is set

Property Value
TypeDescription
Boolean

Id

public ulong Id { get; set; }

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Property Value
TypeDescription
UInt64

Kind

public string Kind { get; set; }

[Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.

Property Value
TypeDescription
String

Name

public string Name { get; set; }

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.

Property Value
TypeDescription
String

Network

public string Network { get; set; }

The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

Property Value
TypeDescription
String

NetworkEndpointType

public string NetworkEndpointType { get; set; }

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.

Property Value
TypeDescription
String

PscTargetService

public string PscTargetService { get; set; }

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"

Property Value
TypeDescription
String

Region

public string Region { get; set; }

[Output Only] The URL of the region where the network endpoint group is located.

Property Value
TypeDescription
String
public string SelfLink { get; set; }

[Output Only] Server-defined URL for the resource.

Property Value
TypeDescription
String

Size

public int Size { get; set; }

[Output only] Number of network endpoints in the network endpoint group.

Property Value
TypeDescription
Int32

Subnetwork

public string Subnetwork { get; set; }

Optional URL of the subnetwork to which all network endpoints in the NEG belong.

Property Value
TypeDescription
String

Zone

public string Zone { get; set; }

[Output Only] The URL of the zone where the network endpoint group is located.

Property Value
TypeDescription
String