Class: Couchbase::Management::CouchbaseRemoteAnalyticsLink

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/management/analytics_index_manager.rb,
/code/couchbase-ruby-client/lib/couchbase/management/analytics_index_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, dataverse, hostname, username: nil, password: nil, encryption: EncryptionSettings.new) {|self| ... } ⇒ CouchbaseRemoteAnalyticsLink

Returns a new instance of CouchbaseRemoteAnalyticsLink.

Parameters:

  • name (String)

    the name of this link

  • dataverse (String)

    the dataverse this link belongs to

  • hostname (String)

    the hostname of the target Couchbase cluster

  • username (String, nil) (defaults to: nil)

    the username to use for authentication with the remote cluster. Optional if client-certificate authentication is being used.

  • password (String, nil) (defaults to: nil)

    the password to use for authentication with the remote cluster. Optional if client-certificate authentication is being used.

  • encryption (EncryptionSettings) (defaults to: EncryptionSettings.new)

    settings for connection encryption

Yield Parameters:

  • self (CouchbaseRemoteLink)


997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
# File 'lib/couchbase/management/analytics_index_manager.rb', line 997

def initialize(name, dataverse, hostname,
               username: nil,
               password: nil,
               encryption: EncryptionSettings.new)
  @name = name
  @dataverse = dataverse
  @hostname = hostname
  @username = username
  @password = password
  @encryption = encryption
  yield self if block_given?
end

Instance Attribute Details

#dataverseString

Returns:

  • (String)


981
982
983
# File 'lib/couchbase/management/analytics_index_manager.rb', line 981

def dataverse
  @dataverse
end

#encryptionEncryptionSettings

Returns:



985
986
987
# File 'lib/couchbase/management/analytics_index_manager.rb', line 985

def encryption
  @encryption
end

#hostnameString

Returns:

  • (String)


982
983
984
# File 'lib/couchbase/management/analytics_index_manager.rb', line 982

def hostname
  @hostname
end

#nameString

Returns:

  • (String)


980
981
982
# File 'lib/couchbase/management/analytics_index_manager.rb', line 980

def name
  @name
end

#passwordString?

Returns:

  • (String, nil)


984
985
986
# File 'lib/couchbase/management/analytics_index_manager.rb', line 984

def password
  @password
end

#usernameString?

Returns:

  • (String, nil)


983
984
985
# File 'lib/couchbase/management/analytics_index_manager.rb', line 983

def username
  @username
end