Class: Couchbase::Management::EncryptionSettings

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(level: :none, certificate: nil, client_certificate: nil, client_key: nil) {|self| ... } ⇒ EncryptionSettings

Returns a new instance of EncryptionSettings.

Parameters:

  • level (:none, :half, :full) (defaults to: :none)

    Specifies what level of encryption should be used.

  • certificate (String, nil) (defaults to: nil)
  • client_certificate (String, nil) (defaults to: nil)
  • client_key (String, nil) (defaults to: nil)

Yield Parameters:



967
968
969
970
971
972
973
974
975
976
# File 'lib/couchbase/management/analytics_index_manager.rb', line 967

def initialize(level: :none,
               certificate: nil,
               client_certificate: nil,
               client_key: nil)
  @level = level
  @certificate = certificate
  @client_certificate = client_certificate
  @client_key = client_key
  yield self if block_given?
end

Instance Attribute Details

#certificateString?

Returns:

  • (String, nil)


957
958
959
# File 'lib/couchbase/management/analytics_index_manager.rb', line 957

def certificate
  @certificate
end

#client_certificateString?

Returns:

  • (String, nil)


958
959
960
# File 'lib/couchbase/management/analytics_index_manager.rb', line 958

def client_certificate
  @client_certificate
end

#client_keyString?

Returns:

  • (String, nil)


959
960
961
# File 'lib/couchbase/management/analytics_index_manager.rb', line 959

def client_key
  @client_key
end

#levelSymbol

Returns:

  • (Symbol)


956
957
958
# File 'lib/couchbase/management/analytics_index_manager.rb', line 956

def level
  @level
end