Class: Google::Apis::DatastreamV1alpha1::ForwardSshTunnelConnectivity

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastream_v1alpha1/classes.rb,
lib/google/apis/datastream_v1alpha1/representations.rb,
lib/google/apis/datastream_v1alpha1/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.



424
425
426
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 424

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


402
403
404
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 402

def hostname
  @hostname
end

#passwordString

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

Returns:

  • (String)


407
408
409
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 407

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


412
413
414
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 412

def port
  @port
end

#private_keyString

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

Returns:

  • (String)


417
418
419
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 417

def private_key
  @private_key
end

#usernameString

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

Returns:

  • (String)


422
423
424
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 422

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



429
430
431
432
433
434
435
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 429

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