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.



1823
1824
1825
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1823

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

Instance Attribute Details

#new_nameString

Required. The new name of the instance. Format: instancename Corresponds to the JSON property newName

Returns:

  • (String)


1821
1822
1823
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1821

def new_name
  @new_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1828
1829
1830
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1828

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