Class ContainerPort
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
ContainerPort represents a network port in a single container.
Inheritance
System.Object
ContainerPort
Implements
Namespace: Google.Apis.CloudRun.v1.Data
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class ContainerPort : object, IDirectResponseSchema
Properties
ContainerPortValue
Declaration
public virtual Nullable<int> ContainerPortValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Name
(Optional)
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
Declaration
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Protocol
(Optional)
Cloud Run fully managed: not supported
Cloud Run for Anthos: supported
Protocol for port. Must be TCP. Defaults to "TCP".
Declaration
public virtual string Protocol { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |