opensearch-api 2.0.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.gitignore +1 -0
  4. data/CHANGELOG.md +28 -0
  5. data/Gemfile +2 -2
  6. data/README.md +12 -182
  7. data/Rakefile +5 -5
  8. data/USER_GUIDE.md +155 -0
  9. data/lib/opensearch/api/actions/cat/all_pit_segments.rb +46 -0
  10. data/lib/opensearch/api/actions/cat/allocation.rb +4 -2
  11. data/lib/opensearch/api/actions/cat/cluster_manager.rb +54 -0
  12. data/lib/opensearch/api/actions/cat/indices.rb +4 -2
  13. data/lib/opensearch/api/actions/cat/master.rb +3 -1
  14. data/lib/opensearch/api/actions/cat/nodeattrs.rb +4 -2
  15. data/lib/opensearch/api/actions/cat/nodes.rb +4 -2
  16. data/lib/opensearch/api/actions/cat/pending_tasks.rb +4 -2
  17. data/lib/opensearch/api/actions/cat/pit_segments.rb +49 -0
  18. data/lib/opensearch/api/actions/cat/plugins.rb +4 -2
  19. data/lib/opensearch/api/actions/cat/repositories.rb +4 -2
  20. data/lib/opensearch/api/actions/cat/shards.rb +4 -2
  21. data/lib/opensearch/api/actions/cat/snapshots.rb +3 -1
  22. data/lib/opensearch/api/actions/cat/templates.rb +4 -2
  23. data/lib/opensearch/api/actions/cat/thread_pool.rb +4 -2
  24. data/lib/opensearch/api/actions/cluster/delete_component_template.rb +4 -2
  25. data/lib/opensearch/api/actions/cluster/exists_component_template.rb +4 -2
  26. data/lib/opensearch/api/actions/cluster/get_component_template.rb +4 -2
  27. data/lib/opensearch/api/actions/cluster/get_settings.rb +3 -1
  28. data/lib/opensearch/api/actions/cluster/health.rb +4 -2
  29. data/lib/opensearch/api/actions/cluster/pending_tasks.rb +5 -3
  30. data/lib/opensearch/api/actions/cluster/put_component_template.rb +4 -2
  31. data/lib/opensearch/api/actions/cluster/put_settings.rb +3 -1
  32. data/lib/opensearch/api/actions/cluster/reroute.rb +4 -2
  33. data/lib/opensearch/api/actions/cluster/state.rb +4 -2
  34. data/lib/opensearch/api/actions/create_pit.rb +45 -0
  35. data/lib/opensearch/api/actions/dangling_indices/delete_dangling_index.rb +4 -2
  36. data/lib/opensearch/api/actions/dangling_indices/import_dangling_index.rb +4 -2
  37. data/lib/opensearch/api/actions/delete_all_pits.rb +26 -0
  38. data/lib/opensearch/api/actions/delete_pit.rb +30 -0
  39. data/lib/opensearch/api/actions/delete_script.rb +4 -2
  40. data/lib/opensearch/api/actions/features/get_features.rb +4 -2
  41. data/lib/opensearch/api/actions/get_all_pits.rb +26 -0
  42. data/lib/opensearch/api/actions/get_script.rb +4 -2
  43. data/lib/opensearch/api/actions/indices/add_block.rb +3 -1
  44. data/lib/opensearch/api/actions/indices/clone.rb +3 -1
  45. data/lib/opensearch/api/actions/indices/close.rb +3 -1
  46. data/lib/opensearch/api/actions/indices/create.rb +4 -2
  47. data/lib/opensearch/api/actions/indices/delete.rb +3 -1
  48. data/lib/opensearch/api/actions/indices/delete_alias.rb +4 -2
  49. data/lib/opensearch/api/actions/indices/delete_index_template.rb +4 -2
  50. data/lib/opensearch/api/actions/indices/delete_template.rb +4 -2
  51. data/lib/opensearch/api/actions/indices/exists_index_template.rb +4 -2
  52. data/lib/opensearch/api/actions/indices/exists_template.rb +4 -2
  53. data/lib/opensearch/api/actions/indices/get.rb +4 -2
  54. data/lib/opensearch/api/actions/indices/get_index_template.rb +4 -2
  55. data/lib/opensearch/api/actions/indices/get_mapping.rb +4 -2
  56. data/lib/opensearch/api/actions/indices/get_settings.rb +3 -1
  57. data/lib/opensearch/api/actions/indices/get_template.rb +4 -2
  58. data/lib/opensearch/api/actions/indices/open.rb +3 -1
  59. data/lib/opensearch/api/actions/indices/put_alias.rb +4 -2
  60. data/lib/opensearch/api/actions/indices/put_index_template.rb +4 -2
  61. data/lib/opensearch/api/actions/indices/put_mapping.rb +3 -1
  62. data/lib/opensearch/api/actions/indices/put_settings.rb +3 -1
  63. data/lib/opensearch/api/actions/indices/put_template.rb +4 -2
  64. data/lib/opensearch/api/actions/indices/rollover.rb +3 -1
  65. data/lib/opensearch/api/actions/indices/shrink.rb +3 -1
  66. data/lib/opensearch/api/actions/indices/simulate_index_template.rb +4 -2
  67. data/lib/opensearch/api/actions/indices/simulate_template.rb +4 -2
  68. data/lib/opensearch/api/actions/indices/split.rb +3 -1
  69. data/lib/opensearch/api/actions/indices/update_aliases.rb +4 -2
  70. data/lib/opensearch/api/actions/ingest/delete_pipeline.rb +3 -1
  71. data/lib/opensearch/api/actions/ingest/get_pipeline.rb +4 -2
  72. data/lib/opensearch/api/actions/ingest/put_pipeline.rb +3 -1
  73. data/lib/opensearch/api/actions/put_script.rb +3 -1
  74. data/lib/opensearch/api/actions/search_shards.rb +1 -1
  75. data/lib/opensearch/api/actions/snapshot/cleanup_repository.rb +3 -1
  76. data/lib/opensearch/api/actions/snapshot/clone.rb +4 -2
  77. data/lib/opensearch/api/actions/snapshot/create.rb +3 -1
  78. data/lib/opensearch/api/actions/snapshot/create_repository.rb +3 -1
  79. data/lib/opensearch/api/actions/snapshot/delete.rb +4 -2
  80. data/lib/opensearch/api/actions/snapshot/delete_repository.rb +3 -1
  81. data/lib/opensearch/api/actions/snapshot/get.rb +3 -1
  82. data/lib/opensearch/api/actions/snapshot/get_features.rb +4 -2
  83. data/lib/opensearch/api/actions/snapshot/get_repository.rb +3 -2
  84. data/lib/opensearch/api/actions/snapshot/restore.rb +3 -1
  85. data/lib/opensearch/api/actions/snapshot/status.rb +3 -1
  86. data/lib/opensearch/api/actions/snapshot/verify_repository.rb +3 -1
  87. data/lib/opensearch/api/utils.rb +4 -4
  88. data/lib/opensearch/api/version.rb +1 -1
  89. data/opensearch-api.gemspec +2 -2
  90. data/spec/opensearch/api/actions/cat/all_pit_segments_spec.rb +36 -0
  91. data/spec/opensearch/api/actions/cat/allocation_spec.rb +6 -7
  92. data/spec/opensearch/api/actions/cat/cluster_manager_spec.rb +26 -0
  93. data/spec/opensearch/api/actions/cat/pit_segments_spec.rb +43 -0
  94. data/spec/opensearch/api/actions/create_pit_spec.rb +58 -0
  95. data/spec/opensearch/api/actions/delete_all_pits_spec.rb +35 -0
  96. data/spec/opensearch/api/actions/delete_pit_spec.rb +41 -0
  97. data/spec/opensearch/api/actions/get_all_pits_spec.rb +35 -0
  98. data/spec/opensearch/api/actions/get_script_spec.rb +2 -2
  99. data/spec/opensearch/api/actions/hashie_spec.rb +0 -2
  100. data/spec/opensearch/api/actions/indices/clone_spec.rb +2 -2
  101. data/spec/opensearch/api/utils_spec.rb +6 -6
  102. data.tar.gz.sig +1 -1
  103. metadata +40 -23
  104. metadata.gz.sig +0 -0
  105. data/lib/opensearch/api/actions/close_point_in_time.rb +0 -50
  106. data/lib/opensearch/api/actions/open_point_in_time.rb +0 -72
  107. data/spec/opensearch/api/actions/close_point_in_time_spec.rb +0 -43
  108. data/spec/opensearch/api/actions/open_point_in_time_spec.rb +0 -53
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- D+7��с���V�CJ��c����Ց:�o�����/T�4T�0 <�91j$���e�r) ,��)D|a�"�t��@�Źm�m�.�؇��Thx�w!�C�c� ���!i�!���u�Y�2��h>H'S�����c��4�m��� 5GY���
1
+
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: 2.0.2
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
- Y29tMB4XDTIxMDgwMjIxMDQwM1oXDTIyMDgwMjIxMDQwM1owQjETMBEGA1UEAwwK
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
- KoZIhvcNAQEFBQADggEBAE7gBP5ecTtKb04qmEsnbJ6+yn0LUSmxPabFBnB6h1+T
30
- XW8BvBw9MpE//5fQf4HSia3m9XjRpl4WxBcJiyfLER64tk/c1JLhV2+rq3CCV/be
31
- DFSP6gY93kK7jwauajGQvyHzORaW1TBM6diIRYCMLY7Isf+PTHl0xhZZBSVm8wl6
32
- IstV+mTP2KC1l7hSzUDb4rrOSnpRB7AEczcDdkjwzHKIlw8rcL+PLLnFTOgqKyq3
33
- yXikuH6LEVykA8pgOcB9gKsB2/zMd2ZlSj2monM8Qw9EfB14ZSDTYS8VYuwWCeF0
34
- eFmXXk0ufQFKl1Yll7quHkmQ0PzKkvXTpONBT6qPkXE=
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: 2022-06-30 00:00:00.000000000 Z
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: '0'
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: '0'
93
+ version: '2'
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: opensearch-transport
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -315,9 +315,9 @@ dependencies:
315
315
  - - ">="
