Skip to content

Commit d6f4992

Browse files
committed
Format
1 parent ebdc0eb commit d6f4992

14 files changed

+28
-14
lines changed

specification/connector/last_sync/ConnectorUpdateLastSyncRequestExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# method_request: PUT _connector/my-connector/_last_sync
33
# description: ''
44
# type: request
5-
value: "{\n \"last_access_control_sync_error\": \"Houston, we have a problem!\"\
5+
value:
6+
"{\n \"last_access_control_sync_error\": \"Houston, we have a problem!\"\
67
,\n \"last_access_control_sync_scheduled_at\": \"2023-11-09T15:13:08.231Z\",\n\
78
\ \"last_access_control_sync_status\": \"pending\",\n \"last_deleted_document_count\"\
89
: 42,\n \"last_incremental_sync_scheduled_at\": \"2023-11-09T15:13:08.231Z\"\

specification/connector/put/ConnectorPutRequestExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
# method_request: PUT _connector/my-connector
33
# description: ''
44
# type: request
5-
value: "{\n \"index_name\": \"search-google-drive\",\n \"name\": \"My Connector\"\
5+
value:
6+
"{\n \"index_name\": \"search-google-drive\",\n \"name\": \"My Connector\"\
67
,\n \"service_type\": \"google_drive\"\n}"

specification/connector/put/ConnectorPutRequestExample2.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# method_request: PUT _connector/my-connector
33
# description: ''
44
# type: request
5-
value: "{\n \"index_name\": \"search-google-drive\",\n \"name\": \"My Connector\"\
5+
value:
6+
"{\n \"index_name\": \"search-google-drive\",\n \"name\": \"My Connector\"\
67
,\n \"description\": \"My Connector to sync data to Elastic index from Google Drive\"\
78
,\n \"service_type\": \"google_drive\",\n \"language\": \"english\"\n}"

specification/connector/sync_job_post/SyncJobPostRequestExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
# method_request: POST _connector/_sync_job
33
# description: ''
44
# type: request
5-
value: "{\n \"id\": \"connector-id\",\n \"job_type\": \"full\",\n \"trigger_method\"\
5+
value:
6+
"{\n \"id\": \"connector-id\",\n \"job_type\": \"full\",\n \"trigger_method\"\
67
: \"on_demand\"\n}"

specification/connector/update_api_key_id/ConnectorUpdateApiKeyIdExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
# method_request: PUT _connector/my-connector/_api_key_id
33
# description: ''
44
# type: request
5-
value: "{\n \"api_key_id\": \"my-api-key-id\",\n \"api_key_secret_id\": \"my-connector-secret-id\"\
5+
value:
6+
"{\n \"api_key_id\": \"my-api-key-id\",\n \"api_key_secret_id\": \"my-connector-secret-id\"\
67
\n}"

specification/connector/update_configuration/ConnectorUpdateConfigurationRequestExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# method_request: PUT _connector/my-spo-connector/_configuration
33
# description: ''
44
# type: request
5-
value: "{\n \"values\": {\n \"tenant_id\": \"my-tenant-id\",\n \"\
5+
value:
6+
"{\n \"values\": {\n \"tenant_id\": \"my-tenant-id\",\n \"\
67
tenant_name\": \"my-sharepoint-site\",\n \"client_id\": \"foo\",\n \
78
\ \"secret_value\": \"bar\",\n \"site_collections\": \"*\"\n }\n}"

specification/connector/update_features/ConnectorUpdateFeaturesRequestExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# method_request: PUT _connector/my-connector/_features
33
# description: ''
44
# type: request
5-
value: "{\n \"features\": {\n \"document_level_security\": {\n \"enabled\"\
5+
value:
6+
"{\n \"features\": {\n \"document_level_security\": {\n \"enabled\"\
67
: true\n },\n \"incremental_sync\": {\n \"enabled\": true\n },\n \
78
\ \"sync_rules\": {\n \"advanced\": {\n \"enabled\": false\n \
89
\ },\n \"basic\": {\n \"enabled\": true\n }\n }\n }\n}"

specification/connector/update_features/ConnectorUpdateFeaturesRequestExample2.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
# method_request: PUT _connector/my-connector/_features
33
# description: ''
44
# type: request
5-
value: "{\n \"features\": {\n \"document_level_security\": {\n \"enabled\"\
5+
value:
6+
"{\n \"features\": {\n \"document_level_security\": {\n \"enabled\"\
67
: true\n }\n }\n}"

specification/connector/update_filtering/ConnectorUpdateFilteringRequestExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# method_request: PUT _connector/my-g-drive-connector/_filtering
33
# description: ''
44
# type: request
5-
value: "{\n \"rules\": [\n {\n \"field\": \"file_extension\"\
5+
value:
6+
"{\n \"rules\": [\n {\n \"field\": \"file_extension\"\
67
,\n \"id\": \"exclude-txt-files\",\n \"order\": 0,\n \
78
\ \"policy\": \"exclude\",\n \"rule\": \"equals\",\n \
89
\ \"value\": \"txt\"\n },\n {\n \"field\": \"_\",\n \

specification/connector/update_filtering/ConnectorUpdateFilteringRequestExample2.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# method_request: PUT _connector/my-sql-connector/_filtering
33
# description: ''
44
# type: request
5-
value: "{\n \"advanced_snippet\": {\n \"value\": [{\n \"tables\"\
5+
value:
6+
"{\n \"advanced_snippet\": {\n \"value\": [{\n \"tables\"\
67
: [\n \"users\",\n \"orders\"\n ],\n \
78
\ \"query\": \"SELECT users.id AS id, orders.order_id AS order_id FROM\
89
\ users JOIN orders ON users.id = orders.user_id\"\n }]\n }\n}"

0 commit comments

Comments
 (0)