Class: Google::Apis::ComputeAlpha::AllocationsUpdateResourceShapeRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AllocationsUpdateResourceShapeRequest

Returns a new instance of AllocationsUpdateResourceShapeRequest



1642
1643
1644
# File 'generated/google/apis/compute_alpha/classes.rb', line 1642

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

Instance Attribute Details

#countFixnum

Number of allocated resources which are to be updated with minimum = 1 and maximum = 100. Corresponds to the JSON property count

Returns:

  • (Fixnum)


1627
1628
1629
# File 'generated/google/apis/compute_alpha/classes.rb', line 1627

def count
  @count
end

#destination_allocationString

The name of destination allocation where the modified machines are added. If existing, its machine spec must match the modified machine spec. If non existing, new allocation with this name and modified machine spec is created automatically. Corresponds to the JSON property destinationAllocation

Returns:

  • (String)


1635
1636
1637
# File 'generated/google/apis/compute_alpha/classes.rb', line 1635

def destination_allocation
  @destination_allocation
end

#updated_resource_propertiesGoogle::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties

Properties of the SKU instances being reserved. Corresponds to the JSON property updatedResourceProperties



1640
1641
1642
# File 'generated/google/apis/compute_alpha/classes.rb', line 1640

def updated_resource_properties
  @updated_resource_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1647
1648
1649
1650
1651
# File 'generated/google/apis/compute_alpha/classes.rb', line 1647

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @destination_allocation = args[:destination_allocation] if args.key?(:destination_allocation)
  @updated_resource_properties = args[:updated_resource_properties] if args.key?(:updated_resource_properties)
end