-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e45ed28
commit fceebae
Showing
42 changed files
with
661 additions
and
190 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
docs/doc_examples/11be807bdeaeecc8174dec88e0851ea7.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.transport.request({ | ||
method: "GET", | ||
path: "/_connector/_sync_job", | ||
querystring: { | ||
connector_id: "my-connector-id", | ||
size: "1", | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
18 changes: 18 additions & 0 deletions
18
docs/doc_examples/12e9e758f7f18a6cbf27e9d0aea57a19.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.update({ | ||
index: ".elastic-connectors", | ||
id: "connector_id", | ||
doc: { | ||
features: { | ||
native_connector_api_keys: { | ||
enabled: true, | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
25 changes: 25 additions & 0 deletions
25
docs/doc_examples/13fd7a99c5cf53279409ecc679084f87.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.indices.create({ | ||
index: "idx_keep", | ||
mappings: { | ||
_source: { | ||
mode: "synthetic", | ||
}, | ||
properties: { | ||
path: { | ||
type: "object", | ||
synthetic_source_keep: "all", | ||
}, | ||
ids: { | ||
type: "integer", | ||
synthetic_source_keep: "arrays", | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
19 changes: 19 additions & 0 deletions
19
docs/doc_examples/1522a9297151d7046e6345b9b27539ca.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.connector.updateConfiguration({ | ||
connector_id: "my-connector-id", | ||
values: { | ||
host: "127.0.0.1", | ||
port: 5432, | ||
username: "myuser", | ||
password: "mypassword", | ||
database: "chinook", | ||
schema: "public", | ||
tables: "album,artist", | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
15 changes: 15 additions & 0 deletions
15
docs/doc_examples/16a7ce08b4a6b3af269f27eecc71d664.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.indices.delete({ | ||
index: "books", | ||
}); | ||
console.log(response); | ||
const response1 = await client.indices.delete({ | ||
index: "my-explicit-mappings-books", | ||
}); | ||
console.log(response1); | ||
---- |
26 changes: 26 additions & 0 deletions
26
docs/doc_examples/17316a81c9dbdd120b7754116bf0461c.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.security.createApiKey({ | ||
name: "my-connector-api-key", | ||
role_descriptors: { | ||
"my-connector-connector-role": { | ||
cluster: ["monitor", "manage_connector"], | ||
indices: [ | ||
{ | ||
names: [ | ||
"my-index_name", | ||
".search-acl-filter-my-index_name", | ||
".elastic-connectors*", | ||
], | ||
privileges: ["all"], | ||
allow_restricted_indices: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/193704020a19714dec390452a4e75e8d.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.indices.create({ | ||
index: "books", | ||
}); | ||
console.log(response); | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/1c9dac4183a3532c91dbd1a46907729b.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.indices.delete({ | ||
index: "music", | ||
}); | ||
console.log(response); | ||
---- |
33 changes: 33 additions & 0 deletions
33
docs/doc_examples/1fb2c77c0988bc6545040b20e3afa7e9.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.security.createApiKey({ | ||
name: "john-api-key", | ||
expiration: "1d", | ||
role_descriptors: { | ||
"sharepoint-online-role": { | ||
index: [ | ||
{ | ||
names: ["sharepoint-search-application"], | ||
privileges: ["read"], | ||
query: { | ||
template: { | ||
params: { | ||
access_control: ["[email protected]", "Engineering Members"], | ||
}, | ||
source: | ||
'\n {\n "bool": {\n "should": [\n {\n "bool": {\n "must_not": {\n "exists": {\n "field": "_allow_access_control"\n }\n }\n }\n },\n {\n "terms": {\n "_allow_access_control.enum": {{#toJson}}access_control{{/toJson}}\n }\n }\n ]\n }\n }\n ', | ||
}, | ||
}, | ||
}, | ||
], | ||
restriction: { | ||
workflows: ["search_application_query"], | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
28 changes: 28 additions & 0 deletions
28
docs/doc_examples/2c86840a46242a38cf82024a9321be46.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.indices.create({ | ||
index: "my-explicit-mappings-books", | ||
mappings: { | ||
dynamic: false, | ||
properties: { | ||
name: { | ||
type: "text", | ||
}, | ||
author: { | ||
type: "text", | ||
}, | ||
release_date: { | ||
type: "date", | ||
format: "yyyy-MM-dd", | ||
}, | ||
page_count: { | ||
type: "integer", | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
25 changes: 25 additions & 0 deletions
25
docs/doc_examples/2d0244c020075595acb625aa5ba8f455.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.index({ | ||
index: "idx_keep", | ||
id: 1, | ||
document: { | ||
path: { | ||
to: [ | ||
{ | ||
foo: [3, 2, 1], | ||
}, | ||
{ | ||
foo: [30, 20, 10], | ||
}, | ||
], | ||
bar: "baz", | ||
}, | ||
ids: [200, 100, 300, 100], | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
38 changes: 38 additions & 0 deletions
38
docs/doc_examples/4da0cb8693e9ceceee2ba3b558014bbf.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.updateByQuery({ | ||
index: "INDEX_NAME", | ||
conflicts: "proceed", | ||
query: { | ||
bool: { | ||
filter: [ | ||
{ | ||
match: { | ||
object_type: "drive_item", | ||
}, | ||
}, | ||
{ | ||
exists: { | ||
field: "file", | ||
}, | ||
}, | ||
{ | ||
range: { | ||
lastModifiedDateTime: { | ||
lte: "now-180d", | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
script: { | ||
source: "ctx._source.body = ''", | ||
lang: "painless", | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
31 changes: 31 additions & 0 deletions
31
docs/doc_examples/529671ffaf7cc75fe83a81d729788be4.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.update({ | ||
index: ".elastic-connectors", | ||
id: "connector_id", | ||
doc: { | ||
configuration: { | ||
field_a: { | ||
type: "str", | ||
value: "", | ||
}, | ||
field_b: { | ||
type: "bool", | ||
value: false, | ||
}, | ||
field_c: { | ||
type: "int", | ||
value: 1, | ||
}, | ||
field_d: { | ||
type: "list", | ||
value: "a,b", | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
15 changes: 15 additions & 0 deletions
15
docs/doc_examples/54a47b5d07e7bfbea75c77f35eaae18d.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.indices.putMapping({ | ||
index: ".elastic-connectors-sync-jobs-v1", | ||
properties: { | ||
job_type: { | ||
type: "keyword", | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/6329fb2840a4373ff6d342f2653247cb.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.indices.getMapping({ | ||
index: "books", | ||
}); | ||
console.log(response); | ||
---- |
20 changes: 20 additions & 0 deletions
20
docs/doc_examples/63a53fcb0717ae9033a679cbfc932851.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.inference.put({ | ||
task_type: "completion", | ||
inference_id: "alibabacloud_ai_search_completion", | ||
inference_config: { | ||
service: "alibabacloud-ai-search", | ||
service_settings: { | ||
host: "default-j01.platform-cn-shanghai.opensearch.aliyuncs.com", | ||
api_key: "{{API_KEY}}", | ||
service_id: "ops-qwen-turbo", | ||
workspace: "default", | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/640dbeecb736bd25f6f2b392b76a7531.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.cluster.stats({ | ||
include_remotes: "true", | ||
}); | ||
console.log(response); | ||
---- |
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/6f8bdca97e43aac75e32de655aa4314a.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.connector.delete({ | ||
connector_id: "my-connector-id&delete_sync_jobs=true", | ||
}); | ||
console.log(response); | ||
---- |
Oops, something went wrong.