Class: Google::Apis::BaremetalsolutionV1alpha1::InstanceQuota

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceQuota

Returns a new instance of InstanceQuota.



229
230
231
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 229

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

Instance Attribute Details

#available_machine_countFixnum

Number of machines than can be created for the given location and instance_type. Corresponds to the JSON property availableMachineCount

Returns:

  • (Fixnum)


217
218
219
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 217

def available_machine_count
  @available_machine_count
end

#instance_typeString

Instance type. Corresponds to the JSON property instanceType

Returns:

  • (String)


222
223
224
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 222

def instance_type
  @instance_type
end

#locationString

Location where the quota applies. Corresponds to the JSON property location

Returns:

  • (String)


227
228
229
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 227

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



234
235
236
237
238
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 234

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