public sealed class ContainerPort : IMessage<ContainerPort>, IEquatable<ContainerPort>, IDeepCloneable<ContainerPort>, IBufferMessage, IMessageReference documentation and code samples for the Cloud Run Admin v2 API class ContainerPort.
ContainerPort represents a network port in a single container.
Implements
IMessageContainerPort, IEquatableContainerPort, IDeepCloneableContainerPort, IBufferMessage, IMessageNamespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Constructors
ContainerPort()
public ContainerPort()ContainerPort(ContainerPort)
public ContainerPort(ContainerPort other)| Parameter | |
|---|---|
| Name | Description |
other |
ContainerPort |
Properties
ContainerPort_
public int ContainerPort_ { get; set; }Port number the container listens on. This must be a valid TCP port number, 0 < container_port < 65536.
| Property Value | |
|---|---|
| Type | Description |
int |
|
Name
public string Name { get; set; }If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
| Property Value | |
|---|---|
| Type | Description |
string |
|