public sealed class NetworkEndpoint : IMessage<NetworkEndpoint>, IEquatable<NetworkEndpoint>, IDeepCloneable<NetworkEndpoint>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class NetworkEndpoint.
The network endpoint.
Implements
IMessageNetworkEndpoint, IEquatableNetworkEndpoint, IDeepCloneableNetworkEndpoint, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.ComputeV1Assembly
Google.Cloud.Compute.V1.dll
Constructors
NetworkEndpoint()
public NetworkEndpoint()
NetworkEndpoint(NetworkEndpoint)
public NetworkEndpoint(NetworkEndpoint other)
Parameter | |
---|---|
Name | Description |
other | NetworkEndpoint |
Properties
Annotations
public MapField<string, string> Annotations { get; }
Metadata defined as annotations on the network endpoint.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
Fqdn
public string Fqdn { get; set; }
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
Property Value | |
---|---|
Type | Description |
string |
HasFqdn
public bool HasFqdn { get; }
Gets whether the "fqdn" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasInstance
public bool HasInstance { get; }
Gets whether the "instance" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasIpAddress
public bool HasIpAddress { get; }
Gets whether the "ip_address" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasPort
public bool HasPort { get; }
Gets whether the "port" field is set
Property Value | |
---|---|
Type | Description |
bool |
Instance
public string Instance { get; set; }
The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035.
Property Value | |
---|---|
Type | Description |
string |
IpAddress
public string IpAddress { get; set; }
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
Property Value | |
---|---|
Type | Description |
string |
Port
public int Port { get; set; }
Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used.
Property Value | |
---|---|
Type | Description |
int |