class Google::Apis::RunV2::GoogleCloudRunV2ResourceRequirements

ResourceRequirements describes the compute resource requirements.

Attributes

cpu_idle[RW]

Determines whether CPU should be throttled or not outside of requests. Corresponds to the JSON property ‘cpuIdle` @return [Boolean]

cpu_idle?[RW]

Determines whether CPU should be throttled or not outside of requests. Corresponds to the JSON property ‘cpuIdle` @return [Boolean]

limits[RW]

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: github.com/ kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/ resource/quantity.go Corresponds to the JSON property ‘limits` @return [Hash<String,String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v2/classes.rb, line 397
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v2/classes.rb, line 402
def update!(**args)
  @cpu_idle = args[:cpu_idle] if args.key?(:cpu_idle)
  @limits = args[:limits] if args.key?(:limits)
end