Skip to content

Commit a15e417

Browse files
Regenerate client using the latest spec (#8129) (#8131)
Co-authored-by: Florian Bernd <git@flobernd.de>
1 parent 56467a2 commit a15e417

File tree

173 files changed

+3762
-8445
lines changed

Some content is hidden

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

173 files changed

+3762
-8445
lines changed

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public override SubmitAsyncSearchRequest Read(ref Utf8JsonReader reader, Type ty
248248

249249
if (property == "knn")
250250
{
251-
variant.Knn = JsonSerializer.Deserialize<ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnQuery>?>(ref reader, options);
251+
variant.Knn = JsonSerializer.Deserialize<ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnSearch>?>(ref reader, options);
252252
continue;
253253
}
254254

@@ -836,8 +836,8 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
836836
/// <para>Defines the approximate kNN search to run.</para>
837837
/// </summary>
838838
[JsonInclude, JsonPropertyName("knn")]
839-
[SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.KnnQuery))]
840-
public ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnQuery>? Knn { get; set; }
839+
[SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.KnnSearch))]
840+
public ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnSearch>? Knn { get; set; }
841841

842842
/// <summary>
843843
/// <para>Minimum _score for matching documents. Documents with a lower _score are<br/>not included in the search results.</para>
@@ -1028,10 +1028,10 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Indices(Elastic.Clients.Ela
10281028
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor<TDocument> HighlightDescriptor { get; set; }
10291029
private Action<Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor<TDocument>> HighlightDescriptorAction { get; set; }
10301030
private ICollection<IDictionary<Elastic.Clients.Elasticsearch.Serverless.IndexName, double>>? IndicesBoostValue { get; set; }
1031-
private ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnQuery>? KnnValue { get; set; }
1032-
private Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor<TDocument> KnnDescriptor { get; set; }
1033-
private Action<Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor<TDocument>> KnnDescriptorAction { get; set; }
1034-
private Action<Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor<TDocument>>[] KnnDescriptorActions { get; set; }
1031+
private ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnSearch>? KnnValue { get; set; }
1032+
private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor<TDocument> KnnDescriptor { get; set; }
1033+
private Action<Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor<TDocument>> KnnDescriptorAction { get; set; }
1034+
private Action<Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor<TDocument>>[] KnnDescriptorActions { get; set; }
10351035
private double? MinScoreValue { get; set; }
10361036
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; }
10371037
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; }
@@ -1242,7 +1242,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> IndicesBoost(ICollection<ID
12421242
/// <summary>
12431243
/// <para>Defines the approximate kNN search to run.</para>
12441244
/// </summary>
1245-
public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnQuery>? knn)
1245+
public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnSearch>? knn)
12461246
{
12471247
KnnDescriptor = null;
12481248
KnnDescriptorAction = null;
@@ -1251,7 +1251,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(ICollection<Elastic.Cli
12511251
return Self;
12521252
}
12531253

1254-
public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor<TDocument> descriptor)
1254+
public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor<TDocument> descriptor)
12551255
{
12561256
KnnValue = null;
12571257
KnnDescriptorAction = null;
@@ -1260,7 +1260,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Elastic.Clients.Elastic
12601260
return Self;
12611261
}
12621262

1263-
public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Action<Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor<TDocument>> configure)
1263+
public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Action<Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor<TDocument>> configure)
12641264
{
12651265
KnnValue = null;
12661266
KnnDescriptor = null;
@@ -1269,7 +1269,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Action<Elastic.Clients.
12691269
return Self;
12701270
}
12711271

1272-
public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(params Action<Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor<TDocument>>[] configure)
1272+
public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(params Action<Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor<TDocument>>[] configure)
12731273
{
12741274
KnnValue = null;
12751275
KnnDescriptor = null;
@@ -1740,7 +1740,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
17401740
else if (KnnDescriptorAction is not null)
17411741
{
17421742
writer.WritePropertyName("knn");
1743-
JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor<TDocument>(KnnDescriptorAction), options);
1743+
JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor<TDocument>(KnnDescriptorAction), options);
17441744
}
17451745
else if (KnnDescriptorActions is not null)
17461746
{
@@ -1749,7 +1749,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
17491749
writer.WriteStartArray();
17501750
foreach (var action in KnnDescriptorActions)
17511751
{
1752-
JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor<TDocument>(action), options);
1752+
JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor<TDocument>(action), options);
17531753
}
17541754

