Class: Google::Apis::GkehubV2alpha::PolicyControllerResourceRequirements
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2alpha::PolicyControllerResourceRequirements
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2alpha/classes.rb,
lib/google/apis/gkehub_v2alpha/representations.rb,
lib/google/apis/gkehub_v2alpha/representations.rb
Overview
ResourceRequirements describes the compute resource requirements.
Instance Attribute Summary collapse
-
#limits ⇒ Google::Apis::GkehubV2alpha::PolicyControllerResourceList
ResourceList contains container resource requirements.
-
#requests ⇒ Google::Apis::GkehubV2alpha::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.
2864 2865 2866 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2864 def initialize(**args) update!(**args) end |
Instance Attribute Details
#limits ⇒ Google::Apis::GkehubV2alpha::PolicyControllerResourceList
ResourceList contains container resource requirements.
Corresponds to the JSON property limits
2857 2858 2859 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2857 def limits @limits end |
#requests ⇒ Google::Apis::GkehubV2alpha::PolicyControllerResourceList
ResourceList contains container resource requirements.
Corresponds to the JSON property requests
2862 2863 2864 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2862 def requests @requests end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2869 2870 2871 2872 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2869 def update!(**args) @limits = args[:limits] if args.key?(:limits) @requests = args[:requests] if args.key?(:requests) end |