316
316
  - !ruby/object:Gem::Version
317
317
  version: '0'
318
- 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.
319
319
 
320
- '
320
+ '
321
321
  email:
322
322
  - jayehh@amazon.com
323
323
  - vamshin@amazon.com
@@ -330,17 +330,21 @@ extra_rdoc_files:
330
330
  - LICENSE
331
331
  files:
332
332
  - ".gitignore"
333
+ - CHANGELOG.md
333
334
  - Gemfile
334
335
  - LICENSE
335
336
  - README.md
336
337
  - Rakefile
338
+ - USER_GUIDE.md
337
339
  - lib/opensearch-api.rb
338
340
  - lib/opensearch/api.rb
339
341
  - lib/opensearch/api/actions/abort_benchmark.rb
340
342
  - lib/opensearch/api/actions/benchmark.rb
341
343
  - lib/opensearch/api/actions/bulk.rb
342
344
  - lib/opensearch/api/actions/cat/aliases.rb
345
+ - lib/opensearch/api/actions/cat/all_pit_segments.rb
343
346
  - lib/opensearch/api/actions/cat/allocation.rb
347
+ - lib/opensearch/api/actions/cat/cluster_manager.rb
344
348
  - lib/opensearch/api/actions/cat/count.rb
345
349
  - lib/opensearch/api/actions/cat/fielddata.rb
