Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/issue350/advanced action guide and sample #1

Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
29c6445
[CCI][GUIDE] Minor fixes to poetry docs (#494)
roma2023 Sep 15, 2023
69750e8
Fix: typo. (#497)
dblock Sep 15, 2023
c6c7df5
Updated APIs to match other clients and opensearch openapi spec (#502)
saimedhi Sep 26, 2023
2feccc2
Integrated generated APIs into the existing module, ensuring alignme…
saimedhi Sep 26, 2023
7d3c528
Integrated generated ingest client APIs into the existing module, ens…
saimedhi Sep 29, 2023
9fe5f5a
Integrated generated dangling_indices client APIs into the existing m…
saimedhi Oct 3, 2023
781744c
Bumps from >=1.21.1 to >=1.26.9 (#518)
saimedhi Oct 3, 2023
70db37a
Modified generator to generate 'options' and 'default value' for para…
saimedhi Oct 3, 2023
1a47e6f
fixes: #512 Wrong return type hint in async_scan (#520)
bhavaniravi Oct 3, 2023
80b9681
Integrated generated 'nodes' client APIs into the existing module, en…
saimedhi Oct 3, 2023
be26adb
updated changelog (#522)
saimedhi Oct 3, 2023
49c2f6e
Bump version to 2.3.2 (#524)
saimedhi Oct 6, 2023
2bfc409
Fix: typos. (#526)
dblock Oct 9, 2023
e4c59e4
Modified generator to generate api deprecation warnings (#527)
saimedhi Oct 9, 2023
388fb9d
Generate cat client from API specs (#529)
saimedhi Oct 9, 2023
ce835fb
Generate cluster client from API specs (#530)
saimedhi Oct 9, 2023
84ac172
Added new guide & sample module for using index templates. (#531)
Djcarrillo6 Oct 11, 2023
62b408b
Removed EOL Python3.5 & bumped urllib3 version to patch security vuln…
Djcarrillo6 Oct 12, 2023
7a638cd
Align pool_maxsize for different connection pool implementations. (#535)
dblock Oct 12, 2023
af263a0
Add micro benchmarks. (#537)
dblock Oct 13, 2023
e8df29d
Added advanced index actions API guide & sample.
Djcarrillo6 Oct 13, 2023
81d72ea
Merge branch 'advanced-index-actions-py-guide' into fix/issue350/adva…
Djcarrillo6 Oct 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Modified generator to generate api deprecation warnings (opensearch-p…
…roject#527)

Signed-off-by: saimedhi <[email protected]>
  • Loading branch information
saimedhi authored Oct 9, 2023
commit e4c59e47320c58c151599f2da796d84a7e4084f2
4 changes: 4 additions & 0 deletions utils/generate-api.py
Original file line number Diff line number Diff line change
@@ -263,6 +263,7 @@ def __init__(self, namespace, name, definition, is_pyi=False):
self.description = ""
self.doc_url = ""
self.stability = self._def.get("stability", "stable")
self.deprecation_message = self._def.get("deprecation_message")

if isinstance(definition["documentation"], str):
self.doc_url = definition["documentation"]
@@ -560,6 +561,9 @@ def read_modules():
documentation = {"description": z["description"]}
api.update({"documentation": documentation})

if "deprecation_message" not in api and "x-deprecation-message" in z:
api.update({"deprecation_message": z["x-deprecation-message"]})

if "params" not in api and "params" in z:
api.update({"params": z["params"]})

4 changes: 4 additions & 0 deletions utils/templates/base
Original file line number Diff line number Diff line change
@@ -28,6 +28,10 @@
{% endfor %}
{% endif %}
"""
{% if api.deprecation_message %}
from warnings import warn
warn("Deprecated: {{ api.deprecation_message }}")
{% endif %}
{% include "substitutions" %}
{% include "required" %}
{% if api.body.serialize == "bulk" %}