Class: Google::Apis::BaremetalsolutionV2::RenameInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::RenameInstanceRequest
- 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 ⇒ Google::Apis::BaremetalsolutionV2::Instance
A server.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RenameInstanceRequest
constructor
A new instance of RenameInstanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#instance ⇒ Google::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 |
#name ⇒ String
Required. The new name of the instance. Format: instancename
Corresponds to the JSON property name
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 |