Class: Couchbase::Management::Options::User::DropUser

Inherits:
Options::Base
  • Object
show all
Defined in:
lib/couchbase/management/user_manager.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/management/user_manager.rb

Overview

Options for UserManager#drop_user

Instance Attribute Summary collapse

Attributes inherited from Options::Base

#client_context, #parent_span, #retry_strategy, #timeout

Instance Method Summary collapse

Constructor Details

#initialize(domain: :local, timeout: nil, retry_strategy: nil, parent_span: nil) {|self| ... } ⇒ DropUser

Creates an instance of options for UserManager#drop_user

Parameters:

  • domain (:local, :external) (defaults to: :local)

    the name of the user’s domain. Defaults to :local

  • timeout (Integer, #in_milliseconds, nil) (defaults to: nil)

    the time in milliseconds allowed for the operation to complete

  • retry_strategy (Proc, nil) (defaults to: nil)

    the custom retry strategy, if set

  • parent_span (Span, nil) (defaults to: nil)

    if set holds the parent span, that should be used for this request

Yield Parameters:



110
111
112
113
114
115
116
117
# File 'lib/couchbase/management/user_manager.rb', line 110

def initialize(domain: :local,
               timeout: nil,
               retry_strategy: nil,
               parent_span: nil)
  super(timeout: timeout, retry_strategy: retry_strategy, parent_span: parent_span)
  @domain = domain
  yield self if block_given?
end

Instance Attribute Details

#domain:local, :external

Returns Name of the user’s domain. Defaults to :local.

Returns:

  • (:local, :external)

    Name of the user’s domain. Defaults to :local



101
102
103
# File 'lib/couchbase/management/user_manager.rb', line 101

def domain
  @domain
end