Class: Couchbase::Management::Options::Analytics::ConnectLink
- Inherits:
-
Options::Base
- Object
- Options::Base
- Couchbase::Management::Options::Analytics::ConnectLink
- Defined in:
- lib/couchbase/management/analytics_index_manager.rb
Overview
Options for AnalyticsIndexManager#connect_link
Instance Attribute Summary collapse
Attributes inherited from Options::Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(link_name: "Local", force: false, dataverse_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ ConnectLink
constructor
Creates an instance of options for AnalyticsIndexManager#connect_link.
- #to_backend ⇒ Object private
Constructor Details
#initialize(link_name: "Local", force: false, dataverse_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ ConnectLink
Creates an instance of options for AnalyticsIndexManager#connect_link
310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 310 def initialize(link_name: "Local", force: false, dataverse_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_name = link_name @force = force @dataverse_name = dataverse_name yield self if block_given? end |
Instance Attribute Details
#dataverse_name ⇒ String
295 296 297 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 295 def dataverse_name @dataverse_name end |
#force ⇒ Boolean
294 295 296 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 294 def force @force end |
#link_name ⇒ String
293 294 295 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 293 def link_name @link_name end |
Instance Method Details
#to_backend ⇒ Object
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.
325 326 327 328 329 330 331 332 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 325 def to_backend { timeout: Utils::Time.extract_duration(@timeout), link_name: @link_name, force: @force, dataverse_name: @dataverse_name, } end |