class Google::Apis::ComputeBeta::InstancesSetNameRequest
Attributes
current_name[RW]
The current name of this resource, used to prevent conflicts. Provide the latest name when making a request to change name. Corresponds to the JSON property `currentName` @return [String]
name[RW]
The name to be applied to the instance. Needs to be RFC 1035 compliant. Corresponds to the JSON property `name` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 16021 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/compute_beta/classes.rb, line 16026 def update!(**args) @current_name = args[:current_name] if args.key?(:current_name) @name = args[:name] if args.key?(:name) end