Class: Couchbase::Management::Options::Analytics::CreateDataset
- Inherits:
-
Options::Base
- Object
- Options::Base
- Couchbase::Management::Options::Analytics::CreateDataset
- Defined in:
- lib/couchbase/management/analytics_index_manager.rb
Overview
Options for AnalyticsIndexManager#create_dataset
Instance Attribute Summary collapse
Attributes inherited from Options::Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(ignore_if_exists: false, condition: nil, dataverse_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ CreateDataset
constructor
Creates an instance of options for AnalyticsIndexManager#create_dataset.
- #to_backend ⇒ Object private
Constructor Details
#initialize(ignore_if_exists: false, condition: nil, dataverse_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ CreateDataset
Creates an instance of options for AnalyticsIndexManager#create_dataset
111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 111 def initialize(ignore_if_exists: false, condition: nil, 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) @ignore_if_exists = ignore_if_exists @condition = condition @dataverse_name = dataverse_name yield self if block_given? end |
Instance Attribute Details
#condition ⇒ String
95 96 97 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 95 def condition @condition end |
#dataverse_name ⇒ String
96 97 98 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 96 def dataverse_name @dataverse_name end |
#ignore_if_exists ⇒ Boolean
94 95 96 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 94 def ignore_if_exists @ignore_if_exists 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.
126 127 128 129 130 131 132 133 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 126 def to_backend { timeout: Utils::Time.extract_duration(@timeout), condition: @condition, dataverse_name: @dataverse_name, ignore_if_exists: @ignore_if_exists, } end |