Class: Couchbase::Management::Options::Analytics::DropDataset
- Inherits:
-
Options::Base
- Object
- Options::Base
- Couchbase::Management::Options::Analytics::DropDataset
- Defined in:
- lib/couchbase/management/analytics_index_manager.rb
Overview
Options for AnalyticsIndexManager#drop_dataset
Instance Attribute Summary collapse
Attributes inherited from Options::Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(ignore_if_does_not_exist: false, dataverse_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ DropDataset
constructor
Creates an instance of options for AnalyticsIndexManager#drop_dataset.
- #to_backend ⇒ Object private
Constructor Details
#initialize(ignore_if_does_not_exist: false, dataverse_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ DropDataset
Creates an instance of options for AnalyticsIndexManager#drop_dataset
153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 153 def initialize(ignore_if_does_not_exist: 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) @ignore_if_does_not_exist = ignore_if_does_not_exist @dataverse_name = dataverse_name yield self if block_given? end |
Instance Attribute Details
#dataverse_name ⇒ String
139 140 141 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 139 def dataverse_name @dataverse_name end |
#ignore_if_does_not_exist ⇒ Boolean
138 139 140 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 138 def ignore_if_does_not_exist @ignore_if_does_not_exist 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.
166 167 168 169 170 171 172 |
# File 'lib/couchbase/management/analytics_index_manager.rb', line 166 def to_backend { timeout: Utils::Time.extract_duration(@timeout), dataverse_name: @dataverse_name, ignore_if_does_not_exist: @ignore_if_does_not_exist, } end |