Added/updated snippets for docs (#2318)
This commit is contained in:
18
docs/doc_examples/ce13afc0c976c5e1f424b58e0c97fd64.asciidoc
Normal file
18
docs/doc_examples/ce13afc0c976c5e1f424b58e0c97fd64.asciidoc
Normal file
@ -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.transport.request({
|
||||
method: "PUT",
|
||||
path: "/_connector/my-connector",
|
||||
body: {
|
||||
index_name: "search-google-drive",
|
||||
name: "My Connector",
|
||||
description: "My Connector to sync data to Elastic index from Google Drive",
|
||||
service_type: "google_drive",
|
||||
language: "english",
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user