public sealed class NamedPort : IMessage<NamedPort>, IEquatable<NamedPort>, IDeepCloneable<NamedPort>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class NamedPort.
The named port. For example: <"http", 80>.
Implements
IMessageNamedPort, IEquatableNamedPort, IDeepCloneableNamedPort, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
NamedPort()
public NamedPort()NamedPort(NamedPort)
public NamedPort(NamedPort other)| Parameter | |
|---|---|
| Name | Description |
other |
NamedPort |
Properties
HasName
public bool HasName { get; }Gets whether the "name" 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 |
|
Name
public string Name { get; set; }The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Port
public int Port { get; set; }The port number, which can be a value between 1 and 65535.
| Property Value | |
|---|---|
| Type | Description |
int |
|