Class ContainerPort
ContainerPort represents a network port in a single container.
Implements
Inherited Members
Namespace: Google.Apis.CloudRun.v1.Data
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class ContainerPort : IDirectResponseSchema
Properties
ContainerPortValue
Port number the container listens on. If present, this must be a valid port number, 0 < x < 65536. If not present, it will default to port 8080. For more information, see https://cloud.google.com/run/docs/container-contract#port
Declaration
[JsonProperty("containerPort")]
public virtual int? ContainerPortValue { get; set; }
Property Value
Type | Description |
---|---|
int? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Protocol
Protocol for port. Must be "TCP". Defaults to "TCP".
Declaration
[JsonProperty("protocol")]
public virtual string Protocol { get; set; }
Property Value
Type | Description |
---|---|
string |