Cloud Run Admin v2 API - Class ResourceRequirements (2.0.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

GoogleCloudGoogle.Cloud.RunV2

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. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

Property Value
TypeDescription
MapFieldstringstring