Class: Google::Apis::BaremetalsolutionV2::RenameVolumeRequest

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) ⇒ RenameVolumeRequest

Returns a new instance of RenameVolumeRequest.



1801
1802
1803
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1801

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

Instance Attribute Details

#new_volume_idString

Required. The new id of the volume. Corresponds to the JSON property newVolumeId

Returns:

  • (String)


1799
1800
1801
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1799

def new_volume_id
  @new_volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1806
1807
1808
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1806

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