Cloud Run V2 API - Class Google::Cloud::Run::V2::ResourceRequirements (v0.7.0)

Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::ResourceRequirements.

ResourceRequirements describes the compute resource requirements.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cpu_idle

def cpu_idle() -> ::Boolean
Returns
  • (::Boolean) — Determines whether CPU should be throttled or not outside of requests.

#cpu_idle=

def cpu_idle=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Determines whether CPU should be throttled or not outside of requests.
Returns
  • (::Boolean) — Determines whether CPU should be throttled or not outside of requests.

#limits

def limits() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — 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

#limits=

def limits=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — 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
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — 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