346
350
  - lib/opensearch/api/actions/cat/health.rb
@@ -351,6 +355,7 @@ files:
351
355
  - lib/opensearch/api/actions/cat/nodes.rb
352
356
  - lib/opensearch/api/actions/cat/params_registry.rb
353
357
  - lib/opensearch/api/actions/cat/pending_tasks.rb
358
+ - lib/opensearch/api/actions/cat/pit_segments.rb
354
359
  - lib/opensearch/api/actions/cat/plugins.rb
355
360
  - lib/opensearch/api/actions/cat/recovery.rb
356
361
  - lib/opensearch/api/actions/cat/repositories.rb
@@ -361,7 +366,6 @@ files:
361
366
  - lib/opensearch/api/actions/cat/templates.rb
362
367
  - lib/opensearch/api/actions/cat/thread_pool.rb
363
368
  - lib/opensearch/api/actions/clear_scroll.rb
364
- - lib/opensearch/api/actions/close_point_in_time.rb
365
369
  - lib/opensearch/api/actions/cluster/allocation_explain.rb
366
370
  - lib/opensearch/api/actions/cluster/delete_component_template.rb
367
371
  - lib/opensearch/api/actions/cluster/delete_voting_config_exclusions.rb
@@ -380,14 +384,17 @@ files:
380
384
  - lib/opensearch/api/actions/cluster/stats.rb
