Class: Couchbase::Management::Options::Analytics::GetLinks

Inherits:
Options::Base
  • Object
show all
Defined in:
lib/couchbase/management/analytics_index_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(link_type: nil, dataverse: nil, name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ GetLinks

Creates an instance of options for AnalyticsIndexManager#get_links

Yield Parameters:



489
490
491
492
493
494
495
496
497
498
499
500
501
# File 'lib/couchbase/management/analytics_index_manager.rb', line 489

def initialize(link_type: nil,
               dataverse: nil,
               name: nil,
               timeout: nil,
               retry_strategy: nil,
               client_context: nil,
               parent_span: nil)
  super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
  @link_type = link_type
  @dataverse = dataverse
  @name = name
  yield self if block_given?
end

Instance Attribute Details

#dataverseString?



470
471
472
# File 'lib/couchbase/management/analytics_index_manager.rb', line 470

def dataverse
  @dataverse
end


471
472
473
# File 'lib/couchbase/management/analytics_index_manager.rb', line 471

def link_type
  @link_type
end

#nameString?



472
473
474
# File 'lib/couchbase/management/analytics_index_manager.rb', line 472

def name
  @name
end

Instance Method Details

#to_backendObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



504
505
506
507
508
509
510
511
# File 'lib/couchbase/management/analytics_index_manager.rb', line 504

def to_backend
  {
    timeout: Utils::Time.extract_duration(@timeout),
    link_type: @link_type.to_s,
    dataverse: @dataverse,
    name: @name,
  }
end