Class: Google::Apis::DatamigrationV1::ForwardSshTunnelConnectivity
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::ForwardSshTunnelConnectivity
 
- 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
- 
  
    
      #hostname  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #password  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Input only. 
- 
  
    
      #port  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Port for the SSH tunnel, default value is 22. 
- 
  
    
      #private_key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Input only. 
- 
  
    
      #username  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ForwardSshTunnelConnectivity 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ForwardSshTunnelConnectivity. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ ForwardSshTunnelConnectivity
Returns a new instance of ForwardSshTunnelConnectivity.
| 1927 1928 1929 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1927 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#hostname ⇒ String
Required. Hostname for the SSH tunnel.
Corresponds to the JSON property hostname
| 1905 1906 1907 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1905 def hostname @hostname end | 
#password ⇒ String
Input only. SSH password.
Corresponds to the JSON property password
| 1910 1911 1912 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1910 def password @password end | 
#port ⇒ Fixnum
Port for the SSH tunnel, default value is 22.
Corresponds to the JSON property port
| 1915 1916 1917 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1915 def port @port end | 
#private_key ⇒ String
Input only. SSH private key.
Corresponds to the JSON property privateKey
| 1920 1921 1922 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1920 def private_key @private_key end | 
#username ⇒ String
Required. Username for the SSH tunnel.
Corresponds to the JSON property username
| 1925 1926 1927 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1925 def username @username end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1932 1933 1934 1935 1936 1937 1938 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1932 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 |