Class: Google::Apis::DatamigrationV1::ForwardSshTunnelConnectivity

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

Overview

Forward SSH Tunnel connectivity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ForwardSshTunnelConnectivity

Returns a new instance of ForwardSshTunnelConnectivity.



1403
1404
1405
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1403

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

Instance Attribute Details

#hostnameString

Required. Hostname for the SSH tunnel. Corresponds to the JSON property hostname

Returns:

  • (String)


1381
1382
1383
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1381

def hostname
  @hostname
end

#passwordString

Input only. SSH password. Corresponds to the JSON property password

Returns:

  • (String)


1386
1387
1388
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1386

def password
  @password
end

#portFixnum

Port for the SSH tunnel, default value is 22. Corresponds to the JSON property port

Returns:

  • (Fixnum)


1391
1392
1393
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1391

def port
  @port
end

#private_keyString

Input only. SSH private key. Corresponds to the JSON property privateKey

Returns:

  • (String)


1396
1397
1398
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1396

def private_key
  @private_key
end

#usernameString

Required. Username for the SSH tunnel. Corresponds to the JSON property username

Returns:

  • (String)


1401
1402
1403
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1401

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1408
1409
1410
1411
1412
1413
1414
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1408

def update!(**args)
  @hostname = args[:hostname] if args.key?(:hostname)
  @password = args[:password] if args.key?(:password)
  @port = args[:port] if args.key?(:port)
  @private_key = args[:private_key] if args.key?(:private_key)
  @username = args[:username] if args.key?(:username)
end