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.



1948
1949
1950
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1948

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


1926
1927
1928
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1926

def hostname
  @hostname
end

#passwordString

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

Returns:

  • (String)


1931
1932
1933
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1931

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


1936
1937
1938
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1936

def port
  @port
end

#private_keyString

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

Returns:

  • (String)


1941
1942
1943
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1941

def private_key
  @private_key
end

#usernameString

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

Returns:

  • (String)


1946
1947
1948
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1946

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1953
1954
1955
1956
1957
1958
1959
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1953

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