diff --git a/docs/reference/api-reference.md b/docs/reference/api-reference.md index 532eba570..7f944b592 100644 --- a/docs/reference/api-reference.md +++ b/docs/reference/api-reference.md @@ -13529,8 +13529,6 @@ Multi-target syntax is supported. - **`master_timeout` (Optional, string | -1 | 0)**: The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to `-1`. -- **`timeout` (Optional, string | -1 | 0)**: The period of time to wait for a response. -If no response is received before the timeout expires, the request fails and returns an error. ## client.snapshot.create [_snapshot.create] Create a snapshot. diff --git a/src/api/api/snapshot.ts b/src/api/api/snapshot.ts index c472ac9bf..06a544055 100644 --- a/src/api/api/snapshot.ts +++ b/src/api/api/snapshot.ts @@ -55,8 +55,7 @@ export default class Snapshot { 'indices' ], query: [ - 'master_timeout', - 'timeout' + 'master_timeout' ] }, 'snapshot.create': { diff --git a/src/api/types.ts b/src/api/types.ts index 6f8720570..ed6cfcf56 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -33924,16 +33924,13 @@ export interface SnapshotCloneRequest extends RequestBase { * If the master node is not available before the timeout expires, the request fails and returns an error. * To indicate that the request should never timeout, set it to `-1`. */ master_timeout?: Duration - /** The period of time to wait for a response. - * If no response is received before the timeout expires, the request fails and returns an error. */ - timeout?: Duration /** A comma-separated list of indices to include in the snapshot. * Multi-target syntax is supported. */ indices: string /** All values in `body` will be added to the request body. */ - body?: string | { [key: string]: any } & { repository?: never, snapshot?: never, target_snapshot?: never, master_timeout?: never, timeout?: never, indices?: never } + body?: string | { [key: string]: any } & { repository?: never, snapshot?: never, target_snapshot?: never, master_timeout?: never, indices?: never } /** All values in `querystring` will be added to the request querystring. */ - querystring?: { [key: string]: any } & { repository?: never, snapshot?: never, target_snapshot?: never, master_timeout?: never, timeout?: never, indices?: never } + querystring?: { [key: string]: any } & { repository?: never, snapshot?: never, target_snapshot?: never, master_timeout?: never, indices?: never } } export type SnapshotCloneResponse = AcknowledgedResponseBase