Commit Graph
1503 Commits
Author SHA1 Message Date
Daniel (dB.) DoubrovkineandGitHub 5c7fe9dbde Fix: don't hardcode client class name. (#555)
Signed-off-by: dblock <[email protected]>
2023-10-26 09:30:23 -07:00
Daniel (dB.) DoubrovkineandGitHub 17794bab75 Add a nox session for client generator. (#554)
Signed-off-by: dblock <[email protected]>
2023-10-26 08:55:25 -07:00
Daniel (dB.) DoubrovkineandGitHub ebd50e0515 Override put_mapping definition to make index name optional. (#553)
Signed-off-by: dblock <[email protected]>
2023-10-26 11:31:13 -04:00
Sai Medhini Reddy MaryadaandGitHub fe4b6d754c added remote store client (#552)
Signed-off-by: saimedhi <[email protected]>
2023-10-26 10:59:07 -04:00
Sai Medhini Reddy MaryadaandGitHub 1190079f51 Generate opensearch-py client from API specs (#551)
Signed-off-by: saimedhi <[email protected]>
2023-10-26 10:58:33 -04:00
Daniel (dB.) DoubrovkineandGitHub 59072a67b8 Remove PY2. (#550)
Signed-off-by: dblock <[email protected]>
2023-10-25 08:41:50 -04:00
Daniel (dB.) DoubrovkineandGitHub 627e717534 Remove support for Python 2.x. (#548)
Signed-off-by: dblock <[email protected]>
2023-10-24 07:57:21 -07:00
Daniel (dB.) DoubrovkineandGitHub a1f942b6f9 Added support for AWS Sigv4 for UrlLib3. (#547)
* WIP: Added support for AWS Sigv4 for UrlLib3.

Signed-off-by: dblock <[email protected]>

* Refactored common implementation.

Signed-off-by: dblock <[email protected]>

* Added sigv4 samples.

Signed-off-by: dblock <[email protected]>

* Updated CHANGELOG.

Signed-off-by: dblock <[email protected]>

* Add documentation.

Signed-off-by: dblock <[email protected]>

* Use the correct class in tests.

Signed-off-by: dblock <[email protected]>

* Renamed samples.

Signed-off-by: dblock <[email protected]>

* Split up requests and urllib3 unit tests.

Signed-off-by: dblock <[email protected]>

* Rename AWSV4Signer.

Signed-off-by: dblock <[email protected]>

* Clarified documentation of when to use Urllib3AWSV4SignerAuth vs. RequestHttpConnection.

Signed-off-by: dblock <[email protected]>

* Move fetch_url inside the signer class.

Signed-off-by: dblock <[email protected]>

* Added unit test for Urllib3AWSV4SignerAuth adding headers.

Signed-off-by: dblock <[email protected]>

* Added unit test for signing to include query string.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-10-23 19:46:19 -04:00
Daniel (dB.) DoubrovkineandGitHub fa8f3a7ae0 Added a guide on making raw JSON REST requests. (#542)
Signed-off-by: dblock <[email protected]>
2023-10-16 12:32:17 -07:00
DJ CarrilloandGitHub d9a7050df4 Added advanced index actioins guide & sample code file. (#541)
Signed-off-by: Djcarrillo6 <[email protected]>
2023-10-16 11:27:22 -04:00
Daniel (dB.) DoubrovkineandGitHub af263a060a Add micro benchmarks. (#537)
* Align pool_maxsize for different connection pool implementations.

Signed-off-by: dblock <[email protected]>

* Added benchmarks.

Signed-off-by: dblock <[email protected]>

* Multi-threaded vs. async benchmarks.

Signed-off-by: dblock <[email protected]>

* Set pool size to the number of threads.

Signed-off-by: dblock <[email protected]>

* Added sync/async benchmark.

Signed-off-by: dblock <[email protected]>

* Report client-side latency.

Signed-off-by: dblock <[email protected]>

* Various updates to benchmarks, demonstrating threading improves throughput.

Signed-off-by: dblock <[email protected]>

* Bench info.

Signed-off-by: dblock <[email protected]>

* Fixup format.

Signed-off-by: dblock <[email protected]>

* Undo async maxsize.

Signed-off-by: dblock <[email protected]>

* Moved benchmarks folder.

Signed-off-by: dblock <[email protected]>

* Updated documentation and project description.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-10-13 11:29:54 -07:00
Daniel (dB.) DoubrovkineandGitHub 7a638cdafc Align pool_maxsize for different connection pool implementations. (#535)
* Align pool_maxsize for different connection pool implementations.

Signed-off-by: dblock <[email protected]>

* Document connection classes and settings.

Signed-off-by: dblock <[email protected]>

* Undo change in async for backwards compatibility.

Signed-off-by: dblock <[email protected]>

* Fix: typo.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-10-12 18:55:31 -04:00
DJ CarrilloandGitHub 62b408bbd1 Removed EOL Python3.5 & bumped urllib3 version to patch security vulnerability (#533)
Updated CHANGELOG with pull #



Updated CHANGELOG with pull #



Updated CHANGELOG removed section.



Updated CHANGELOG removed section again

Signed-off-by: Djcarrillo6 <[email protected]>
2023-10-12 14:11:21 -07:00
DJ CarrilloandGitHub 84ac172ddc Added new guide & sample module for using index templates. (#531)
Added index_template guide and sample



Signed-off-by: Djcarrillo6 <[email protected]>
2023-10-11 10:11:35 -07:00
Sai Medhini Reddy MaryadaandGitHub ce835fb59d Generate cluster client from API specs (#530)
Signed-off-by: saimedhi <[email protected]>
2023-10-09 17:57:09 -04:00
Sai Medhini Reddy MaryadaandGitHub 388fb9d983 Generate cat client from API specs (#529)
Signed-off-by: saimedhi <[email protected]>
2023-10-09 17:55:51 -04:00
Sai Medhini Reddy MaryadaandGitHub e4c59e4732 Modified generator to generate api deprecation warnings (#527)
Signed-off-by: saimedhi <[email protected]>
2023-10-09 16:47:26 -04:00
Daniel (dB.) DoubrovkineandGitHub 2bfc409177 Fix: typos. (#526)
* Fix: typo.

Signed-off-by: dblock <[email protected]>

* Fix: typo.

Signed-off-by: dblock <[email protected]>

* Fixed its.

Signed-off-by: dblock <[email protected]>

* Added Visual Code settings to .gitignore.

Signed-off-by: dblock <[email protected]>

* Added loop type for async client.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-10-09 10:45:18 -07:00
Sai Medhini Reddy MaryadaandGitHub 49c2f6e87d Bump version to 2.3.2 (#524)
Signed-off-by: saimedhi <[email protected]>
2023-10-06 16:37:56 -04:00
Sai Medhini Reddy MaryadaandGitHub be26adb369 updated changelog (#522)
Signed-off-by: saimedhi <[email protected]>
2023-10-03 16:01:41 -07:00
80b96812a7 Integrated generated 'nodes' client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#514)
Signed-off-by: saimedhi <[email protected]>
Signed-off-by: Sai Medhini Reddy Maryada <[email protected]>
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]>
2023-10-03 15:00:49 -07:00
Bhavani RaviandGitHub 1a47e6fa1f fixes: #512 Wrong return type hint in async_scan (#520)
* fixes: #512 Wrong return type hint in async_scan

Signed-off-by: Bhavani Ravi <[email protected]>

* add: changelog

Signed-off-by: Bhavani Ravi <[email protected]>

---------

Signed-off-by: Bhavani Ravi <[email protected]>
2023-10-03 10:45:35 -04:00
Sai Medhini Reddy MaryadaandGitHub 70db37a3c0 Modified generator to generate 'options' and 'default value' for parameters in description (#519)
Signed-off-by: saimedhi <[email protected]>
2023-10-03 10:43:05 -04:00
Sai Medhini Reddy MaryadaandGitHub 781744c6b1 Bumps from >=1.21.1 to >=1.26.9 (#518)
Signed-off-by: saimedhi <[email protected]>
2023-10-03 10:41:41 -04:00
Sai Medhini Reddy MaryadaandGitHub 9fe5f5ad62 Integrated generated dangling_indices client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#511)
Signed-off-by: saimedhi <[email protected]>
Signed-off-by: Sai Medhini Reddy Maryada <[email protected]>
2023-10-03 10:40:51 -04:00
Sai Medhini Reddy MaryadaandGitHub 7d3c528dff Integrated generated ingest client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#513)
Signed-off-by: saimedhi <[email protected]>
2023-09-28 20:18:53 -07:00
Sai Medhini Reddy MaryadaandGitHub 2feccc22bb Integrated generated APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#508)
Signed-off-by: saimedhi <[email protected]>
2023-09-26 12:49:25 -04:00
Sai Medhini Reddy MaryadaandGitHub c6c7df5461 Updated APIs to match other clients and opensearch openapi spec (#502)
Signed-off-by: saimedhi <[email protected]>
2023-09-26 12:46:18 -04:00
Daniel (dB.) DoubrovkineandGitHub 69750e82d8 Fix: typo. (#497)
Signed-off-by: dblock <[email protected]>
2023-09-15 11:51:55 -07:00
Raman SaparkhanandGitHub 29c6445dcc [CCI][GUIDE] Minor fixes to poetry docs (#494)
* minor fixes to poetry docs

Signed-off-by: Raman Saparkhan <[email protected]>

* updated CHANGELOG.md

Signed-off-by: Raman Saparkhan <[email protected]>

* updated CHANGELOG.md

Signed-off-by: Raman Saparkhan <[email protected]>

* fixed CHANGELOG.md

Signed-off-by: Raman Saparkhan <[email protected]>

---------

Signed-off-by: Raman Saparkhan <[email protected]>
2023-09-15 03:07:52 -04:00
Sai Medhini Reddy MaryadaandGitHub c8b04a5246 Adding @florianvazelle as maintainer and codeowner (#478)
Signed-off-by: saimedhi <[email protected]>
2023-08-22 11:05:35 -07:00
Sai Medhini Reddy MaryadaandGitHub 14602d61cf Bump version to 2.3.1 (#481)
Signed-off-by: saimedhi <[email protected]>
Signed-off-by: Sai Medhini Reddy Maryada <[email protected]>
2023-08-21 12:06:19 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <dependabot[bot]@users.noreply.github.com>
c355911e86 Update sphinx requirement from <7.2 to <7.3 (#480)
* Update sphinx requirement from <7.2 to <7.3

Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v0.1.61611...v7.2.2)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2023-08-21 11:46:51 -07:00
Logan AttwoodandGitHub fca8bd3d0e Fix race condition in AWS request signers (#470)
* Fix race condition in AWS request signers

Signed-off-by: Logan Attwood <[email protected]>

* Conditionally expose get_frozen_credentials on mock_session

Signed-off-by: Logan Attwood <[email protected]>

* Use inheritance to make tests cleaner

Signed-off-by: Logan Attwood <[email protected]>

---------

Signed-off-by: Logan Attwood <[email protected]>
2023-08-10 13:32:53 -04:00
Sai Medhini Reddy MaryadaandGitHub 8485606913 Added generating imports and headers to API generator (#467)
Signed-off-by: saimedhi <[email protected]>
2023-08-02 15:00:20 -07:00
Sai Medhini Reddy MaryadaandGitHub c104ae52b3 Bumps urllib3 (#466)
Signed-off-by: saimedhi <[email protected]>
2023-08-02 17:46:49 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <dependabot[bot]@users.noreply.github.com>
1532b06ec2 Update sphinx requirement from <7.1 to <7.2 (#463)
* Update sphinx requirement from <7.1 to <7.2

Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v0.1.61611...v7.1.1)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2023-07-31 10:15:36 -07:00
Vacha ShahandGitHub 26458fa6cd Adding missing comma to jenkins workflow (#458)
Signed-off-by: Vacha Shah <[email protected]>
2023-07-26 19:39:52 -07:00
Sai Medhini Reddy MaryadaandGitHub b1c82a265d Bump version to 2.3.0 (#456)
Signed-off-by: saimedhi <[email protected]>
2023-07-26 17:19:22 -07:00
Sai Medhini Reddy MaryadaandGitHub caeaa13250 Updated Security Client APIs (#450)
Signed-off-by: saimedhi <[email protected]>
2023-07-26 18:38:49 -04:00
87b402c16e Finish up #305, tests for AsyncTransport (#452)
* fix multihost connection of AsyncTransport for AIOHttpConnection as connection_class & ConnectionPool as connection_pool_class parameters with compatability legacy test cases

Signed-off-by: ARashitov <[email protected]>

* adding test cases for checking multihost connection pool init with specified connection_class object

Signed-off-by: ARashitov <[email protected]>

* remove introduced updates

Signed-off-by: ARashitov <[email protected]>

* fix test cases by adding _async_init() call to init the actual hosts

Signed-off-by: ARashitov <[email protected]>

* remove unneeded imports

Signed-off-by: ARashitov <[email protected]>

* fix test cases of multi hosts connection pool init & adding documentation

Signed-off-by: ARashitov <[email protected]>

* Addressed comments in #305.

Signed-off-by: dblock <[email protected]>

* Renamed file for consistency.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: ARashitov <[email protected]>
Signed-off-by: dblock <[email protected]>
Co-authored-by: ARashitov <[email protected]>
2023-07-26 10:45:52 -07:00
Daniel (dB.) DoubrovkineandGitHub e022932ed1 Add the ability to run test patterns. (#454)
Signed-off-by: dblock <[email protected]>
2023-07-26 10:18:45 -07:00
Daniel (dB.) DoubrovkineandGitHub 42852d0d53 Added Python 3.10 and 3.11 to nox. (#455)
Signed-off-by: dblock <[email protected]>
2023-07-26 10:03:42 -07:00
Vacha ShahandGitHub f235013f1d Adding @saimedhi as maintainer and codeowner (#451)
Signed-off-by: Vacha Shah <[email protected]>
2023-07-26 10:05:58 -04:00
Daniel (dB.) DoubrovkineandGitHub 54a517ada9 Added bulk samples and explained error handling. (#448)
* Added bulk samples and explained error handling.

Signed-off-by: dblock <[email protected]>

* The client can serialize an array for you.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2023-07-25 19:17:28 -07:00
f54973e583 Added k-nn user guide and samples. (#449)
* Added k-nn user guide and samples.

Signed-off-by: dblock <[email protected]>

* Added async samples.

Signed-off-by: dblock <[email protected]>

* Renamed Lucene Filters with Efficient Filters.

Signed-off-by: dblock <[email protected]>

* Fixing TOC from Lucene filters to Efficient filters

Signed-off-by: Vacha Shah <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
Signed-off-by: Vacha Shah <[email protected]>
Co-authored-by: Vacha Shah <[email protected]>
2023-07-25 19:04:13 -07:00
Daniel (dB.) DoubrovkineandGitHub 58217d98ff Reorganize documentation and add samples. (#447)
Signed-off-by: dblock <[email protected]>
2023-07-24 10:23:51 -07:00
florianvazelleandGitHub 5866880c81 Add async tests for plugins (#425)
* test(plugins): add async tests for plugins

Signed-off-by: florian <[email protected]>

* chore(USER_GUIDE): remove **

Signed-off-by: florian <[email protected]>

* test(async): remove the event loop session scoped fixture

Signed-off-by: florian <[email protected]>

---------

Signed-off-by: florian <[email protected]>
2023-07-24 09:56:32 -04:00
Sai Medhini Reddy MaryadaandGitHub 5fa6d994bd Added support for latest OpenSearch versions 2.7.0, 2.8.0 (#445)
Signed-off-by: saimedhi <[email protected]>
2023-07-21 13:08:09 -04:00
florianvazelleandGitHub 5dc51d4b7f Move security api from plugins to clients (#442)
* fix(security): move security api from plugins to clients

Signed-off-by: florian <[email protected]>

* chore(CHANGELOG): update CHANGELOG for the PR#442

Signed-off-by: florian <[email protected]>

---------

Signed-off-by: florian <[email protected]>
2023-07-21 13:07:20 -04:00