public sealed class ResourceRequirements : IMessage<ResourceRequirements>, IEquatable<ResourceRequirements>, IDeepCloneable<ResourceRequirements>, IBufferMessage, IMessage
ResourceRequirements describes the compute resource requirements.
Implements
IMessage<ResourceRequirements>, IEquatable<ResourceRequirements>, IDeepCloneable<ResourceRequirements>, IBufferMessage, IMessageNamespace
Google.Cloud.Run.V2Assembly
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 |
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 | |
---|---|
Type | Description |
MapField<String, String> |