GoogleCloudRunV2ResourceRequirements class

ResourceRequirements describes the compute resource requirements.

Constructors

GoogleCloudRunV2ResourceRequirements({Input<bool>? cpuIdle, Input<Map<String, String>>? limits, Input<bool>? startupCpuBoost})
Creates a new GoogleCloudRunV2ResourceRequirements. cpuIdle Determines whether CPU should be throttled or not outside of requests. limits Only ´memory´ and 'cpu' are supported. Notes: * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits startupCpuBoost Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.
const
GoogleCloudRunV2ResourceRequirements.fromMap(Map<String, dynamic> map)
factory

Properties

cpuIdle → Input<bool>?
Determines whether CPU should be throttled or not outside of requests.
final
hashCode → int
The hash code for this object.
no setterinherited
limits → Input<Map<String, String>>?
Only ´memory´ and 'cpu' are supported. Notes: * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startupCpuBoost → Input<bool>?
Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited