Class: Google::Apis::GkehubV1alpha::PolicyControllerResourceRequirements

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/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.



5467
5468
5469
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5467

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

Instance Attribute Details

#limitsGoogle::Apis::GkehubV1alpha::PolicyControllerResourceList

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



5460
5461
5462
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5460

def limits
  @limits
end

#requestsGoogle::Apis::GkehubV1alpha::PolicyControllerResourceList

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



5465
5466
5467
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5465

def requests
  @requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5472
5473
5474
5475
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5472

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