Auto-generated code for 8.14 (#2321)

This commit is contained in:
Elastic Machine
2024-08-07 02:29:15 +10:00
committed by GitHub
parent dc706d09f2
commit 5d9fd3f418
3 changed files with 1735 additions and 0 deletions

View File

@ -2644,6 +2644,488 @@ client.cluster.stats({ ... })
If a node does not respond before its timeout expires, the response does not include its stats.
However, timed out nodes are included in the responses `_nodes.failed` property. Defaults to no timeout.
[discrete]
=== connector
[discrete]
==== check_in
Updates the last_seen timestamp in the connector document.
{ref}/check-in-connector-api.html[Endpoint documentation]
[source,ts]
----
client.connector.checkIn({ connector_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be checked in
[discrete]
==== delete
Deletes a connector.
{ref}/delete-connector-api.html[Endpoint documentation]
[source,ts]
----
client.connector.delete({ connector_id, delete_sync_jobs })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be deleted
** *`delete_sync_jobs` (boolean)*: Determines whether associated sync jobs are also deleted.
[discrete]
==== get
Returns the details about a connector.
{ref}/get-connector-api.html[Endpoint documentation]
[source,ts]
----
client.connector.get({ connector_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector
[discrete]
==== last_sync
Updates the stats of last sync in the connector document.
{ref}/update-connector-last-sync-api.html[Endpoint documentation]
[source,ts]
----
client.connector.lastSync({ connector_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`last_access_control_sync_error` (Optional, T | null)*
** *`last_access_control_sync_scheduled_at` (Optional, string | Unit)*
** *`last_access_control_sync_status` (Optional, Enum("canceling" | "canceled" | "completed" | "error" | "in_progress" | "pending" | "suspended"))*
** *`last_deleted_document_count` (Optional, number)*
** *`last_incremental_sync_scheduled_at` (Optional, string | Unit)*
** *`last_indexed_document_count` (Optional, number)*
** *`last_seen` (Optional, T | null)*
** *`last_sync_error` (Optional, T | null)*
** *`last_sync_scheduled_at` (Optional, string | Unit)*
** *`last_sync_status` (Optional, Enum("canceling" | "canceled" | "completed" | "error" | "in_progress" | "pending" | "suspended"))*
** *`last_synced` (Optional, string | Unit)*
[discrete]
==== list
Lists all connectors.
{ref}/list-connector-api.html[Endpoint documentation]
[source,ts]
----
client.connector.list({ ... })
----
[discrete]
==== Arguments
* *Request (object):*
** *`from` (Optional, number)*: Starting offset (default: 0)
** *`size` (Optional, number)*: Specifies a max number of results to get
** *`index_name` (Optional, string | string[])*: A list of connector index names to fetch connector documents for
** *`connector_name` (Optional, string | string[])*: A list of connector names to fetch connector documents for
** *`service_type` (Optional, string | string[])*: A list of connector service types to fetch connector documents for
** *`query` (Optional, string)*: A wildcard query string that filters connectors with matching name, description or index name
[discrete]
==== post
Creates a connector.
{ref}/create-connector-api.html[Endpoint documentation]
[source,ts]
----
client.connector.post({ index_name })
----
[discrete]
==== Arguments
* *Request (object):*
** *`index_name` (T | null)*
** *`description` (Optional, string)*
** *`is_native` (Optional, boolean)*
** *`language` (Optional, string)*
** *`name` (Optional, string)*
** *`service_type` (Optional, string)*
[discrete]
==== put
Creates or updates a connector.
{ref}/create-connector-api.html[Endpoint documentation]
[source,ts]
----
client.connector.put({ connector_id, index_name })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be created or updated
** *`index_name` (T | null)*
** *`description` (Optional, string)*
** *`is_native` (Optional, boolean)*
** *`language` (Optional, string)*
** *`name` (Optional, string)*
** *`service_type` (Optional, string)*
[discrete]
==== sync_job_cancel
Cancels a connector sync job.
{ref}/cancel-connector-sync-job-api.html[Endpoint documentation]
[source,ts]
----
client.connector.syncJobCancel({ connector_sync_job_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_sync_job_id` (string)*: The unique identifier of the connector sync job
[discrete]
==== sync_job_check_in
Checks in a connector sync job (refreshes 'last_seen').
{ref}/check-in-connector-sync-job-api.html[Endpoint documentation]
[source,ts]
----
client.connector.syncJobCheckIn()
----
[discrete]
==== sync_job_delete
Deletes a connector sync job.
{ref}/delete-connector-sync-job-api.html[Endpoint documentation]
[source,ts]
----
client.connector.syncJobDelete({ connector_sync_job_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_sync_job_id` (string)*: The unique identifier of the connector sync job to be deleted
[discrete]
==== sync_job_error
Sets an error for a connector sync job.
{ref}/set-connector-sync-job-error-api.html[Endpoint documentation]
[source,ts]
----
client.connector.syncJobError()
----
[discrete]
==== sync_job_get
Returns the details about a connector sync job.
{ref}/get-connector-sync-job-api.html[Endpoint documentation]
[source,ts]
----
client.connector.syncJobGet({ connector_sync_job_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_sync_job_id` (string)*: The unique identifier of the connector sync job
[discrete]
==== sync_job_list
Lists all connector sync jobs.
{ref}/list-connector-sync-jobs-api.html[Endpoint documentation]
[source,ts]
----
client.connector.syncJobList({ ... })
----
[discrete]
==== Arguments
* *Request (object):*
** *`from` (Optional, number)*: Starting offset (default: 0)
** *`size` (Optional, number)*: Specifies a max number of results to get
** *`status` (Optional, Enum("canceling" | "canceled" | "completed" | "error" | "in_progress" | "pending" | "suspended"))*: A sync job status to fetch connector sync jobs for
** *`connector_id` (Optional, string)*: A connector id to fetch connector sync jobs for
** *`job_type` (Optional, Enum("full" | "incremental" | "access_control")[])*: A list of job types to fetch the sync jobs for
[discrete]
==== sync_job_post
Creates a connector sync job.
{ref}/create-connector-sync-job-api.html[Endpoint documentation]
[source,ts]
----
client.connector.syncJobPost({ id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`id` (string)*: The id of the associated connector
** *`job_type` (Optional, Enum("full" | "incremental" | "access_control"))*
** *`trigger_method` (Optional, Enum("on_demand" | "scheduled"))*
[discrete]
==== sync_job_update_stats
Updates the stats fields in the connector sync job document.
{ref}/set-connector-sync-job-stats-api.html[Endpoint documentation]
[source,ts]
----
client.connector.syncJobUpdateStats()
----
[discrete]
==== update_active_filtering
Activates the draft filtering rules if they are in a validated state.
{ref}/update-connector-filtering-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateActiveFiltering({ connector_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
[discrete]
==== update_api_key_id
Updates the API key id and/or API key secret id fields in the connector document.
{ref}/update-connector-api-key-id-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateApiKeyId({ connector_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`api_key_id` (Optional, T | null)*
** *`api_key_secret_id` (Optional, T | null)*
[discrete]
==== update_configuration
Updates the connector configuration.
{ref}/update-connector-configuration-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateConfiguration({ connector_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`configuration` (Optional, Record<string, { category, default_value, depends_on, display, label, options, order, placeholder, required, sensitive, tooltip, type, ui_restrictions, validations, value }>)*
** *`values` (Optional, Record<string, User-defined value>)*
[discrete]
==== update_error
Updates the error field in the connector document.
{ref}/update-connector-error-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateError({ connector_id, error })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`error` (T | null)*
[discrete]
==== update_filtering
Updates the filtering field in the connector document.
{ref}/update-connector-filtering-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateFiltering({ connector_id })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`filtering` (Optional, { active, domain, draft }[])*
** *`rules` (Optional, { created_at, field, id, order, policy, rule, updated_at, value }[])*
** *`advanced_snippet` (Optional, { created_at, updated_at, value })*
[discrete]
==== update_filtering_validation
Updates the validation info of the draft filtering rules.
[source,ts]
----
client.connector.updateFilteringValidation({ connector_id, validation })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`validation` ({ errors, state })*
[discrete]
==== update_index_name
Updates the index name of the connector.
{ref}/update-connector-index-name-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateIndexName({ connector_id, index_name })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`index_name` (T | null)*
[discrete]
==== update_name
Updates the name and/or description fields in the connector document.
{ref}/update-connector-name-description-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateName({ connector_id, name })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`name` (string)*
** *`description` (Optional, string)*
[discrete]
==== update_native
Updates the is_native flag of the connector.
[source,ts]
----
client.connector.updateNative({ connector_id, is_native })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`is_native` (boolean)*
[discrete]
==== update_pipeline
Updates the pipeline field in the connector document.
{ref}/update-connector-pipeline-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updatePipeline({ connector_id, pipeline })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`pipeline` ({ extract_binary_content, name, reduce_whitespace, run_ml_inference })*
[discrete]
==== update_scheduling
Updates the scheduling field in the connector document.
{ref}/update-connector-scheduling-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateScheduling({ connector_id, scheduling })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`scheduling` ({ access_control, full, incremental })*
[discrete]
==== update_service_type
Updates the service type of the connector.
{ref}/update-connector-service-type-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateServiceType({ connector_id, service_type })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`service_type` (string)*
[discrete]
==== update_status
Updates the status of the connector.
{ref}/update-connector-status-api.html[Endpoint documentation]
[source,ts]
----
client.connector.updateStatus({ connector_id, status })
----
[discrete]
==== Arguments
* *Request (object):*
** *`connector_id` (string)*: The unique identifier of the connector to be updated
** *`status` (Enum("created" | "needs_configuration" | "configured" | "connected" | "error"))*
[discrete]
=== dangling_indices
[discrete]