opensearch-api 1.0.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +28 -0
- data/Gemfile +2 -2
- data/README.md +12 -182
- data/Rakefile +5 -5
- data/USER_GUIDE.md +155 -0
- data/lib/opensearch/api/actions/benchmark.rb +0 -1
- data/lib/opensearch/api/actions/bulk.rb +1 -7
- data/lib/opensearch/api/actions/cat/all_pit_segments.rb +46 -0
- data/lib/opensearch/api/actions/cat/allocation.rb +4 -2
- data/lib/opensearch/api/actions/cat/cluster_manager.rb +54 -0
- data/lib/opensearch/api/actions/cat/indices.rb +4 -2
- data/lib/opensearch/api/actions/cat/master.rb +3 -1
- data/lib/opensearch/api/actions/cat/nodeattrs.rb +4 -2
- data/lib/opensearch/api/actions/cat/nodes.rb +4 -2
- data/lib/opensearch/api/actions/cat/pending_tasks.rb +4 -2
- data/lib/opensearch/api/actions/cat/pit_segments.rb +49 -0
- data/lib/opensearch/api/actions/cat/plugins.rb +4 -2
- data/lib/opensearch/api/actions/cat/repositories.rb +4 -2
- data/lib/opensearch/api/actions/cat/shards.rb +4 -2
- data/lib/opensearch/api/actions/cat/snapshots.rb +3 -1
- data/lib/opensearch/api/actions/cat/templates.rb +4 -2
- data/lib/opensearch/api/actions/cat/thread_pool.rb +4 -2
- data/lib/opensearch/api/actions/cluster/delete_component_template.rb +4 -2
- data/lib/opensearch/api/actions/cluster/exists_component_template.rb +4 -2
- data/lib/opensearch/api/actions/cluster/get_component_template.rb +4 -2
- data/lib/opensearch/api/actions/cluster/get_settings.rb +3 -1
- data/lib/opensearch/api/actions/cluster/health.rb +4 -2
- data/lib/opensearch/api/actions/cluster/pending_tasks.rb +5 -3
- data/lib/opensearch/api/actions/cluster/put_component_template.rb +4 -2
- data/lib/opensearch/api/actions/cluster/put_settings.rb +3 -1
- data/lib/opensearch/api/actions/cluster/reroute.rb +4 -2
- data/lib/opensearch/api/actions/cluster/state.rb +4 -2
- data/lib/opensearch/api/actions/count.rb +1 -6
- data/lib/opensearch/api/actions/create.rb +0 -1
- data/lib/opensearch/api/actions/create_pit.rb +45 -0
- data/lib/opensearch/api/actions/dangling_indices/delete_dangling_index.rb +4 -2
- data/lib/opensearch/api/actions/dangling_indices/import_dangling_index.rb +4 -2
- data/lib/opensearch/api/actions/delete.rb +1 -8
- data/lib/opensearch/api/actions/delete_all_pits.rb +26 -0
- data/lib/opensearch/api/actions/delete_by_query.rb +1 -8
- data/lib/opensearch/api/actions/delete_pit.rb +30 -0
- data/lib/opensearch/api/actions/delete_script.rb +4 -2
- data/lib/opensearch/api/actions/exists.rb +1 -8
- data/lib/opensearch/api/actions/exists_source.rb +1 -8
- data/lib/opensearch/api/actions/explain.rb +1 -8
- data/lib/opensearch/api/actions/features/get_features.rb +4 -2
- data/lib/opensearch/api/actions/get.rb +1 -8
- data/lib/opensearch/api/actions/get_all_pits.rb +26 -0
- data/lib/opensearch/api/actions/get_script.rb +4 -2
- data/lib/opensearch/api/actions/get_source.rb +1 -8
- data/lib/opensearch/api/actions/index.rb +1 -8
- data/lib/opensearch/api/actions/indices/add_block.rb +3 -1
- data/lib/opensearch/api/actions/indices/clone.rb +3 -1
- data/lib/opensearch/api/actions/indices/close.rb +3 -1
- data/lib/opensearch/api/actions/indices/create.rb +4 -4
- data/lib/opensearch/api/actions/indices/delete.rb +3 -1
- data/lib/opensearch/api/actions/indices/delete_alias.rb +4 -2
- data/lib/opensearch/api/actions/indices/delete_index_template.rb +4 -2
- data/lib/opensearch/api/actions/indices/delete_template.rb +4 -2
- data/lib/opensearch/api/actions/indices/exists_index_template.rb +4 -2
- data/lib/opensearch/api/actions/indices/exists_template.rb +4 -2
- data/lib/opensearch/api/actions/indices/get.rb +4 -4
- data/lib/opensearch/api/actions/indices/get_field_mapping.rb +1 -10
- data/lib/opensearch/api/actions/indices/get_index_template.rb +4 -2
- data/lib/opensearch/api/actions/indices/get_mapping.rb +5 -12
- data/lib/opensearch/api/actions/indices/get_settings.rb +3 -1
- data/lib/opensearch/api/actions/indices/get_template.rb +4 -4
- data/lib/opensearch/api/actions/indices/open.rb +3 -1
- data/lib/opensearch/api/actions/indices/put_alias.rb +4 -2
- data/lib/opensearch/api/actions/indices/put_index_template.rb +4 -2
- data/lib/opensearch/api/actions/indices/put_mapping.rb +4 -13
- data/lib/opensearch/api/actions/indices/put_settings.rb +3 -1
- data/lib/opensearch/api/actions/indices/put_template.rb +4 -4
- data/lib/opensearch/api/actions/indices/rollover.rb +3 -3
- data/lib/opensearch/api/actions/indices/shrink.rb +3 -1
- data/lib/opensearch/api/actions/indices/simulate_index_template.rb +4 -2
- data/lib/opensearch/api/actions/indices/simulate_template.rb +4 -2
- data/lib/opensearch/api/actions/indices/split.rb +3 -1
- data/lib/opensearch/api/actions/indices/update_aliases.rb +4 -2
- data/lib/opensearch/api/actions/indices/validate_query.rb +1 -6
- data/lib/opensearch/api/actions/ingest/delete_pipeline.rb +3 -1
- data/lib/opensearch/api/actions/ingest/get_pipeline.rb +4 -2
- data/lib/opensearch/api/actions/ingest/put_pipeline.rb +3 -1
- data/lib/opensearch/api/actions/mget.rb +2 -7
- data/lib/opensearch/api/actions/msearch.rb +1 -6
- data/lib/opensearch/api/actions/msearch_template.rb +1 -6
- data/lib/opensearch/api/actions/mtermvectors.rb +1 -6
- data/lib/opensearch/api/actions/put_script.rb +3 -1
- data/lib/opensearch/api/actions/search.rb +1 -7
- data/lib/opensearch/api/actions/search_shards.rb +1 -1
- data/lib/opensearch/api/actions/search_template.rb +1 -6
- data/lib/opensearch/api/actions/snapshot/cleanup_repository.rb +3 -1
- data/lib/opensearch/api/actions/snapshot/clone.rb +4 -2
- data/lib/opensearch/api/actions/snapshot/create.rb +3 -1
- data/lib/opensearch/api/actions/snapshot/create_repository.rb +3 -1
- data/lib/opensearch/api/actions/snapshot/delete.rb +4 -2
- data/lib/opensearch/api/actions/snapshot/delete_repository.rb +3 -1
- data/lib/opensearch/api/actions/snapshot/get.rb +3 -1
- data/lib/opensearch/api/actions/snapshot/get_features.rb +4 -2
- data/lib/opensearch/api/actions/snapshot/get_repository.rb +3 -2
- data/lib/opensearch/api/actions/snapshot/restore.rb +3 -1
- data/lib/opensearch/api/actions/snapshot/status.rb +3 -1
- data/lib/opensearch/api/actions/snapshot/verify_repository.rb +3 -1
- data/lib/opensearch/api/actions/termvectors.rb +1 -8
- data/lib/opensearch/api/actions/update.rb +1 -8
- data/lib/opensearch/api/actions/update_by_query.rb +1 -8
- data/lib/opensearch/api/utils.rb +5 -5
- data/lib/opensearch/api/version.rb +1 -1
- data/lib/opensearch/api.rb +1 -1
- data/opensearch-api.gemspec +2 -3
- data/spec/opensearch/api/actions/bulk_spec.rb +10 -21
- data/spec/opensearch/api/actions/cat/all_pit_segments_spec.rb +36 -0
- data/spec/opensearch/api/actions/cat/allocation_spec.rb +6 -7
- data/spec/opensearch/api/actions/cat/cluster_manager_spec.rb +26 -0
- data/spec/opensearch/api/actions/cat/pit_segments_spec.rb +43 -0
- data/spec/opensearch/api/actions/count_spec.rb +3 -3
- data/spec/opensearch/api/actions/create_document_spec.rb +8 -8
- data/spec/opensearch/api/actions/create_pit_spec.rb +58 -0
- data/spec/opensearch/api/actions/delete_all_pits_spec.rb +35 -0
- data/spec/opensearch/api/actions/delete_by_query_spec.rb +0 -17
- data/spec/opensearch/api/actions/delete_document_spec.rb +10 -10
- data/spec/opensearch/api/actions/delete_pit_spec.rb +41 -0
- data/spec/opensearch/api/actions/exists_document_spec.rb +10 -10
- data/spec/opensearch/api/actions/explain_document_spec.rb +8 -8
- data/spec/opensearch/api/actions/get_all_pits_spec.rb +35 -0
- data/spec/opensearch/api/actions/get_document_source_spec.rb +6 -6
- data/spec/opensearch/api/actions/get_document_spec.rb +8 -8
- data/spec/opensearch/api/actions/get_script_spec.rb +2 -2
- data/spec/opensearch/api/actions/hashie_spec.rb +0 -2
- data/spec/opensearch/api/actions/index_document_spec.rb +12 -12
- data/spec/opensearch/api/actions/indices/clone_spec.rb +2 -2
- data/spec/opensearch/api/actions/indices/get_field_mapping_spec.rb +0 -11
- data/spec/opensearch/api/actions/indices/get_mapping_spec.rb +5 -16
- data/spec/opensearch/api/actions/indices/put_mapping_spec.rb +8 -21
- data/spec/opensearch/api/actions/indices/validate_query_spec.rb +0 -10
- data/spec/opensearch/api/actions/mget_spec.rb +2 -17
- data/spec/opensearch/api/actions/mtermvectors_spec.rb +3 -3
- data/spec/opensearch/api/actions/search_spec.rb +5 -16
- data/spec/opensearch/api/actions/termvectors_spec.rb +5 -5
- data/spec/opensearch/api/actions/update_document_spec.rb +11 -11
- data/spec/opensearch/api/utils_spec.rb +7 -14
- data.tar.gz.sig +0 -0
- metadata +40 -43
- metadata.gz.sig +0 -0
- data/lib/opensearch/api/actions/close_point_in_time.rb +0 -50
- data/lib/opensearch/api/actions/indices/exists_type.rb +0 -79
- data/lib/opensearch/api/actions/indices/flush_synced.rb +0 -79
- data/lib/opensearch/api/actions/open_point_in_time.rb +0 -72
- data/spec/opensearch/api/actions/close_point_in_time_spec.rb +0 -43
- data/spec/opensearch/api/actions/indices/exists_type_spec.rb +0 -117
- data/spec/opensearch/api/actions/indices/flush_synced_spec.rb +0 -99
- data/spec/opensearch/api/actions/open_point_in_time_spec.rb +0 -53
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opensearch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jayesh Hathila
|
@@ -15,7 +15,7 @@ cert_chain:
|
|
15
15
|
-----BEGIN CERTIFICATE-----
|
16
16
|
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRMwEQYDVQQDDApvcGVu
|
17
17
|
c2VhcmNoMRYwFAYKCZImiZPyLGQBGRYGYW1hem9uMRMwEQYKCZImiZPyLGQBGRYD
|
18
|
-
|
18
|
+
Y29tMB4XDTIyMDgxNzE3NTIzNFoXDTIzMDgxNzE3NTIzNFowQjETMBEGA1UEAwwK
|
19
19
|
b3BlbnNlYXJjaDEWMBQGCgmSJomT8ixkARkWBmFtYXpvbjETMBEGCgmSJomT8ixk
|
20
20
|
ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM1z3/jcitjV
|
21
21
|
umXwRFn+JSBBd36qZB54Dtucf6+E2fmNPzBRhgYN5XJy/+clQJ9NIJV7C8H52P3V
|
@@ -26,14 +26,14 @@ cert_chain:
|
|
26
26
|
zfR37/NQFkECAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
|
27
27
|
BBYEFJJ2myhLXK742btavNbG0IWrMNBIMCAGA1UdEQQZMBeBFW9wZW5zZWFyY2hA
|
28
28
|
YW1hem9uLmNvbTAgBgNVHRIEGTAXgRVvcGVuc2VhcmNoQGFtYXpvbi5jb20wDQYJ
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
KoZIhvcNAQEFBQADggEBAH5pWLYwKWFh1OjdCReGz/VEAiF4jXXputoN5Z8ga+1Z
|
30
|
+
lg8/diJf0PlP2B46PdmxH/TVc/o+qglNO2cHVEp8xZfEd83dfioOBeK90URQUpC5
|
31
|
+
UZmO0LZusg46SQKwKa2ukpIy2fNi3PeHRiV+W2Zv69GoWppyLun+fMez7wVoah2r
|
32
|
+
r5ROUYuAvFUvga1Vm+49pKiPM5n+MAYP5t/vWhgymY3SYQ1TfewkvKAFiFXikOR+
|
33
|
+
r+j7FLyKuk5DzIxiCp8QN5dU71BbGUmsHf/C5UV76WLPOFX/szeaHhPwpjR3sK7r
|
34
|
+
5zLgCV1KP7cgDdCYMlmZGeSViU8NV+Yy8/ghrzGpqVw=
|
35
35
|
-----END CERTIFICATE-----
|
36
|
-
date:
|
36
|
+
date: 2023-03-29 00:00:00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: multi_json
|
@@ -78,19 +78,19 @@ dependencies:
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
|
-
name: opensearch
|
81
|
+
name: opensearch-ruby
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- - "
|
84
|
+
- - "~>"
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
86
|
+
version: '2'
|
87
87
|
type: :development
|
88
88
|
prerelease: false
|
89
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- - "
|
91
|
+
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
93
|
+
version: '2'
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: opensearch-transport
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -245,20 +245,6 @@ dependencies:
|
|
245
245
|
- - ">="
|
246
246
|
- !ruby/object:Gem::Version
|
247
247
|
version: '0'
|
248
|
-
- !ruby/object:Gem::Dependency
|
249
|
-
name: escape_utils
|
250
|
-
requirement: !ruby/object:Gem::Requirement
|
251
|
-
requirements:
|
252
|
-
- - ">="
|
253
|
-
- !ruby/object:Gem::Version
|
254
|
-
version: '0'
|
255
|
-
type: :development
|
256
|
-
prerelease: false
|
257
|
-
version_requirements: !ruby/object:Gem::Requirement
|
258
|
-
requirements:
|
259
|
-
- - ">="
|
260
|
-
- !ruby/object:Gem::Version
|
261
|
-
version: '0'
|
262
248
|
- !ruby/object:Gem::Dependency
|
263
249
|
name: jbuilder
|
264
250
|
requirement: !ruby/object:Gem::Requirement
|
@@ -329,9 +315,9 @@ dependencies:
|
|
329
315
|
- - ">="
|
330
316
|
- !ruby/object:Gem::Version
|
331
317
|
version: '0'
|
332
|
-
description: 'Ruby API for OpenSearch. See the `opensearch` gem for full integration.
|
318
|
+
description: 'Ruby API for OpenSearch. See the `opensearch-ruby` gem for full integration.
|
333
319
|
|
334
|
-
'
|
320
|
+
'
|
335
321
|
email:
|
336
322
|
- jayehh@amazon.com
|
337
323
|
- vamshin@amazon.com
|
@@ -344,17 +330,21 @@ extra_rdoc_files:
|
|
344
330
|
- LICENSE
|
345
331
|
files:
|
346
332
|
- ".gitignore"
|
333
|
+
- CHANGELOG.md
|
347
334
|
- Gemfile
|
348
335
|
- LICENSE
|
349
336
|
- README.md
|
350
337
|
- Rakefile
|
338
|
+
- USER_GUIDE.md
|
351
339
|
- lib/opensearch-api.rb
|
352
340
|
- lib/opensearch/api.rb
|
353
341
|
- lib/opensearch/api/actions/abort_benchmark.rb
|
354
342
|
- lib/opensearch/api/actions/benchmark.rb
|
355
343
|
- lib/opensearch/api/actions/bulk.rb
|
356
344
|
- lib/opensearch/api/actions/cat/aliases.rb
|
345
|
+
- lib/opensearch/api/actions/cat/all_pit_segments.rb
|
357
346
|
- lib/opensearch/api/actions/cat/allocation.rb
|
347
|
+
- lib/opensearch/api/actions/cat/cluster_manager.rb
|
358
348
|
- lib/opensearch/api/actions/cat/count.rb
|
359
349
|
- lib/opensearch/api/actions/cat/fielddata.rb
|
360
350
|
- lib/opensearch/api/actions/cat/health.rb
|
@@ -365,6 +355,7 @@ files:
|
|
365
355
|
- lib/opensearch/api/actions/cat/nodes.rb
|
366
356
|
- lib/opensearch/api/actions/cat/params_registry.rb
|
367
357
|
- lib/opensearch/api/actions/cat/pending_tasks.rb
|
358
|
+
- lib/opensearch/api/actions/cat/pit_segments.rb
|
368
359
|
- lib/opensearch/api/actions/cat/plugins.rb
|
369
360
|
- lib/opensearch/api/actions/cat/recovery.rb
|
370
361
|
- lib/opensearch/api/actions/cat/repositories.rb
|
@@ -375,7 +366,6 @@ files:
|
|
375
366
|
- lib/opensearch/api/actions/cat/templates.rb
|
376
367
|
- lib/opensearch/api/actions/cat/thread_pool.rb
|
377
368
|
- lib/opensearch/api/actions/clear_scroll.rb
|
378
|
-
- lib/opensearch/api/actions/close_point_in_time.rb
|
379
369
|
- lib/opensearch/api/actions/cluster/allocation_explain.rb
|
380
370
|
- lib/opensearch/api/actions/cluster/delete_component_template.rb
|
381
371
|
- lib/opensearch/api/actions/cluster/delete_voting_config_exclusions.rb
|
@@ -394,14 +384,17 @@ files:
|
|
394
384
|
- lib/opensearch/api/actions/cluster/stats.rb
|
395
385
|
- lib/opensearch/api/actions/count.rb
|
396
386
|
- lib/opensearch/api/actions/create.rb
|
387
|
+
- lib/opensearch/api/actions/create_pit.rb
|
397
388
|
- lib/opensearch/api/actions/dangling_indices/delete_dangling_index.rb
|
398
389
|
- lib/opensearch/api/actions/dangling_indices/import_dangling_index.rb
|
399
390
|
- lib/opensearch/api/actions/dangling_indices/list_dangling_indices.rb
|
400
391
|
- lib/opensearch/api/actions/dangling_indices/params_registry.rb
|
401
392
|
- lib/opensearch/api/actions/delete.rb
|
393
|
+
- lib/opensearch/api/actions/delete_all_pits.rb
|
402
394
|
- lib/opensearch/api/actions/delete_by_query.rb
|
403
395
|
- lib/opensearch/api/actions/delete_by_query_rethrottle.rb
|
404
396
|
- lib/opensearch/api/actions/delete_by_rethrottle.rb
|
397
|
+
- lib/opensearch/api/actions/delete_pit.rb
|
405
398
|
- lib/opensearch/api/actions/delete_script.rb
|
406
399
|
- lib/opensearch/api/actions/exists.rb
|
407
400
|
- lib/opensearch/api/actions/exists_source.rb
|
@@ -411,6 +404,7 @@ files:
|
|
411
404
|
- lib/opensearch/api/actions/features/reset_features.rb
|
412
405
|
- lib/opensearch/api/actions/field_caps.rb
|
413
406
|
- lib/opensearch/api/actions/get.rb
|
407
|
+
- lib/opensearch/api/actions/get_all_pits.rb
|
414
408
|
- lib/opensearch/api/actions/get_script.rb
|
415
409
|
- lib/opensearch/api/actions/get_script_context.rb
|
416
410
|
- lib/opensearch/api/actions/get_script_languages.rb
|
@@ -431,10 +425,8 @@ files:
|
|
431
425
|
- lib/opensearch/api/actions/indices/exists_alias.rb
|
432
426
|
- lib/opensearch/api/actions/indices/exists_index_template.rb
|
433
427
|
- lib/opensearch/api/actions/indices/exists_template.rb
|
434
|
-
- lib/opensearch/api/actions/indices/exists_type.rb
|
435
428
|
- lib/opensearch/api/actions/indices/field_usage_stats.rb
|
436
429
|
- lib/opensearch/api/actions/indices/flush.rb
|
437
|
-
- lib/opensearch/api/actions/indices/flush_synced.rb
|
438
430
|
- lib/opensearch/api/actions/indices/forcemerge.rb
|
439
431
|
- lib/opensearch/api/actions/indices/get.rb
|
440
432
|
- lib/opensearch/api/actions/indices/get_alias.rb
|
@@ -484,7 +476,6 @@ files:
|
|
484
476
|
- lib/opensearch/api/actions/nodes/shutdown.rb
|
485
477
|
- lib/opensearch/api/actions/nodes/stats.rb
|
486
478
|
- lib/opensearch/api/actions/nodes/usage.rb
|
487
|
-
- lib/opensearch/api/actions/open_point_in_time.rb
|
488
479
|
- lib/opensearch/api/actions/params_registry.rb
|
489
480
|
- lib/opensearch/api/actions/ping.rb
|
490
481
|
- lib/opensearch/api/actions/put_script.rb
|
@@ -544,7 +535,9 @@ files:
|
|
544
535
|
- spec/opensearch/api/actions/benchmark_spec.rb
|
545
536
|
- spec/opensearch/api/actions/bulk_spec.rb
|
546
537
|
- spec/opensearch/api/actions/cat/aliases_spec.rb
|
538
|
+
- spec/opensearch/api/actions/cat/all_pit_segments_spec.rb
|
547
539
|
- spec/opensearch/api/actions/cat/allocation_spec.rb
|
540
|
+
- spec/opensearch/api/actions/cat/cluster_manager_spec.rb
|
548
541
|
- spec/opensearch/api/actions/cat/count_spec.rb
|
549
542
|
- spec/opensearch/api/actions/cat/fielddata_spec.rb
|
550
543
|
- spec/opensearch/api/actions/cat/health_spec.rb
|
@@ -554,6 +547,7 @@ files:
|
|
554
547
|
- spec/opensearch/api/actions/cat/nodeattrs_spec.rb
|
555
548
|
- spec/opensearch/api/actions/cat/nodes_spec.rb
|
556
549
|
- spec/opensearch/api/actions/cat/pending_tasks_spec.rb
|
550
|
+
- spec/opensearch/api/actions/cat/pit_segments_spec.rb
|
557
551
|
- spec/opensearch/api/actions/cat/plugins_spec.rb
|
558
552
|
- spec/opensearch/api/actions/cat/recovery_spec.rb
|
559
553
|
- spec/opensearch/api/actions/cat/repositories_spec.rb
|
@@ -564,7 +558,6 @@ files:
|
|
564
558
|
- spec/opensearch/api/actions/cat/templates_spec.rb
|
565
559
|
- spec/opensearch/api/actions/cat/thread_pool_spec.rb
|
566
560
|
- spec/opensearch/api/actions/clear_scroll_spec.rb
|
567
|
-
- spec/opensearch/api/actions/close_point_in_time_spec.rb
|
568
561
|
- spec/opensearch/api/actions/cluster/allocation_explain_spec.rb
|
569
562
|
- spec/opensearch/api/actions/cluster/get_settings_spec.rb
|
570
563
|
- spec/opensearch/api/actions/cluster/health_spec.rb
|
@@ -576,17 +569,21 @@ files:
|
|
576
569
|
- spec/opensearch/api/actions/cluster/stats_spec.rb
|
577
570
|
- spec/opensearch/api/actions/count_spec.rb
|
578
571
|
- spec/opensearch/api/actions/create_document_spec.rb
|
572
|
+
- spec/opensearch/api/actions/create_pit_spec.rb
|
579
573
|
- spec/opensearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb
|
580
574
|
- spec/opensearch/api/actions/dangling_indices/import_dangling_indices_spec.rb
|
581
575
|
- spec/opensearch/api/actions/dangling_indices/list_dangling_indices_spec.rb
|
576
|
+
- spec/opensearch/api/actions/delete_all_pits_spec.rb
|
582
577
|
- spec/opensearch/api/actions/delete_by_query_spec.rb
|
583
578
|
- spec/opensearch/api/actions/delete_document_spec.rb
|
579
|
+
- spec/opensearch/api/actions/delete_pit_spec.rb
|
584
580
|
- spec/opensearch/api/actions/delete_script_spec.rb
|
585
581
|
- spec/opensearch/api/actions/exists_document_spec.rb
|
586
582
|
- spec/opensearch/api/actions/explain_document_spec.rb
|
587
583
|
- spec/opensearch/api/actions/features/get_features_spec.rb
|
588
584
|
- spec/opensearch/api/actions/features/reset_features_spec.rb
|
589
585
|
- spec/opensearch/api/actions/field_caps_spec.rb
|
586
|
+
- spec/opensearch/api/actions/get_all_pits_spec.rb
|
590
587
|
- spec/opensearch/api/actions/get_document_source_spec.rb
|
591
588
|
- spec/opensearch/api/actions/get_document_spec.rb
|
592
589
|
- spec/opensearch/api/actions/get_script_spec.rb
|
@@ -605,10 +602,8 @@ files:
|
|
605
602
|
- spec/opensearch/api/actions/indices/exists_alias_spec.rb
|
606
603
|
- spec/opensearch/api/actions/indices/exists_spec.rb
|
607
604
|
- spec/opensearch/api/actions/indices/exists_template_spec.rb
|
608
|
-
- spec/opensearch/api/actions/indices/exists_type_spec.rb
|
609
605
|
- spec/opensearch/api/actions/indices/field_usage_stats_spec.rb
|
610
606
|
- spec/opensearch/api/actions/indices/flush_spec.rb
|
611
|
-
- spec/opensearch/api/actions/indices/flush_synced_spec.rb
|
612
607
|
- spec/opensearch/api/actions/indices/forcemerge_spec.rb
|
613
608
|
- spec/opensearch/api/actions/indices/get_alias_spec.rb
|
614
609
|
- spec/opensearch/api/actions/indices/get_field_mapping_spec.rb
|
@@ -647,7 +642,6 @@ files:
|
|
647
642
|
- spec/opensearch/api/actions/nodes/reload_secure_settings_spec.rb
|
648
643
|
- spec/opensearch/api/actions/nodes/shutdown_spec.rb
|
649
644
|
- spec/opensearch/api/actions/nodes/stats_spec.rb
|
650
|
-
- spec/opensearch/api/actions/open_point_in_time_spec.rb
|
651
645
|
- spec/opensearch/api/actions/ping_spec.rb
|
652
646
|
- spec/opensearch/api/actions/put_script_spec.rb
|
653
647
|
- spec/opensearch/api/actions/reindex_spec.rb
|
@@ -708,7 +702,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
708
702
|
- !ruby/object:Gem::Version
|
709
703
|
version: '0'
|
710
704
|
requirements: []
|
711
|
-
rubygems_version: 3.
|
705
|
+
rubygems_version: 3.3.26
|
712
706
|
signing_key:
|
713
707
|
specification_version: 4
|
714
708
|
summary: Ruby API for OpenSearch.
|
@@ -717,7 +711,9 @@ test_files:
|
|
717
711
|
- spec/opensearch/api/actions/benchmark_spec.rb
|
718
712
|
- spec/opensearch/api/actions/bulk_spec.rb
|
719
713
|
- spec/opensearch/api/actions/cat/aliases_spec.rb
|
714
|
+
- spec/opensearch/api/actions/cat/all_pit_segments_spec.rb
|
720
715
|
- spec/opensearch/api/actions/cat/allocation_spec.rb
|
716
|
+
- spec/opensearch/api/actions/cat/cluster_manager_spec.rb
|
721
717
|
- spec/opensearch/api/actions/cat/count_spec.rb
|
722
718
|
- spec/opensearch/api/actions/cat/fielddata_spec.rb
|
723
719
|
- spec/opensearch/api/actions/cat/health_spec.rb
|
@@ -727,6 +723,7 @@ test_files:
|
|
727
723
|
- spec/opensearch/api/actions/cat/nodeattrs_spec.rb
|
728
724
|
- spec/opensearch/api/actions/cat/nodes_spec.rb
|
729
725
|
- spec/opensearch/api/actions/cat/pending_tasks_spec.rb
|
726
|
+
- spec/opensearch/api/actions/cat/pit_segments_spec.rb
|
730
727
|
- spec/opensearch/api/actions/cat/plugins_spec.rb
|
731
728
|
- spec/opensearch/api/actions/cat/recovery_spec.rb
|
732
729
|
- spec/opensearch/api/actions/cat/repositories_spec.rb
|
@@ -737,7 +734,6 @@ test_files:
|
|
737
734
|
- spec/opensearch/api/actions/cat/templates_spec.rb
|
738
735
|
- spec/opensearch/api/actions/cat/thread_pool_spec.rb
|
739
736
|
- spec/opensearch/api/actions/clear_scroll_spec.rb
|
740
|
-
- spec/opensearch/api/actions/close_point_in_time_spec.rb
|
741
737
|
- spec/opensearch/api/actions/cluster/allocation_explain_spec.rb
|
742
738
|
- spec/opensearch/api/actions/cluster/get_settings_spec.rb
|
743
739
|
- spec/opensearch/api/actions/cluster/health_spec.rb
|
@@ -749,17 +745,21 @@ test_files:
|
|
749
745
|
- spec/opensearch/api/actions/cluster/stats_spec.rb
|
750
746
|
- spec/opensearch/api/actions/count_spec.rb
|
751
747
|
- spec/opensearch/api/actions/create_document_spec.rb
|
748
|
+
- spec/opensearch/api/actions/create_pit_spec.rb
|
752
749
|
- spec/opensearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb
|
753
750
|
- spec/opensearch/api/actions/dangling_indices/import_dangling_indices_spec.rb
|
754
751
|
- spec/opensearch/api/actions/dangling_indices/list_dangling_indices_spec.rb
|
752
|
+
- spec/opensearch/api/actions/delete_all_pits_spec.rb
|
755
753
|
- spec/opensearch/api/actions/delete_by_query_spec.rb
|
756
754
|
- spec/opensearch/api/actions/delete_document_spec.rb
|
755
|
+
- spec/opensearch/api/actions/delete_pit_spec.rb
|
757
756
|
- spec/opensearch/api/actions/delete_script_spec.rb
|
758
757
|
- spec/opensearch/api/actions/exists_document_spec.rb
|
759
758
|
- spec/opensearch/api/actions/explain_document_spec.rb
|
760
759
|
- spec/opensearch/api/actions/features/get_features_spec.rb
|
761
760
|
- spec/opensearch/api/actions/features/reset_features_spec.rb
|
762
761
|
- spec/opensearch/api/actions/field_caps_spec.rb
|
762
|
+
- spec/opensearch/api/actions/get_all_pits_spec.rb
|
763
763
|
- spec/opensearch/api/actions/get_document_source_spec.rb
|
764
764
|
- spec/opensearch/api/actions/get_document_spec.rb
|
765
765
|
- spec/opensearch/api/actions/get_script_spec.rb
|
@@ -778,10 +778,8 @@ test_files:
|
|
778
778
|
- spec/opensearch/api/actions/indices/exists_alias_spec.rb
|
779
779
|
- spec/opensearch/api/actions/indices/exists_spec.rb
|
780
780
|
- spec/opensearch/api/actions/indices/exists_template_spec.rb
|
781
|
-
- spec/opensearch/api/actions/indices/exists_type_spec.rb
|
782
781
|
- spec/opensearch/api/actions/indices/field_usage_stats_spec.rb
|
783
782
|
- spec/opensearch/api/actions/indices/flush_spec.rb
|
784
|
-
- spec/opensearch/api/actions/indices/flush_synced_spec.rb
|
785
783
|
- spec/opensearch/api/actions/indices/forcemerge_spec.rb
|
786
784
|
- spec/opensearch/api/actions/indices/get_alias_spec.rb
|
787
785
|
- spec/opensearch/api/actions/indices/get_field_mapping_spec.rb
|
@@ -820,7 +818,6 @@ test_files:
|
|
820
818
|
- spec/opensearch/api/actions/nodes/reload_secure_settings_spec.rb
|
821
819
|
- spec/opensearch/api/actions/nodes/shutdown_spec.rb
|
822
820
|
- spec/opensearch/api/actions/nodes/stats_spec.rb
|
823
|
-
- spec/opensearch/api/actions/open_point_in_time_spec.rb
|
824
821
|
- spec/opensearch/api/actions/ping_spec.rb
|
825
822
|
- spec/opensearch/api/actions/put_script_spec.rb
|
826
823
|
- spec/opensearch/api/actions/reindex_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# SPDX-License-Identifier: Apache-2.0
|
2
|
-
#
|
3
|
-
# The OpenSearch Contributors require contributions made to
|
4
|
-
# this file be licensed under the Apache-2.0 license or a
|
5
|
-
# compatible open source license.
|
6
|
-
#
|
7
|
-
# Modifications Copyright OpenSearch Contributors. See
|
8
|
-
# GitHub history for details.
|
9
|
-
#
|
10
|
-
# Licensed to Elasticsearch B.V. under one or more contributor
|
11
|
-
# license agreements. See the NOTICE file distributed with
|
12
|
-
# this work for additional information regarding copyright
|
13
|
-
# ownership. Elasticsearch B.V. licenses this file to you under
|
14
|
-
# the Apache License, Version 2.0 (the "License"); you may
|
15
|
-
# not use this file except in compliance with the License.
|
16
|
-
# You may obtain a copy of the License at
|
17
|
-
#
|
18
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
19
|
-
#
|
20
|
-
# Unless required by applicable law or agreed to in writing,
|
21
|
-
# software distributed under the License is distributed on an
|
22
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
23
|
-
# KIND, either express or implied. See the License for the
|
24
|
-
# specific language governing permissions and limitations
|
25
|
-
# under the License.
|
26
|
-
|
27
|
-
module OpenSearch
|
28
|
-
module API
|
29
|
-
module Actions
|
30
|
-
# Close a point in time
|
31
|
-
#
|
32
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
-
# @option arguments [Hash] :body a point-in-time id to close
|
34
|
-
#
|
35
|
-
#
|
36
|
-
def close_point_in_time(arguments = {})
|
37
|
-
headers = arguments.delete(:headers) || {}
|
38
|
-
|
39
|
-
arguments = arguments.clone
|
40
|
-
|
41
|
-
method = OpenSearch::API::HTTP_DELETE
|
42
|
-
path = "_pit"
|
43
|
-
params = {}
|
44
|
-
|
45
|
-
body = arguments[:body]
|
46
|
-
perform_request(method, path, params, body, headers).body
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
# SPDX-License-Identifier: Apache-2.0
|
2
|
-
#
|
3
|
-
# The OpenSearch Contributors require contributions made to
|
4
|
-
# this file be licensed under the Apache-2.0 license or a
|
5
|
-
# compatible open source license.
|
6
|
-
#
|
7
|
-
# Modifications Copyright OpenSearch Contributors. See
|
8
|
-
# GitHub history for details.
|
9
|
-
#
|
10
|
-
# Licensed to Elasticsearch B.V. under one or more contributor
|
11
|
-
# license agreements. See the NOTICE file distributed with
|
12
|
-
# this work for additional information regarding copyright
|
13
|
-
# ownership. Elasticsearch B.V. licenses this file to you under
|
14
|
-
# the Apache License, Version 2.0 (the "License"); you may
|
15
|
-
# not use this file except in compliance with the License.
|
16
|
-
# You may obtain a copy of the License at
|
17
|
-
#
|
18
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
19
|
-
#
|
20
|
-
# Unless required by applicable law or agreed to in writing,
|
21
|
-
# software distributed under the License is distributed on an
|
22
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
23
|
-
# KIND, either express or implied. See the License for the
|
24
|
-
# specific language governing permissions and limitations
|
25
|
-
# under the License.
|
26
|
-
|
27
|
-
module OpenSearch
|
28
|
-
module API
|
29
|
-
module Indices
|
30
|
-
module Actions
|
31
|
-
# Returns information about whether a particular document type exists. (DEPRECATED)
|
32
|
-
#
|
33
|
-
# @option arguments [List] :index A comma-separated list of index names; use `_all` to check the types across all indices
|
34
|
-
# @option arguments [List] :type A comma-separated list of document types to check
|
35
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
36
|
-
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
37
|
-
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
38
|
-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
39
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
40
|
-
#
|
41
|
-
#
|
42
|
-
def exists_type(arguments = {})
|
43
|
-
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
44
|
-
raise ArgumentError, "Required argument 'type' missing" unless arguments[:type]
|
45
|
-
|
46
|
-
headers = arguments.delete(:headers) || {}
|
47
|
-
|
48
|
-
arguments = arguments.clone
|
49
|
-
|
50
|
-
_index = arguments.delete(:index)
|
51
|
-
|
52
|
-
_type = arguments.delete(:type)
|
53
|
-
|
54
|
-
method = OpenSearch::API::HTTP_HEAD
|
55
|
-
path = "#{Utils.__listify(_index)}/_mapping/#{Utils.__listify(_type)}"
|
56
|
-
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
57
|
-
|
58
|
-
body = nil
|
59
|
-
|
60
|
-
Utils.__rescue_from_not_found do
|
61
|
-
perform_request(method, path, params, body, headers).status == 200 ? true : false
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
alias_method :exists_type?, :exists_type
|
66
|
-
|
67
|
-
# Register this action with its valid params when the module is loaded.
|
68
|
-
#
|
69
|
-
# @since 6.2.0
|
70
|
-
ParamsRegistry.register(:exists_type, [
|
71
|
-
:ignore_unavailable,
|
72
|
-
:allow_no_indices,
|
73
|
-
:expand_wildcards,
|
74
|
-
:local
|
75
|
-
].freeze)
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
# SPDX-License-Identifier: Apache-2.0
|
2
|
-
#
|
3
|
-
# The OpenSearch Contributors require contributions made to
|
4
|
-
# this file be licensed under the Apache-2.0 license or a
|
5
|
-
# compatible open source license.
|
6
|
-
#
|
7
|
-
# Modifications Copyright OpenSearch Contributors. See
|
8
|
-
# GitHub history for details.
|
9
|
-
#
|
10
|
-
# Licensed to Elasticsearch B.V. under one or more contributor
|
11
|
-
# license agreements. See the NOTICE file distributed with
|
12
|
-
# this work for additional information regarding copyright
|
13
|
-
# ownership. Elasticsearch B.V. licenses this file to you under
|
14
|
-
# the Apache License, Version 2.0 (the "License"); you may
|
15
|
-
# not use this file except in compliance with the License.
|
16
|
-
# You may obtain a copy of the License at
|
17
|
-
#
|
18
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
19
|
-
#
|
20
|
-
# Unless required by applicable law or agreed to in writing,
|
21
|
-
# software distributed under the License is distributed on an
|
22
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
23
|
-
# KIND, either express or implied. See the License for the
|
24
|
-
# specific language governing permissions and limitations
|
25
|
-
# under the License.
|
26
|
-
|
27
|
-
module OpenSearch
|
28
|
-
module API
|
29
|
-
module Indices
|
30
|
-
module Actions
|
31
|
-
# Performs a synced flush operation on one or more indices. Synced flush is deprecated and will be removed in 8.0. Use flush instead
|
32
|
-
#
|
33
|
-
# @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string for all indices
|
34
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
35
|
-
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
36
|
-
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
37
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
38
|
-
#
|
39
|
-
# *Deprecation notice*:
|
40
|
-
# Synced flush is deprecated and will be removed in 8.0. Use flush instead.
|
41
|
-
# Deprecated since version 7.6.0
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
def flush_synced(arguments = {})
|
46
|
-
headers = arguments.delete(:headers) || {}
|
47
|
-
|
48
|
-
arguments = arguments.clone
|
49
|
-
|
50
|
-
_index = arguments.delete(:index)
|
51
|
-
|
52
|
-
method = OpenSearch::API::HTTP_POST
|
53
|
-
path = if _index
|
54
|
-
"#{Utils.__listify(_index)}/_flush/synced"
|
55
|
-
else
|
56
|
-
"_flush/synced"
|
57
|
-
end
|
58
|
-
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
59
|
-
|
60
|
-
body = nil
|
61
|
-
if Array(arguments[:ignore]).include?(404)
|
62
|
-
Utils.__rescue_from_not_found { perform_request(method, path, params, body, headers).body }
|
63
|
-
else
|
64
|
-
perform_request(method, path, params, body, headers).body
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# Register this action with its valid params when the module is loaded.
|
69
|
-
#
|
70
|
-
# @since 6.2.0
|
71
|
-
ParamsRegistry.register(:flush_synced, [
|
72
|
-
:ignore_unavailable,
|
73
|
-
:allow_no_indices,
|
74
|
-
:expand_wildcards
|
75
|
-
].freeze)
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# SPDX-License-Identifier: Apache-2.0
|
2
|
-
#
|
3
|
-
# The OpenSearch Contributors require contributions made to
|
4
|
-
# this file be licensed under the Apache-2.0 license or a
|
5
|
-
# compatible open source license.
|
6
|
-
#
|
7
|
-
# Modifications Copyright OpenSearch Contributors. See
|
8
|
-
# GitHub history for details.
|
9
|
-
#
|
10
|
-
# Licensed to Elasticsearch B.V. under one or more contributor
|
11
|
-
# license agreements. See the NOTICE file distributed with
|
12
|
-
# this work for additional information regarding copyright
|
13
|
-
# ownership. Elasticsearch B.V. licenses this file to you under
|
14
|
-
# the Apache License, Version 2.0 (the "License"); you may
|
15
|
-
# not use this file except in compliance with the License.
|
16
|
-
# You may obtain a copy of the License at
|
17
|
-
#
|
18
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
19
|
-
#
|
20
|
-
# Unless required by applicable law or agreed to in writing,
|
21
|
-
# software distributed under the License is distributed on an
|
22
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
23
|
-
# KIND, either express or implied. See the License for the
|
24
|
-
# specific language governing permissions and limitations
|
25
|
-
# under the License.
|
26
|
-
|
27
|
-
module OpenSearch
|
28
|
-
module API
|
29
|
-
module Actions
|
30
|
-
# Open a point in time that can be used in subsequent searches
|
31
|
-
#
|
32
|
-
# @option arguments [List] :index A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices
|
33
|
-
# @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random)
|
34
|
-
# @option arguments [String] :routing Specific routing value
|
35
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
36
|
-
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
37
|
-
# @option arguments [String] :keep_alive Specific the time to live for the point in time
|
38
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
39
|
-
#
|
40
|
-
#
|
41
|
-
def open_point_in_time(arguments = {})
|
42
|
-
headers = arguments.delete(:headers) || {}
|
43
|
-
|
44
|
-
arguments = arguments.clone
|
45
|
-
|
46
|
-
_index = arguments.delete(:index)
|
47
|
-
|
48
|
-
method = OpenSearch::API::HTTP_POST
|
49
|
-
path = if _index
|
50
|
-
"#{Utils.__listify(_index)}/_pit"
|
51
|
-
else
|
52
|
-
"_pit"
|
53
|
-
end
|
54
|
-
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
55
|
-
|
56
|
-
body = nil
|
57
|
-
perform_request(method, path, params, body, headers).body
|
58
|
-
end
|
59
|
-
|
60
|
-
# Register this action with its valid params when the module is loaded.
|
61
|
-
#
|
62
|
-
# @since 6.2.0
|
63
|
-
ParamsRegistry.register(:open_point_in_time, [
|
64
|
-
:preference,
|
65
|
-
:routing,
|
66
|
-
:ignore_unavailable,
|
67
|
-
:expand_wildcards,
|
68
|
-
:keep_alive
|
69
|
-
].freeze)
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# SPDX-License-Identifier: Apache-2.0
|
2
|
-
#
|
3
|
-
# The OpenSearch Contributors require contributions made to
|
4
|
-
# this file be licensed under the Apache-2.0 license or a
|
5
|
-
# compatible open source license.
|
6
|
-
#
|
7
|
-
# Modifications Copyright OpenSearch Contributors. See
|
8
|
-
# GitHub history for details.
|
9
|
-
#
|
10
|
-
# Licensed to Elasticsearch B.V. under one or more contributor
|
11
|
-
# license agreements. See the NOTICE file distributed with
|
12
|
-
# this work for additional information regarding copyright
|
13
|
-
# ownership. Elasticsearch B.V. licenses this file to you under
|
14
|
-
# the Apache License, Version 2.0 (the "License"); you may
|
15
|
-
# not use this file except in compliance with the License.
|
16
|
-
# You may obtain a copy of the License at
|
17
|
-
#
|
18
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
19
|
-
#
|
20
|
-
# Unless required by applicable law or agreed to in writing,
|
21
|
-
# software distributed under the License is distributed on an
|
22
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
23
|
-
# KIND, either express or implied. See the License for the
|
24
|
-
# specific language governing permissions and limitations
|
25
|
-
# under the License.
|
26
|
-
|
27
|
-
require 'spec_helper'
|
28
|
-
|
29
|
-
describe 'client#close_point_in_time' do
|
30
|
-
let(:expected_args) do
|
31
|
-
[
|
32
|
-
'DELETE',
|
33
|
-
'_pit',
|
34
|
-
{},
|
35
|
-
nil,
|
36
|
-
{}
|
37
|
-
]
|
38
|
-
end
|
39
|
-
|
40
|
-
it 'performs the request' do
|
41
|
-
expect(client_double.close_point_in_time).to eq({})
|
42
|
-
end
|
43
|
-
end
|