Cloud Run Admin v2 API - Class ResourceRequirements (2.6.0)

public sealed class ResourceRequirements : IMessage<ResourceRequirements>, IEquatable<ResourceRequirements>, IDeepCloneable<ResourceRequirements>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Run Admin v2 API class ResourceRequirements.

ResourceRequirements describes the compute resource requirements.

Inheritance

object > ResourceRequirements

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

ResourceRequirements()

public ResourceRequirements()

ResourceRequirements(ResourceRequirements)

public ResourceRequirements(ResourceRequirements other)
Parameter
NameDescription
otherResourceRequirements

Properties

CpuIdle

public bool CpuIdle { get; set; }

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.

Property Value
TypeDescription
bool

Limits

public MapField<string, string> Limits { get; }

Only memory and cpu keys in the map are supported.

<p>Notes:

Property Value
TypeDescription
MapFieldstringstring

StartupCpuBoost

public bool StartupCpuBoost { get; set; }

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.

Property Value
TypeDescription
bool