Skip to content

Commit a46d842

Browse files
Regenerate client for 8.11 (#7978) (#7980)
1 parent 5effa01 commit a46d842

File tree

219 files changed

+14494
-2300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+14494
-2300
lines changed

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs

+20-3
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,21 @@ internal static class ApiUrlLookup
3636
internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "_count", "{index}/_count" });
3737
internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "{index}/_create/{id}" });
3838
internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "{index}/_delete_by_query" });
39+
internal static ApiUrls NoNamespaceDeleteByQueryRethrottle = new ApiUrls(new[] { "_delete_by_query/{task_id}/_rethrottle" });
3940
internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "{index}/_doc/{id}" });
4041
internal static ApiUrls NoNamespaceDeleteScript = new ApiUrls(new[] { "_scripts/{id}" });
4142
internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
4243
internal static ApiUrls EnrichStats = new ApiUrls(new[] { "_enrich/_stats" });
4344
internal static ApiUrls EnrichExecutePolicy = new ApiUrls(new[] { "_enrich/policy/{name}/_execute" });
4445
internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[] { "_enrich/policy/{name}", "_enrich/policy" });
4546
internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
47+
internal static ApiUrls EqlDelete = new ApiUrls(new[] { "_eql/search/{id}" });
48+
internal static ApiUrls EqlGet = new ApiUrls(new[] { "_eql/search/{id}" });
49+
internal static ApiUrls EqlSearch = new ApiUrls(new[] { "{index}/_eql/search" });
50+
internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "_eql/search/status/{id}" });
4651
internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "{index}/_doc/{id}" });
4752
internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "{index}/_source/{id}" });
53+
internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "{index}/_explain/{id}" });
4854
internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "_field_caps", "{index}/_field_caps" });
4955
internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "{index}/_doc/{id}" });
5056
internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "_scripts/{id}" });
@@ -58,19 +64,18 @@ internal static class ApiUrlLookup
5864
internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
5965
internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" });
6066
internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
61-
internal static ApiUrls IndexManagementDeleteTemplate = new ApiUrls(new[] { "_template/{name}" });
6267
internal static ApiUrls IndexManagementExistsAlias = new ApiUrls(new[] { "_alias/{name}", "{index}/_alias/{name}" });
6368
internal static ApiUrls IndexManagementExistsIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
6469
internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "{index}" });
65-
internal static ApiUrls IndexManagementExistsTemplate = new ApiUrls(new[] { "_template/{name}" });
6670
internal static ApiUrls IndexManagementExplainDataLifecycle = new ApiUrls(new[] { "{index}/_lifecycle/explain" });
71+
internal static ApiUrls IndexManagementFlush = new ApiUrls(new[] { "_flush", "{index}/_flush" });
72+
internal static ApiUrls IndexManagementForcemerge = new ApiUrls(new[] { "_forcemerge", "{index}/_forcemerge" });
6773
internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias" });
6874
internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
6975
internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" });
7076
internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "{index}" });
7177
internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" });
7278
internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" });
73-
internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "_template", "_template/{name}" });
7479
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
7580
internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" });
7681
internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" });
@@ -79,6 +84,7 @@ internal static class ApiUrlLookup
7984
internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
8085
internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" });
8186
internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" });
87+
internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" });
8288
internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" });
8389
internal static ApiUrls IndexManagementSimulateIndexTemplate = new ApiUrls(new[] { "_index_template/_simulate_index/{name}" });
8490
internal static ApiUrls IndexManagementSimulateTemplate = new ApiUrls(new[] { "_index_template/_simulate", "_index_template/_simulate/{name}" });
@@ -99,12 +105,23 @@ internal static class ApiUrlLookup
99105
internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "" });
100106
internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "_scripts/{id}", "_scripts/{id}/{context}" });
101107
internal static ApiUrls NoNamespaceRankEval = new ApiUrls(new[] { "_rank_eval", "{index}/_rank_eval" });
108+
internal static ApiUrls NoNamespaceReindex = new ApiUrls(new[] { "_reindex" });
109+
internal static ApiUrls NoNamespaceReindexRethrottle = new ApiUrls(new[] { "_reindex/{task_id}/_rethrottle" });
102110
internal static ApiUrls NoNamespaceRenderSearchTemplate = new ApiUrls(new[] { "_render/template", "_render/template/{id}" });
103111
internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "_search/scroll" });
104112
internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "_search", "{index}/_search" });
105113
internal static ApiUrls NoNamespaceSearchTemplate = new ApiUrls(new[] { "_search/template", "{index}/_search/template" });
114+
internal static ApiUrls SqlClearCursor = new ApiUrls(new[] { "_sql/close" });
115+
internal static ApiUrls SqlDeleteAsync = new ApiUrls(new[] { "_sql/async/delete/{id}" });
116+
internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "_sql/async/{id}" });
117+
internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "_sql/async/status/{id}" });
118+
internal static ApiUrls SqlQuery = new ApiUrls(new[] { "_sql" });
119+
internal static ApiUrls TasksCancel = new ApiUrls(new[] { "_tasks/_cancel", "_tasks/{task_id}/_cancel" });
120+
internal static ApiUrls TasksGet = new ApiUrls(new[] { "_tasks/{task_id}" });
121+
internal static ApiUrls TasksList = new ApiUrls(new[] { "_tasks" });
106122
internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "{index}/_terms_enum" });
107123
internal static ApiUrls NoNamespaceTermvectors = new ApiUrls(new[] { "{index}/_termvectors/{id}", "{index}/_termvectors" });
108124
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" });
125+
internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" });
109126
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
110127
}

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs

