Class: Google::Apis::ComputeAlpha::AllocationResourceStatusSpecificSkuAllocation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AllocationResourceStatusSpecificSkuAllocation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Contains Properties set for the reservation.
Instance Attribute Summary collapse
-
#source_instance_template_id ⇒ String
ID of the instance template used to populate reservation properties.
-
#utilizations ⇒ Hash<String,Fixnum>
Per service utilization breakdown.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationResourceStatusSpecificSkuAllocation
constructor
A new instance of AllocationResourceStatusSpecificSkuAllocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllocationResourceStatusSpecificSkuAllocation
Returns a new instance of AllocationResourceStatusSpecificSkuAllocation.
1408 1409 1410 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1408 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_instance_template_id ⇒ String
ID of the instance template used to populate reservation properties.
Corresponds to the JSON property sourceInstanceTemplateId
1400 1401 1402 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1400 def source_instance_template_id @source_instance_template_id end |
#utilizations ⇒ Hash<String,Fixnum>
Per service utilization breakdown. The Key is the Google Cloud managed service
name.
Corresponds to the JSON property utilizations
1406 1407 1408 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1406 def utilizations @utilizations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1413 1414 1415 1416 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1413 def update!(**args) @source_instance_template_id = args[:source_instance_template_id] if args.key?(:source_instance_template_id) @utilizations = args[:utilizations] if args.key?(:utilizations) end |