Skip to content

Commit 6543855

Browse files
committed
Fix descriptor constructor and request method generation
1 parent 255cad8 commit 6543855

File tree

360 files changed

+2372
-1517
lines changed

Some content is hidden

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

360 files changed

+2372
-1517
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Id id)
166166
Instance = new Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRequest(id);
167167
}
168168

169-
[System.Obsolete("TODO")]
169+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
170170
public AsyncSearchStatusRequestDescriptor()
171171
{
172172
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Id id)
129129
Instance = new Elastic.Clients.Elasticsearch.AsyncSearch.DeleteAsyncSearchRequest(id);
130130
}
131131

132-
[System.Obsolete("TODO")]
132+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
133133
public DeleteAsyncSearchRequestDescriptor()
134134
{
135135
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Id id)
180180
Instance = new Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchRequest(id);
181181
}
182182

183-
[System.Obsolete("TODO")]
183+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
184184
public GetAsyncSearchRequestDescriptor()
185185
{
186186
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.AsyncSea
10221022
Instance = instance;
10231023
}
10241024

1025-
public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices)
1025+
public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices)
10261026
{
10271027
Instance = new Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequest(indices);
10281028
}
@@ -2401,7 +2401,7 @@ public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.AsyncSea
24012401
Instance = instance;
24022402
}
24032403

2404-
public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices)
2404+
public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices)
24052405
{
24062406
Instance = new Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequest(indices);
24072407
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ public BulkRequestDescriptor(Elastic.Clients.Elasticsearch.BulkRequest instance)
679679
Instance = instance;
680680
}
681681

682-
public BulkRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index)
682+
public BulkRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName? index)
683683
{
684684
Instance = new Elastic.Clients.Elasticsearch.BulkRequest(index);
685685
}
@@ -1154,7 +1154,7 @@ public BulkRequestDescriptor(Elastic.Clients.Elasticsearch.BulkRequest instance)
11541154
Instance = instance;
11551155
}
11561156

1157-
public BulkRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index)
1157+
public BulkRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName? index)
11581158
{
11591159
Instance = new Elastic.Clients.Elasticsearch.BulkRequest(index);
11601160
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public ClusterInfoRequestDescriptor(System.Collections.Generic.ICollection<Elast
121121
Instance = new Elastic.Clients.Elasticsearch.Cluster.ClusterInfoRequest(target);
122122
}
123123

124-
[System.Obsolete("TODO")]
124+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
125125
public ClusterInfoRequestDescriptor()
126126
{
127127
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public ClusterStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Cluster.Clust
147147
Instance = instance;
148148
}
149149

150-
public ClusterStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds nodeId)
150+
public ClusterStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId)
151151
{
152152
Instance = new Elastic.Clients.Elasticsearch.Cluster.ClusterStatsRequest(nodeId);
153153
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public DeleteComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Na
152152
Instance = new Elastic.Clients.Elasticsearch.Cluster.DeleteComponentTemplateRequest(name);
153153
}
154154

155-
[System.Obsolete("TODO")]
155+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
156156
public DeleteComponentTemplateRequestDescriptor()
157157
{
158158
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public ExistsComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Na
155155
Instance = new Elastic.Clients.Elasticsearch.Cluster.ExistsComponentTemplateRequest(name);
156156
}
157157

158-
[System.Obsolete("TODO")]
158+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
159159
public ExistsComponentTemplateRequestDescriptor()
160160
{
161161
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public GetComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Clust
176176
Instance = instance;
177177
}
178178

179-
public GetComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Name name)
179+
public GetComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Name? name)
180180
{
181181
Instance = new Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequest(name);
182182
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Cluster.HealthReque
293293
Instance = instance;
294294
}
295295

296-
public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices)
296+
public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices)
297297
{
298298
Instance = new Elastic.Clients.Elasticsearch.Cluster.HealthRequest(indices);
299299
}
@@ -533,7 +533,7 @@ public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Cluster.HealthReque
533533
Instance = instance;
534534
}
535535