+21-21
Original file line numberDiff line numberDiff line change
@@ -32,53 +32,53 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
3232
public sealed class BulkRequestParameters : RequestParameters
3333
{
3434
/// <summary>
35-
/// <para>The pipeline id to preprocess incoming documents with</para>
35+
/// <para>ID of the pipeline to use to preprocess incoming documents.<br/>If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.<br/>If a final pipeline is configured it will always run, regardless of the value of this parameter.</para>
3636
/// </summary>
3737
public string? Pipeline { get => Q<string?>("pipeline"); set => Q("pipeline", value); }
3838

3939
/// <summary>
40-
/// <para>If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.</para>
40+
/// <para>If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.<br/>Valid values: `true`, `false`, `wait_for`.</para>
4141
/// </summary>
4242
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q<Elastic.Clients.Elasticsearch.Serverless.Refresh?>("refresh"); set => Q("refresh", value); }
4343

4444
/// <summary>
45-
/// <para>Specific routing value</para>
45+
/// <para>Custom value used to route operations to a specific shard.</para>
4646
/// </summary>
4747
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q<Elastic.Clients.Elasticsearch.Serverless.Routing?>("routing"); set => Q("routing", value); }
4848

4949
/// <summary>
50-
/// <para>True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request</para>
50+
/// <para>`true` or `false` to return the `_source` field or not, or a list of fields to return.</para>
5151
/// </summary>
5252
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q<Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam?>("_source"); set => Q("_source", value); }
5353

5454
/// <summary>
55-
/// <para>Default list of fields to exclude from the returned _source field, can be overridden on each sub-request</para>
55+
/// <para>A comma-separated list of source fields to exclude from the response.</para>
5656
/// </summary>
5757
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q<Elastic.Clients.Elasticsearch.Serverless.Fields?>("_source_excludes"); set => Q("_source_excludes", value); }
5858

5959
/// <summary>
60-
/// <para>Default list of fields to extract and return from the _source field, can be overridden on each sub-request</para>
60+
/// <para>A comma-separated list of source fields to include in the response.</para>
6161
/// </summary>
6262
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q<Elastic.Clients.Elasticsearch.Serverless.Fields?>("_source_includes"); set => Q("_source_includes", value); }
6363

6464
/// <summary>
65-
/// <para>Explicit operation timeout</para>
65+
/// <para>Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.</para>
6666
/// </summary>
6767
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("timeout"); set => Q("timeout", value); }
6868

6969
/// <summary>
70-
/// <para>Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)</para>
70+
/// <para>The number of shard copies that must be active before proceeding with the operation.<br/>Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).</para>
7171
/// </summary>
7272
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q<Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards?>("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
7373

7474
/// <summary>
75-
/// <para>Sets require_alias for all incoming documents. Defaults to unset (false)</para>
75+
/// <para>If `true`, the request’s actions must target an index alias.</para>
7676
/// </summary>
7777
public bool? RequireAlias { get => Q<bool?>("require_alias"); set => Q("require_alias", value); }
7878
}
7979

8080
/// <summary>
81-
/// <para>Allows to perform multiple index/update/delete operations in a single request.</para>
81+
/// <para>Performs multiple indexing or delete operations in a single API call.<br/>This reduces overhead and can greatly increase indexing speed.</para>
8282
/// </summary>
8383
public sealed partial class BulkRequest : PlainRequest<BulkRequestParameters>
8484
{
@@ -99,62 +99,62 @@ public BulkRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) :
9999
internal override string OperationName => "bulk";
100100

101101
/// <summary>
102-
/// <para>The pipeline id to preprocess incoming documents with</para>
102+
/// <para>ID of the pipeline to use to preprocess incoming documents.<br/>If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.<br/>If a final pipeline is configured it will always run, regardless of the value of this parameter.</para>
103103
/// </summary>
104104
[JsonIgnore]
105105
public string? Pipeline { get => Q<string?>("pipeline"); set => Q("pipeline", value); }
106106

107107
/// <summary>
108-
/// <para>If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.</para>
108+
/// <para>If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.<br/>Valid values: `true`, `false`, `wait_for`.</para>
109109
/// </summary>
110110
[JsonIgnore]
111111
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q<Elastic.Clients.Elasticsearch.Serverless.Refresh?>("refresh"); set => Q("refresh", value); }
112112

