Class: Google::Apis::BaremetalsolutionV2::InstanceQuota

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



559
560
561
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 559

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)


537
538
539
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 537

def available_machine_count
  @available_machine_count
end

#gcp_serviceString

The gcp service of the provisioning quota. Corresponds to the JSON property gcpService

Returns:

  • (String)


542
543
544
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 542

def gcp_service
  @gcp_service
end

#instance_typeString

Instance type. Deprecated: use gcp_service. Corresponds to the JSON property instanceType

Returns:

  • (String)


547
548
549
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 547

def instance_type
  @instance_type
end

#locationString

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

Returns:

  • (String)


552
553
554
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 552

def location
  @location
end

#nameString

Output only. The name of the instance quota. Corresponds to the JSON property name

Returns:

  • (String)


557
558
559
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 557

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



564
565
566
567
568
569
570
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 564

def update!(**args)
  @available_machine_count = args[:available_machine_count] if args.key?(:available_machine_count)
  @gcp_service = args[:gcp_service] if args.key?(:gcp_service)
  @instance_type = args[:instance_type] if args.key?(:instance_type)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
end