381
385
  - lib/opensearch/api/actions/count.rb
382
386
  - lib/opensearch/api/actions/create.rb
387
+ - lib/opensearch/api/actions/create_pit.rb
383
388
  - lib/opensearch/api/actions/dangling_indices/delete_dangling_index.rb
384
389
  - lib/opensearch/api/actions/dangling_indices/import_dangling_index.rb
385
390
  - lib/opensearch/api/actions/dangling_indices/list_dangling_indices.rb
386
391
  - lib/opensearch/api/actions/dangling_indices/params_registry.rb
387
392
  - lib/opensearch/api/actions/delete.rb
393
+ - lib/opensearch/api/actions/delete_all_pits.rb
388
394
  - lib/opensearch/api/actions/delete_by_query.rb
389
395
  - lib/opensearch/api/actions/delete_by_query_rethrottle.rb
390
396
  - lib/opensearch/api/actions/delete_by_rethrottle.rb
397
+ - lib/opensearch/api/actions/delete_pit.rb
391
398
  - lib/opensearch/api/actions/delete_script.rb
392
399
  - lib/opensearch/api/actions/exists.rb
393
400
  - lib/opensearch/api/actions/exists_source.rb
@@ -397,6 +404,7 @@ files:
397
404
  - lib/opensearch/api/actions/features/reset_features.rb
398
405
  - lib/opensearch/api/actions/field_caps.rb
399
406
  - lib/opensearch/api/actions/get.rb
407
+ - lib/opensearch/api/actions/get_all_pits.rb
400
408
  - lib/opensearch/api/actions/get_script.rb
401
409
  - lib/opensearch/api/actions/get_script_context.rb
402
410
  - lib/opensearch/api/actions/get_script_languages.rb
@@ -468,7 +476,6 @@ files:
468
476
  - lib/opensearch/api/actions/nodes/shutdown.rb
469
477
  - lib/opensearch/api/actions/nodes/stats.rb
470
478
  - lib/opensearch/api/actions/nodes/usage.rb
471
- - lib/opensearch/api/actions/open_point_in_time.rb
472
479
  - lib/opensearch/api/actions/params_registry.rb
473
480
  - lib/opensearch/api/actions/ping.rb
474
481
  - lib/opensearch/api/actions/put_script.rb
@@ -528,7 +535,9 @@ files:
528
535
  - spec/opensearch/api/actions/benchmark_spec.rb
529
536
  - spec/opensearch/api/actions/bulk_spec.rb
530
537
  - spec/opensearch/api/actions/cat/aliases_spec.rb
538
+ - spec/opensearch/api/actions/cat/all_pit_segments_spec.rb
531
539
  - spec/opensearch/api/actions/cat/allocation_spec.rb
540
+ - spec/opensearch/api/actions/cat/cluster_manager_spec.rb
532
541
  - spec/opensearch/api/actions/cat/count_spec.rb
533
542
  - spec/opensearch/api/actions/cat/fielddata_spec.rb
534
543
  - spec/opensearch/api/actions/cat/health_spec.rb
@@ -538,6 +547,7 @@ files:
538
547
  - spec/opensearch/api/actions/cat/nodeattrs_spec.rb
539
548
  - spec/opensearch/api/actions/cat/nodes_spec.rb
540
549
  - spec/opensearch/api/actions/cat/pending_tasks_spec.rb
550
+ - spec/opensearch/api/actions/cat/pit_segments_spec.rb
541
551
  - spec/opensearch/api/actions/cat/plugins_spec.rb
