Class: Google::Apis::BaremetalsolutionV1alpha1::InstanceQuota
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::InstanceQuota
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
A resource budget.
Instance Attribute Summary collapse
-
#available_machine_count ⇒ Fixnum
Number of machines than can be created for the given location and instance_type.
-
#instance_type ⇒ String
Instance type.
-
#location ⇒ String
Location where the quota applies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceQuota
constructor
A new instance of InstanceQuota.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceQuota
Returns a new instance of InstanceQuota.
109 110 111 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 109 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available_machine_count ⇒ Fixnum
Number of machines than can be created for the given location and
instance_type.
Corresponds to the JSON property availableMachineCount
97 98 99 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 97 def available_machine_count @available_machine_count end |
#instance_type ⇒ String
Instance type.
Corresponds to the JSON property instanceType
102 103 104 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 102 def instance_type @instance_type end |
#location ⇒ String
Location where the quota applies.
Corresponds to the JSON property location
107 108 109 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 107 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
114 115 116 117 118 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 114 def update!(**args) @available_machine_count = args[:available_machine_count] if args.key?(:available_machine_count) @instance_type = args[:instance_type] if args.key?(:instance_type) @location = args[:location] if args.key?(:location) end |