Class ResourceRequirements (1.0.0-beta02)

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

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
Boolean

Limits

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

Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. 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
MapField<String, String>