17551755
if (KnnDescriptorActions.Length != 1)
@@ -1758,7 +1758,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
17581758
else if (KnnValue is not null)
17591759
{
17601760
writer.WritePropertyName("knn");
1761-
SingleOrManySerializationHelper.Serialize<Elastic.Clients.Elasticsearch.Serverless.KnnQuery>(KnnValue, writer, options);
1761+
SingleOrManySerializationHelper.Serialize<Elastic.Clients.Elasticsearch.Serverless.KnnSearch>(KnnValue, writer, options);
17621762
}
17631763

17641764
if (MinScoreValue.HasValue)
@@ -2074,10 +2074,10 @@ public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.
20742074
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; }
20752075
private Action<Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor> HighlightDescriptorAction { get; set; }
20762076
private ICollection<IDictionary<Elastic.Clients.Elasticsearch.Serverless.IndexName, double>>? IndicesBoostValue { get; set; }
2077-
private ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnQuery>? KnnValue { get; set; }
2078-
private Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor KnnDescriptor { get; set; }
2079-
private Action<Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor> KnnDescriptorAction { get; set; }
2080-
private Action<Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor>[] KnnDescriptorActions { get; set; }
2077+
private ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnSearch>? KnnValue { get; set; }
2078+
private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor KnnDescriptor { get; set; }
2079+
private Action<Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor> KnnDescriptorAction { get; set; }
2080+
private Action<Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor>[] KnnDescriptorActions { get; set; }
20812081
private double? MinScoreValue { get; set; }
20822082
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; }
20832083
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; }
@@ -2288,7 +2288,7 @@ public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection<IDictionary<E
22882288
/// <summary>
22892289
/// <para>Defines the approximate kNN search to run.</para>
22902290
/// </summary>
2291-
public SubmitAsyncSearchRequestDescriptor Knn(ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnQuery>? knn)
2291+
public SubmitAsyncSearchRequestDescriptor Knn(ICollection<Elastic.Clients.Elasticsearch.Serverless.KnnSearch>? knn)
22922292
{
22932293
KnnDescriptor = null;
22942294
KnnDescriptorAction = null;
@@ -2297,7 +2297,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(ICollection<Elastic.Clients.Elasti
22972297
return Self;
22982298
}
22992299

2300-
public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor descriptor)
2300+
public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor descriptor)
23012301
{
23022302
KnnValue = null;
23032303
KnnDescriptorAction = null;
@@ -2306,7 +2306,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serv
23062306
return Self;
23072307
}
23082308

2309-
public SubmitAsyncSearchRequestDescriptor Knn(Action<Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor> configure)
2309+
public SubmitAsyncSearchRequestDescriptor Knn(Action<Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor> configure)
23102310
{
23112311
KnnValue = null;
23122312
KnnDescriptor = null;
@@ -2315,7 +2315,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(Action<Elastic.Clients.Elasticsear
23152315
return Self;
23162316
}
23172317

2318-
public SubmitAsyncSearchRequestDescriptor Knn(params Action<Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor>[] configure)
2318+
public SubmitAsyncSearchRequestDescriptor Knn(params Action<Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor>[] configure)
23192319
{
23202320
KnnValue = null;
23212321
KnnDescriptor = null;
@@ -2786,7 +2786,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
27862786
else if (KnnDescriptorAction is not null)
27872787
{
27882788
writer.WritePropertyName("knn");
2789-
JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor(KnnDescriptorAction), options);
2789+
JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(KnnDescriptorAction), options);
27902790
}
27912791
else if (KnnDescriptorActions is not null)
27922792
{
@@ -2795,7 +2795,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
27952795
writer.WriteStartArray();
27962796
foreach (var action in KnnDescriptorActions)
27972797
{
2798-
JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor(action), options);
2798+
JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(action), options);
27992799
}
28002800

