Class: Google::Apis::GkehubV1::PolicyControllerResourceRequirements

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

Instance Method Summary collapse

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

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

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