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.



2036
2037
2038
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2036

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


2014
2015
2016
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2014

def hostname
  @hostname
end

#passwordString

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

Returns:

  • (String)


2019
2020
2021
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2019

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


2024
2025
2026
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2024

def port
  @port
end

#private_keyString

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

Returns:

  • (String)


2029
2030
2031
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2029

def private_key
  @private_key
end

#usernameString

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

Returns:

  • (String)


2034
2035
2036
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2034

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2041
2042
2043
2044
2045
2046
2047
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2041

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