Class: Google::Apis::BaremetalsolutionV2::InstanceQuota
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::InstanceQuota
- 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
-
#available_machine_count ⇒ Fixnum
Number of machines than can be created for the given location and instance_type.
-
#gcp_service ⇒ String
The gcp service of the provisioning quota.
-
#instance_type ⇒ String
Instance type.
-
#location ⇒ String
Location where the quota applies.
-
#name ⇒ String
Output only.
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.
607 608 609 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 607 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
585 586 587 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 585 def available_machine_count @available_machine_count end |
#gcp_service ⇒ String
The gcp service of the provisioning quota.
Corresponds to the JSON property gcpService
590 591 592 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 590 def gcp_service @gcp_service end |
#instance_type ⇒ String
Instance type. Deprecated: use gcp_service.
Corresponds to the JSON property instanceType
595 596 597 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 595 def instance_type @instance_type end |
#location ⇒ String
Location where the quota applies.
Corresponds to the JSON property location
600 601 602 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 600 def location @location end |
#name ⇒ String
Output only. The name of the instance quota.
Corresponds to the JSON property name
605 606 607 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 605 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
612 613 614 615 616 617 618 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 612 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 |