28012801
if (KnnDescriptorActions.Length != 1)
@@ -2804,7 +2804,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
28042804
else if (KnnValue is not null)
28052805
{
28062806
writer.WritePropertyName("knn");
2807-
SingleOrManySerializationHelper.Serialize<Elastic.Clients.Elasticsearch.Serverless.KnnQuery>(KnnValue, writer, options);
2807+
SingleOrManySerializationHelper.Serialize<Elastic.Clients.Elasticsearch.Serverless.KnnSearch>(KnnValue, writer, options);
28082808
}
28092809

28102810
if (MinScoreValue.HasValue)

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Cluster;
3131

3232
public sealed partial class PutComponentTemplateRequestParameters : RequestParameters
3333
{
34+
public string? Cause { get => Q<string?>("cause"); set => Q("cause", value); }
35+
3436
/// <summary>
3537
/// <para>If `true`, this request cannot replace or update existing component templates.</para>
3638
/// </summary>
@@ -63,6 +65,9 @@ public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name
6365

6466
internal override string OperationName => "cluster.put_component_template";
6567

68+
[JsonIgnore]
69+
public string? Cause { get => Q<string?>("cause"); set => Q("cause", value); }
70+
6671
/// <summary>
6772
/// <para>If `true`, this request cannot replace or update existing component templates.</para>
6873
/// </summary>
@@ -76,10 +81,10 @@ public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name
7681
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); }
7782

7883
/// <summary>
79-
/// <para>This setting overrides the value of the `action.auto_create_index` cluster setting.<br/>If set to `true` in a template, then indices can be automatically created using that<br/>template even if auto-creation of indices is disabled via `actions.auto_create_index`.<br/>If set to `false` then data streams matching the template must always be explicitly created.</para>
84+
/// <para>Marks this index template as deprecated. When creating or updating a non-deprecated index template<br/>that uses deprecated components, Elasticsearch will emit a deprecation warning.</para>
8085
/// </summary>
81-
[JsonInclude, JsonPropertyName("allow_auto_create")]
82-
public bool? AllowAutoCreate { get; set; }
86+
[JsonInclude, JsonPropertyName("deprecated")]
87+
public bool? Deprecated { get; set; }
8388

8489
/// <summary>
8590
/// <para>Optional user metadata about the component template.<br/>May have any contents. This map is not automatically generated by Elasticsearch.<br/>This information is stored in the cluster state, so keeping it short is preferable.<br/>To unset `_meta`, replace the template without specifying this information.</para>
@@ -123,6 +128,7 @@ public PutComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serve
123128

124129
internal override string OperationName => "cluster.put_component_template";
125130

131+
public PutComponentTemplateRequestDescriptor<TDocument> Cause(string? cause) => Qs("cause", cause);
126132
public PutComponentTemplateRequestDescriptor<TDocument> Create(bool? create = true) => Qs("create", create);
127133
public PutComponentTemplateRequestDescriptor<TDocument> MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout);
128134

@@ -132,19 +138,19 @@ public PutComponentTemplateRequestDescriptor<TDocument> Name(Elastic.Clients.Ela
132138
return Self;
133139
}
134140

135-
private bool? AllowAutoCreateValue { get; set; }
141+
private bool? DeprecatedValue { get; set; }
136142
private IDictionary<string, object>? MetaValue { get; set; }
137143
private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexState TemplateValue { get; set; }
138144
private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor<TDocument> TemplateDescriptor { get; set; }
139145
private Action<Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor<TDocument>> TemplateDescriptorAction { get; set; }
140146
private long? VersionValue { get; set; }
141147

142148
/// <summary>
143-
/// <para>This setting overrides the value of the `action.auto_create_index` cluster setting.<br/>If set to `true` in a template, then indices can be automatically created using that<br/>template even if auto-creation of indices is disabled via `actions.auto_create_index`.<br/>If set to `false` then data streams matching the template must always be explicitly created.</para>
149+
/// <para>Marks this index template as deprecated. When creating or updating a non-deprecated index template<br/>that uses deprecated components, Elasticsearch will emit a deprecation warning.</para>
144150
/// </summary>
145-
public PutComponentTemplateRequestDescriptor<TDocument> AllowAutoCreate(bool? allowAutoCreate = true)
151+
public PutComponentTemplateRequestDescriptor<TDocument> Deprecated(bool? deprecated = true)
146152
{
147-
AllowAutoCreateValue = allowAutoCreate;
153+
DeprecatedValue = deprecated;
148154
return Self;
149155
}
150156

