Class: Couchbase::Management::Options::User::GetAllUsers

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

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| ... } ⇒ GetAllUsers

Creates an instance of options for UserManager#get_all_users

Parameters:

  • the (:local, :external)

    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:



63
64
65
66
67
68
69
70
# File 'lib/couchbase/management/user_manager.rb', line 63

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



54
55
56
# File 'lib/couchbase/management/user_manager.rb', line 54

def domain
  @domain
end