Skip to content

Auto-generated code for 9.0 #2720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/reference/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions src/api/api/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ export default class Snapshot {
'indices'
],
query: [
'master_timeout',
'timeout'
'master_timeout'
]
},
'snapshot.create': {
Expand Down
7 changes: 2 additions & 5 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down