Class: Google::Apis::GkehubV1alpha::PolicyControllerResourceRequirements
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::PolicyControllerResourceRequirements
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb
Overview
ResourceRequirements describes the compute resource requirements.
Instance Attribute Summary collapse
-
#limits ⇒ Google::Apis::GkehubV1alpha::PolicyControllerResourceList
ResourceList contains container resource requirements.
-
#requests ⇒ Google::Apis::GkehubV1alpha::PolicyControllerResourceList
ResourceList contains container resource requirements.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyControllerResourceRequirements
constructor
A new instance of PolicyControllerResourceRequirements.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyControllerResourceRequirements
Returns a new instance of PolicyControllerResourceRequirements.
5467 5468 5469 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5467 def initialize(**args) update!(**args) end |
Instance Attribute Details
#limits ⇒ Google::Apis::GkehubV1alpha::PolicyControllerResourceList
ResourceList contains container resource requirements.
Corresponds to the JSON property limits
5460 5461 5462 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5460 def limits @limits end |
#requests ⇒ Google::Apis::GkehubV1alpha::PolicyControllerResourceList
ResourceList contains container resource requirements.
Corresponds to the JSON property requests
5465 5466 5467 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5465 def requests @requests end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5472 5473 5474 5475 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5472 def update!(**args) @limits = args[:limits] if args.key?(:limits) @requests = args[:requests] if args.key?(:requests) end |