113113
/// <summary>
114-
/// <para>Specific routing value</para>
114+
/// <para>Custom value used to route operations to a specific shard.</para>
115115
/// </summary>
116116
[JsonIgnore]
117117
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q<Elastic.Clients.Elasticsearch.Serverless.Routing?>("routing"); set => Q("routing", value); }
118118

119119
/// <summary>
120-
/// <para>True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request</para>
120+
/// <para>`true` or `false` to return the `_source` field or not, or a list of fields to return.</para>
121121
/// </summary>
122122
[JsonIgnore]
123123
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q<Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam?>("_source"); set => Q("_source", value); }
124124

125125
/// <summary>
126-
/// <para>Default list of fields to exclude from the returned _source field, can be overridden on each sub-request</para>
126+
/// <para>A comma-separated list of source fields to exclude from the response.</para>
127127
/// </summary>
128128
[JsonIgnore]
129129
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q<Elastic.Clients.Elasticsearch.Serverless.Fields?>("_source_excludes"); set => Q("_source_excludes", value); }
130130

131131
/// <summary>
132-
/// <para>Default list of fields to extract and return from the _source field, can be overridden on each sub-request</para>
132+
/// <para>A comma-separated list of source fields to include in the response.</para>
133133
/// </summary>
134134
[JsonIgnore]
135135
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q<Elastic.Clients.Elasticsearch.Serverless.Fields?>("_source_includes"); set => Q("_source_includes", value); }
136136

137137
/// <summary>
138-
/// <para>Explicit operation timeout</para>
138+
/// <para>Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.</para>
139139
/// </summary>
140140
[JsonIgnore]
141141
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("timeout"); set => Q("timeout", value); }
142142

143143
/// <summary>
144-
/// <para>Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)</para>
144+
/// <para>The number of shard copies that must be active before proceeding with the operation.<br/>Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).</para>
145145
/// </summary>
146146
[JsonIgnore]
147147
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q<Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards?>("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
148148

149149
/// <summary>
150-
/// <para>Sets require_alias for all incoming documents. Defaults to unset (false)</para>
150+
/// <para>If `true`, the request’s actions must target an index alias.</para>
151151
/// </summary>
152152
[JsonIgnore]
153153
public bool? RequireAlias { get => Q<bool?>("require_alias"); set => Q("require_alias", value); }
154154
}
155155

156156
/// <summary>
157-
/// <para>Allows to perform multiple index/update/delete operations in a single request.</para>
157+
/// <para>Performs multiple indexing or delete operations in a single API call.<br/>This reduces overhead and can greatly increase indexing speed.</para>
158158
/// </summary>
159159
public sealed partial class BulkRequestDescriptor<TDocument> : RequestDescriptor<BulkRequestDescriptor<TDocument>, BulkRequestParameters>
160160
{
@@ -194,7 +194,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
194194
}
195195

196196
/// <summary>
197-
/// <para>Allows to perform multiple index/update/delete operations in a single request.</para>
197+
/// <para>Performs multiple indexing or delete operations in a single API call.<br/>This reduces overhead and can greatly increase indexing speed.</para>
198198
/// </summary>
199199
public sealed partial class BulkRequestDescriptor : RequestDescriptor<BulkRequestDescriptor, BulkRequestParameters>
200200
{

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs

+8-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public sealed class ClearScrollRequestParameters : RequestParameters
3434
}
3535

3636
/// <summary>
37-
/// <para>Explicitly clears the search context for a scroll.</para>
37+
/// <para>Clears the search context and results for a scrolling search.</para>
3838
/// </summary>
3939
public sealed partial class ClearScrollRequest : PlainRequest<ClearScrollRequestParameters>
4040
{
@@ -46,12 +46,15 @@ public sealed partial class ClearScrollRequest : PlainRequest<ClearScrollRequest
4646

4747
internal override string OperationName => "clear_scroll";
4848

49+
/// <summary>
50+
/// <para>Scroll IDs to clear.<br/>To clear all scroll IDs, use `_all`.</para>
51+
/// </summary>
4952
[JsonInclude, JsonPropertyName("scroll_id")]
5053
public Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollId { get; set; }
5154
}
5255

5356
/// <summary>
54-
/// <para>Explicitly clears the search context for a scroll.</para>
57+
/// <para>Clears the search context and results for a scrolling search.</para>
5558
/// </summary>
5659
public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor<ClearScrollRequestDescriptor, ClearScrollRequestParameters>
5760
{
@@ -71,6 +74,9 @@ public ClearScrollRequestDescriptor()
7174

7275
private Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollIdValue { get; set; }
7376

77+
/// <summary>
78+
/// <para>Scroll IDs to clear.<br/>To clear all scroll IDs, use `_all`.</para>
79+
/// </summary>
7480
public ClearScrollRequestDescriptor ScrollId(Elastic.Clients.Elasticsearch.Serverless.ScrollIds? scrollId)
7581
{
7682
ScrollIdValue = scrollId;

0 commit comments

Comments
 (0)