Class: Google::Apis::NetworkconnectivityV1alpha1::Migration

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

Overview

Specification for migration with source and target resource names.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Migration

Returns a new instance of Migration.

[View source]

792
793
794
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 792

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

Instance Attribute Details

#sourceString

Immutable. Resource path as an URI of the source resource, for example a subnet. The project for the source resource should match the project for the InternalRange. An example: /projects/project/regions/region/subnetworks/ subnet Corresponds to the JSON property source

Returns:

  • (String)

783
784
785
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 783

def source
  @source
end

#targetString

Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. The resource For example: /projects/project/regions/region/subnetworks/subnet Corresponds to the JSON property target

Returns:

  • (String)

790
791
792
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 790

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

797
798
799
800
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 797

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