Skip to content

Commit 49e9bfc

Browse files
authored
[9.2] Regenerate client (#8801)
1 parent 1e89be6 commit 49e9bfc

File tree

2,551 files changed

+11657
-35937
lines changed

Some content is hidden

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

2,551 files changed

+11657
-35937
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ public sealed partial class AsyncSearchStatusRequest : Elastic.Clients.Elasticse
6262
public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
6363
{
6464
}
65-
#if NET7_0_OR_GREATER
65+
6666
public AsyncSearchStatusRequest()
6767
{
6868
}
69-
#endif
69+
7070
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
7171
internal AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
7272
{
@@ -86,11 +86,7 @@ internal AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serialization.Js
8686
/// A unique identifier for the async search.
8787
/// </para>
8888
/// </summary>
89-
public
90-
#if NET7_0_OR_GREATER
91-
required
92-
#endif
93-
Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
89+
public required Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
9490

9591
/// <summary>
9692
/// <para>
@@ -183,6 +179,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRequestDescrip
183179
return this;
184180
}
185181

182+
[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
183+
#if NET10_0_OR_GREATER
184+
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
185+
#endif
186+
)]
186187
public Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRequestDescriptor FilterPath(params string[]? value)
187188
{
188189
Instance.FilterPath = value;

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J
7070
/// </para>
7171
/// </summary>
7272
public System.DateTimeOffset? ExpirationTime { get; set; }
73-
public
74-
#if NET7_0_OR_GREATER
75-
required
76-
#endif
77-
System.DateTimeOffset ExpirationTimeInMillis { get; set; }
73+
public required System.DateTimeOffset ExpirationTimeInMillis { get; set; }
7874
public string? Id { get; set; }
7975

8076
/// <summary>
@@ -83,11 +79,7 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J
8379
/// While the query is running, <c>is_partial</c> is always set to <c>true</c>.
8480
/// </para>
8581
/// </summary>
86-
public
87-
#if NET7_0_OR_GREATER
88-
required
89-
#endif
90-
bool IsPartial { get; set; }
82+
public required bool IsPartial { get; set; }
9183

9284
/// <summary>
9385
/// <para>
@@ -98,26 +90,14 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J
9890
/// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though <c>is_running</c> is <c>false</c>.
9991
/// </para>
10092
/// </summary>
101-
public
102-
#if NET7_0_OR_GREATER
103-
required
104-
#endif
105-
bool IsRunning { get; set; }
93+
public required bool IsRunning { get; set; }
10694

10795
/// <summary>
10896
/// <para>
10997
/// The number of shards that have run the query so far.
11098
/// </para>
11199
/// </summary>
112-
public
113-
#if NET7_0_OR_GREATER
114-
required
115-
#endif
116-
Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; }
100+
public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; }
117101
public System.DateTimeOffset? StartTime { get; set; }
118-
public
119-
#if NET7_0_OR_GREATER
120-
required
121-
#endif
122-
System.DateTimeOffset StartTimeInMillis { get; set; }
102+
public required System.DateTimeOffset StartTimeInMillis { get; set; }
123103
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public sealed partial class DeleteAsyncSearchRequest : Elastic.Clients.Elasticse
4444
public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
4545
{
4646
}
47-
#if NET7_0_OR_GREATER
47+
4848
public DeleteAsyncSearchRequest()
4949
{
5050
}
51-
#endif
51+
5252
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
5353
internal DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
5454
{
@@ -68,11 +68,7 @@ internal DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js
6868
/// A unique identifier for the async search.
6969
/// </para>
7070
/// </summary>
71-
public
72-
#if NET7_0_OR_GREATER
73-
required
74-
#endif
75-
Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
71+
public required Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
7672
}
7773

7874
/// <summary>
@@ -134,6 +130,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.DeleteAsyncSearchRequestDescrip
134130
return this;
135131
}
136132

