Class: Google::Apis::GkehubV2::PolicyControllerResourceRequirements

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb

Overview

ResourceRequirements describes the compute resource requirements.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerResourceRequirements

Returns a new instance of PolicyControllerResourceRequirements.



2902
2903
2904
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2902

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#limitsGoogle::Apis::GkehubV2::PolicyControllerResourceList

ResourceList contains container resource requirements. Corresponds to the JSON property limits



2895
2896
2897
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2895

def limits
  @limits
end

#requestsGoogle::Apis::GkehubV2::PolicyControllerResourceList

ResourceList contains container resource requirements. Corresponds to the JSON property requests



2900
2901
2902
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2900

def requests
  @requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2907
2908
2909
2910
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2907

def update!(**args)
  @limits = args[:limits] if args.key?(:limits)
  @requests = args[:requests] if args.key?(:requests)
end