Class: Google::Apis::RunV1alpha1::ResourceRequirements
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ResourceRequirements
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
ResourceRequirements describes the compute resource requirements.
Instance Attribute Summary collapse
-
#limits ⇒ Hash<String,String>
Limits describes the maximum amount of compute resources allowed.
-
#limits_in_map ⇒ Hash<String,Google::Apis::RunV1alpha1::Quantity>
Limits describes the maximum amount of compute resources allowed.
-
#requests ⇒ Hash<String,String>
Requests describes the minimum amount of compute resources required.
-
#requests_in_map ⇒ Hash<String,Google::Apis::RunV1alpha1::Quantity>
Requests describes the minimum amount of compute resources required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceRequirements
constructor
A new instance of ResourceRequirements.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ResourceRequirements
Returns a new instance of ResourceRequirements.
3197 3198 3199 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#limits ⇒ Hash<String,String>
Limits describes the maximum amount of compute resources allowed.
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
Corresponds to the JSON property limits
3165 3166 3167 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3165 def limits @limits end |
#limits_in_map ⇒ Hash<String,Google::Apis::RunV1alpha1::Quantity>
Limits describes the maximum amount of compute resources allowed.
This is a temporary field created to migrate away from the
maplimitsInMap
3174 3175 3176 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3174 def limits_in_map @limits_in_map end |
#requests ⇒ Hash<String,String>
Requests describes the minimum amount of compute resources required.
If Requests is omitted for a container, it defaults to Limits if that is
explicitly specified, otherwise to an implementation-defined value.
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
Corresponds to the JSON property requests
3184 3185 3186 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3184 def requests @requests end |
#requests_in_map ⇒ Hash<String,Google::Apis::RunV1alpha1::Quantity>
Requests describes the minimum amount of compute resources required.
If Requests is omitted for a container, it defaults to Limits if that is
explicitly specified, otherwise to an implementation-defined value.
This is a temporary field created to migrate away from the
maprequestsInMap
3195 3196 3197 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3195 def requests_in_map @requests_in_map end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3202 3203 3204 3205 3206 3207 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3202 def update!(**args) @limits = args[:limits] if args.key?(:limits) @limits_in_map = args[:limits_in_map] if args.key?(:limits_in_map) @requests = args[:requests] if args.key?(:requests) @requests_in_map = args[:requests_in_map] if args.key?(:requests_in_map) end |