Class: Google::Apis::GkehubV1::PolicyControllerResourceRequirements
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::PolicyControllerResourceRequirements
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/representations.rb
Overview
ResourceRequirements describes the compute resource requirements.
Instance Attribute Summary collapse
-
#limits ⇒ Google::Apis::GkehubV1::PolicyControllerResourceList
ResourceList contains container resource requirements.
-
#requests ⇒ Google::Apis::GkehubV1::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.
4961 4962 4963 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4961 def initialize(**args) update!(**args) end |
Instance Attribute Details
#limits ⇒ Google::Apis::GkehubV1::PolicyControllerResourceList
ResourceList contains container resource requirements.
Corresponds to the JSON property limits
4954 4955 4956 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4954 def limits @limits end |
#requests ⇒ Google::Apis::GkehubV1::PolicyControllerResourceList
ResourceList contains container resource requirements.
Corresponds to the JSON property requests
4959 4960 4961 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4959 def requests @requests end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4966 4967 4968 4969 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4966 def update!(**args) @limits = args[:limits] if args.key?(:limits) @requests = args[:requests] if args.key?(:requests) end |