542
552
  - spec/opensearch/api/actions/cat/recovery_spec.rb
543
553
  - spec/opensearch/api/actions/cat/repositories_spec.rb
@@ -548,7 +558,6 @@ files:
548
558
  - spec/opensearch/api/actions/cat/templates_spec.rb
549
559
  - spec/opensearch/api/actions/cat/thread_pool_spec.rb
550
560
  - spec/opensearch/api/actions/clear_scroll_spec.rb
551
- - spec/opensearch/api/actions/close_point_in_time_spec.rb
552
561
  - spec/opensearch/api/actions/cluster/allocation_explain_spec.rb
553
562
  - spec/opensearch/api/actions/cluster/get_settings_spec.rb
554
563
  - spec/opensearch/api/actions/cluster/health_spec.rb
@@ -560,17 +569,21 @@ files:
560
569
  - spec/opensearch/api/actions/cluster/stats_spec.rb
561
570
  - spec/opensearch/api/actions/count_spec.rb
562
571
  - spec/opensearch/api/actions/create_document_spec.rb
572
+ - spec/opensearch/api/actions/create_pit_spec.rb
563
573
  - spec/opensearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb
564
574
  - spec/opensearch/api/actions/dangling_indices/import_dangling_indices_spec.rb
565
575
  - spec/opensearch/api/actions/dangling_indices/list_dangling_indices_spec.rb
576
+ - spec/opensearch/api/actions/delete_all_pits_spec.rb
566
577
  - spec/opensearch/api/actions/delete_by_query_spec.rb
567
578
  - spec/opensearch/api/actions/delete_document_spec.rb
579
+ - spec/opensearch/api/actions/delete_pit_spec.rb
568
580
  - spec/opensearch/api/actions/delete_script_spec.rb
569
581
  - spec/opensearch/api/actions/exists_document_spec.rb
570
582
  - spec/opensearch/api/actions/explain_document_spec.rb
571
583
  - spec/opensearch/api/actions/features/get_features_spec.rb
572
584
  - spec/opensearch/api/actions/features/reset_features_spec.rb
573
585
  - spec/opensearch/api/actions/field_caps_spec.rb
586
+ - spec/opensearch/api/actions/get_all_pits_spec.rb
574
587
  - spec/opensearch/api/actions/get_document_source_spec.rb
575
588
  - spec/opensearch/api/actions/get_document_spec.rb
576
589
  - spec/opensearch/api/actions/get_script_spec.rb
@@ -629,7 +642,6 @@ files:
629
642
  - spec/opensearch/api/actions/nodes/reload_secure_settings_spec.rb
630
643
  - spec/opensearch/api/actions/nodes/shutdown_spec.rb
631
644
  - spec/opensearch/api/actions/nodes/stats_spec.rb
632
- - spec/opensearch/api/actions/open_point_in_time_spec.rb
633
645
  - spec/opensearch/api/actions/ping_spec.rb
634
646
  - spec/opensearch/api/actions/put_script_spec.rb
635
647
  - spec/opensearch/api/actions/reindex_spec.rb
@@ -690,7 +702,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
690
702
  - !ruby/object:Gem::Version
691
703
  version: '0'
692
704
  requirements: []
693
- rubygems_version: 3.0.8
705
+ rubygems_version: 3.3.26
694
706
  signing_key:
695
707
  specification_version: 4
696
708
  summary: Ruby API for OpenSearch.
@@ -699,7 +711,9 @@ test_files:
699
711
  - spec/opensearch/api/actions/benchmark_spec.rb
700
712
  - spec/opensearch/api/actions/bulk_spec.rb
701
713
  - spec/opensearch/api/actions/cat/aliases_spec.rb
714
+ - spec/opensearch/api/actions/cat/all_pit_segments_spec.rb
702
715
  - spec/opensearch/api/actions/cat/allocation_spec.rb
716
+ - spec/opensearch/api/actions/cat/cluster_manager_spec.rb
703
717
  - spec/opensearch/api/actions/cat/count_spec.rb
704
718
  - spec/opensearch/api/actions/cat/fielddata_spec.rb
705
719
  - spec/opensearch/api/actions/cat/health_spec.rb
