Class: Google::Apis::GkehubV2alpha::PolicyControllerResourceRequirements

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#limitsGoogle::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

#requestsGoogle::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