Class: Google::Apis::ComputeAlpha::InterconnectsSetNameRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

Request to rename an interconnect.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InterconnectsSetNameRequest

Returns a new instance of InterconnectsSetNameRequest.



39163
39164
39165
# File 'lib/google/apis/compute_alpha/classes.rb', line 39163

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

Instance Attribute Details

#current_nameString

The current name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035. Corresponds to the JSON property currentName

Returns:

  • (String)


39155
39156
39157
# File 'lib/google/apis/compute_alpha/classes.rb', line 39155

def current_name
  @current_name
end

#nameString

The new name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035. Corresponds to the JSON property name

Returns:

  • (String)


39161
39162
39163
# File 'lib/google/apis/compute_alpha/classes.rb', line 39161

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39168
39169
39170
39171
# File 'lib/google/apis/compute_alpha/classes.rb', line 39168

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