Class: Google::Apis::BaremetalsolutionV2::RenameNetworkRequest

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

Returns a new instance of RenameNetworkRequest.



2035
2036
2037
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2035

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

Instance Attribute Details

#new_network_idString

Required. The new id of the network. Corresponds to the JSON property newNetworkId

Returns:

  • (String)


2033
2034
2035
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2033

def new_network_id
  @new_network_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2040
2041
2042
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2040

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