536-
public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices)
536+
public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices)
537537
{
538538
Instance = new Elastic.Clients.Elasticsearch.Cluster.HealthRequest(indices);
539539
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public PutComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Name
286286
#pragma warning restore CS0618
287287
}
288288

289-
[System.Obsolete("TODO")]
289+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
290290
public PutComponentTemplateRequestDescriptor()
291291
{
292292
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");
@@ -549,7 +549,7 @@ public PutComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Name
549549
#pragma warning restore CS0618
550550
}
551551

552-
[System.Obsolete("TODO")]
552+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
553553
public PutComponentTemplateRequestDescriptor()
554554
{
555555
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ public CountRequestDescriptor(Elastic.Clients.Elasticsearch.CountRequest instanc
393393
Instance = instance;
394394
}
395395

396-
public CountRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices)
396+
public CountRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices)
397397
{
398398
Instance = new Elastic.Clients.Elasticsearch.CountRequest(indices);
399399
}
@@ -725,7 +725,7 @@ public CountRequestDescriptor(Elastic.Clients.Elasticsearch.CountRequest instanc
725725
Instance = instance;
726726
}
727727

728-
public CountRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices)
728+
public CountRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices)
729729
{
730730
Instance = new Elastic.Clients.Elasticsearch.CountRequest(indices);
731731
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public CreateRequestDescriptor(TDocument document)
585585
Instance = new Elastic.Clients.Elasticsearch.CreateRequest<TDocument>(document);
586586
}
587587

588-
[System.Obsolete("TODO")]
588+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
589589
public CreateRequestDescriptor()
590590
{
591591
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public DeleteAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Na
142142
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.DeleteAutoFollowPatternRequest(name);
143143
}
144144

145-
[System.Obsolete("TODO")]
145+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
146146
public DeleteAutoFollowPatternRequestDescriptor()
147147
{
148148
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public FollowInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices
144144
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowInfoRequest(indices);
145145
}
146146

147-
[System.Obsolete("TODO")]
147+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
148148
public FollowInfoRequestDescriptor()
149149
{
150150
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public FollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index)
404404
#pragma warning restore CS0618
405405
}
406406

407-
[System.Obsolete("TODO")]
407+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
408408
public FollowRequestDescriptor()
409409
{
410410
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public FollowStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indice
142142
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowStatsRequest(indices);
143143
}
144144

145-
[System.Obsolete("TODO")]
145+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
146146
public FollowStatsRequestDescriptor()
147147
{
148148
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public ForgetFollowerRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName i
199199
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.ForgetFollowerRequest(index);
200200
}
201201

202-
[System.Obsolete("TODO")]
202+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
203203
public ForgetFollowerRequestDescriptor()
204204
{
205205
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public GetAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Cross
138138
Instance = instance;
139139
}
140140

141-
public GetAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name)
141+
public GetAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name? name)
142142
{
143143
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.GetAutoFollowPatternRequest(name);
144144
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public PauseAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Nam
156156
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.PauseAutoFollowPatternRequest(name);
157157
}
158158

159-
[System.Obsolete("TODO")]
159+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
160160
public PauseAutoFollowPatternRequestDescriptor()
161161
{
162162
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public PauseFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName inde
148148
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.PauseFollowRequest(index);
149149
}
150150

151-
[System.Obsolete("TODO")]
151+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
152152
public PauseFollowRequestDescriptor()
153153
{
154154
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public PutAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name
400400
#pragma warning restore CS0618
401401
}
402402

403-
[System.Obsolete("TODO")]
403+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
404404
public PutAutoFollowPatternRequestDescriptor()
405405
{
406406
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public ResumeAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Na
146146
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeAutoFollowPatternRequest(name);
147147
}
148148

149-
[System.Obsolete("TODO")]
149+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
150150
public ResumeAutoFollowPatternRequestDescriptor()
151151
{
152152
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public ResumeFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName ind
241241
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeFollowRequest(index);
242242
}
243243

244-
[System.Obsolete("TODO")]
244+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
245245
public ResumeFollowRequestDescriptor()
246246
{
247247
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public UnfollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index)
154154
Instance = new Elastic.Clients.Elasticsearch.CrossClusterReplication.UnfollowRequest(index);
155155
}
156156