@@ -196,10 +202,10 @@ public PutComponentTemplateRequestDescriptor<TDocument> Version(long? version)
196202
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
197203
{
198204
writer.WriteStartObject();
199-
if (AllowAutoCreateValue.HasValue)
205+
if (DeprecatedValue.HasValue)
200206
{
201-
writer.WritePropertyName("allow_auto_create");
202-
writer.WriteBooleanValue(AllowAutoCreateValue.Value);
207+
writer.WritePropertyName("deprecated");
208+
writer.WriteBooleanValue(DeprecatedValue.Value);
203209
}
204210

205211
if (MetaValue is not null)
@@ -257,6 +263,7 @@ public PutComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serve
257263

258264
internal override string OperationName => "cluster.put_component_template";
259265

266+
public PutComponentTemplateRequestDescriptor Cause(string? cause) => Qs("cause", cause);
260267
public PutComponentTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create);
261268
public PutComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout);
262269

@@ -266,19 +273,19 @@ public PutComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.
266273
return Self;
267274
}
268275

269-
private bool? AllowAutoCreateValue { get; set; }
276+
private bool? DeprecatedValue { get; set; }
270277
private IDictionary<string, object>? MetaValue { get; set; }
271278
private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexState TemplateValue { get; set; }
272279
private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor TemplateDescriptor { get; set; }
273280
private Action<Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor> TemplateDescriptorAction { get; set; }
274281
private long? VersionValue { get; set; }
275282

276283
/// <summary>
277-
/// <para>This setting overrides the value of the `action.auto_create_index` cluster setting.<br/>If set to `true` in a template, then indices can be automatically created using that<br/>template even if auto-creation of indices is disabled via `actions.auto_create_index`.<br/>If set to `false` then data streams matching the template must always be explicitly created.</para>
284+
/// <para>Marks this index template as deprecated. When creating or updating a non-deprecated index template<br/>that uses deprecated components, Elasticsearch will emit a deprecation warning.</para>
278285
/// </summary>
279-
public PutComponentTemplateRequestDescriptor AllowAutoCreate(bool? allowAutoCreate = true)
286+
public PutComponentTemplateRequestDescriptor Deprecated(bool? deprecated = true)
280287
{
281-
AllowAutoCreateValue = allowAutoCreate;
288+
DeprecatedValue = deprecated;
282289
return Self;
283290
}
284291

@@ -330,10 +337,10 @@ public PutComponentTemplateRequestDescriptor Version(long? version)
330337
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
331338
{
332339
writer.WriteStartObject();
333-
if (AllowAutoCreateValue.HasValue)
340+
if (DeprecatedValue.HasValue)
334341
{
335-
writer.WritePropertyName("allow_auto_create");
336-
writer.WriteBooleanValue(AllowAutoCreateValue.Value);
342+
writer.WritePropertyName("deprecated");
343+
writer.WriteBooleanValue(DeprecatedValue.Value);
337344
}
338345

339346
if (MetaValue is not null)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public sealed partial class CreateResponse : ElasticsearchResponse
3535
[JsonInclude, JsonPropertyName("_index")]
3636
public string Index { get; init; }
3737
[JsonInclude, JsonPropertyName("_primary_term")]
38-
public long PrimaryTerm { get; init; }
38+
public long? PrimaryTerm { get; init; }
3939
[JsonInclude, JsonPropertyName("result")]
4040
public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; }
4141
[JsonInclude, JsonPropertyName("_seq_no")]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public sealed partial class DeleteResponse : ElasticsearchResponse
3535
[JsonInclude, JsonPropertyName("_index")]
3636
public string Index { get; init; }
3737
[JsonInclude, JsonPropertyName("_primary_term")]
38-
public long PrimaryTerm { get; init; }
38+
public long? PrimaryTerm { get; init; }
3939
[JsonInclude, JsonPropertyName("result")]
4040
public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; }
4141
[JsonInclude, JsonPropertyName("_seq_no")]

0 commit comments

Comments
 (0)