Cloud Run Admin v2 API - Class ResourceRequirements (2.0.0-beta03)

Stay organized with collections Save and categorize content based on your preferences.
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
Boolean

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
MapField<String, String>