@@ -709,6 +723,7 @@ test_files:
709
723
  - spec/opensearch/api/actions/cat/nodeattrs_spec.rb
710
724
  - spec/opensearch/api/actions/cat/nodes_spec.rb
711
725
  - spec/opensearch/api/actions/cat/pending_tasks_spec.rb
726
+ - spec/opensearch/api/actions/cat/pit_segments_spec.rb
712
727
  - spec/opensearch/api/actions/cat/plugins_spec.rb
713
728
  - spec/opensearch/api/actions/cat/recovery_spec.rb
714
729
  - spec/opensearch/api/actions/cat/repositories_spec.rb
@@ -719,7 +734,6 @@ test_files:
719
734
  - spec/opensearch/api/actions/cat/templates_spec.rb
720
735
  - spec/opensearch/api/actions/cat/thread_pool_spec.rb
721
736
  - spec/opensearch/api/actions/clear_scroll_spec.rb
722
- - spec/opensearch/api/actions/close_point_in_time_spec.rb
723
737
  - spec/opensearch/api/actions/cluster/allocation_explain_spec.rb
724
738
  - spec/opensearch/api/actions/cluster/get_settings_spec.rb
725
739
  - spec/opensearch/api/actions/cluster/health_spec.rb
@@ -731,17 +745,21 @@ test_files:
731
745
  - spec/opensearch/api/actions/cluster/stats_spec.rb
732
746
  - spec/opensearch/api/actions/count_spec.rb
733
747
  - spec/opensearch/api/actions/create_document_spec.rb
748
+ - spec/opensearch/api/actions/create_pit_spec.rb
734
749
  - spec/opensearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb
735
750
  - spec/opensearch/api/actions/dangling_indices/import_dangling_indices_spec.rb
736
751
  - spec/opensearch/api/actions/dangling_indices/list_dangling_indices_spec.rb
752
+ - spec/opensearch/api/actions/delete_all_pits_spec.rb
737
753
  - spec/opensearch/api/actions/delete_by_query_spec.rb
738
754
  - spec/opensearch/api/actions/delete_document_spec.rb
755
+ - spec/opensearch/api/actions/delete_pit_spec.rb
739
756
  - spec/opensearch/api/actions/delete_script_spec.rb
740
757
  - spec/opensearch/api/actions/exists_document_spec.rb
741
758
  - spec/opensearch/api/actions/explain_document_spec.rb
742
759
  - spec/opensearch/api/actions/features/get_features_spec.rb
743
760
  - spec/opensearch/api/actions/features/reset_features_spec.rb
744
761
  - spec/opensearch/api/actions/field_caps_spec.rb
762
+ - spec/opensearch/api/actions/get_all_pits_spec.rb
745
763
  - spec/opensearch/api/actions/get_document_source_spec.rb
746
764
  - spec/opensearch/api/actions/get_document_spec.rb
747
765
  - spec/opensearch/api/actions/get_script_spec.rb
@@ -800,7 +818,6 @@ test_files:
800
818
  - spec/opensearch/api/actions/nodes/reload_secure_settings_spec.rb
801
819
  - spec/opensearch/api/actions/nodes/shutdown_spec.rb
802
820
  - spec/opensearch/api/actions/nodes/stats_spec.rb
803
- - spec/opensearch/api/actions/open_point_in_time_spec.rb
804
821
  - spec/opensearch/api/actions/ping_spec.rb
805
822
  - spec/opensearch/api/actions/put_script_spec.rb
806
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,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
@@ -1,53 +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#open_point_in_time' do
30
- let(:expected_args) do
31
- [
32
- 'POST',
33
- url,
34
- {},
35
- nil,
36
- {}
37
- ]
38
- end
39
-
40
- let (:url) { '_pit'}
41
-
42
- it 'performs the request' do
43
- expect(client_double.open_point_in_time).to eq({})
44
- end
45
-
46
- context 'with index' do
47
- let (:url) { 'foo/_pit'}
48
-
49
- it 'performs the request' do
50
- expect(client_double.open_point_in_time(index: 'foo')).to eq({})
51
- end
52
- end
53
- end