133+
[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
134+
#if NET10_0_OR_GREATER
135+
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
136+
#endif
137+
)]
137138
public Elastic.Clients.Elasticsearch.AsyncSearch.DeleteAsyncSearchRequestDescriptor FilterPath(params string[]? value)
138139
{
139140
Instance.FilterPath = value;

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,5 @@ internal DeleteAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J
4242
/// For a successful response, this value is always true. On failure, an exception is returned instead.
4343
/// </para>
4444
/// </summary>
45-
public
46-
#if NET7_0_OR_GREATER
47-
required
48-
#endif
49-
bool Acknowledged { get; set; }
45+
public required bool Acknowledged { get; set; }
5046
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ public partial class GetAsyncSearchRequest : Elastic.Clients.Elasticsearch.Reque
6969
public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
7070
{
7171
}
72-
#if NET7_0_OR_GREATER
72+
7373
public GetAsyncSearchRequest()
7474
{
7575
}
76-
#endif
76+
7777
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
7878
internal GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
7979
{
@@ -93,11 +93,7 @@ internal GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC
9393
/// A unique identifier for the async search.
9494
/// </para>
9595
/// </summary>
96-
public
97-
#if NET7_0_OR_GREATER
98-
required
99-
#endif
100-
Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
96+
public required Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
10197

10298
/// <summary>
10399
/// <para>
@@ -224,6 +220,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchRequestDescriptor
224220
return this;
225221
}
226222

223+
[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
224+
#if NET10_0_OR_GREATER
225+
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
226+
#endif
227+
)]
227228
public Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchRequestDescriptor FilterPath(params string[]? value)
228229
{
229230
Instance.FilterPath = value;

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json
5353
/// </para>
5454
/// </summary>
5555
public System.DateTimeOffset? ExpirationTime { get; set; }
56-
public
57-
#if NET7_0_OR_GREATER
58-
required
59-
#endif
60-
System.DateTimeOffset ExpirationTimeInMillis { get; set; }
56+
public required System.DateTimeOffset ExpirationTimeInMillis { get; set; }
6157
public string? Id { get; set; }
6258

6359
/// <summary>
@@ -66,11 +62,7 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json
6662
/// While the query is running, <c>is_partial</c> is always set to <c>true</c>.
6763
/// </para>
6864
/// </summary>
69-
public
70-
#if NET7_0_OR_GREATER
71-
required
72-
#endif
73-
bool IsPartial { get; set; }
65+
public required bool IsPartial { get; set; }
7466

7567
/// <summary>
7668
/// <para>
@@ -81,20 +73,8 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json
8173
/// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though <c>is_running</c> is <c>false</c>.
8274
/// </para>
8375
/// </summary>
84-
public
85-
#if NET7_0_OR_GREATER
86-
required
87-
#endif
88-
bool IsRunning { get; set; }
89-
public
90-
#if NET7_0_OR_GREATER
91-
required
92-
#endif
93-
Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch<TDocument> Response { get; set; }
76+
public required bool IsRunning { get; set; }
77+
public required Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch<TDocument> Response { get; set; }
9478
public System.DateTimeOffset? StartTime { get; set; }
95-
public
96-
#if NET7_0_OR_GREATER
97-
required
98-
#endif
99-
System.DateTimeOffset StartTimeInMillis { get; set; }
79+
public required System.DateTimeOffset StartTimeInMillis { get; set; }
10080
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs

Lines changed: 76 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,20 @@ public sealed partial class SubmitAsyncSearchRequestParameters : Elastic.Transpo
141141
/// </summary>
142142
public string? Preference { get => Q<string?>("preference"); set => Q("preference", value); }
143143

144+
/// <summary>
145+
/// <para>
146+
/// Specifies a subset of projects to target for the search using project
147+
/// metadata tags in a subset of Lucene query syntax.
148+
/// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
149+
/// Examples:
150+
/// _alias:my-project
151+
/// _alias:_origin
152+
/// _alias:<em>pr</em>
153+
/// Supported in serverless only.
154+
/// </para>
155+
/// </summary>
156+
public string? ProjectRouting { get => Q<string?>("project_routing"); set => Q("project_routing", value); }
157+
144158
/// <summary>
145159
/// <para>
146160
/// Query in the Lucene query string syntax
@@ -255,16 +269,11 @@ public partial class SubmitAsyncSearchRequest : Elastic.Clients.Elasticsearch.Re
255269
public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices))
256270
{
257271
}
258-
#if NET7_0_OR_GREATER
259-
public SubmitAsyncSearchRequest()
260-
{
261-
}
262-
#endif
263-
#if !NET7_0_OR_GREATER
272+
264273
public SubmitAsyncSearchRequest()
265274
{
266275
}
267-
#endif
276+
268277
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
269278
internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
270279
{
@@ -402,6 +411,20 @@ internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js
402411
/// </summary>
403412
public string? Preference { get => Q<string?>("preference"); set => Q("preference", value); }
404413

414+
/// <summary>
415+
/// <para>
416+
/// Specifies a subset of projects to target for the search using project
417+
/// metadata tags in a subset of Lucene query syntax.
418+
/// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
419+
/// Examples:
420+
/// _alias:my-project
421+
/// _alias:_origin
422+
/// _alias:<em>pr</em>
423+
/// Supported in serverless only.
424+
/// </para>
425+
/// </summary>
426+
public string? ProjectRouting { get => Q<string?>("project_routing"); set => Q("project_routing", value); }
427+
405428
/// <summary>
406429
/// <para>
407430
/// Query in the Lucene query string syntax
@@ -922,6 +945,24 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip
922945
return this;
923946
}
924947

