Class: Google::Apis::ComputeAlpha::InstancesSetMachineTypeRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstancesSetMachineTypeRequest

Returns a new instance of InstancesSetMachineTypeRequest.



20225
20226
20227
# File 'lib/google/apis/compute_alpha/classes.rb', line 20225

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

Instance Attribute Details

#machine_typeString

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us-central1-f/machineTypes/n1- standard-1 Corresponds to the JSON property machineType

Returns:

  • (String)


20223
20224
20225
# File 'lib/google/apis/compute_alpha/classes.rb', line 20223

def machine_type
  @machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20230
20231
20232
# File 'lib/google/apis/compute_alpha/classes.rb', line 20230

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