Cloud Run Admin v2 API - Class ResourceRequirements (2.4.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 should be throttled or not outside of requests.

Property Value
TypeDescription
bool

Limits

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

Only ´memory´ and 'cpu' 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