Skip to content

Commit 62db601

Browse files
Sync Core Integrations API reference (opensearch) on Docusaurus (#10877)
Co-authored-by: anakin87 <44616784+anakin87@users.noreply.github.com>
1 parent 2f260a7 commit 62db601

9 files changed

Lines changed: 81 additions & 18 deletions

File tree

docs-website/reference/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

docs-website/reference_versioned_docs/version-2.19/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

docs-website/reference_versioned_docs/version-2.20/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

docs-website/reference_versioned_docs/version-2.21/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

docs-website/reference_versioned_docs/version-2.22/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

docs-website/reference_versioned_docs/version-2.23/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

docs-website/reference_versioned_docs/version-2.24/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

docs-website/reference_versioned_docs/version-2.25/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

docs-website/reference_versioned_docs/version-2.26/integrations-api/opensearch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ __init__(
11751175
mappings: dict[str, Any] | None = None,
11761176
settings: dict[str, Any] | None = DEFAULT_SETTINGS,
11771177
create_index: bool = True,
1178-
http_auth: Any = (
1178+
http_auth: (
1179+
tuple[Secret, Secret]
1180+
| tuple[str, str]
1181+
| list[str]
1182+
| str
1183+
| AWSAuth
1184+
| None
1185+
) = (
11791186
Secret.from_env_var("OPENSEARCH_USERNAME", strict=False),
11801187
Secret.from_env_var("OPENSEARCH_PASSWORD", strict=False),
11811188
),
@@ -1210,7 +1217,7 @@ For more information on connection parameters, see the [official OpenSearch docu
12101217
- **settings** (<code>dict\[str, Any\] | None</code>) – The settings of the index to be created. Please see the [official OpenSearch docs](https://opensearch.org/docs/latest/search-plugins/knn/knn-index/#index-settings)
12111218
for more information. Defaults to `{"index.knn": True}`.
12121219
- **create_index** (<code>bool</code>) – Whether to create the index if it doesn't exist. Defaults to True
1213-
- **http_auth** (<code>Any</code>) – http_auth param passed to the underlying connection class.
1220+
- **http_auth** (<code>tuple\[Secret, Secret\] | tuple\[str, str\] | list\[str\] | str | AWSAuth | None</code>) – http_auth param passed to the underlying connection class.
12141221
For basic authentication with default connection class `Urllib3HttpConnection` this can be
12151222
- a tuple of (username, password)
12161223
- a list of [username, password]

0 commit comments

Comments
 (0)