948+
/// <summary>
949+
/// <para>
950+
/// Specifies a subset of projects to target for the search using project
951+
/// metadata tags in a subset of Lucene query syntax.
952+
/// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
953+
/// Examples:
954+
/// _alias:my-project
955+
/// _alias:_origin
956+
/// _alias:<em>pr</em>
957+
/// Supported in serverless only.
958+
/// </para>
959+
/// </summary>
960+
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor ProjectRouting(string? value)
961+
{
962+
Instance.ProjectRouting = value;
963+
return this;
964+
}
965+
925966
/// <summary>
926967
/// <para>
927968
/// Query in the Lucene query string syntax
@@ -2026,6 +2067,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip
20262067
return this;
20272068
}
20282069

2070+
[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
2071+
#if NET10_0_OR_GREATER
2072+
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
2073+
#endif
2074+
)]
20292075
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor FilterPath(params string[]? value)
20302076
{
20312077
Instance.FilterPath = value;
@@ -2303,6 +2349,24 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip
23032349
return this;
23042350
}
23052351

2352+
/// <summary>
2353+
/// <para>
2354+
/// Specifies a subset of projects to target for the search using project
2355+
/// metadata tags in a subset of Lucene query syntax.
2356+
/// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
2357+
/// Examples:
2358+
/// _alias:my-project
2359+
/// _alias:_origin
2360+
/// _alias:<em>pr</em>
2361+
/// Supported in serverless only.
2362+
/// </para>
2363+
/// </summary>
2364+
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor<TDocument> ProjectRouting(string? value)
2365+
{
2366+
Instance.ProjectRouting = value;
2367+
return this;
2368+
}
2369+
23062370
/// <summary>
23072371
/// <para>
23082372
/// Query in the Lucene query string syntax
@@ -3238,6 +3302,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip
32383302
return this;
32393303
}
32403304

3305+
[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
3306+
#if NET10_0_OR_GREATER
3307+
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
3308+
#endif
3309+
)]
32413310
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor<TDocument> FilterPath(params string[]? value)
32423311
{
32433312
Instance.FilterPath = value;

0 commit comments

Comments
 (0)