Class: Google::Apis::BaremetalsolutionV2::RenameInstanceRequest

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

Message requesting rename of a server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RenameInstanceRequest

Returns a new instance of RenameInstanceRequest.



1835
1836
1837
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1835

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

Instance Attribute Details

#new_instance_idString

Required. The new id of the instance. Corresponds to the JSON property newInstanceId

Returns:

  • (String)


1833
1834
1835
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1833

def new_instance_id
  @new_instance_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1840
1841
1842
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1840

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