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.
Implements
IMessageResourceRequirements, IEquatableResourceRequirements, IDeepCloneableResourceRequirements, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.RunV2Assembly
Google.Cloud.Run.V2.dll
Constructors
ResourceRequirements()
public ResourceRequirements()
ResourceRequirements(ResourceRequirements)
public ResourceRequirements(ResourceRequirements other)
Parameter | |
---|---|
Name | Description |
other | ResourceRequirements |
Properties
CpuIdle
public bool CpuIdle { get; set; }
Determines whether CPU should be throttled or not outside of requests.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
MapFieldstringstring |