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.



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

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

Instance Attribute Details

#instanceGoogle::Apis::BaremetalsolutionV2::Instance

A server. Corresponds to the JSON property instance



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

def instance
  @instance
end

#nameString

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

Returns:

  • (String)


1826
1827
1828
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1826

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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