Class GoogleCloudRunV2Container
A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments can be supplied by the system to the container at runtime.
Implements
Inherited Members
Namespace: Google.Apis.CloudRun.v2.Data
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class GoogleCloudRunV2Container : IDirectResponseSchema
Properties
Args
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
Declaration
[JsonProperty("args")]
public virtual IList<string> Args { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Command
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
Declaration
[JsonProperty("command")]
public virtual IList<string> Command { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
DependsOn
Names of the containers that must start before this container.
Declaration
[JsonProperty("dependsOn")]
public virtual IList<string> DependsOn { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Env
List of environment variables to set in the container.
Declaration
[JsonProperty("env")]
public virtual IList<GoogleCloudRunV2EnvVar> Env { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudRunV2EnvVar> |
Image
Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed.
Declaration
[JsonProperty("image")]
public virtual string Image { get; set; }
Property Value
Type | Description |
---|---|
string |
LivenessProbe
Periodic probe of container liveness. Container will be restarted if the probe fails.
Declaration
[JsonProperty("livenessProbe")]
public virtual GoogleCloudRunV2Probe LivenessProbe { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRunV2Probe |
Name
Name of the container specified as a DNS_LABEL (RFC 1123).
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Ports
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
Declaration
[JsonProperty("ports")]
public virtual IList<GoogleCloudRunV2ContainerPort> Ports { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudRunV2ContainerPort> |
Resources
Compute Resource requirements by this container.
Declaration
[JsonProperty("resources")]
public virtual GoogleCloudRunV2ResourceRequirements Resources { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRunV2ResourceRequirements |
StartupProbe
Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails.
Declaration
[JsonProperty("startupProbe")]
public virtual GoogleCloudRunV2Probe StartupProbe { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRunV2Probe |
VolumeMounts
Volume to mount into the container's filesystem.
Declaration
[JsonProperty("volumeMounts")]
public virtual IList<GoogleCloudRunV2VolumeMount> VolumeMounts { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudRunV2VolumeMount> |
WorkingDir
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
Declaration
[JsonProperty("workingDir")]
public virtual string WorkingDir { get; set; }
Property Value
Type | Description |
---|---|
string |