157-
[System.Obsolete("TODO")]
157+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
158158
public UnfollowRequestDescriptor()
159159
{
160160
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ public DeleteByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indi
907907
Instance = new Elastic.Clients.Elasticsearch.DeleteByQueryRequest(indices);
908908
}
909909

910-
[System.Obsolete("TODO")]
910+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
911911
public DeleteByQueryRequestDescriptor()
912912
{
913913
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public DeleteByQueryRethrottleRequestDescriptor(Elastic.Clients.Elasticsearch.Ta
142142
Instance = new Elastic.Clients.Elasticsearch.DeleteByQueryRethrottleRequest(taskId);
143143
}
144144

145-
[System.Obsolete("TODO")]
145+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
146146
public DeleteByQueryRethrottleRequestDescriptor()
147147
{
148148
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public DeleteRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index, El
361361
Instance = new Elastic.Clients.Elasticsearch.DeleteRequest(index, id);
362362
}
363363

364-
[System.Obsolete("TODO")]
364+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
365365
public DeleteRequestDescriptor()
366366
{
367367
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");
@@ -611,7 +611,22 @@ public DeleteRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index, El
611611
Instance = new Elastic.Clients.Elasticsearch.DeleteRequest(index, id);
612612
}
613613

614-
[System.Obsolete("TODO")]
614+
public DeleteRequestDescriptor(TDocument document)
615+
{
616+
Instance = new Elastic.Clients.Elasticsearch.DeleteRequest(typeof(TDocument), Elastic.Clients.Elasticsearch.Id.From(document));
617+
}
618+
619+
public DeleteRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Id id)
620+
{
621+
Instance = new Elastic.Clients.Elasticsearch.DeleteRequest(typeof(TDocument), id);
622+
}
623+
624+
public DeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Id id)
625+
{
626+
Instance = new Elastic.Clients.Elasticsearch.DeleteRequest(typeof(TDocument), id);
627+
}
628+
629+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
615630
public DeleteRequestDescriptor()
616631
{
617632
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public DeleteScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Id id)
156156
Instance = new Elastic.Clients.Elasticsearch.DeleteScriptRequest(id);
157157
}
158158

159-
[System.Obsolete("TODO")]
159+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
160160
public DeleteScriptRequestDescriptor()
161161
{
162162
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public DeletePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name)
134134
Instance = new Elastic.Clients.Elasticsearch.Enrich.DeletePolicyRequest(name);
135135
}
136136

137-
[System.Obsolete("TODO")]
137+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
138138
public DeletePolicyRequestDescriptor()
139139
{
140140
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public ExecutePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name)
148148
Instance = new Elastic.Clients.Elasticsearch.Enrich.ExecutePolicyRequest(name);
149149
}
150150

151-
[System.Obsolete("TODO")]
151+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
152152
public ExecutePolicyRequestDescriptor()
153153
{
154154
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public GetPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Enrich.GetPolicy
130130
Instance = instance;
131131
}
132132

133-
public GetPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Names name)
133+
public GetPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Names? name)
134134
{
135135
Instance = new Elastic.Clients.Elasticsearch.Enrich.GetPolicyRequest(name);
136136
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public PutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name)
183183
Instance = new Elastic.Clients.Elasticsearch.Enrich.PutPolicyRequest(name);
184184
}
185185

186-
[System.Obsolete("TODO")]
186+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
187187
public PutPolicyRequestDescriptor()
188188
{
189189
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");
@@ -385,7 +385,7 @@ public PutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name)
385385
Instance = new Elastic.Clients.Elasticsearch.Enrich.PutPolicyRequest(name);
386386
}
387387

388-
[System.Obsolete("TODO")]
388+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
389389
public PutPolicyRequestDescriptor()
390390
{
391391
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public EqlDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Id id)
125125
Instance = new Elastic.Clients.Elasticsearch.Eql.EqlDeleteRequest(id);
126126
}
127127

128-
[System.Obsolete("TODO")]
128+
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
129129
public EqlDeleteRequestDescriptor()
130130
{
131131
throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");

0 commit comments

Comments
 (0)