Class: Couchbase::Management::Options::Analytics::GetLinks
- Inherits:
-
Options::Base
- Object
- Options::Base
- Couchbase::Management::Options::Analytics::GetLinks
- Defined in:
- lib/couchbase/management/analytics_index_manager.rb
Overview
Options for AnalyticsIndexManager#get_links
Instance Attribute Summary collapse
Attributes inherited from Options::Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(link_type: nil, dataverse: nil, name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ GetLinks
constructor
Creates an instance of options for AnalyticsIndexManager#get_links.
- #to_backend ⇒ Object private
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
491 492 493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 491 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
#dataverse ⇒ String?
472 473 474 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 472 def dataverse @dataverse end |
#link_type ⇒ Symbol?
473 474 475 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 473 def link_type @link_type end |
#name ⇒ String?
474 475 476 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 474 def name @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.
506 507 508 509 510 511 512 513 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 506 def to_backend { timeout: Utils::Time.extract_duration(@timeout), link_type: @link_type.to_s, dataverse: @dataverse, name: @name, } end |