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.
5443 5444 5445 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5443 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
5436 5437 5438 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5436 def limits @limits end |
#requests ⇒ Google::Apis::GkehubV1alpha::PolicyControllerResourceList
ResourceList contains container resource requirements.
Corresponds to the JSON property requests
5441 5442 5443 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5441 def requests @requests end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5448 5449 5450 5451 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5448 def update!(**args) @limits = args[:limits] if args.key?(:limits) @requests = args[:requests] if args.key?(:requests) end |