Skip to content

Commit acdb0d6

Browse files
Auto-generated API code (#2808)
1 parent e8b4183 commit acdb0d6

File tree

7 files changed

+48
-48
lines changed

7 files changed

+48
-48
lines changed

docs/reference.asciidoc

+24-24
Original file line numberDiff line numberDiff line change
@@ -3782,7 +3782,7 @@ If no response is received before the timeout expires, the request fails and ret
37823782
Clear cluster voting config exclusions.
37833783
Remove master-eligible nodes from the voting configuration exclusion list.
37843784

3785-
{ref}/voting-config-exclusions.html[Endpoint documentation]
3785+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions[Endpoint documentation]
37863786
[source,ts]
37873787
----
37883788
client.cluster.deleteVotingConfigExclusions({ ... })
@@ -3967,7 +3967,7 @@ In that case, you may safely retry the call.
39673967
NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period.
39683968
They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.
39693969

3970-
{ref}/voting-config-exclusions.html[Endpoint documentation]
3970+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions[Endpoint documentation]
39713971
[source,ts]
39723972
----
39733973
client.cluster.postVotingConfigExclusions({ ... })
@@ -9069,7 +9069,7 @@ You must then re-submit the API request with the acknowledge parameter set to tr
90699069
NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license.
90709070
If the operator privileges feature is enabled, only operator users can use this API.
90719071

9072-
{ref}/update-license.html[Endpoint documentation]
9072+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-license-post[Endpoint documentation]
90739073
[source,ts]
90749074
----
90759075
client.license.post({ ... })
@@ -9852,7 +9852,7 @@ be retrieved and then added to another cluster.
98529852

98539853
[discrete]
98549854
==== get_data_frame_analytics_stats
9855-
Get data frame analytics jobs usage info.
9855+
Get data frame analytics job stats.
98569856

98579857
{ref}/get-dfanalytics-stats.html[Endpoint documentation]
98589858
[source,ts]
@@ -9884,7 +9884,7 @@ there are no matches or only partial matches.
98849884

98859885
[discrete]
98869886
==== get_datafeed_stats
9887-
Get datafeeds usage info.
9887+
Get datafeed stats.
98889888
You can get statistics for multiple datafeeds in a single API request by
98899889
using a list of datafeeds or a wildcard expression. You can
98909890
get statistics for all datafeeds by using `_all`, by specifying `*` as the
@@ -10008,7 +10008,7 @@ means it is unset and results are not limited to specific timestamps.
1000810008

1000910009
[discrete]
1001010010
==== get_job_stats
10011-
Get anomaly detection jobs usage info.
10011+
Get anomaly detection job stats.
1001210012

1001310013
{ref}/ml-get-job-stats.html[Endpoint documentation]
1001410014
[source,ts]
@@ -11103,7 +11103,7 @@ restart the model deployment.
1110311103
==== update_data_frame_analytics
1110411104
Update a data frame analytics job.
1110511105

11106-
{ref}/update-dfanalytics.html[Endpoint documentation]
11106+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ml-update-data-frame-analytics[Endpoint documentation]
1110711107
[source,ts]
1110811108
----
1110911109
client.ml.updateDataFrameAnalytics({ id })
@@ -11314,7 +11314,7 @@ snapshot will be deleted when the job is deleted.
1131411314
==== update_trained_model_deployment
1131511315
Update a trained model deployment.
1131611316

11317-
{ref}/update-trained-model-deployment.html[Endpoint documentation]
11317+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ml-update-trained-model-deployment[Endpoint documentation]
1131811318
[source,ts]
1131911319
----
1132011320
client.ml.updateTrainedModelDeployment({ model_id })
@@ -16060,7 +16060,7 @@ privileges for the source indices. You must also have `index` and `read` privile
1606016060
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
1606116061
time of update and runs with those privileges.
1606216062

16063-
{ref}/update-transform.html[Endpoint documentation]
16063+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-transform-update-transform[Endpoint documentation]
1606416064
[source,ts]
1606516065
----
1606616066
client.transform.updateTransform({ transform_id })
@@ -16107,7 +16107,7 @@ A summary is returned when the upgrade is finished.
1610716107
To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster.
1610816108
You may want to perform a recent cluster backup prior to the upgrade.
1610916109

16110-
{ref}/upgrade-transforms.html[Endpoint documentation]
16110+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-transform-upgrade-transforms[Endpoint documentation]
1611116111
[source,ts]
1611216112
----
1611316113
client.transform.upgradeTransforms({ ... })
@@ -16136,7 +16136,7 @@ The reason for this behavior is to prevent overwriting the watch status from a w
1613616136
Acknowledging an action throttles further executions of that action until its `ack.state` is reset to `awaits_successful_execution`.
1613716137
This happens when the condition of the watch is not met (the condition evaluates to false).
1613816138

16139-
{ref}/watcher-api-ack-watch.html[Endpoint documentation]
16139+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-ack-watch[Endpoint documentation]
1614016140
[source,ts]
1614116141
----
1614216142
client.watcher.ackWatch({ watch_id })
@@ -16155,7 +16155,7 @@ If you omit this parameter, all of the actions of the watch are acknowledged.
1615516155
Activate a watch.
1615616156
A watch can be either active or inactive.
1615716157

16158-
{ref}/watcher-api-activate-watch.html[Endpoint documentation]
16158+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-activate-watch[Endpoint documentation]
1615916159
[source,ts]
1616016160
----
1616116161
client.watcher.activateWatch({ watch_id })
@@ -16172,7 +16172,7 @@ client.watcher.activateWatch({ watch_id })
1617216172
Deactivate a watch.
1617316173
A watch can be either active or inactive.
1617416174

16175-
{ref}/watcher-api-deactivate-watch.html[Endpoint documentation]
16175+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-deactivate-watch[Endpoint documentation]
1617616176
[source,ts]
1617716177
----
1617816178
client.watcher.deactivateWatch({ watch_id })
@@ -16195,7 +16195,7 @@ IMPORTANT: Deleting a watch must be done by using only this API.
1619516195
Do not delete the watch directly from the `.watches` index using the Elasticsearch delete document API
1619616196
When Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the `.watches` index.
1619716197

16198-
{ref}/watcher-api-delete-watch.html[Endpoint documentation]
16198+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-delete-watch[Endpoint documentation]
1619916199
[source,ts]
1620016200
----
1620116201
client.watcher.deleteWatch({ id })
@@ -16224,7 +16224,7 @@ If your user is allowed to read index `a`, but not index `b`, then the exact sam
1622416224

1622516225
When using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch.
1622616226

16227-
{ref}/watcher-api-execute-watch.html[Endpoint documentation]
16227+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-execute-watch[Endpoint documentation]
1622816228
[source,ts]
1622916229
----
1623016230
client.watcher.executeWatch({ ... })
@@ -16253,7 +16253,7 @@ Get Watcher index settings.
1625316253
Get settings for the Watcher internal index (`.watches`).
1625416254
Only a subset of settings are shown, for example `index.auto_expand_replicas` and `index.number_of_replicas`.
1625516255

16256-
{ref}/watcher-api-get-settings.html[Endpoint documentation]
16256+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-get-settings[Endpoint documentation]
1625716257
[source,ts]
1625816258
----
1625916259
client.watcher.getSettings({ ... })
@@ -16270,7 +16270,7 @@ If no response is received before the timeout expires, the request fails and ret
1627016270
==== get_watch
1627116271
Get a watch.
1627216272

16273-
{ref}/watcher-api-get-watch.html[Endpoint documentation]
16273+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-get-watch[Endpoint documentation]
1627416274
[source,ts]
1627516275
----
1627616276
client.watcher.getWatch({ id })
@@ -16297,7 +16297,7 @@ When you add a watch you can also define its initial active state by setting the
1629716297
When Elasticsearch security features are enabled, your watch can index or search only on indices for which the user that stored the watch has privileges.
1629816298
If the user is able to read index `a`, but not index `b`, the same will apply when the watch runs.
1629916299

16300-
{ref}/watcher-api-put-watch.html[Endpoint documentation]
16300+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-put-watch[Endpoint documentation]
1630116301
[source,ts]
1630216302
----
1630316303
client.watcher.putWatch({ id })
@@ -16332,7 +16332,7 @@ Get all registered watches in a paginated manner and optionally filter watches b
1633216332

1633316333
Note that only the `_id` and `metadata.*` fields are queryable or sortable.
1633416334

16335-
{ref}/watcher-api-query-watches.html[Endpoint documentation]
16335+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-query-watches[Endpoint documentation]
1633616336
[source,ts]
1633716337
----
1633816338
client.watcher.queryWatches({ ... })
@@ -16355,7 +16355,7 @@ It must be non-negative.
1635516355
Start the watch service.
1635616356
Start the Watcher service if it is not already running.
1635716357

16358-
{ref}/watcher-api-start.html[Endpoint documentation]
16358+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-start[Endpoint documentation]
1635916359
[source,ts]
1636016360
----
1636116361
client.watcher.start({ ... })
@@ -16373,7 +16373,7 @@ Get Watcher statistics.
1637316373
This API always returns basic metrics.
1637416374
You retrieve more metrics by using the metric parameter.
1637516375

16376-
{ref}/watcher-api-stats.html[Endpoint documentation]
16376+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stats[Endpoint documentation]
1637716377
[source,ts]
1637816378
----
1637916379
client.watcher.stats({ ... })
@@ -16391,7 +16391,7 @@ client.watcher.stats({ ... })
1639116391
Stop the watch service.
1639216392
Stop the Watcher service if it is running.
1639316393

16394-
{ref}/watcher-api-stop.html[Endpoint documentation]
16394+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stop[Endpoint documentation]
1639516395
[source,ts]
1639616396
----
1639716397
client.watcher.stop({ ... })
@@ -16415,7 +16415,7 @@ This includes `index.auto_expand_replicas`, `index.number_of_replicas`, `index.r
1641516415
Modification of `index.routing.allocation.include._tier_preference` is an exception and is not allowed as the
1641616416
Watcher shards must always be in the `data_content` tier.
1641716417

16418-
{ref}/watcher-api-update-settings.html[Endpoint documentation]
16418+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-update-settings[Endpoint documentation]
1641916419
[source,ts]
1642016420
----
1642116421
client.watcher.updateSettings({ ... })
@@ -16465,7 +16465,7 @@ Get usage information.
1646516465
Get information about the features that are currently enabled and available under the current license.
1646616466
The API also provides some usage statistics.
1646716467

16468-
{ref}/usage-api.html[Endpoint documentation]
16468+
https://www.elastic.co/docs/api/doc/elasticsearch/v8/group/endpoint-xpack[Endpoint documentation]
1646916469
[source,ts]
1647016470
----
1647116471
client.xpack.usage({ ... })

src/api/api/cluster.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default class Cluster {
120120

121121
/**
122122
* Clear cluster voting config exclusions. Remove master-eligible nodes from the voting configuration exclusion list.
123-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/voting-config-exclusions.html | Elasticsearch API documentation}
123+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions | Elasticsearch API documentation}
124124
*/
125125
async deleteVotingConfigExclusions (this: That, params?: T.ClusterDeleteVotingConfigExclusionsRequest | TB.ClusterDeleteVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterDeleteVotingConfigExclusionsResponse>
126126
async deleteVotingConfigExclusions (this: That, params?: T.ClusterDeleteVotingConfigExclusionsRequest | TB.ClusterDeleteVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterDeleteVotingConfigExclusionsResponse, unknown>>
@@ -354,7 +354,7 @@ export default class Cluster {
354354

355355
/**
356356
* Update voting configuration exclusions. Update the cluster voting config exclusions by node IDs or node names. By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. Clusters should have no voting configuration exclusions in normal operation. Once the excluded nodes have stopped, clear the voting configuration exclusions with `DELETE /_cluster/voting_config_exclusions`. This API waits for the nodes to be fully removed from the cluster before it returns. If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use `DELETE /_cluster/voting_config_exclusions?wait_for_removal=false` to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. A response to `POST /_cluster/voting_config_exclusions` with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling `DELETE /_cluster/voting_config_exclusions`. If the call to `POST /_cluster/voting_config_exclusions` fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. In that case, you may safely retry the call. NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.
357-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/voting-config-exclusions.html | Elasticsearch API documentation}
357+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions | Elasticsearch API documentation}
358358
*/
359359
async postVotingConfigExclusions (this: That, params?: T.ClusterPostVotingConfigExclusionsRequest | TB.ClusterPostVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPostVotingConfigExclusionsResponse>
360360
async postVotingConfigExclusions (this: That, params?: T.ClusterPostVotingConfigExclusionsRequest | TB.ClusterPostVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPostVotingConfigExclusionsResponse, unknown>>

src/api/api/license.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default class License {
166166

167167
/**
168168
* Update the license. You can update your license at runtime without shutting down your nodes. License updates take effect immediately. If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. If the operator privileges feature is enabled, only operator users can use this API.
169-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-license.html | Elasticsearch API documentation}
169+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-license-post | Elasticsearch API documentation}
170170
*/
171171
async post (this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.LicensePostResponse>
172172
async post (this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.LicensePostResponse, unknown>>

src/api/api/ml.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ export default class Ml {
988988
}
989989

990990
/**
991-
* Get data frame analytics jobs usage info.
991+
* Get data frame analytics job stats.
992992
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-dfanalytics-stats.html | Elasticsearch API documentation}
993993
*/
994994
async getDataFrameAnalyticsStats (this: That, params?: T.MlGetDataFrameAnalyticsStatsRequest | TB.MlGetDataFrameAnalyticsStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlGetDataFrameAnalyticsStatsResponse>
@@ -1028,7 +1028,7 @@ export default class Ml {
10281028
}
10291029

10301030
/**
1031-
* Get datafeeds usage info. You can get statistics for multiple datafeeds in a single API request by using a comma-separated list of datafeeds or a wildcard expression. You can get statistics for all datafeeds by using `_all`, by specifying `*` as the `<feed_id>`, or by omitting the `<feed_id>`. If the datafeed is stopped, the only information you receive is the `datafeed_id` and the `state`. This API returns a maximum of 10,000 datafeeds.
1031+
* Get datafeed stats. You can get statistics for multiple datafeeds in a single API request by using a comma-separated list of datafeeds or a wildcard expression. You can get statistics for all datafeeds by using `_all`, by specifying `*` as the `<feed_id>`, or by omitting the `<feed_id>`. If the datafeed is stopped, the only information you receive is the `datafeed_id` and the `state`. This API returns a maximum of 10,000 datafeeds.
10321032
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ml-get-datafeed-stats.html | Elasticsearch API documentation}
10331033
*/
10341034
async getDatafeedStats (this: That, params?: T.MlGetDatafeedStatsRequest | TB.MlGetDatafeedStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlGetDatafeedStatsResponse>
@@ -1192,7 +1192,7 @@ export default class Ml {
11921192
}
11931193

11941194
/**
1195-
* Get anomaly detection jobs usage info.
1195+
* Get anomaly detection job stats.
11961196
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ml-get-job-stats.html | Elasticsearch API documentation}
11971197
*/
11981198
async getJobStats (this: That, params?: T.MlGetJobStatsRequest | TB.MlGetJobStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlGetJobStatsResponse>
@@ -2623,7 +2623,7 @@ export default class Ml {
26232623

26242624
/**
26252625
* Update a data frame analytics job.
2626-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-dfanalytics.html | Elasticsearch API documentation}
2626+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ml-update-data-frame-analytics | Elasticsearch API documentation}
26272627
*/
26282628
async updateDataFrameAnalytics (this: That, params: T.MlUpdateDataFrameAnalyticsRequest | TB.MlUpdateDataFrameAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlUpdateDataFrameAnalyticsResponse>
26292629
async updateDataFrameAnalytics (this: That, params: T.MlUpdateDataFrameAnalyticsRequest | TB.MlUpdateDataFrameAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlUpdateDataFrameAnalyticsResponse, unknown>>
@@ -2844,7 +2844,7 @@ export default class Ml {
28442844

28452845
/**
28462846
* Update a trained model deployment.
2847-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-trained-model-deployment.html | Elasticsearch API documentation}
2847+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ml-update-trained-model-deployment | Elasticsearch API documentation}
28482848
*/
28492849
async updateTrainedModelDeployment (this: That, params: T.MlUpdateTrainedModelDeploymentRequest | TB.MlUpdateTrainedModelDeploymentRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlUpdateTrainedModelDeploymentResponse>
28502850
async updateTrainedModelDeployment (this: That, params: T.MlUpdateTrainedModelDeploymentRequest | TB.MlUpdateTrainedModelDeploymentRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlUpdateTrainedModelDeploymentResponse, unknown>>

0 commit comments

Comments
 (0)