Class GoogleCloudRunV2ResourceRequirements
ResourceRequirements describes the compute resource requirements.
Implements
Inherited Members
Namespace: Google.Apis.CloudRun.v2.Data
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class GoogleCloudRunV2ResourceRequirements : IDirectResponseSchema
Properties
CpuIdle
Determines whether CPU is only allocated during requests (true by default). However, if ResourceRequirements is set, the caller must explicitly set this field to true to preserve the default behavior.
Declaration
[JsonProperty("cpuIdle")]
public virtual bool? CpuIdle { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Limits
Only memory and cpu keys in the map are supported. Notes: * The only supported values for CPU are '1',
'2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to
https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to
https://cloud.google.com/run/docs/configuring/memory-limits
Declaration
[JsonProperty("limits")]
public virtual IDictionary<string, string> Limits { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, string> |
StartupCpuBoost
Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.
Declaration
[JsonProperty("startupCpuBoost")]
public virtual bool? StartupCpuBoost { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |