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.



39666
39667
39668
# File 'lib/google/apis/compute_alpha/classes.rb', line 39666

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)


39658
39659
39660
# File 'lib/google/apis/compute_alpha/classes.rb', line 39658

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)


39664
39665
39666
# File 'lib/google/apis/compute_alpha/classes.rb', line 39664

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39671
39672
39673
39674
# File 'lib/google/apis/compute_alpha/classes.rb', line 39671

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