diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index a9b2ed28aae..adcf4a7a557 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -958,7 +958,7 @@ public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle { } - public SubmitAsyncSearchRequestDescriptor() + public SubmitAsyncSearchRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs index 9d9bd0502bb..32eed5a76b0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs @@ -186,7 +186,7 @@ public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? { } - public HealthRequestDescriptor() + public HealthRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs index d6fc6a99e76..926ac7b7da8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs @@ -225,7 +225,7 @@ public CountRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? { } - public CountRequestDescriptor() + public CountRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs index 0449464fea4..05790bae6c2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs @@ -387,6 +387,10 @@ public DeleteByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.I { } + public DeleteByQueryRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQuery; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs index 3ae5f61273d..bf8bb920c7a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -142,6 +142,10 @@ public EqlSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indic { } + public EqlSearchRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs index 3e095a8a945..673e8b9ce8b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs @@ -161,7 +161,7 @@ public FieldCapsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indic { } - public FieldCapsRequestDescriptor() + public FieldCapsRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs index f4190a1b601..32d1b7d67bf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs @@ -107,6 +107,10 @@ public ExploreRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices { } + public ExploreRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.GraphExplore; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index b4bbee1e867..075aaecb5d5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -142,7 +142,7 @@ public ClearCacheRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indi { } - public ClearCacheRequestDescriptor() + public ClearCacheRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs index f253be608e7..6f6a974b22b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs @@ -127,6 +127,10 @@ public CloseIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indi { } + public CloseIndexRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementClose; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs index 05805d98e7f..b74dba7c136 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs @@ -83,6 +83,10 @@ public DeleteAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ind { } + public DeleteAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : this(typeof(TDocument), name) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteAlias; protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs index bfd1821541b..e9f664487e3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs @@ -116,6 +116,10 @@ public DeleteIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ind { } + public DeleteIndexRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDelete; protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index 180db2d707b..ba204309856 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -109,7 +109,7 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ind { } - public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) + public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : this(typeof(TDocument), name) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs index 8fb1becba61..61b7b9839f7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -127,6 +127,10 @@ public ExistsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices { } + public ExistsRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExists; protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs index 8aed8e8823b..08c0b19c681 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -83,6 +83,10 @@ public ExplainDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serve { } + public ExplainDataLifecycleRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExplainDataLifecycle; protected override HttpMethod StaticHttpMethod => HttpMethod.GET; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs index fd5bad0326b..7375b7b5004 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -120,7 +120,7 @@ public FlushRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? { } - public FlushRequestDescriptor() + public FlushRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index 8a03b2d3300..c50e5dcf251 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -142,7 +142,7 @@ public ForcemergeRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indi { } - public ForcemergeRequestDescriptor() + public ForcemergeRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index 8dcc0896981..f64d879c8c1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -117,6 +117,10 @@ public GetAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indice { } + public GetAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names? name) : this(typeof(TDocument), name) + { + } + public GetAliasRequestDescriptor() { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs index 2a253a1dbf4..d7523fb5d02 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs @@ -149,6 +149,10 @@ public GetIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indice { } + public GetIndexRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGet; protected override HttpMethod StaticHttpMethod => HttpMethod.GET; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs index 3bcda543735..f4cde5cbf1d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs @@ -150,6 +150,10 @@ public GetIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverl { } + public GetIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names? name) : this(typeof(TDocument), name) + { + } + public GetIndicesSettingsRequestDescriptor() { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs index 5d2e51857e4..b935e8891ac 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -120,7 +120,7 @@ public GetMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indi { } - public GetMappingRequestDescriptor() + public GetMappingRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs index 1f5b8b33c89..a43c2b1141a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs @@ -172,6 +172,10 @@ public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.In { } + public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : this(typeof(TDocument), metric) + { + } + public IndicesStatsRequestDescriptor() { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs index 8c1d979dbe2..b01a01fb481 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs @@ -127,6 +127,10 @@ public OpenIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indic { } + public OpenIndexRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementOpen; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs index 5dca31bf93d..645cfd34e68 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs @@ -113,6 +113,10 @@ public PutAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indice { } + public PutAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : this(typeof(TDocument), name) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutAlias; protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index 754f96f880f..a1a256c608c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -195,6 +195,10 @@ public PutMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indi { } + public PutMappingRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutMapping; protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs index cb122588f09..5861fd5b365 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -87,7 +87,7 @@ public RecoveryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indice { } - public RecoveryRequestDescriptor() + public RecoveryRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs index cc7834ac5a2..382010296ec 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -98,7 +98,7 @@ public RefreshRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices { } - public RefreshRequestDescriptor() + public RefreshRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 08d029c66c8..dc97126de2c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -109,7 +109,7 @@ public SegmentsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indice { } - public SegmentsRequestDescriptor() + public SegmentsRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs index 4fe608ca493..c6a6895d0db 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs @@ -203,7 +203,7 @@ public ValidateQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.I { } - public ValidateQueryRequestDescriptor() + public ValidateQueryRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs index 14e063d3a16..b065574411f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs @@ -222,7 +222,7 @@ public MultiSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ind { } - public MultiSearchRequestDescriptor() + public MultiSearchRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs index 03288d65dc0..004948d20aa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -145,7 +145,7 @@ public MultiSearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Server { } - public MultiSearchTemplateRequestDescriptor() + public MultiSearchTemplateRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs index d9498006e8a..5d67598c544 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -116,6 +116,10 @@ public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless { } + public OpenPointInTimeRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceOpenPointInTime; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs index ee1f94c4a7a..c70a657e66c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs @@ -121,7 +121,7 @@ public RankEvalRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indice { } - public RankEvalRequestDescriptor() + public RankEvalRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs index 27ecf5b819a..94cfcbea02c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs @@ -149,6 +149,10 @@ public SearchMvtRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indic { } + public SearchMvtRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y) : this(typeof(TDocument), field, zoom, x, y) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchMvt; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs index c21b70a97ed..f3bfdc322c8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs @@ -1007,7 +1007,7 @@ public SearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? { } - public SearchRequestDescriptor() + public SearchRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs index e8ea4bcab4e..79f0bcfb3f1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs @@ -216,7 +216,7 @@ public SearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless. { } - public SearchTemplateRequestDescriptor() + public SearchTemplateRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs index b909b3e56da..6fdc0197dcc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs @@ -399,6 +399,10 @@ public UpdateByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.I { } + public UpdateByQueryRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQuery; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index 37f7633d859..1c00e172d34 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -51,10 +51,10 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -63,21 +63,21 @@ public virtual Task DeleteAsync(DeleteAsyn /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); + var descriptor = new DeleteAsyncSearchRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); + var descriptor = new DeleteAsyncSearchRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -170,10 +170,10 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// Retrieves the status of a previously submitted async search request given its ID. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); } /// @@ -182,21 +182,21 @@ public virtual Task StatusAsync(AsyncSearc /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); + var descriptor = new AsyncSearchStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves the status of a previously submitted async search request given its ID. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); + var descriptor = new AsyncSearchStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs index a5aed98b4d8..3d79c0e8c1f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -289,10 +289,10 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// Returns basic information about the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// @@ -301,21 +301,21 @@ public virtual Task HealthAsync(HealthRequestDescript /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new HealthRequestDescriptor(indices); + var descriptor = new HealthRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// /// Returns basic information about the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new HealthRequestDescriptor(indices); + var descriptor = new HealthRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// @@ -324,21 +324,21 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { - var descriptor = new HealthRequestDescriptor(); + var descriptor = new HealthRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// /// Returns basic information about the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new HealthRequestDescriptor(); + var descriptor = new HealthRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs index be9fdbcc161..00cf200ee0e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -51,10 +51,10 @@ public virtual Task DeleteAsync(EqlDeleteRequest request, Can /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); } /// @@ -63,21 +63,21 @@ public virtual Task DeleteAsync(EqlDeleteRequestDe /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new EqlDeleteRequestDescriptor(id); + var descriptor = new EqlDeleteRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new EqlDeleteRequestDescriptor(id); + var descriptor = new EqlDeleteRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); } /// @@ -127,10 +127,10 @@ public virtual Task> GetAsync(EqlGetRequest reque /// Returns async results from previously executed Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); } /// @@ -139,21 +139,21 @@ public virtual Task> GetAsync(EqlGetRequestDescri /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new EqlGetRequestDescriptor(id); + var descriptor = new EqlGetRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); } /// /// Returns async results from previously executed Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new EqlGetRequestDescriptor(id); + var descriptor = new EqlGetRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); } /// @@ -170,10 +170,10 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); } /// @@ -182,21 +182,21 @@ public virtual Task GetStatusAsync(GetEqlStatus /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetEqlStatusRequestDescriptor(id); + var descriptor = new GetEqlStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); } /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetEqlStatusRequestDescriptor(id); + var descriptor = new GetEqlStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); } /// @@ -274,4 +274,27 @@ public virtual Task> SearchAsync(Elastic.Clien descriptor.BeforeRequest(); return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(CancellationToken cancellationToken = default) + { + var descriptor = new EqlSearchRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EqlSearchRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs index d7294dfcfb9..0eccda88308 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -80,6 +80,29 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); } + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ExploreRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExploreRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); + } + /// /// Explore extracted and summarized information about the documents and terms in an index. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs index 565a92f9983..6a216ccd2be 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -295,10 +295,10 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// Closes an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -307,21 +307,44 @@ public virtual Task CloseAsync(CloseIndexRequestD /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new CloseIndexRequestDescriptor(indices); + var descriptor = new CloseIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); } /// /// Closes an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new CloseIndexRequestDescriptor(indices); + var descriptor = new CloseIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloseAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CloseIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloseAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CloseIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -556,10 +579,10 @@ public virtual Task DeleteAsync(DeleteIndexRequest request, /// Deletes an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -568,21 +591,44 @@ public virtual Task DeleteAsync(DeleteIndexReque /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new DeleteIndexRequestDescriptor(indices); + var descriptor = new DeleteIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteIndexRequestDescriptor(indices); + var descriptor = new DeleteIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -632,10 +678,10 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequest req /// Deletes an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -644,21 +690,44 @@ public virtual Task DeleteAliasAsync(DeleteAlias /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); + var descriptor = new DeleteAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); + var descriptor = new DeleteAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -837,10 +906,10 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat /// Returns information about whether a particular index exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); } /// @@ -849,21 +918,44 @@ public virtual Task ExistsAsync(ExistsRequestDescript /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new ExistsRequestDescriptor(indices); + var descriptor = new ExistsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about whether a particular index exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExistsRequestDescriptor(indices); + var descriptor = new ExistsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); } /// @@ -913,10 +1005,10 @@ public virtual Task ExistsAliasAsync(ExistsAliasRequest req /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAliasAsync(ExistsAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ExistsAliasAsync(ExistsAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -925,21 +1017,21 @@ public virtual Task ExistsAliasAsync(ExistsAlias /// public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); + var descriptor = new ExistsAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); + var descriptor = new ExistsAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -948,21 +1040,21 @@ public virtual Task ExistsAliasAsync(Elastic.Cli /// public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(name); + var descriptor = new ExistsAliasRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(name); + var descriptor = new ExistsAliasRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -1078,10 +1170,10 @@ public virtual Task ExplainDataLifecycleAsync(Expl /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); } /// @@ -1090,21 +1182,44 @@ public virtual Task ExplainDataLifecycleAsync public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); } /// @@ -1154,10 +1269,10 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// @@ -1166,21 +1281,21 @@ public virtual Task FlushAsync(FlushRequestDescriptor /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new FlushRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new FlushRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// @@ -1189,21 +1304,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { - var descriptor = new FlushRequestDescriptor(); + var descriptor = new FlushRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new FlushRequestDescriptor(); + var descriptor = new FlushRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// @@ -1276,10 +1391,10 @@ public virtual Task ForcemergeAsync(ForcemergeRequest reques /// Performs the force merge operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// @@ -1288,21 +1403,21 @@ public virtual Task ForcemergeAsync(ForcemergeReq /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(indices); + var descriptor = new ForcemergeRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// /// Performs the force merge operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(indices); + var descriptor = new ForcemergeRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// @@ -1311,21 +1426,21 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(); + var descriptor = new ForcemergeRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// /// Performs the force merge operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForcemergeAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ForcemergeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(); + var descriptor = new ForcemergeRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// @@ -1398,10 +1513,10 @@ public virtual Task GetAsync(GetIndexRequest request, Cancella /// Returns information about one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -1410,21 +1525,44 @@ public virtual Task GetAsync(GetIndexRequestDescrip /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new GetIndexRequestDescriptor(indices); + var descriptor = new GetIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetIndexRequestDescriptor(indices); + var descriptor = new GetIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -1474,10 +1612,10 @@ public virtual Task GetAliasAsync(GetAliasRequest request, Can /// Returns an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -1486,21 +1624,44 @@ public virtual Task GetAliasAsync(GetAliasRequestDe /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) { - var descriptor = new GetAliasRequestDescriptor(indices, name); + var descriptor = new GetAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// /// Returns an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetAliasRequestDescriptor(indices, name); + var descriptor = new GetAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) + { + var descriptor = new GetAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -1509,21 +1670,21 @@ public virtual Task GetAliasAsync(Elastic.Clients.E /// public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetAliasRequestDescriptor(); + var descriptor = new GetAliasRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// /// Returns an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAliasAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAliasAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetAliasRequestDescriptor(); + var descriptor = new GetAliasRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -1771,10 +1932,10 @@ public virtual Task GetMappingAsync(GetMappingRequest reques /// Returns mappings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// @@ -1783,21 +1944,21 @@ public virtual Task GetMappingAsync(GetMappingReq /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(indices); + var descriptor = new GetMappingRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// /// Returns mappings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(indices); + var descriptor = new GetMappingRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// @@ -1806,21 +1967,21 @@ public virtual Task GetMappingAsync(Elastic.Clien /// public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(); + var descriptor = new GetMappingRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// /// Returns mappings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(); + var descriptor = new GetMappingRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// @@ -1893,10 +2054,10 @@ public virtual Task GetSettingsAsync(GetIndicesSetti /// Returns settings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// @@ -1905,21 +2066,44 @@ public virtual Task GetSettingsAsync(GetI /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); + var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// /// Returns settings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); + var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns settings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) + { + var descriptor = new GetIndicesSettingsRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns settings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIndicesSettingsRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// @@ -1928,21 +2112,21 @@ public virtual Task GetSettingsAsync(Elas /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetIndicesSettingsRequestDescriptor(); + var descriptor = new GetIndicesSettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// /// Returns settings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetIndicesSettingsRequestDescriptor(); + var descriptor = new GetIndicesSettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// @@ -2101,10 +2285,10 @@ public virtual Task OpenAsync(OpenIndexRequest request, Cance /// Opens an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -2113,21 +2297,44 @@ public virtual Task OpenAsync(OpenIndexRequestDesc /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new OpenIndexRequestDescriptor(indices); + var descriptor = new OpenIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); } /// /// Opens an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new OpenIndexRequestDescriptor(indices); + var descriptor = new OpenIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenAsync(CancellationToken cancellationToken = default) + { + var descriptor = new OpenIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new OpenIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -2206,6 +2413,29 @@ public virtual Task PutAliasAsync(Elastic.Clients.E return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) + { + var descriptor = new PutAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); + } + /// /// Creates or updates an alias. /// Learn more about this API in the Elasticsearch documentation. @@ -2401,6 +2631,29 @@ public virtual Task PutMappingAsync(Elastic.Clien return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); } + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMappingAsync(CancellationToken cancellationToken = default) + { + var descriptor = new PutMappingRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutMappingRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); + } + /// /// Updates the index mappings. /// Learn more about this API in the Elasticsearch documentation. @@ -2646,10 +2899,10 @@ public virtual Task RecoveryAsync(RecoveryRequest request, Can /// Returns information about ongoing index shard recoveries. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// @@ -2658,21 +2911,21 @@ public virtual Task RecoveryAsync(RecoveryRequestDe /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new RecoveryRequestDescriptor(indices); + var descriptor = new RecoveryRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about ongoing index shard recoveries. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RecoveryRequestDescriptor(indices); + var descriptor = new RecoveryRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// @@ -2681,21 +2934,21 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) { - var descriptor = new RecoveryRequestDescriptor(); + var descriptor = new RecoveryRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about ongoing index shard recoveries. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RecoveryAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RecoveryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RecoveryRequestDescriptor(); + var descriptor = new RecoveryRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// @@ -2768,10 +3021,10 @@ public virtual Task RefreshAsync(RefreshRequest request, Cancel /// Performs the refresh operation in one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// @@ -2780,21 +3033,21 @@ public virtual Task RefreshAsync(RefreshRequestDescr /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new RefreshRequestDescriptor(indices); + var descriptor = new RefreshRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// /// Performs the refresh operation in one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RefreshRequestDescriptor(indices); + var descriptor = new RefreshRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// @@ -2803,21 +3056,21 @@ public virtual Task RefreshAsync(Elastic.Clients.Ela /// public virtual Task RefreshAsync(CancellationToken cancellationToken = default) { - var descriptor = new RefreshRequestDescriptor(); + var descriptor = new RefreshRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// /// Performs the refresh operation in one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RefreshAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RefreshAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RefreshRequestDescriptor(); + var descriptor = new RefreshRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// @@ -3055,10 +3308,10 @@ public virtual Task SegmentsAsync(SegmentsRequest request, Can /// Provides low-level information about segments in a Lucene index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// @@ -3067,21 +3320,21 @@ public virtual Task SegmentsAsync(SegmentsRequestDe /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new SegmentsRequestDescriptor(indices); + var descriptor = new SegmentsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// /// Provides low-level information about segments in a Lucene index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SegmentsRequestDescriptor(indices); + var descriptor = new SegmentsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// @@ -3090,21 +3343,21 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// public virtual Task SegmentsAsync(CancellationToken cancellationToken = default) { - var descriptor = new SegmentsRequestDescriptor(); + var descriptor = new SegmentsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// /// Provides low-level information about segments in a Lucene index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SegmentsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SegmentsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SegmentsRequestDescriptor(); + var descriptor = new SegmentsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// @@ -3371,6 +3624,29 @@ public virtual Task StatsAsync(Elastic.Clients. return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) + { + var descriptor = new IndicesStatsRequestDescriptor(metric); + descriptor.BeforeRequest(); + return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IndicesStatsRequestDescriptor(metric); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); + } + /// /// Provides statistics on operations happening in an index. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs index fe0be220e81..dc0baccffac 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -51,10 +51,10 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe /// Deletes a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); } /// @@ -63,21 +63,21 @@ public virtual Task DeletePipelineAsync(Delet /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeletePipelineRequestDescriptor(id); + var descriptor = new DeletePipelineRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); } /// /// Deletes a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeletePipelineRequestDescriptor(id); + var descriptor = new DeletePipelineRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); } /// @@ -170,10 +170,10 @@ public virtual Task GetPipelineAsync(GetPipelineRequest req /// Returns a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// @@ -182,21 +182,21 @@ public virtual Task GetPipelineAsync(GetPipeline /// public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new GetPipelineRequestDescriptor(id); + var descriptor = new GetPipelineRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// /// Returns a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetPipelineRequestDescriptor(id); + var descriptor = new GetPipelineRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// @@ -205,21 +205,21 @@ public virtual Task GetPipelineAsync(Elastic.Cli /// public virtual Task GetPipelineAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetPipelineRequestDescriptor(); + var descriptor = new GetPipelineRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// /// Returns a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetPipelineAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetPipelineAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetPipelineRequestDescriptor(); + var descriptor = new GetPipelineRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs index 4ddd584ae4e..b68ce8ea22e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -309,10 +309,10 @@ public virtual Task DeleteDataFrameAnalyticsAs /// Deletes an existing data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -321,21 +321,21 @@ public virtual Task DeleteDataFrameAnalyticsAs /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an existing data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -1521,10 +1521,10 @@ public virtual Task GetDataFrameAnalyticsAsync(Ge /// Retrieves configuration information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -1533,21 +1533,21 @@ public virtual Task GetDataFrameAnalyticsAsync public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves configuration information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -1556,21 +1556,21 @@ public virtual Task GetDataFrameAnalyticsAsync public virtual Task GetDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves configuration information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -1643,10 +1643,10 @@ public virtual Task GetDataFrameAnalyticsSta /// Retrieves usage information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -1655,21 +1655,21 @@ public virtual Task GetDataFrameAnalyticsSta /// public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves usage information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -1678,21 +1678,21 @@ public virtual Task GetDataFrameAnalyticsSta /// public virtual Task GetDataFrameAnalyticsStatsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves usage information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -3582,10 +3582,10 @@ public virtual Task StartDataFrameAnalyticsAsyn /// Starts a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3594,21 +3594,21 @@ public virtual Task StartDataFrameAnalyticsAsyn /// public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Starts a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3744,10 +3744,10 @@ public virtual Task StopDataFrameAnalyticsAsync( /// Stops one or more data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3756,21 +3756,21 @@ public virtual Task StopDataFrameAnalyticsAsync< /// public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Stops one or more data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3939,10 +3939,10 @@ public virtual Task UpdateDataFrameAnalyticsAs /// Updates certain properties of a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3951,21 +3951,21 @@ public virtual Task UpdateDataFrameAnalyticsAs /// public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Updates certain properties of a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs index 5a35db545f4..eae5fc67f5f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -94,10 +94,10 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequest req /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); } /// @@ -106,21 +106,21 @@ public virtual Task DeleteAsyncAsync(DeleteAsync /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAsyncRequestDescriptor(id); + var descriptor = new DeleteAsyncRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAsyncRequestDescriptor(id); + var descriptor = new DeleteAsyncRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); } /// @@ -170,10 +170,10 @@ public virtual Task GetAsyncAsync(GetAsyncRequest request, Can /// Returns the current status and available results for an async SQL search or stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); } /// @@ -182,21 +182,21 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDe /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetAsyncRequestDescriptor(id); + var descriptor = new GetAsyncRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); } /// /// Returns the current status and available results for an async SQL search or stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetAsyncRequestDescriptor(id); + var descriptor = new GetAsyncRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); } /// @@ -246,10 +246,10 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// Returns the current status of an async SQL search or a stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); } /// @@ -258,21 +258,21 @@ public virtual Task GetAsyncStatusAsync(GetAs /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetAsyncStatusRequestDescriptor(id); + var descriptor = new GetAsyncStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); } /// /// Returns the current status of an async SQL search or a stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetAsyncStatusRequestDescriptor(id); + var descriptor = new GetAsyncStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs index 76f427d3a5c..b00ec4357d1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs @@ -51,10 +51,10 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// Deletes a synonym set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -63,21 +63,21 @@ public virtual Task DeleteSynonymAsync(DeleteS /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteSynonymRequestDescriptor(id); + var descriptor = new DeleteSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); } /// /// Deletes a synonym set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteSynonymRequestDescriptor(id); + var descriptor = new DeleteSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -170,10 +170,10 @@ public virtual Task GetSynonymAsync(GetSynonymRequest reques /// Retrieves a synonym set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -182,21 +182,21 @@ public virtual Task GetSynonymAsync(GetSynonymReq /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetSynonymRequestDescriptor(id); + var descriptor = new GetSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves a synonym set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetSynonymRequestDescriptor(id); + var descriptor = new GetSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -332,10 +332,10 @@ public virtual Task PutSynonymAsync(PutSynonymRequest reques /// Creates or updates a synonyms set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -344,21 +344,21 @@ public virtual Task PutSynonymAsync(PutSynonymReq /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new PutSynonymRequestDescriptor(id); + var descriptor = new PutSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); } /// /// Creates or updates a synonyms set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutSynonymRequestDescriptor(id); + var descriptor = new PutSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs index 74254e01b26..758ce5d713a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs @@ -745,6 +745,29 @@ public virtual Task DeleteByQueryAsync(Elastic return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); } + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + /// /// Deletes documents matching the provided query. /// Learn more about this API in the Elasticsearch documentation. @@ -835,10 +858,10 @@ public virtual Task DeleteScriptAsync(DeleteScriptRequest /// Deletes a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -847,21 +870,21 @@ public virtual Task DeleteScriptAsync(DeleteScr /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteScriptRequestDescriptor(id); + var descriptor = new DeleteScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); } /// /// Deletes a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteScriptRequestDescriptor(id); + var descriptor = new DeleteScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -1639,10 +1662,10 @@ public virtual Task GetScriptAsync(GetScriptRequest request, /// Returns a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -1651,21 +1674,21 @@ public virtual Task GetScriptAsync(GetScriptReques /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetScriptRequestDescriptor(id); + var descriptor = new GetScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); } /// /// Returns a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetScriptRequestDescriptor(id); + var descriptor = new GetScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -2259,10 +2282,10 @@ public virtual Task> MultiSearchAsync( /// Allows to execute several search operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -2271,21 +2294,21 @@ public virtual Task> MultiSearchAsync( /// public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchRequestDescriptor(indices); + var descriptor = new MultiSearchRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// /// Allows to execute several search operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchRequestDescriptor(indices); + var descriptor = new MultiSearchRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -2294,21 +2317,21 @@ public virtual Task> MultiSearchAsync( /// public virtual Task> MultiSearchAsync(CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchRequestDescriptor(); + var descriptor = new MultiSearchRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// /// Allows to execute several search operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchRequestDescriptor(); + var descriptor = new MultiSearchRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -2325,10 +2348,10 @@ public virtual Task> MultiSearchTemplateA /// Allows to execute several search template operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -2337,21 +2360,21 @@ public virtual Task> MultiSearchTemplateA /// public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to execute several search template operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -2360,21 +2383,21 @@ public virtual Task> MultiSearchTemplateA /// public virtual Task> MultiSearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchTemplateRequestDescriptor(); + var descriptor = new MultiSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to execute several search template operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchTemplateRequestDescriptor(); + var descriptor = new MultiSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -2391,10 +2414,10 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// Open a point in time that can be used in subsequent searches /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); } /// @@ -2403,21 +2426,44 @@ public virtual Task OpenPointInTimeAsync(Ope /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); + var descriptor = new OpenPointInTimeRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); } /// /// Open a point in time that can be used in subsequent searches /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); + var descriptor = new OpenPointInTimeRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); } /// @@ -2510,10 +2556,10 @@ public virtual Task PutScriptAsync(PutScriptRequest request, /// Creates or updates a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -2522,21 +2568,21 @@ public virtual Task PutScriptAsync(PutScriptReques /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new PutScriptRequestDescriptor(id, context); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// /// Creates or updates a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new PutScriptRequestDescriptor(id, context); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -2545,21 +2591,21 @@ public virtual Task PutScriptAsync(Elastic.Clients /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new PutScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// /// Creates or updates a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new PutScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -2873,10 +2919,10 @@ public virtual Task RenderSearchTemplateAsync(Rend /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -2885,21 +2931,21 @@ public virtual Task RenderSearchTemplateAsync public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); + var descriptor = new RenderSearchTemplateRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); + var descriptor = new RenderSearchTemplateRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -2908,21 +2954,21 @@ public virtual Task RenderSearchTemplateAsync public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(); + var descriptor = new RenderSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RenderSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(); + var descriptor = new RenderSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -3100,6 +3146,29 @@ public virtual Task SearchMvtAsync(Elastic.Clients return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); } + /// + /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) + { + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); + descriptor.BeforeRequest(); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); + } + /// /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. /// Learn more about this API in the Elasticsearch documentation. @@ -3147,10 +3216,10 @@ public virtual Task> SearchTemplateAsyncAllows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -3159,21 +3228,21 @@ public virtual Task> SearchTemplateAsync public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new SearchTemplateRequestDescriptor(indices); + var descriptor = new SearchTemplateRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SearchTemplateRequestDescriptor(indices); + var descriptor = new SearchTemplateRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -3182,21 +3251,21 @@ public virtual Task> SearchTemplateAsync public virtual Task> SearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new SearchTemplateRequestDescriptor(); + var descriptor = new SearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> SearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SearchTemplateRequestDescriptor(); + var descriptor = new SearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -3611,6 +3680,29 @@ public virtual Task UpdateByQueryAsync(Elastic return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); } + /// + /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task UpdateByQueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new UpdateByQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task UpdateByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateByQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); + } + /// /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
/// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index 14e1340f92d..3ad595ff86b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -958,7 +958,7 @@ public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? { } - public SubmitAsyncSearchRequestDescriptor() + public SubmitAsyncSearchRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs index 342cb4a4b33..b192ce99239 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs @@ -186,7 +186,7 @@ public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) : { } - public HealthRequestDescriptor() + public HealthRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index 310e99a5814..1a74c5f04d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -225,7 +225,7 @@ public CountRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) : { } - public CountRequestDescriptor() + public CountRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs index ef1f6975623..177a36ea90c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs @@ -62,6 +62,10 @@ public FollowInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices { } + public FollowInfoRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.CrossClusterReplicationFollowInfo; protected override HttpMethod StaticHttpMethod => HttpMethod.GET; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs index 9baff3f3028..49783fdd22c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs @@ -62,6 +62,10 @@ public FollowStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indice { } + public FollowStatsRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.CrossClusterReplicationFollowStats; protected override HttpMethod StaticHttpMethod => HttpMethod.GET; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs index 4cd4bb23e6f..e71bded2f9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs @@ -387,6 +387,10 @@ public DeleteByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indi { } + public DeleteByQueryRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQuery; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index 0b5d91d630b..2cf9b20938d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -142,6 +142,10 @@ public EqlSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) { } + public EqlSearchRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs index a28c466e09c..79f73124cbe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs @@ -161,7 +161,7 @@ public FieldCapsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices { } - public FieldCapsRequestDescriptor() + public FieldCapsRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs index 9aa81fc9cf5..7785d56386c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs @@ -107,6 +107,10 @@ public ExploreRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : { } + public ExploreRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.GraphExplore; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index d56c1df76d3..83d0246c427 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -142,7 +142,7 @@ public ClearCacheRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indice { } - public ClearCacheRequestDescriptor() + public ClearCacheRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs index a7ff84abcc6..08d56a5b063 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs @@ -127,6 +127,10 @@ public CloseIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices { } + public CloseIndexRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementClose; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs index edec7a5a790..0e12de19fa7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs @@ -83,6 +83,10 @@ public DeleteAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indice { } + public DeleteAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : this(typeof(TDocument), name) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteAlias; protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs index 4e50df8424a..89e5700fe4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs @@ -116,6 +116,10 @@ public DeleteIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indice { } + public DeleteIndexRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDelete; protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs index ad8b06e0e61..c916372e341 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs @@ -116,6 +116,10 @@ public DiskUsageRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) { } + public DiskUsageRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDiskUsage; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index 6defcc04931..0033bdbc442 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -109,7 +109,7 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indic { } - public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) + public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : this(typeof(TDocument), name) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs index 3eb132fb7c6..93494a8754d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -127,6 +127,10 @@ public ExistsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : { } + public ExistsRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExists; protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs index 52b54f99969..2087fc7472f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -83,6 +83,10 @@ public ExplainDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Indic { } + public ExplainDataLifecycleRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExplainDataLifecycle; protected override HttpMethod StaticHttpMethod => HttpMethod.GET; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs index 6cffa8ba19b..58358f42140 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs @@ -138,6 +138,10 @@ public FieldUsageStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices in { } + public FieldUsageStatsRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementFieldUsageStats; protected override HttpMethod StaticHttpMethod => HttpMethod.GET; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs index 2194f089487..b75011934d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -120,7 +120,7 @@ public FlushRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) : { } - public FlushRequestDescriptor() + public FlushRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index 4245584ec42..b1e7646144e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -142,7 +142,7 @@ public ForcemergeRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indice { } - public ForcemergeRequestDescriptor() + public ForcemergeRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index 70c3452e508..54776696103 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -117,6 +117,10 @@ public GetAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices, { } + public GetAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names? name) : this(typeof(TDocument), name) + { + } + public GetAliasRequestDescriptor() { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs index b5899de3820..63c72197399 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs @@ -120,7 +120,7 @@ public GetFieldMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? i { } - public GetFieldMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Fields fields) : base(r => r.Required("fields", fields)) + public GetFieldMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Fields fields) : this(typeof(TDocument), fields) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs index 087b6d67d5c..0e0772d1f90 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs @@ -149,6 +149,10 @@ public GetIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) { } + public GetIndexRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGet; protected override HttpMethod StaticHttpMethod => HttpMethod.GET; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs index 02070aa4e22..2f058fd1d3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs @@ -150,6 +150,10 @@ public GetIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices { } + public GetIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Names? name) : this(typeof(TDocument), name) + { + } + public GetIndicesSettingsRequestDescriptor() { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs index 0fd72ff5efb..f7ee70e766f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -120,7 +120,7 @@ public GetMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indice { } - public GetMappingRequestDescriptor() + public GetMappingRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs index 6e21bd21446..5035f094f10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs @@ -172,6 +172,10 @@ public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indi { } + public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) : this(typeof(TDocument), metric) + { + } + public IndicesStatsRequestDescriptor() { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs index 2bd635d04c0..7bffd1e7475 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs @@ -127,6 +127,10 @@ public OpenIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) { } + public OpenIndexRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementOpen; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs index 07e41492fed..17a8c522518 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs @@ -113,6 +113,10 @@ public PutAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices, { } + public PutAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : this(typeof(TDocument), name) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutAlias; protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index 8ba1497b27a..9eb41e19140 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -195,6 +195,10 @@ public PutMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices { } + public PutMappingRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutMapping; protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs index 839eb4c1ce4..ca40be5914d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -87,7 +87,7 @@ public RecoveryRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) { } - public RecoveryRequestDescriptor() + public RecoveryRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs index 41eff24cccd..2872ca3dd3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -98,7 +98,7 @@ public RefreshRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) { } - public RefreshRequestDescriptor() + public RefreshRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs index 5f250b864b4..204cb937960 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs @@ -94,6 +94,10 @@ public ReloadSearchAnalyzersRequestDescriptor(Elastic.Clients.Elasticsearch.Indi { } + public ReloadSearchAnalyzersRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementReloadSearchAnalyzers; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 0040eb05b5a..0114bfb2f80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -109,7 +109,7 @@ public SegmentsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) { } - public SegmentsRequestDescriptor() + public SegmentsRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs index 56fa019cda4..321cb2f2f79 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs @@ -109,7 +109,7 @@ public ShardStoresRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indic { } - public ShardStoresRequestDescriptor() + public ShardStoresRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs index fd9b53415bc..7c71662bf89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs @@ -203,7 +203,7 @@ public ValidateQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? ind { } - public ValidateQueryRequestDescriptor() + public ValidateQueryRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs index f1eb9e6102f..b49f91c40f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs @@ -222,7 +222,7 @@ public MultiSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indic { } - public MultiSearchRequestDescriptor() + public MultiSearchRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs index d410b8ebff7..843ee08f8f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -145,7 +145,7 @@ public MultiSearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Indice { } - public MultiSearchTemplateRequestDescriptor() + public MultiSearchTemplateRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 9d4d32e1f0f..0e24bd4177a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -116,6 +116,10 @@ public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Indices in { } + public OpenPointInTimeRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceOpenPointInTime; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs index c5a343c35d4..4b104540d71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs @@ -121,7 +121,7 @@ public RankEvalRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) { } - public RankEvalRequestDescriptor() + public RankEvalRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs index 4771dff470c..c9f62965788 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs @@ -166,6 +166,10 @@ public RollupSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indic { } + public RollupSearchRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.RollupRollupSearch; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs index dcc19687c1c..eaba284e016 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs @@ -149,6 +149,10 @@ public SearchMvtRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices, { } + public SearchMvtRequestDescriptor(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) : this(typeof(TDocument), field, zoom, x, y) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchMvt; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index 130cc7920b5..2684f4d1362 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -1018,7 +1018,7 @@ public SearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) : { } - public SearchRequestDescriptor() + public SearchRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index 409256a844f..e21e36c2867 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -131,7 +131,7 @@ public SearchShardsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indi { } - public SearchShardsRequestDescriptor() + public SearchShardsRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs index c75a96a6bb2..df8516eba1d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -216,7 +216,7 @@ public SearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? in { } - public SearchTemplateRequestDescriptor() + public SearchTemplateRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs index 1fc04bdccae..00e28e9acb3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs @@ -98,7 +98,7 @@ public ClearCacheRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indice { } - public ClearCacheRequestDescriptor() + public ClearCacheRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs index d7306d64eca..9abc5b9de4f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs @@ -76,7 +76,7 @@ public SearchableSnapshotsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.I { } - public SearchableSnapshotsStatsRequestDescriptor() + public SearchableSnapshotsStatsRequestDescriptor() : this(typeof(TDocument)) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 0add8f4725b..76a13109173 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -399,6 +399,10 @@ public UpdateByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indi { } + public UpdateByQueryRequestDescriptor() : this(typeof(TDocument)) + { + } + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQuery; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index c594a438222..8b9c26acf16 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -63,10 +63,10 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// Learn more about this API in the Elasticsearch documentation. ///
[Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) + public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor); } /// @@ -76,9 +76,9 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); + var descriptor = new DeleteAsyncSearchRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor); } /// @@ -86,12 +86,12 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); + var descriptor = new DeleteAsyncSearchRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor); } /// @@ -134,10 +134,10 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -146,21 +146,21 @@ public virtual Task DeleteAsync(DeleteAsyn /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); + var descriptor = new DeleteAsyncSearchRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); + var descriptor = new DeleteAsyncSearchRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -312,10 +312,10 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) + public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor); } /// @@ -325,9 +325,9 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); + var descriptor = new AsyncSearchStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor); } /// @@ -335,12 +335,12 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); + var descriptor = new AsyncSearchStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor); } /// @@ -383,10 +383,10 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// Retrieves the status of a previously submitted async search request given its ID. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); } /// @@ -395,21 +395,21 @@ public virtual Task StatusAsync(AsyncSearc /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); + var descriptor = new AsyncSearchStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves the status of a previously submitted async search request given its ID. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); + var descriptor = new AsyncSearchStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs index 1dea2286e91..2dd5c2bf666 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs @@ -153,10 +153,10 @@ public virtual Task FollowAsync(FollowRequest request, Cancellat /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) + public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowResponse, FollowRequestParameters>(descriptor); } /// @@ -166,9 +166,9 @@ public virtual FollowResponse Follow(FollowRequestDescriptor descript [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new FollowRequestDescriptor(index); + var descriptor = new FollowRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowResponse, FollowRequestParameters>(descriptor); } /// @@ -176,12 +176,12 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.In /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) + public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new FollowRequestDescriptor(index); + var descriptor = new FollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowResponse, FollowRequestParameters>(descriptor); } /// @@ -224,10 +224,10 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName ind /// Creates a new follower index configured to follow the referenced leader index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FollowAsync(FollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task FollowAsync(FollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowResponse, FollowRequestParameters>(descriptor, cancellationToken); } /// @@ -236,21 +236,21 @@ public virtual Task FollowAsync(FollowRequestDescript /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new FollowRequestDescriptor(index); + var descriptor = new FollowRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowResponse, FollowRequestParameters>(descriptor, cancellationToken); } /// /// Creates a new follower index configured to follow the referenced leader index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new FollowRequestDescriptor(index); + var descriptor = new FollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowResponse, FollowRequestParameters>(descriptor, cancellationToken); } /// @@ -312,10 +312,10 @@ public virtual Task FollowInfoAsync(FollowInfoRequest reques /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descriptor) + public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowInfoResponse, FollowInfoRequestParameters>(descriptor); } /// @@ -325,9 +325,9 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new FollowInfoRequestDescriptor(indices); + var descriptor = new FollowInfoRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowInfoResponse, FollowInfoRequestParameters>(descriptor); } /// @@ -335,12 +335,37 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elastics /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new FollowInfoRequestDescriptor(indices); + var descriptor = new FollowInfoRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowInfoResponse, FollowInfoRequestParameters>(descriptor); + } + + /// + /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FollowInfoResponse FollowInfo() + { + var descriptor = new FollowInfoRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, FollowInfoResponse, FollowInfoRequestParameters>(descriptor); + } + + /// + /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FollowInfoResponse FollowInfo(Action> configureRequest) + { + var descriptor = new FollowInfoRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, FollowInfoResponse, FollowInfoRequestParameters>(descriptor); } /// @@ -383,10 +408,10 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indic /// Retrieves information about all follower indices, including parameters and status for each follower index /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FollowInfoAsync(FollowInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task FollowInfoAsync(FollowInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowInfoResponse, FollowInfoRequestParameters>(descriptor, cancellationToken); } /// @@ -395,21 +420,44 @@ public virtual Task FollowInfoAsync(FollowInfoReq /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new FollowInfoRequestDescriptor(indices); + var descriptor = new FollowInfoRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowInfoResponse, FollowInfoRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new FollowInfoRequestDescriptor(indices); + var descriptor = new FollowInfoRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowInfoResponse, FollowInfoRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FollowInfoAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FollowInfoRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, FollowInfoResponse, FollowInfoRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FollowInfoAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FollowInfoRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, FollowInfoResponse, FollowInfoRequestParameters>(descriptor, cancellationToken); } /// @@ -471,10 +519,10 @@ public virtual Task FollowStatsAsync(FollowStatsRequest req /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor descriptor) + public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowStatsResponse, FollowStatsRequestParameters>(descriptor); } /// @@ -484,9 +532,9 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequestDesc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new FollowStatsRequestDescriptor(indices); + var descriptor = new FollowStatsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowStatsResponse, FollowStatsRequestParameters>(descriptor); } /// @@ -494,12 +542,37 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new FollowStatsRequestDescriptor(indices); + var descriptor = new FollowStatsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FollowStatsResponse, FollowStatsRequestParameters>(descriptor); + } + + /// + /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FollowStatsResponse FollowStats() + { + var descriptor = new FollowStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, FollowStatsResponse, FollowStatsRequestParameters>(descriptor); + } + + /// + /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FollowStatsResponse FollowStats(Action> configureRequest) + { + var descriptor = new FollowStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, FollowStatsResponse, FollowStatsRequestParameters>(descriptor); } /// @@ -542,10 +615,10 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Ind /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FollowStatsAsync(FollowStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task FollowStatsAsync(FollowStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowStatsResponse, FollowStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -554,21 +627,44 @@ public virtual Task FollowStatsAsync(FollowStats /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new FollowStatsRequestDescriptor(indices); + var descriptor = new FollowStatsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowStatsResponse, FollowStatsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new FollowStatsRequestDescriptor(indices); + var descriptor = new FollowStatsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FollowStatsResponse, FollowStatsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FollowStatsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FollowStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, FollowStatsResponse, FollowStatsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FollowStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FollowStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, FollowStatsResponse, FollowStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -630,10 +726,10 @@ public virtual Task ForgetFollowerAsync(ForgetFollowerRe /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescriptor descriptor) + public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ForgetFollowerResponse, ForgetFollowerRequestParameters>(descriptor); } /// @@ -643,9 +739,9 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRe [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new ForgetFollowerRequestDescriptor(index); + var descriptor = new ForgetFollowerRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ForgetFollowerResponse, ForgetFollowerRequestParameters>(descriptor); } /// @@ -653,12 +749,12 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients. /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) + public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new ForgetFollowerRequestDescriptor(index); + var descriptor = new ForgetFollowerRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ForgetFollowerResponse, ForgetFollowerRequestParameters>(descriptor); } /// @@ -701,10 +797,10 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsear /// Removes the follower retention leases from the leader. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForgetFollowerAsync(ForgetFollowerRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ForgetFollowerAsync(ForgetFollowerRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForgetFollowerResponse, ForgetFollowerRequestParameters>(descriptor, cancellationToken); } /// @@ -713,21 +809,21 @@ public virtual Task ForgetFollowerAsync(Forge /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new ForgetFollowerRequestDescriptor(index); + var descriptor = new ForgetFollowerRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForgetFollowerResponse, ForgetFollowerRequestParameters>(descriptor, cancellationToken); } /// /// Removes the follower retention leases from the leader. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ForgetFollowerRequestDescriptor(index); + var descriptor = new ForgetFollowerRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForgetFollowerResponse, ForgetFollowerRequestParameters>(descriptor, cancellationToken); } /// @@ -1017,10 +1113,10 @@ public virtual Task PauseFollowAsync(PauseFollowRequest req /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor descriptor) + public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PauseFollowResponse, PauseFollowRequestParameters>(descriptor); } /// @@ -1030,9 +1126,9 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDesc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new PauseFollowRequestDescriptor(index); + var descriptor = new PauseFollowRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PauseFollowResponse, PauseFollowRequestParameters>(descriptor); } /// @@ -1040,12 +1136,12 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) + public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new PauseFollowRequestDescriptor(index); + var descriptor = new PauseFollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PauseFollowResponse, PauseFollowRequestParameters>(descriptor); } /// @@ -1088,10 +1184,10 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.Ind /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PauseFollowAsync(PauseFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task PauseFollowAsync(PauseFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PauseFollowResponse, PauseFollowRequestParameters>(descriptor, cancellationToken); } /// @@ -1100,21 +1196,21 @@ public virtual Task PauseFollowAsync(PauseFollow /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new PauseFollowRequestDescriptor(index); + var descriptor = new PauseFollowRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PauseFollowResponse, PauseFollowRequestParameters>(descriptor, cancellationToken); } /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PauseFollowRequestDescriptor(index); + var descriptor = new PauseFollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PauseFollowResponse, PauseFollowRequestParameters>(descriptor, cancellationToken); } /// @@ -1356,10 +1452,10 @@ public virtual Task ResumeFollowAsync(ResumeFollowRequest /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor descriptor) + public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ResumeFollowResponse, ResumeFollowRequestParameters>(descriptor); } /// @@ -1369,9 +1465,9 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestD [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new ResumeFollowRequestDescriptor(index); + var descriptor = new ResumeFollowRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ResumeFollowResponse, ResumeFollowRequestParameters>(descriptor); } /// @@ -1379,12 +1475,12 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elas /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) + public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new ResumeFollowRequestDescriptor(index); + var descriptor = new ResumeFollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ResumeFollowResponse, ResumeFollowRequestParameters>(descriptor); } /// @@ -1427,10 +1523,10 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.I /// Resumes a follower index that has been paused /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ResumeFollowAsync(ResumeFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ResumeFollowAsync(ResumeFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ResumeFollowResponse, ResumeFollowRequestParameters>(descriptor, cancellationToken); } /// @@ -1439,21 +1535,21 @@ public virtual Task ResumeFollowAsync(ResumeFol /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new ResumeFollowRequestDescriptor(index); + var descriptor = new ResumeFollowRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ResumeFollowResponse, ResumeFollowRequestParameters>(descriptor, cancellationToken); } /// /// Resumes a follower index that has been paused /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ResumeFollowRequestDescriptor(index); + var descriptor = new ResumeFollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ResumeFollowResponse, ResumeFollowRequestParameters>(descriptor, cancellationToken); } /// @@ -1605,10 +1701,10 @@ public virtual Task UnfollowAsync(UnfollowRequest request, Can /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) + public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UnfollowResponse, UnfollowRequestParameters>(descriptor); } /// @@ -1618,9 +1714,9 @@ public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor de [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new UnfollowRequestDescriptor(index); + var descriptor = new UnfollowRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UnfollowResponse, UnfollowRequestParameters>(descriptor); } /// @@ -1628,12 +1724,12 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearc /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) + public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new UnfollowRequestDescriptor(index); + var descriptor = new UnfollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UnfollowResponse, UnfollowRequestParameters>(descriptor); } /// @@ -1676,10 +1772,10 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UnfollowAsync(UnfollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task UnfollowAsync(UnfollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UnfollowResponse, UnfollowRequestParameters>(descriptor, cancellationToken); } /// @@ -1688,21 +1784,21 @@ public virtual Task UnfollowAsync(UnfollowRequestDe /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new UnfollowRequestDescriptor(index); + var descriptor = new UnfollowRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UnfollowResponse, UnfollowRequestParameters>(descriptor, cancellationToken); } /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new UnfollowRequestDescriptor(index); + var descriptor = new UnfollowRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UnfollowResponse, UnfollowRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs index d79f5e03095..4e465ee3e5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -651,10 +651,10 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthResponse Health(HealthRequestDescriptor descriptor) + public virtual HealthResponse Health(HealthRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, HealthResponse, HealthRequestParameters>(descriptor); } /// @@ -664,9 +664,9 @@ public virtual HealthResponse Health(HealthRequestDescriptor descript [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new HealthRequestDescriptor(indices); + var descriptor = new HealthRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, HealthResponse, HealthRequestParameters>(descriptor); } /// @@ -674,12 +674,12 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.In /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new HealthRequestDescriptor(indices); + var descriptor = new HealthRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, HealthResponse, HealthRequestParameters>(descriptor); } /// @@ -689,9 +689,9 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.In [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health() { - var descriptor = new HealthRequestDescriptor(); + var descriptor = new HealthRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, HealthResponse, HealthRequestParameters>(descriptor); } /// @@ -699,12 +699,12 @@ public virtual HealthResponse Health() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthResponse Health(Action configureRequest) + public virtual HealthResponse Health(Action> configureRequest) { - var descriptor = new HealthRequestDescriptor(); + var descriptor = new HealthRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, HealthResponse, HealthRequestParameters>(descriptor); } /// @@ -772,10 +772,10 @@ public virtual HealthResponse Health(Action configureRe /// Returns basic information about the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// @@ -784,21 +784,21 @@ public virtual Task HealthAsync(HealthRequestDescript /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new HealthRequestDescriptor(indices); + var descriptor = new HealthRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// /// Returns basic information about the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new HealthRequestDescriptor(indices); + var descriptor = new HealthRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// @@ -807,21 +807,21 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { - var descriptor = new HealthRequestDescriptor(); + var descriptor = new HealthRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// /// Returns basic information about the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new HealthRequestDescriptor(); + var descriptor = new HealthRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs index afeade5fb2b..d8680be22a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -63,10 +63,10 @@ public virtual Task DeleteAsync(EqlDeleteRequest request, Can /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) + public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor); } /// @@ -76,9 +76,9 @@ public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor de [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new EqlDeleteRequestDescriptor(id); + var descriptor = new EqlDeleteRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor); } /// @@ -86,12 +86,12 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new EqlDeleteRequestDescriptor(id); + var descriptor = new EqlDeleteRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor); } /// @@ -134,10 +134,10 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Act /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); } /// @@ -146,21 +146,21 @@ public virtual Task DeleteAsync(EqlDeleteRequestDe /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new EqlDeleteRequestDescriptor(id); + var descriptor = new EqlDeleteRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new EqlDeleteRequestDescriptor(id); + var descriptor = new EqlDeleteRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); } /// @@ -222,10 +222,10 @@ public virtual Task> GetAsync(EqlGetRequest reque /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual EqlGetResponse Get(EqlGetRequestDescriptor descriptor) + public virtual EqlGetResponse Get(EqlGetRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, EqlGetRequestParameters>(descriptor); + return DoRequest, EqlGetResponse, EqlGetRequestParameters>(descriptor); } /// @@ -235,9 +235,9 @@ public virtual EqlGetResponse Get(EqlGetRequestDescriptor descri [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new EqlGetRequestDescriptor(id); + var descriptor = new EqlGetRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest, EqlGetRequestParameters>(descriptor); + return DoRequest, EqlGetResponse, EqlGetRequestParameters>(descriptor); } /// @@ -245,22 +245,22 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new EqlGetRequestDescriptor(id); + var descriptor = new EqlGetRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, EqlGetRequestParameters>(descriptor); + return DoRequest, EqlGetResponse, EqlGetRequestParameters>(descriptor); } /// /// Returns async results from previously executed Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); } /// @@ -269,21 +269,21 @@ public virtual Task> GetAsync(EqlGetRequestDescri /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new EqlGetRequestDescriptor(id); + var descriptor = new EqlGetRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); } /// /// Returns async results from previously executed Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new EqlGetRequestDescriptor(id); + var descriptor = new EqlGetRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); } /// @@ -312,10 +312,10 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) + public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor); } /// @@ -325,9 +325,9 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDesc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new GetEqlStatusRequestDescriptor(id); + var descriptor = new GetEqlStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor); } /// @@ -335,12 +335,12 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new GetEqlStatusRequestDescriptor(id); + var descriptor = new GetEqlStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor); } /// @@ -383,10 +383,10 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); } /// @@ -395,21 +395,21 @@ public virtual Task GetStatusAsync(GetEqlStatus /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetEqlStatusRequestDescriptor(id); + var descriptor = new GetEqlStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); } /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetEqlStatusRequestDescriptor(id); + var descriptor = new GetEqlStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); } /// @@ -502,6 +502,31 @@ public virtual EqlSearchResponse Search(Elastic.Clients.Elastics return DoRequest, EqlSearchResponse, EqlSearchRequestParameters>(descriptor); } + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual EqlSearchResponse Search() + { + var descriptor = new EqlSearchRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, EqlSearchResponse, EqlSearchRequestParameters>(descriptor); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual EqlSearchResponse Search(Action> configureRequest) + { + var descriptor = new EqlSearchRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, EqlSearchResponse, EqlSearchRequestParameters>(descriptor); + } + /// /// Returns results matching a query expressed in Event Query Language (EQL) /// Learn more about this API in the Elasticsearch documentation. @@ -534,4 +559,27 @@ public virtual Task> SearchAsync(Elastic.Clien descriptor.BeforeRequest(); return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(CancellationToken cancellationToken = default) + { + var descriptor = new EqlSearchRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EqlSearchRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs index 2f2140da0a9..394e813cb7c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -94,6 +94,31 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. return DoRequest, ExploreResponse, ExploreRequestParameters>(descriptor); } + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExploreResponse Explore() + { + var descriptor = new ExploreRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, ExploreResponse, ExploreRequestParameters>(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExploreResponse Explore(Action> configureRequest) + { + var descriptor = new ExploreRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExploreResponse, ExploreRequestParameters>(descriptor); + } + /// /// Explore extracted and summarized information about the documents and terms in an index. /// Learn more about this API in the Elasticsearch documentation. @@ -163,6 +188,29 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); } + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ExploreRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExploreRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); + } + /// /// Explore extracted and summarized information about the documents and terms in an index. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs index 27004d8a75a..5a7277575ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs @@ -471,10 +471,10 @@ public virtual Task MoveToStepAsync(MoveToStepRequest reques /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescriptor descriptor) + public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, MoveToStepResponse, MoveToStepRequestParameters>(descriptor); } /// @@ -484,9 +484,9 @@ public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new MoveToStepRequestDescriptor(index); + var descriptor = new MoveToStepRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, MoveToStepResponse, MoveToStepRequestParameters>(descriptor); } /// @@ -494,12 +494,12 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elastics /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) + public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new MoveToStepRequestDescriptor(index); + var descriptor = new MoveToStepRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, MoveToStepResponse, MoveToStepRequestParameters>(descriptor); } /// @@ -542,10 +542,10 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.Index /// Manually moves an index into the specified step and executes that step. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task MoveToStepAsync(MoveToStepRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task MoveToStepAsync(MoveToStepRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, MoveToStepResponse, MoveToStepRequestParameters>(descriptor, cancellationToken); } /// @@ -554,21 +554,21 @@ public virtual Task MoveToStepAsync(MoveToStepReq /// public virtual Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new MoveToStepRequestDescriptor(index); + var descriptor = new MoveToStepRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, MoveToStepResponse, MoveToStepRequestParameters>(descriptor, cancellationToken); } /// /// Manually moves an index into the specified step and executes that step. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MoveToStepRequestDescriptor(index); + var descriptor = new MoveToStepRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, MoveToStepResponse, MoveToStepRequestParameters>(descriptor, cancellationToken); } /// @@ -720,10 +720,10 @@ public virtual Task RemovePolicyAsync(RemovePolicyRequest /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestDescriptor descriptor) + public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RemovePolicyResponse, RemovePolicyRequestParameters>(descriptor); } /// @@ -733,9 +733,9 @@ public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestD [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new RemovePolicyRequestDescriptor(index); + var descriptor = new RemovePolicyRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RemovePolicyResponse, RemovePolicyRequestParameters>(descriptor); } /// @@ -743,12 +743,12 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elas /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) + public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new RemovePolicyRequestDescriptor(index); + var descriptor = new RemovePolicyRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RemovePolicyResponse, RemovePolicyRequestParameters>(descriptor); } /// @@ -791,10 +791,10 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.I /// Removes the assigned lifecycle policy and stops managing the specified index /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RemovePolicyAsync(RemovePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RemovePolicyAsync(RemovePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RemovePolicyResponse, RemovePolicyRequestParameters>(descriptor, cancellationToken); } /// @@ -803,21 +803,21 @@ public virtual Task RemovePolicyAsync(RemovePol /// public virtual Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new RemovePolicyRequestDescriptor(index); + var descriptor = new RemovePolicyRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RemovePolicyResponse, RemovePolicyRequestParameters>(descriptor, cancellationToken); } /// /// Removes the assigned lifecycle policy and stops managing the specified index /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RemovePolicyRequestDescriptor(index); + var descriptor = new RemovePolicyRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RemovePolicyResponse, RemovePolicyRequestParameters>(descriptor, cancellationToken); } /// @@ -879,10 +879,10 @@ public virtual Task RetryAsync(RetryRequest request, Cancellation /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RetryResponse Retry(RetryRequestDescriptor descriptor) + public virtual RetryResponse Retry(RetryRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RetryResponse, RetryRequestParameters>(descriptor); } /// @@ -892,9 +892,9 @@ public virtual RetryResponse Retry(RetryRequestDescriptor descriptor) [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new RetryRequestDescriptor(index); + var descriptor = new RetryRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RetryResponse, RetryRequestParameters>(descriptor); } /// @@ -902,12 +902,12 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.Inde /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) + public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new RetryRequestDescriptor(index); + var descriptor = new RetryRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RetryResponse, RetryRequestParameters>(descriptor); } /// @@ -950,10 +950,10 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index /// Retries executing the policy for an index that is in the ERROR step. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RetryAsync(RetryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RetryAsync(RetryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RetryResponse, RetryRequestParameters>(descriptor, cancellationToken); } /// @@ -962,21 +962,21 @@ public virtual Task RetryAsync(RetryRequestDescriptor /// public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new RetryRequestDescriptor(index); + var descriptor = new RetryRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RetryResponse, RetryRequestParameters>(descriptor, cancellationToken); } /// /// Retries executing the policy for an index that is in the ERROR step. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RetryRequestDescriptor(index); + var descriptor = new RetryRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RetryResponse, RetryRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index e170a03cee9..a65ec0141b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -732,10 +732,10 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) + public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, CloseIndexResponse, CloseIndexRequestParameters>(descriptor); } /// @@ -745,9 +745,9 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor d [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new CloseIndexRequestDescriptor(indices); + var descriptor = new CloseIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, CloseIndexResponse, CloseIndexRequestParameters>(descriptor); } /// @@ -755,12 +755,37 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new CloseIndexRequestDescriptor(indices); + var descriptor = new CloseIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, CloseIndexResponse, CloseIndexRequestParameters>(descriptor); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CloseIndexResponse Close() + { + var descriptor = new CloseIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, CloseIndexResponse, CloseIndexRequestParameters>(descriptor); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CloseIndexResponse Close(Action> configureRequest) + { + var descriptor = new CloseIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CloseIndexResponse, CloseIndexRequestParameters>(descriptor); } /// @@ -803,10 +828,10 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// Closes an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -815,21 +840,44 @@ public virtual Task CloseAsync(CloseIndexRequestD /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new CloseIndexRequestDescriptor(indices); + var descriptor = new CloseIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); } /// /// Closes an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new CloseIndexRequestDescriptor(indices); + var descriptor = new CloseIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloseAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CloseIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloseAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CloseIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -1278,10 +1326,10 @@ public virtual Task DeleteAsync(DeleteIndexRequest request, /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descriptor) + public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor); } /// @@ -1291,9 +1339,9 @@ public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescripto [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new DeleteIndexRequestDescriptor(indices); + var descriptor = new DeleteIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor); } /// @@ -1301,12 +1349,37 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsear /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new DeleteIndexRequestDescriptor(indices); + var descriptor = new DeleteIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIndexResponse Delete() + { + var descriptor = new DeleteIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIndexResponse Delete(Action> configureRequest) + { + var descriptor = new DeleteIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor); } /// @@ -1349,10 +1422,10 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices /// Deletes an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -1361,21 +1434,44 @@ public virtual Task DeleteAsync(DeleteIndexReque /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new DeleteIndexRequestDescriptor(indices); + var descriptor = new DeleteIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteIndexRequestDescriptor(indices); + var descriptor = new DeleteIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -1437,10 +1533,10 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequest req /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor descriptor) + public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor); } /// @@ -1450,9 +1546,9 @@ public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDesc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name) { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); + var descriptor = new DeleteAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor); } /// @@ -1460,12 +1556,37 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); + var descriptor = new DeleteAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Names name) + { + var descriptor = new DeleteAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) + { + var descriptor = new DeleteAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor); } /// @@ -1508,10 +1629,10 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Ind /// Deletes an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -1520,21 +1641,44 @@ public virtual Task DeleteAliasAsync(DeleteAlias /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); + var descriptor = new DeleteAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); + var descriptor = new DeleteAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -1956,10 +2100,10 @@ public virtual Task DiskUsageAsync(DiskUsageRequest request, /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor) + public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DiskUsageResponse, DiskUsageRequestParameters>(descriptor); } /// @@ -1969,9 +2113,9 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new DiskUsageRequestDescriptor(indices); + var descriptor = new DiskUsageRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DiskUsageResponse, DiskUsageRequestParameters>(descriptor); } /// @@ -1979,12 +2123,37 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new DiskUsageRequestDescriptor(indices); + var descriptor = new DiskUsageRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DiskUsageResponse, DiskUsageRequestParameters>(descriptor); + } + + /// + /// Analyzes the disk usage of each field of an index or data stream + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DiskUsageResponse DiskUsage() + { + var descriptor = new DiskUsageRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, DiskUsageResponse, DiskUsageRequestParameters>(descriptor); + } + + /// + /// Analyzes the disk usage of each field of an index or data stream + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DiskUsageResponse DiskUsage(Action> configureRequest) + { + var descriptor = new DiskUsageRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DiskUsageResponse, DiskUsageRequestParameters>(descriptor); } /// @@ -2027,10 +2196,10 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// Analyzes the disk usage of each field of an index or data stream /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DiskUsageResponse, DiskUsageRequestParameters>(descriptor, cancellationToken); } /// @@ -2039,21 +2208,44 @@ public virtual Task DiskUsageAsync(DiskUsageReques /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new DiskUsageRequestDescriptor(indices); + var descriptor = new DiskUsageRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DiskUsageResponse, DiskUsageRequestParameters>(descriptor, cancellationToken); } /// /// Analyzes the disk usage of each field of an index or data stream /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DiskUsageRequestDescriptor(indices); + var descriptor = new DiskUsageRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DiskUsageResponse, DiskUsageRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Analyzes the disk usage of each field of an index or data stream + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DiskUsageAsync(CancellationToken cancellationToken = default) + { + var descriptor = new DiskUsageRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, DiskUsageResponse, DiskUsageRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Analyzes the disk usage of each field of an index or data stream + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DiskUsageAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DiskUsageRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DiskUsageResponse, DiskUsageRequestParameters>(descriptor, cancellationToken); } /// @@ -2115,10 +2307,10 @@ public virtual Task DownsampleAsync(DownsampleRequest reques /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descriptor) + public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DownsampleResponse, DownsampleRequestParameters>(descriptor); } /// @@ -2128,9 +2320,9 @@ public virtual DownsampleResponse Downsample(DownsampleRequestDescrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex) { - var descriptor = new DownsampleRequestDescriptor(config, index, targetIndex); + var descriptor = new DownsampleRequestDescriptor(config, index, targetIndex); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DownsampleResponse, DownsampleRequestParameters>(descriptor); } /// @@ -2138,12 +2330,12 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elastics /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action configureRequest) + public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action> configureRequest) { - var descriptor = new DownsampleRequestDescriptor(config, index, targetIndex); + var descriptor = new DownsampleRequestDescriptor(config, index, targetIndex); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DownsampleResponse, DownsampleRequestParameters>(descriptor); } /// @@ -2186,10 +2378,10 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.Index /// Downsample an index /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DownsampleAsync(DownsampleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DownsampleAsync(DownsampleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DownsampleResponse, DownsampleRequestParameters>(descriptor, cancellationToken); } /// @@ -2198,21 +2390,21 @@ public virtual Task DownsampleAsync(DownsampleReq /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, CancellationToken cancellationToken = default) { - var descriptor = new DownsampleRequestDescriptor(config, index, targetIndex); + var descriptor = new DownsampleRequestDescriptor(config, index, targetIndex); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DownsampleResponse, DownsampleRequestParameters>(descriptor, cancellationToken); } /// /// Downsample an index /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DownsampleRequestDescriptor(config, index, targetIndex); + var descriptor = new DownsampleRequestDescriptor(config, index, targetIndex); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DownsampleResponse, DownsampleRequestParameters>(descriptor, cancellationToken); } /// @@ -2274,10 +2466,10 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) + public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); } /// @@ -2287,9 +2479,9 @@ public virtual ExistsResponse Exists(ExistsRequestDescriptor descript [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new ExistsRequestDescriptor(indices); + var descriptor = new ExistsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); } /// @@ -2297,12 +2489,37 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new ExistsRequestDescriptor(indices); + var descriptor = new ExistsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists() + { + var descriptor = new ExistsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(Action> configureRequest) + { + var descriptor = new ExistsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); } /// @@ -2345,10 +2562,10 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indic /// Returns information about whether a particular index exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); } /// @@ -2357,21 +2574,44 @@ public virtual Task ExistsAsync(ExistsRequestDescript /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new ExistsRequestDescriptor(indices); + var descriptor = new ExistsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about whether a particular index exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExistsRequestDescriptor(indices); + var descriptor = new ExistsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); } /// @@ -2433,10 +2673,10 @@ public virtual Task ExistsAliasAsync(ExistsAliasRequest req /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDescriptor descriptor) + public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor); } /// @@ -2446,9 +2686,9 @@ public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDesc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name) { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); + var descriptor = new ExistsAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor); } /// @@ -2456,12 +2696,12 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); + var descriptor = new ExistsAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor); } /// @@ -2471,9 +2711,9 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasti [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name) { - var descriptor = new ExistsAliasRequestDescriptor(name); + var descriptor = new ExistsAliasRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor); } /// @@ -2481,12 +2721,12 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) { - var descriptor = new ExistsAliasRequestDescriptor(name); + var descriptor = new ExistsAliasRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor); } /// @@ -2554,10 +2794,10 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Nam /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAliasAsync(ExistsAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ExistsAliasAsync(ExistsAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -2566,21 +2806,21 @@ public virtual Task ExistsAliasAsync(ExistsAlias /// public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); + var descriptor = new ExistsAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); + var descriptor = new ExistsAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -2589,21 +2829,21 @@ public virtual Task ExistsAliasAsync(Elastic.Cli /// public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(name); + var descriptor = new ExistsAliasRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(name); + var descriptor = new ExistsAliasRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -2868,10 +3108,10 @@ public virtual Task ExplainDataLifecycleAsync(Expl /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); } /// @@ -2881,9 +3121,9 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Expl [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); } /// @@ -2891,12 +3131,37 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elas /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle() + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Action> configureRequest) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); } /// @@ -2939,10 +3204,10 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); } /// @@ -2951,21 +3216,44 @@ public virtual Task ExplainDataLifecycleAsync public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); } /// @@ -3058,6 +3346,31 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Client return DoRequest, FieldUsageStatsResponse, FieldUsageStatsRequestParameters>(descriptor); } + /// + /// Returns the field usage stats for each field of an index + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldUsageStatsResponse FieldUsageStats() + { + var descriptor = new FieldUsageStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, FieldUsageStatsResponse, FieldUsageStatsRequestParameters>(descriptor); + } + + /// + /// Returns the field usage stats for each field of an index + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldUsageStatsResponse FieldUsageStats(Action> configureRequest) + { + var descriptor = new FieldUsageStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, FieldUsageStatsResponse, FieldUsageStatsRequestParameters>(descriptor); + } + /// /// Returns the field usage stats for each field of an index /// Learn more about this API in the Elasticsearch documentation. @@ -3119,9 +3432,32 @@ public virtual Task FieldUsageStatsAsync(Ela /// Returns the field usage stats for each field of an index /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FieldUsageStatsRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, FieldUsageStatsResponse, FieldUsageStatsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns the field usage stats for each field of an index + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldUsageStatsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FieldUsageStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, FieldUsageStatsResponse, FieldUsageStatsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns the field usage stats for each field of an index + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldUsageStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new FieldUsageStatsRequestDescriptor(indices); + var descriptor = new FieldUsageStatsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync, FieldUsageStatsResponse, FieldUsageStatsRequestParameters>(descriptor, cancellationToken); @@ -3186,10 +3522,10 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) + public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FlushResponse, FlushRequestParameters>(descriptor); } /// @@ -3199,9 +3535,9 @@ public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new FlushRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FlushResponse, FlushRequestParameters>(descriptor); } /// @@ -3209,12 +3545,12 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indi /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new FlushRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FlushResponse, FlushRequestParameters>(descriptor); } /// @@ -3224,9 +3560,9 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indi [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush() { - var descriptor = new FlushRequestDescriptor(); + var descriptor = new FlushRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FlushResponse, FlushRequestParameters>(descriptor); } /// @@ -3234,12 +3570,12 @@ public virtual FlushResponse Flush() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FlushResponse Flush(Action configureRequest) + public virtual FlushResponse Flush(Action> configureRequest) { - var descriptor = new FlushRequestDescriptor(); + var descriptor = new FlushRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, FlushResponse, FlushRequestParameters>(descriptor); } /// @@ -3307,10 +3643,10 @@ public virtual FlushResponse Flush(Action configureReque /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// @@ -3319,21 +3655,21 @@ public virtual Task FlushAsync(FlushRequestDescriptor /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new FlushRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new FlushRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// @@ -3342,21 +3678,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { - var descriptor = new FlushRequestDescriptor(); + var descriptor = new FlushRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new FlushRequestDescriptor(); + var descriptor = new FlushRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// @@ -3441,10 +3777,10 @@ public virtual Task ForcemergeAsync(ForcemergeRequest reques /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) + public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } /// @@ -3454,9 +3790,9 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new ForcemergeRequestDescriptor(indices); + var descriptor = new ForcemergeRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } /// @@ -3464,12 +3800,12 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elastics /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new ForcemergeRequestDescriptor(indices); + var descriptor = new ForcemergeRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } /// @@ -3479,9 +3815,9 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elastics [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge() { - var descriptor = new ForcemergeRequestDescriptor(); + var descriptor = new ForcemergeRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } /// @@ -3489,12 +3825,12 @@ public virtual ForcemergeResponse Forcemerge() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge(Action configureRequest) + public virtual ForcemergeResponse Forcemerge(Action> configureRequest) { - var descriptor = new ForcemergeRequestDescriptor(); + var descriptor = new ForcemergeRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } /// @@ -3562,10 +3898,10 @@ public virtual ForcemergeResponse Forcemerge(Action /// Performs the force merge operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// @@ -3574,21 +3910,21 @@ public virtual Task ForcemergeAsync(ForcemergeReq /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(indices); + var descriptor = new ForcemergeRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// /// Performs the force merge operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(indices); + var descriptor = new ForcemergeRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// @@ -3597,21 +3933,21 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(); + var descriptor = new ForcemergeRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// /// Performs the force merge operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForcemergeAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ForcemergeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(); + var descriptor = new ForcemergeRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// @@ -3696,10 +4032,10 @@ public virtual Task GetAsync(GetIndexRequest request, Cancella /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) + public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetIndexResponse, GetIndexRequestParameters>(descriptor); } /// @@ -3709,9 +4045,9 @@ public virtual GetIndexResponse Get(GetIndexRequestDescriptor descrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new GetIndexRequestDescriptor(indices); + var descriptor = new GetIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetIndexResponse, GetIndexRequestParameters>(descriptor); } /// @@ -3719,12 +4055,37 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Ind /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new GetIndexRequestDescriptor(indices); + var descriptor = new GetIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetIndexResponse, GetIndexRequestParameters>(descriptor); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIndexResponse Get() + { + var descriptor = new GetIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, GetIndexResponse, GetIndexRequestParameters>(descriptor); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIndexResponse Get(Action> configureRequest) + { + var descriptor = new GetIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetIndexResponse, GetIndexRequestParameters>(descriptor); } /// @@ -3767,10 +4128,10 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indice /// Returns information about one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -3779,21 +4140,44 @@ public virtual Task GetAsync(GetIndexRequestDescrip /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new GetIndexRequestDescriptor(indices); + var descriptor = new GetIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetIndexRequestDescriptor(indices); + var descriptor = new GetIndexRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -3855,10 +4239,10 @@ public virtual Task GetAliasAsync(GetAliasRequest request, Can /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) + public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAliasResponse, GetAliasRequestParameters>(descriptor); } /// @@ -3868,9 +4252,9 @@ public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor de [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) { - var descriptor = new GetAliasRequestDescriptor(indices, name); + var descriptor = new GetAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAliasResponse, GetAliasRequestParameters>(descriptor); } /// @@ -3878,12 +4262,37 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearc /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) + public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest) { - var descriptor = new GetAliasRequestDescriptor(indices, name); + var descriptor = new GetAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAliasResponse, GetAliasRequestParameters>(descriptor); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Names? name) + { + var descriptor = new GetAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest, GetAliasResponse, GetAliasRequestParameters>(descriptor); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest) + { + var descriptor = new GetAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetAliasResponse, GetAliasRequestParameters>(descriptor); } /// @@ -3893,9 +4302,9 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias() { - var descriptor = new GetAliasRequestDescriptor(); + var descriptor = new GetAliasRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAliasResponse, GetAliasRequestParameters>(descriptor); } /// @@ -3903,12 +4312,12 @@ public virtual GetAliasResponse GetAlias() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetAliasResponse GetAlias(Action configureRequest) + public virtual GetAliasResponse GetAlias(Action> configureRequest) { - var descriptor = new GetAliasRequestDescriptor(); + var descriptor = new GetAliasRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAliasResponse, GetAliasRequestParameters>(descriptor); } /// @@ -3976,10 +4385,10 @@ public virtual GetAliasResponse GetAlias(Action confi /// Returns an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -3988,21 +4397,44 @@ public virtual Task GetAliasAsync(GetAliasRequestDe /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { - var descriptor = new GetAliasRequestDescriptor(indices, name); + var descriptor = new GetAliasRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// /// Returns an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetAliasRequestDescriptor(indices, name); + var descriptor = new GetAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) + { + var descriptor = new GetAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -4011,21 +4443,21 @@ public virtual Task GetAliasAsync(Elastic.Clients.E /// public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetAliasRequestDescriptor(); + var descriptor = new GetAliasRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// /// Returns an alias. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAliasAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAliasAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetAliasRequestDescriptor(); + var descriptor = new GetAliasRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } /// @@ -4731,10 +5163,10 @@ public virtual Task GetMappingAsync(GetMappingRequest reques /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descriptor) + public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetMappingResponse, GetMappingRequestParameters>(descriptor); } /// @@ -4744,9 +5176,9 @@ public virtual GetMappingResponse GetMapping(GetMappingRequestDescrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new GetMappingRequestDescriptor(indices); + var descriptor = new GetMappingRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetMappingResponse, GetMappingRequestParameters>(descriptor); } /// @@ -4754,12 +5186,12 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elastics /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new GetMappingRequestDescriptor(indices); + var descriptor = new GetMappingRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetMappingResponse, GetMappingRequestParameters>(descriptor); } /// @@ -4769,9 +5201,9 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elastics [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping() { - var descriptor = new GetMappingRequestDescriptor(); + var descriptor = new GetMappingRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetMappingResponse, GetMappingRequestParameters>(descriptor); } /// @@ -4779,12 +5211,12 @@ public virtual GetMappingResponse GetMapping() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetMappingResponse GetMapping(Action configureRequest) + public virtual GetMappingResponse GetMapping(Action> configureRequest) { - var descriptor = new GetMappingRequestDescriptor(); + var descriptor = new GetMappingRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetMappingResponse, GetMappingRequestParameters>(descriptor); } /// @@ -4852,10 +5284,10 @@ public virtual GetMappingResponse GetMapping(Action /// Returns mappings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// @@ -4864,21 +5296,21 @@ public virtual Task GetMappingAsync(GetMappingReq /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(indices); + var descriptor = new GetMappingRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// /// Returns mappings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(indices); + var descriptor = new GetMappingRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// @@ -4887,21 +5319,21 @@ public virtual Task GetMappingAsync(Elastic.Clien /// public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(); + var descriptor = new GetMappingRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// /// Returns mappings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(); + var descriptor = new GetMappingRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } /// @@ -4986,10 +5418,10 @@ public virtual Task GetSettingsAsync(GetIndicesSetti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequestDescriptor descriptor) + public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor); } /// @@ -4999,9 +5431,9 @@ public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSetti [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); + var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor); } /// @@ -5009,12 +5441,37 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) + public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest) { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); + var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor); + } + + /// + /// Returns settings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Names? name) + { + var descriptor = new GetIndicesSettingsRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor); + } + + /// + /// Returns settings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest) + { + var descriptor = new GetIndicesSettingsRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor); } /// @@ -5024,9 +5481,9 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings() { - var descriptor = new GetIndicesSettingsRequestDescriptor(); + var descriptor = new GetIndicesSettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor); } /// @@ -5034,12 +5491,12 @@ public virtual GetIndicesSettingsResponse GetSettings() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetIndicesSettingsResponse GetSettings(Action configureRequest) + public virtual GetIndicesSettingsResponse GetSettings(Action> configureRequest) { - var descriptor = new GetIndicesSettingsRequestDescriptor(); + var descriptor = new GetIndicesSettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor); } /// @@ -5107,10 +5564,10 @@ public virtual GetIndicesSettingsResponse GetSettings(ActionReturns settings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// @@ -5119,21 +5576,44 @@ public virtual Task GetSettingsAsync(GetI /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); + var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// /// Returns settings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); + var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns settings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) + { + var descriptor = new GetIndicesSettingsRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns settings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIndicesSettingsRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// @@ -5142,21 +5622,21 @@ public virtual Task GetSettingsAsync(Elas /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetIndicesSettingsRequestDescriptor(); + var descriptor = new GetIndicesSettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// /// Returns settings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetIndicesSettingsRequestDescriptor(); + var descriptor = new GetIndicesSettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); } /// @@ -5559,10 +6039,10 @@ public virtual Task OpenAsync(OpenIndexRequest request, Cance /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) + public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, OpenIndexResponse, OpenIndexRequestParameters>(descriptor); } /// @@ -5572,7 +6052,56 @@ public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor desc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new OpenIndexRequestDescriptor(indices); + var descriptor = new OpenIndexRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, OpenIndexResponse, OpenIndexRequestParameters>(descriptor); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) + { + var descriptor = new OpenIndexRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, OpenIndexResponse, OpenIndexRequestParameters>(descriptor); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenIndexResponse Open() + { + var descriptor = new OpenIndexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, OpenIndexResponse, OpenIndexRequestParameters>(descriptor); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenIndexResponse Open(Action> configureRequest) + { + var descriptor = new OpenIndexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, OpenIndexResponse, OpenIndexRequestParameters>(descriptor); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) + { descriptor.BeforeRequest(); return DoRequest(descriptor); } @@ -5582,10 +6111,9 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.I /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new OpenIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest(descriptor); } @@ -5595,8 +6123,10 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.I /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) + public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { + var descriptor = new OpenIndexRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest(descriptor); } @@ -5605,58 +6135,56 @@ public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) /// Opens an index. /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices) + public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new OpenIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); } /// /// Opens an index. /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new OpenIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); + var descriptor = new OpenIndexRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); } /// /// Opens an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { + var descriptor = new OpenIndexRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); } /// /// Opens an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + public virtual Task OpenAsync(CancellationToken cancellationToken = default) { - var descriptor = new OpenIndexRequestDescriptor(indices); + var descriptor = new OpenIndexRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); } /// /// Opens an index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task OpenAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new OpenIndexRequestDescriptor(indices); + var descriptor = new OpenIndexRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); } /// @@ -5839,6 +6367,31 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearc return DoRequest, PutAliasResponse, PutAliasRequestParameters>(descriptor); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Name name) + { + var descriptor = new PutAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest, PutAliasResponse, PutAliasRequestParameters>(descriptor); + } + + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) + { + var descriptor = new PutAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, PutAliasResponse, PutAliasRequestParameters>(descriptor); + } + /// /// Creates or updates an alias. /// Learn more about this API in the Elasticsearch documentation. @@ -5908,6 +6461,29 @@ public virtual Task PutAliasAsync(Elastic.Clients.E return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + { + var descriptor = new PutAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutAliasRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); + } + /// /// Creates or updates an alias. /// Learn more about this API in the Elasticsearch documentation. @@ -6247,6 +6823,31 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elastics return DoRequest, PutMappingResponse, PutMappingRequestParameters>(descriptor); } + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutMappingResponse PutMapping() + { + var descriptor = new PutMappingRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, PutMappingResponse, PutMappingRequestParameters>(descriptor); + } + + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutMappingResponse PutMapping(Action> configureRequest) + { + var descriptor = new PutMappingRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, PutMappingResponse, PutMappingRequestParameters>(descriptor); + } + /// /// Updates the index mappings. /// Learn more about this API in the Elasticsearch documentation. @@ -6316,6 +6917,29 @@ public virtual Task PutMappingAsync(Elastic.Clien return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); } + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMappingAsync(CancellationToken cancellationToken = default) + { + var descriptor = new PutMappingRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutMappingRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); + } + /// /// Updates the index mappings. /// Learn more about this API in the Elasticsearch documentation. @@ -6789,10 +7413,10 @@ public virtual Task RecoveryAsync(RecoveryRequest request, Can /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) + public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RecoveryResponse, RecoveryRequestParameters>(descriptor); } /// @@ -6802,9 +7426,9 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor de [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new RecoveryRequestDescriptor(indices); + var descriptor = new RecoveryRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RecoveryResponse, RecoveryRequestParameters>(descriptor); } /// @@ -6812,12 +7436,12 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new RecoveryRequestDescriptor(indices); + var descriptor = new RecoveryRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RecoveryResponse, RecoveryRequestParameters>(descriptor); } /// @@ -6827,9 +7451,9 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery() { - var descriptor = new RecoveryRequestDescriptor(); + var descriptor = new RecoveryRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RecoveryResponse, RecoveryRequestParameters>(descriptor); } /// @@ -6837,12 +7461,12 @@ public virtual RecoveryResponse Recovery() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RecoveryResponse Recovery(Action configureRequest) + public virtual RecoveryResponse Recovery(Action> configureRequest) { - var descriptor = new RecoveryRequestDescriptor(); + var descriptor = new RecoveryRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RecoveryResponse, RecoveryRequestParameters>(descriptor); } /// @@ -6910,10 +7534,10 @@ public virtual RecoveryResponse Recovery(Action confi /// Returns information about ongoing index shard recoveries. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// @@ -6922,21 +7546,21 @@ public virtual Task RecoveryAsync(RecoveryRequestDe /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new RecoveryRequestDescriptor(indices); + var descriptor = new RecoveryRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about ongoing index shard recoveries. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RecoveryRequestDescriptor(indices); + var descriptor = new RecoveryRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// @@ -6945,21 +7569,21 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) { - var descriptor = new RecoveryRequestDescriptor(); + var descriptor = new RecoveryRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about ongoing index shard recoveries. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RecoveryAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RecoveryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RecoveryRequestDescriptor(); + var descriptor = new RecoveryRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); } /// @@ -7044,10 +7668,10 @@ public virtual Task RefreshAsync(RefreshRequest request, Cancel /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) + public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RefreshResponse, RefreshRequestParameters>(descriptor); } /// @@ -7057,9 +7681,9 @@ public virtual RefreshResponse Refresh(RefreshRequestDescriptor descr [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new RefreshRequestDescriptor(indices); + var descriptor = new RefreshRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RefreshResponse, RefreshRequestParameters>(descriptor); } /// @@ -7067,12 +7691,12 @@ public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch. /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new RefreshRequestDescriptor(indices); + var descriptor = new RefreshRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RefreshResponse, RefreshRequestParameters>(descriptor); } /// @@ -7082,9 +7706,9 @@ public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch. [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh() { - var descriptor = new RefreshRequestDescriptor(); + var descriptor = new RefreshRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RefreshResponse, RefreshRequestParameters>(descriptor); } /// @@ -7092,12 +7716,12 @@ public virtual RefreshResponse Refresh() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RefreshResponse Refresh(Action configureRequest) + public virtual RefreshResponse Refresh(Action> configureRequest) { - var descriptor = new RefreshRequestDescriptor(); + var descriptor = new RefreshRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RefreshResponse, RefreshRequestParameters>(descriptor); } /// @@ -7165,10 +7789,10 @@ public virtual RefreshResponse Refresh(Action configur /// Performs the refresh operation in one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// @@ -7177,21 +7801,21 @@ public virtual Task RefreshAsync(RefreshRequestDescr /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new RefreshRequestDescriptor(indices); + var descriptor = new RefreshRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// /// Performs the refresh operation in one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RefreshRequestDescriptor(indices); + var descriptor = new RefreshRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// @@ -7200,21 +7824,21 @@ public virtual Task RefreshAsync(Elastic.Clients.Ela /// public virtual Task RefreshAsync(CancellationToken cancellationToken = default) { - var descriptor = new RefreshRequestDescriptor(); + var descriptor = new RefreshRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// /// Performs the refresh operation in one or more indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RefreshAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RefreshAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RefreshRequestDescriptor(); + var descriptor = new RefreshRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); } /// @@ -7299,10 +7923,10 @@ public virtual Task ReloadSearchAnalyzersAsync(Re /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequestDescriptor descriptor) + public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor); } /// @@ -7312,9 +7936,9 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Re [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); + var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor); } /// @@ -7322,12 +7946,37 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(El /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); + var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor); + } + + /// + /// Reloads an index's search analyzers and their resources. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers() + { + var descriptor = new ReloadSearchAnalyzersRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor); + } + + /// + /// Reloads an index's search analyzers and their resources. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Action> configureRequest) + { + var descriptor = new ReloadSearchAnalyzersRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor); } /// @@ -7370,10 +8019,10 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clien /// Reloads an index's search analyzers and their resources. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor, cancellationToken); } /// @@ -7382,21 +8031,44 @@ public virtual Task ReloadSearchAnalyzersAsync public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); + var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor, cancellationToken); } /// /// Reloads an index's search analyzers and their resources. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); + var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Reloads an index's search analyzers and their resources. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReloadSearchAnalyzersAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ReloadSearchAnalyzersRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Reloads an index's search analyzers and their resources. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReloadSearchAnalyzersAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ReloadSearchAnalyzersRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ReloadSearchAnalyzersResponse, ReloadSearchAnalyzersRequestParameters>(descriptor, cancellationToken); } /// @@ -7893,10 +8565,10 @@ public virtual Task SegmentsAsync(SegmentsRequest request, Can /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) + public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SegmentsResponse, SegmentsRequestParameters>(descriptor); } /// @@ -7906,9 +8578,9 @@ public virtual SegmentsResponse Segments(SegmentsRequestDescriptor de [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new SegmentsRequestDescriptor(indices); + var descriptor = new SegmentsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SegmentsResponse, SegmentsRequestParameters>(descriptor); } /// @@ -7916,12 +8588,12 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearc /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new SegmentsRequestDescriptor(indices); + var descriptor = new SegmentsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SegmentsResponse, SegmentsRequestParameters>(descriptor); } /// @@ -7931,9 +8603,9 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments() { - var descriptor = new SegmentsRequestDescriptor(); + var descriptor = new SegmentsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SegmentsResponse, SegmentsRequestParameters>(descriptor); } /// @@ -7941,12 +8613,12 @@ public virtual SegmentsResponse Segments() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SegmentsResponse Segments(Action configureRequest) + public virtual SegmentsResponse Segments(Action> configureRequest) { - var descriptor = new SegmentsRequestDescriptor(); + var descriptor = new SegmentsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SegmentsResponse, SegmentsRequestParameters>(descriptor); } /// @@ -8014,10 +8686,10 @@ public virtual SegmentsResponse Segments(Action confi /// Provides low-level information about segments in a Lucene index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// @@ -8026,21 +8698,21 @@ public virtual Task SegmentsAsync(SegmentsRequestDe /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new SegmentsRequestDescriptor(indices); + var descriptor = new SegmentsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// /// Provides low-level information about segments in a Lucene index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SegmentsRequestDescriptor(indices); + var descriptor = new SegmentsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// @@ -8049,21 +8721,21 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// public virtual Task SegmentsAsync(CancellationToken cancellationToken = default) { - var descriptor = new SegmentsRequestDescriptor(); + var descriptor = new SegmentsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// /// Provides low-level information about segments in a Lucene index. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SegmentsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SegmentsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SegmentsRequestDescriptor(); + var descriptor = new SegmentsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); } /// @@ -8148,10 +8820,10 @@ public virtual Task ShardStoresAsync(ShardStoresRequest req /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor descriptor) + public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ShardStoresResponse, ShardStoresRequestParameters>(descriptor); } /// @@ -8161,9 +8833,9 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequestDesc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new ShardStoresRequestDescriptor(indices); + var descriptor = new ShardStoresRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ShardStoresResponse, ShardStoresRequestParameters>(descriptor); } /// @@ -8171,12 +8843,12 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new ShardStoresRequestDescriptor(indices); + var descriptor = new ShardStoresRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ShardStoresResponse, ShardStoresRequestParameters>(descriptor); } /// @@ -8186,9 +8858,9 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasti [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores() { - var descriptor = new ShardStoresRequestDescriptor(); + var descriptor = new ShardStoresRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ShardStoresResponse, ShardStoresRequestParameters>(descriptor); } /// @@ -8196,12 +8868,12 @@ public virtual ShardStoresResponse ShardStores() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ShardStoresResponse ShardStores(Action configureRequest) + public virtual ShardStoresResponse ShardStores(Action> configureRequest) { - var descriptor = new ShardStoresRequestDescriptor(); + var descriptor = new ShardStoresRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ShardStoresResponse, ShardStoresRequestParameters>(descriptor); } /// @@ -8269,10 +8941,10 @@ public virtual ShardStoresResponse ShardStores(ActionProvides store information for shard copies of indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ShardStoresAsync(ShardStoresRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ShardStoresAsync(ShardStoresRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ShardStoresResponse, ShardStoresRequestParameters>(descriptor, cancellationToken); } /// @@ -8281,21 +8953,21 @@ public virtual Task ShardStoresAsync(ShardStores /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new ShardStoresRequestDescriptor(indices); + var descriptor = new ShardStoresRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ShardStoresResponse, ShardStoresRequestParameters>(descriptor, cancellationToken); } /// /// Provides store information for shard copies of indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ShardStoresRequestDescriptor(indices); + var descriptor = new ShardStoresRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ShardStoresResponse, ShardStoresRequestParameters>(descriptor, cancellationToken); } /// @@ -8304,21 +8976,21 @@ public virtual Task ShardStoresAsync(Elastic.Cli /// public virtual Task ShardStoresAsync(CancellationToken cancellationToken = default) { - var descriptor = new ShardStoresRequestDescriptor(); + var descriptor = new ShardStoresRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ShardStoresResponse, ShardStoresRequestParameters>(descriptor, cancellationToken); } /// /// Provides store information for shard copies of indices. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ShardStoresAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ShardStoresAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ShardStoresRequestDescriptor(); + var descriptor = new ShardStoresRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ShardStoresResponse, ShardStoresRequestParameters>(descriptor, cancellationToken); } /// @@ -9097,6 +9769,31 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsear return DoRequest, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric) + { + var descriptor = new IndicesStatsRequestDescriptor(metric); + descriptor.BeforeRequest(); + return DoRequest, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor); + } + + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric, Action> configureRequest) + { + var descriptor = new IndicesStatsRequestDescriptor(metric); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor); + } + /// /// Provides statistics on operations happening in an index. /// Learn more about this API in the Elasticsearch documentation. @@ -9216,6 +9913,29 @@ public virtual Task StatsAsync(Elastic.Clients. return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) + { + var descriptor = new IndicesStatsRequestDescriptor(metric); + descriptor.BeforeRequest(); + return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IndicesStatsRequestDescriptor(metric); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); + } + /// /// Provides statistics on operations happening in an index. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs index f577aaea5f1..d39b5442789 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -63,10 +63,10 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequestDescriptor descriptor) + public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor); } /// @@ -76,9 +76,9 @@ public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRe [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new DeletePipelineRequestDescriptor(id); + var descriptor = new DeletePipelineRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor); } /// @@ -86,12 +86,12 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients. /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new DeletePipelineRequestDescriptor(id); + var descriptor = new DeletePipelineRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor); } /// @@ -134,10 +134,10 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsear /// Deletes a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); } /// @@ -146,21 +146,21 @@ public virtual Task DeletePipelineAsync(Delet /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeletePipelineRequestDescriptor(id); + var descriptor = new DeletePipelineRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); } /// /// Deletes a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeletePipelineRequestDescriptor(id); + var descriptor = new DeletePipelineRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); } /// @@ -312,10 +312,10 @@ public virtual Task GetPipelineAsync(GetPipelineRequest req /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDescriptor descriptor) + public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetPipelineResponse, GetPipelineRequestParameters>(descriptor); } /// @@ -325,9 +325,9 @@ public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDesc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new GetPipelineRequestDescriptor(id); + var descriptor = new GetPipelineRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetPipelineResponse, GetPipelineRequestParameters>(descriptor); } /// @@ -335,12 +335,12 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) + public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new GetPipelineRequestDescriptor(id); + var descriptor = new GetPipelineRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetPipelineResponse, GetPipelineRequestParameters>(descriptor); } /// @@ -350,9 +350,9 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasti [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline() { - var descriptor = new GetPipelineRequestDescriptor(); + var descriptor = new GetPipelineRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetPipelineResponse, GetPipelineRequestParameters>(descriptor); } /// @@ -360,12 +360,12 @@ public virtual GetPipelineResponse GetPipeline() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetPipelineResponse GetPipeline(Action configureRequest) + public virtual GetPipelineResponse GetPipeline(Action> configureRequest) { - var descriptor = new GetPipelineRequestDescriptor(); + var descriptor = new GetPipelineRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetPipelineResponse, GetPipelineRequestParameters>(descriptor); } /// @@ -433,10 +433,10 @@ public virtual GetPipelineResponse GetPipeline(ActionReturns a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// @@ -445,21 +445,21 @@ public virtual Task GetPipelineAsync(GetPipeline /// public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new GetPipelineRequestDescriptor(id); + var descriptor = new GetPipelineRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// /// Returns a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetPipelineRequestDescriptor(id); + var descriptor = new GetPipelineRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// @@ -468,21 +468,21 @@ public virtual Task GetPipelineAsync(Elastic.Cli /// public virtual Task GetPipelineAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetPipelineRequestDescriptor(); + var descriptor = new GetPipelineRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// /// Returns a pipeline. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetPipelineAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetPipelineAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetPipelineRequestDescriptor(); + var descriptor = new GetPipelineRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs index bd064e0c63d..9d3e2d70797 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -603,10 +603,10 @@ public virtual Task DeleteDataFrameAnalyticsAs /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequestDescriptor descriptor) + public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -616,9 +616,9 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -626,12 +626,12 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalyticsLearn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -674,10 +674,10 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic /// Deletes an existing data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -686,21 +686,21 @@ public virtual Task DeleteDataFrameAnalyticsAs /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an existing data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3138,10 +3138,10 @@ public virtual Task GetDataFrameAnalyticsAsync(Ge /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameAnalyticsRequestDescriptor descriptor) + public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameAnalyticsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -3151,9 +3151,9 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Ge [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -3161,12 +3161,12 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(El /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) + public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -3176,9 +3176,9 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(El [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics() { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -3186,12 +3186,12 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Action configureRequest) + public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Action> configureRequest) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -3259,10 +3259,10 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(ActionRetrieves configuration information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3271,21 +3271,21 @@ public virtual Task GetDataFrameAnalyticsAsync public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves configuration information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3294,21 +3294,21 @@ public virtual Task GetDataFrameAnalyticsAsync public virtual Task GetDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves configuration information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -3393,10 +3393,10 @@ public virtual Task GetDataFrameAnalyticsSta /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequestDescriptor descriptor) + public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor); } /// @@ -3406,9 +3406,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor); } /// @@ -3416,12 +3416,12 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStatsLearn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) + public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor); } /// @@ -3431,9 +3431,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats() { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor); } /// @@ -3441,12 +3441,12 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStatsLearn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Action configureRequest) + public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Action> configureRequest) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor); } /// @@ -3514,10 +3514,10 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Act /// Retrieves usage information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -3526,21 +3526,21 @@ public virtual Task GetDataFrameAnalyticsSta /// public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves usage information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -3549,21 +3549,21 @@ public virtual Task GetDataFrameAnalyticsSta /// public virtual Task GetDataFrameAnalyticsStatsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves usage information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetDataFrameAnalyticsStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); + var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -7449,10 +7449,10 @@ public virtual Task StartDataFrameAnalyticsAsyn /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartDataFrameAnalyticsRequestDescriptor descriptor) + public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartDataFrameAnalyticsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -7462,9 +7462,9 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -7472,12 +7472,12 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalyticsLearn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -7520,10 +7520,10 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.C /// Starts a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -7532,21 +7532,21 @@ public virtual Task StartDataFrameAnalyticsAsyn /// public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Starts a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -7788,10 +7788,10 @@ public virtual Task StopDataFrameAnalyticsAsync( /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFrameAnalyticsRequestDescriptor descriptor) + public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFrameAnalyticsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -7801,9 +7801,9 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics( [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -7811,12 +7811,12 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics( /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -7859,10 +7859,10 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Cli /// Stops one or more data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -7871,21 +7871,21 @@ public virtual Task StopDataFrameAnalyticsAsync< /// public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Stops one or more data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -8196,10 +8196,10 @@ public virtual Task UpdateDataFrameAnalyticsAs /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateDataFrameAnalyticsRequestDescriptor descriptor) + public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateDataFrameAnalyticsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -8209,9 +8209,9 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -8219,12 +8219,12 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalyticsLearn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor); } /// @@ -8267,10 +8267,10 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic /// Updates certain properties of a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// @@ -8279,21 +8279,21 @@ public virtual Task UpdateDataFrameAnalyticsAs /// public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// /// Updates certain properties of a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); + var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs index aa7882f5bf5..fcaa67fa28b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs @@ -63,10 +63,10 @@ public virtual Task DeleteJobAsync(DeleteJobRequest request, /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor) + public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteJobResponse, DeleteJobRequestParameters>(descriptor); } /// @@ -76,9 +76,9 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new DeleteJobRequestDescriptor(id); + var descriptor = new DeleteJobRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteJobResponse, DeleteJobRequestParameters>(descriptor); } /// @@ -86,12 +86,12 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsea /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new DeleteJobRequestDescriptor(id); + var descriptor = new DeleteJobRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteJobResponse, DeleteJobRequestParameters>(descriptor); } /// @@ -134,10 +134,10 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, /// Deletes an existing rollup job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteJobResponse, DeleteJobRequestParameters>(descriptor, cancellationToken); } /// @@ -146,21 +146,21 @@ public virtual Task DeleteJobAsync(DeleteJobReques /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteJobRequestDescriptor(id); + var descriptor = new DeleteJobRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteJobResponse, DeleteJobRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an existing rollup job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteJobRequestDescriptor(id); + var descriptor = new DeleteJobRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteJobResponse, DeleteJobRequestParameters>(descriptor, cancellationToken); } /// @@ -222,10 +222,10 @@ public virtual Task GetJobsAsync(GetJobsRequest request, Cancel /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) + public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetJobsResponse, GetJobsRequestParameters>(descriptor); } /// @@ -235,9 +235,9 @@ public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descr [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new GetJobsRequestDescriptor(id); + var descriptor = new GetJobsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetJobsResponse, GetJobsRequestParameters>(descriptor); } /// @@ -245,12 +245,12 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch. /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) + public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new GetJobsRequestDescriptor(id); + var descriptor = new GetJobsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetJobsResponse, GetJobsRequestParameters>(descriptor); } /// @@ -260,9 +260,9 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch. [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs() { - var descriptor = new GetJobsRequestDescriptor(); + var descriptor = new GetJobsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetJobsResponse, GetJobsRequestParameters>(descriptor); } /// @@ -270,12 +270,12 @@ public virtual GetJobsResponse GetJobs() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetJobsResponse GetJobs(Action configureRequest) + public virtual GetJobsResponse GetJobs(Action> configureRequest) { - var descriptor = new GetJobsRequestDescriptor(); + var descriptor = new GetJobsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetJobsResponse, GetJobsRequestParameters>(descriptor); } /// @@ -343,10 +343,10 @@ public virtual GetJobsResponse GetJobs(Action configur /// Retrieves the configuration, stats, and status of rollup jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetJobsAsync(GetJobsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetJobsAsync(GetJobsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetJobsResponse, GetJobsRequestParameters>(descriptor, cancellationToken); } /// @@ -355,21 +355,21 @@ public virtual Task GetJobsAsync(GetJobsRequestDescr /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new GetJobsRequestDescriptor(id); + var descriptor = new GetJobsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetJobsResponse, GetJobsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves the configuration, stats, and status of rollup jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetJobsRequestDescriptor(id); + var descriptor = new GetJobsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetJobsResponse, GetJobsRequestParameters>(descriptor, cancellationToken); } /// @@ -378,21 +378,21 @@ public virtual Task GetJobsAsync(Elastic.Clients.Ela /// public virtual Task GetJobsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetJobsRequestDescriptor(); + var descriptor = new GetJobsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetJobsResponse, GetJobsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves the configuration, stats, and status of rollup jobs. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetJobsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetJobsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetJobsRequestDescriptor(); + var descriptor = new GetJobsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetJobsResponse, GetJobsRequestParameters>(descriptor, cancellationToken); } /// @@ -477,10 +477,10 @@ public virtual Task GetRollupCapsAsync(GetRollupCapsReque /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescriptor descriptor) + public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor); } /// @@ -490,9 +490,9 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsReque [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new GetRollupCapsRequestDescriptor(id); + var descriptor = new GetRollupCapsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor); } /// @@ -500,12 +500,12 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.El /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) + public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new GetRollupCapsRequestDescriptor(id); + var descriptor = new GetRollupCapsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor); } /// @@ -515,9 +515,9 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.El [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps() { - var descriptor = new GetRollupCapsRequestDescriptor(); + var descriptor = new GetRollupCapsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor); } /// @@ -525,12 +525,12 @@ public virtual GetRollupCapsResponse GetRollupCaps() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRollupCapsResponse GetRollupCaps(Action configureRequest) + public virtual GetRollupCapsResponse GetRollupCaps(Action> configureRequest) { - var descriptor = new GetRollupCapsRequestDescriptor(); + var descriptor = new GetRollupCapsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor); } /// @@ -598,10 +598,10 @@ public virtual GetRollupCapsResponse GetRollupCaps(ActionReturns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetRollupCapsAsync(GetRollupCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetRollupCapsAsync(GetRollupCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor, cancellationToken); } /// @@ -610,21 +610,21 @@ public virtual Task GetRollupCapsAsync(GetRoll /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new GetRollupCapsRequestDescriptor(id); + var descriptor = new GetRollupCapsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor, cancellationToken); } /// /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetRollupCapsRequestDescriptor(id); + var descriptor = new GetRollupCapsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor, cancellationToken); } /// @@ -633,21 +633,21 @@ public virtual Task GetRollupCapsAsync(Elastic /// public virtual Task GetRollupCapsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetRollupCapsRequestDescriptor(); + var descriptor = new GetRollupCapsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor, cancellationToken); } /// /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetRollupCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetRollupCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetRollupCapsRequestDescriptor(); + var descriptor = new GetRollupCapsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetRollupCapsResponse, GetRollupCapsRequestParameters>(descriptor, cancellationToken); } /// @@ -732,10 +732,10 @@ public virtual Task GetRollupIndexCapsAsync(GetRollu /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequestDescriptor descriptor) + public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetRollupIndexCapsResponse, GetRollupIndexCapsRequestParameters>(descriptor); } /// @@ -745,9 +745,9 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollu [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index) { - var descriptor = new GetRollupIndexCapsRequestDescriptor(index); + var descriptor = new GetRollupIndexCapsRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetRollupIndexCapsResponse, GetRollupIndexCapsRequestParameters>(descriptor); } /// @@ -755,12 +755,12 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic. /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index, Action configureRequest) + public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index, Action> configureRequest) { - var descriptor = new GetRollupIndexCapsRequestDescriptor(index); + var descriptor = new GetRollupIndexCapsRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetRollupIndexCapsResponse, GetRollupIndexCapsRequestParameters>(descriptor); } /// @@ -803,10 +803,10 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Ela /// Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored). /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetRollupIndexCapsResponse, GetRollupIndexCapsRequestParameters>(descriptor, cancellationToken); } /// @@ -815,21 +815,21 @@ public virtual Task GetRollupIndexCapsAsync public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, CancellationToken cancellationToken = default) { - var descriptor = new GetRollupIndexCapsRequestDescriptor(index); + var descriptor = new GetRollupIndexCapsRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetRollupIndexCapsResponse, GetRollupIndexCapsRequestParameters>(descriptor, cancellationToken); } /// /// Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored). /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetRollupIndexCapsRequestDescriptor(index); + var descriptor = new GetRollupIndexCapsRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetRollupIndexCapsResponse, GetRollupIndexCapsRequestParameters>(descriptor, cancellationToken); } /// @@ -1081,6 +1081,31 @@ public virtual RollupSearchResponse RollupSearch(Elastic.C return DoRequest, RollupSearchResponse, RollupSearchRequestParameters>(descriptor); } + /// + /// Enables searching rolled-up data using the standard query DSL. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RollupSearchResponse RollupSearch() + { + var descriptor = new RollupSearchRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, RollupSearchResponse, RollupSearchRequestParameters>(descriptor); + } + + /// + /// Enables searching rolled-up data using the standard query DSL. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RollupSearchResponse RollupSearch(Action> configureRequest) + { + var descriptor = new RollupSearchRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, RollupSearchResponse, RollupSearchRequestParameters>(descriptor); + } + /// /// Enables searching rolled-up data using the standard query DSL. /// Learn more about this API in the Elasticsearch documentation. @@ -1114,6 +1139,29 @@ public virtual Task> RollupSearchAsync, RollupSearchResponse, RollupSearchRequestParameters>(descriptor, cancellationToken); } + /// + /// Enables searching rolled-up data using the standard query DSL. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> RollupSearchAsync(CancellationToken cancellationToken = default) + { + var descriptor = new RollupSearchRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, RollupSearchResponse, RollupSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Enables searching rolled-up data using the standard query DSL. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> RollupSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RollupSearchRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, RollupSearchResponse, RollupSearchRequestParameters>(descriptor, cancellationToken); + } + /// /// Starts an existing, stopped rollup job. /// Learn more about this API in the Elasticsearch documentation. @@ -1140,10 +1188,10 @@ public virtual Task StartJobAsync(StartJobRequest request, Can /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) + public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StartJobResponse, StartJobRequestParameters>(descriptor); } /// @@ -1153,9 +1201,9 @@ public virtual StartJobResponse StartJob(StartJobRequestDescriptor de [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new StartJobRequestDescriptor(id); + var descriptor = new StartJobRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StartJobResponse, StartJobRequestParameters>(descriptor); } /// @@ -1163,12 +1211,12 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearc /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new StartJobRequestDescriptor(id); + var descriptor = new StartJobRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StartJobResponse, StartJobRequestParameters>(descriptor); } /// @@ -1211,10 +1259,10 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Ac /// Starts an existing, stopped rollup job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StartJobAsync(StartJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StartJobAsync(StartJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartJobResponse, StartJobRequestParameters>(descriptor, cancellationToken); } /// @@ -1223,21 +1271,21 @@ public virtual Task StartJobAsync(StartJobRequestDe /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new StartJobRequestDescriptor(id); + var descriptor = new StartJobRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartJobResponse, StartJobRequestParameters>(descriptor, cancellationToken); } /// /// Starts an existing, stopped rollup job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new StartJobRequestDescriptor(id); + var descriptor = new StartJobRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StartJobResponse, StartJobRequestParameters>(descriptor, cancellationToken); } /// @@ -1299,10 +1347,10 @@ public virtual Task StopJobAsync(StopJobRequest request, Cancel /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) + public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StopJobResponse, StopJobRequestParameters>(descriptor); } /// @@ -1312,9 +1360,9 @@ public virtual StopJobResponse StopJob(StopJobRequestDescriptor descr [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new StopJobRequestDescriptor(id); + var descriptor = new StopJobRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StopJobResponse, StopJobRequestParameters>(descriptor); } /// @@ -1322,12 +1370,12 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch. /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new StopJobRequestDescriptor(id); + var descriptor = new StopJobRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, StopJobResponse, StopJobRequestParameters>(descriptor); } /// @@ -1370,10 +1418,10 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Acti /// Stops an existing, started rollup job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StopJobAsync(StopJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StopJobAsync(StopJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopJobResponse, StopJobRequestParameters>(descriptor, cancellationToken); } /// @@ -1382,21 +1430,21 @@ public virtual Task StopJobAsync(StopJobRequestDescr /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new StopJobRequestDescriptor(id); + var descriptor = new StopJobRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopJobResponse, StopJobRequestParameters>(descriptor, cancellationToken); } /// /// Stops an existing, started rollup job. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new StopJobRequestDescriptor(id); + var descriptor = new StopJobRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, StopJobResponse, StopJobRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs index 9a28628b585..6d503c6adbd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs @@ -201,10 +201,10 @@ public virtual Task ClearCacheAsync(ClearCacheRequest reques /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descriptor) + public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ClearCacheResponse, ClearCacheRequestParameters>(descriptor); } /// @@ -214,9 +214,9 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new ClearCacheRequestDescriptor(indices); + var descriptor = new ClearCacheRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ClearCacheResponse, ClearCacheRequestParameters>(descriptor); } /// @@ -224,12 +224,12 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new ClearCacheRequestDescriptor(indices); + var descriptor = new ClearCacheRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ClearCacheResponse, ClearCacheRequestParameters>(descriptor); } /// @@ -239,9 +239,9 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache() { - var descriptor = new ClearCacheRequestDescriptor(); + var descriptor = new ClearCacheRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ClearCacheResponse, ClearCacheRequestParameters>(descriptor); } /// @@ -249,12 +249,12 @@ public virtual ClearCacheResponse ClearCache() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCacheResponse ClearCache(Action configureRequest) + public virtual ClearCacheResponse ClearCache(Action> configureRequest) { - var descriptor = new ClearCacheRequestDescriptor(); + var descriptor = new ClearCacheRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, ClearCacheResponse, ClearCacheRequestParameters>(descriptor); } /// @@ -322,10 +322,10 @@ public virtual ClearCacheResponse ClearCache(Action /// Clear the cache of searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); } /// @@ -334,21 +334,21 @@ public virtual Task ClearCacheAsync(ClearCacheReq /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new ClearCacheRequestDescriptor(indices); + var descriptor = new ClearCacheRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); } /// /// Clear the cache of searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ClearCacheRequestDescriptor(indices); + var descriptor = new ClearCacheRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); } /// @@ -357,21 +357,21 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) { - var descriptor = new ClearCacheRequestDescriptor(); + var descriptor = new ClearCacheRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); } /// /// Clear the cache of searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCacheAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ClearCacheAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ClearCacheRequestDescriptor(); + var descriptor = new ClearCacheRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); } /// @@ -546,10 +546,10 @@ public virtual Task StatsAsync(SearchableSnaps /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequestDescriptor descriptor) + public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor); } /// @@ -559,9 +559,9 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnaps [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(indices); + var descriptor = new SearchableSnapshotsStatsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor); } /// @@ -569,12 +569,12 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(indices); + var descriptor = new SearchableSnapshotsStatsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor); } /// @@ -584,9 +584,9 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats() { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); + var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor); } /// @@ -594,12 +594,12 @@ public virtual SearchableSnapshotsStatsResponse Stats() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchableSnapshotsStatsResponse Stats(Action configureRequest) + public virtual SearchableSnapshotsStatsResponse Stats(Action> configureRequest) { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); + var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor); } /// @@ -667,10 +667,10 @@ public virtual SearchableSnapshotsStatsResponse Stats(ActionRetrieve shard-level statistics about searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StatsAsync(SearchableSnapshotsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task StatsAsync(SearchableSnapshotsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -679,21 +679,21 @@ public virtual Task StatsAsync(Sear /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(indices); + var descriptor = new SearchableSnapshotsStatsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieve shard-level statistics about searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(indices); + var descriptor = new SearchableSnapshotsStatsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor, cancellationToken); } /// @@ -702,21 +702,21 @@ public virtual Task StatsAsync(Elas /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); + var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor, cancellationToken); } /// /// Retrieve shard-level statistics about searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); + var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchableSnapshotsStatsResponse, SearchableSnapshotsStatsRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs index 65fd48f575e..445377253b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -153,10 +153,10 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequest req /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor descriptor) + public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor); } /// @@ -166,9 +166,9 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDesc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new DeleteAsyncRequestDescriptor(id); + var descriptor = new DeleteAsyncRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor); } /// @@ -176,12 +176,12 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasti /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new DeleteAsyncRequestDescriptor(id); + var descriptor = new DeleteAsyncRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor); } /// @@ -224,10 +224,10 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); } /// @@ -236,21 +236,21 @@ public virtual Task DeleteAsyncAsync(DeleteAsync /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAsyncRequestDescriptor(id); + var descriptor = new DeleteAsyncRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); } /// /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteAsyncRequestDescriptor(id); + var descriptor = new DeleteAsyncRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); } /// @@ -312,10 +312,10 @@ public virtual Task GetAsyncAsync(GetAsyncRequest request, Can /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) + public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAsyncResponse, GetAsyncRequestParameters>(descriptor); } /// @@ -325,9 +325,9 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor de [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new GetAsyncRequestDescriptor(id); + var descriptor = new GetAsyncRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAsyncResponse, GetAsyncRequestParameters>(descriptor); } /// @@ -335,12 +335,12 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearc /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new GetAsyncRequestDescriptor(id); + var descriptor = new GetAsyncRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAsyncResponse, GetAsyncRequestParameters>(descriptor); } /// @@ -383,10 +383,10 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Ac /// Returns the current status and available results for an async SQL search or stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); } /// @@ -395,21 +395,21 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDe /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetAsyncRequestDescriptor(id); + var descriptor = new GetAsyncRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); } /// /// Returns the current status and available results for an async SQL search or stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetAsyncRequestDescriptor(id); + var descriptor = new GetAsyncRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); } /// @@ -471,10 +471,10 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescriptor descriptor) + public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor); } /// @@ -484,9 +484,9 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRe [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new GetAsyncStatusRequestDescriptor(id); + var descriptor = new GetAsyncStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor); } /// @@ -494,12 +494,12 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients. /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new GetAsyncStatusRequestDescriptor(id); + var descriptor = new GetAsyncStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor); } /// @@ -542,10 +542,10 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsear /// Returns the current status of an async SQL search or a stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); } /// @@ -554,21 +554,21 @@ public virtual Task GetAsyncStatusAsync(GetAs /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetAsyncStatusRequestDescriptor(id); + var descriptor = new GetAsyncStatusRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); } /// /// Returns the current status of an async SQL search or a stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetAsyncStatusRequestDescriptor(id); + var descriptor = new GetAsyncStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs index 5c22f89e201..21822088bf7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs @@ -63,10 +63,10 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescriptor descriptor) + public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor); } /// @@ -76,9 +76,9 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymReque [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new DeleteSynonymRequestDescriptor(id); + var descriptor = new DeleteSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor); } /// @@ -86,12 +86,12 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.El /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new DeleteSynonymRequestDescriptor(id); + var descriptor = new DeleteSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor); } /// @@ -134,10 +134,10 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch /// Deletes a synonym set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -146,21 +146,21 @@ public virtual Task DeleteSynonymAsync(DeleteS /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteSynonymRequestDescriptor(id); + var descriptor = new DeleteSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); } /// /// Deletes a synonym set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteSynonymRequestDescriptor(id); + var descriptor = new DeleteSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -312,10 +312,10 @@ public virtual Task GetSynonymAsync(GetSynonymRequest reques /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descriptor) + public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetSynonymResponse, GetSynonymRequestParameters>(descriptor); } /// @@ -325,9 +325,9 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new GetSynonymRequestDescriptor(id); + var descriptor = new GetSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetSynonymResponse, GetSynonymRequestParameters>(descriptor); } /// @@ -335,12 +335,12 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elastics /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new GetSynonymRequestDescriptor(id); + var descriptor = new GetSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetSynonymResponse, GetSynonymRequestParameters>(descriptor); } /// @@ -383,10 +383,10 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id /// Retrieves a synonym set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -395,21 +395,21 @@ public virtual Task GetSynonymAsync(GetSynonymReq /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetSynonymRequestDescriptor(id); + var descriptor = new GetSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); } /// /// Retrieves a synonym set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetSynonymRequestDescriptor(id); + var descriptor = new GetSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -651,10 +651,10 @@ public virtual Task PutSynonymAsync(PutSynonymRequest reques /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descriptor) + public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutSynonymResponse, PutSynonymRequestParameters>(descriptor); } /// @@ -664,9 +664,9 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescrip [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new PutSynonymRequestDescriptor(id); + var descriptor = new PutSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutSynonymResponse, PutSynonymRequestParameters>(descriptor); } /// @@ -674,12 +674,12 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elastics /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new PutSynonymRequestDescriptor(id); + var descriptor = new PutSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutSynonymResponse, PutSynonymRequestParameters>(descriptor); } /// @@ -722,10 +722,10 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id /// Creates or updates a synonyms set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); } /// @@ -734,21 +734,21 @@ public virtual Task PutSynonymAsync(PutSynonymReq /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new PutSynonymRequestDescriptor(id); + var descriptor = new PutSynonymRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); } /// /// Creates or updates a synonyms set /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutSynonymRequestDescriptor(id); + var descriptor = new PutSynonymRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index ca31e3867c2..461fb314265 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -1467,6 +1467,31 @@ public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.El return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); } + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery() + { + var descriptor = new DeleteByQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(Action> configureRequest) + { + var descriptor = new DeleteByQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + /// /// Deletes documents matching the provided query. /// Learn more about this API in the Elasticsearch documentation. @@ -1536,6 +1561,29 @@ public virtual Task DeleteByQueryAsync(Elastic return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); } + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + /// /// Deletes documents matching the provided query. /// Learn more about this API in the Elasticsearch documentation. @@ -1685,10 +1733,10 @@ public virtual Task DeleteScriptAsync(DeleteScriptRequest /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) + public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); } /// @@ -1698,9 +1746,9 @@ public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestD [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new DeleteScriptRequestDescriptor(id); + var descriptor = new DeleteScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); } /// @@ -1708,12 +1756,12 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elas /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new DeleteScriptRequestDescriptor(id); + var descriptor = new DeleteScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); } /// @@ -1756,10 +1804,10 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.I /// Deletes a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -1768,21 +1816,21 @@ public virtual Task DeleteScriptAsync(DeleteScr /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new DeleteScriptRequestDescriptor(id); + var descriptor = new DeleteScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); } /// /// Deletes a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteScriptRequestDescriptor(id); + var descriptor = new DeleteScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -3365,10 +3413,10 @@ public virtual Task GetScriptAsync(GetScriptRequest request, /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) + public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); } /// @@ -3378,9 +3426,9 @@ public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new GetScriptRequestDescriptor(id); + var descriptor = new GetScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); } /// @@ -3388,12 +3436,12 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsea /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new GetScriptRequestDescriptor(id); + var descriptor = new GetScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); } /// @@ -3436,10 +3484,10 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, /// Returns a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -3448,21 +3496,21 @@ public virtual Task GetScriptAsync(GetScriptReques /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new GetScriptRequestDescriptor(id); + var descriptor = new GetScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); } /// /// Returns a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetScriptRequestDescriptor(id); + var descriptor = new GetScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -4841,10 +4889,10 @@ public virtual Task> MultiSearchAsync( /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch(MultiSearchRequestDescriptor descriptor) + public virtual MultiSearchResponse MultiSearch(MultiSearchRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, MultiSearchRequestParameters>(descriptor); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); } /// @@ -4854,9 +4902,9 @@ public virtual MultiSearchResponse MultiSearch(MultiSearch [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new MultiSearchRequestDescriptor(indices); + var descriptor = new MultiSearchRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest, MultiSearchRequestParameters>(descriptor); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); } /// @@ -4864,12 +4912,12 @@ public virtual MultiSearchResponse MultiSearch(Elastic.Cli /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new MultiSearchRequestDescriptor(indices); + var descriptor = new MultiSearchRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiSearchRequestParameters>(descriptor); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); } /// @@ -4879,9 +4927,9 @@ public virtual MultiSearchResponse MultiSearch(Elastic.Cli [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch() { - var descriptor = new MultiSearchRequestDescriptor(); + var descriptor = new MultiSearchRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, MultiSearchRequestParameters>(descriptor); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); } /// @@ -4889,22 +4937,22 @@ public virtual MultiSearchResponse MultiSearch() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch(Action configureRequest) + public virtual MultiSearchResponse MultiSearch(Action> configureRequest) { - var descriptor = new MultiSearchRequestDescriptor(); + var descriptor = new MultiSearchRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiSearchRequestParameters>(descriptor); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); } /// /// Allows to execute several search operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -4913,21 +4961,21 @@ public virtual Task> MultiSearchAsync( /// public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchRequestDescriptor(indices); + var descriptor = new MultiSearchRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// /// Allows to execute several search operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchRequestDescriptor(indices); + var descriptor = new MultiSearchRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -4936,21 +4984,21 @@ public virtual Task> MultiSearchAsync( /// public virtual Task> MultiSearchAsync(CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchRequestDescriptor(); + var descriptor = new MultiSearchRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// /// Allows to execute several search operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchRequestDescriptor(); + var descriptor = new MultiSearchRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); } /// @@ -4979,10 +5027,10 @@ public virtual Task> MultiSearchTemplateA /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequestDescriptor descriptor) + public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateRequestParameters>(descriptor); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } /// @@ -4992,9 +5040,9 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateRequestParameters>(descriptor); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } /// @@ -5002,12 +5050,12 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplateLearn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual MultiSearchTemplateResponse MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateRequestParameters>(descriptor); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } /// @@ -5017,9 +5065,9 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate MultiSearchTemplate() { - var descriptor = new MultiSearchTemplateRequestDescriptor(); + var descriptor = new MultiSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateRequestParameters>(descriptor); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } /// @@ -5027,22 +5075,22 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplateLearn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate(Action configureRequest) + public virtual MultiSearchTemplateResponse MultiSearchTemplate(Action> configureRequest) { - var descriptor = new MultiSearchTemplateRequestDescriptor(); + var descriptor = new MultiSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateRequestParameters>(descriptor); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } /// /// Allows to execute several search template operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -5051,21 +5099,21 @@ public virtual Task> MultiSearchTemplateA /// public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to execute several search template operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -5074,21 +5122,21 @@ public virtual Task> MultiSearchTemplateA /// public virtual Task> MultiSearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchTemplateRequestDescriptor(); + var descriptor = new MultiSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to execute several search template operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> MultiSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiSearchTemplateRequestDescriptor(); + var descriptor = new MultiSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -5117,10 +5165,10 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) + public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); } /// @@ -5130,9 +5178,9 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTim [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); + var descriptor = new OpenPointInTimeRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); } /// @@ -5140,12 +5188,37 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); + var descriptor = new OpenPointInTimeRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime() + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(Action> configureRequest) + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); } /// @@ -5188,10 +5261,10 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// Open a point in time that can be used in subsequent searches /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); } /// @@ -5200,21 +5273,44 @@ public virtual Task OpenPointInTimeAsync(Ope /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); + var descriptor = new OpenPointInTimeRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); } /// /// Open a point in time that can be used in subsequent searches /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); + var descriptor = new OpenPointInTimeRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); } /// @@ -5366,10 +5462,10 @@ public virtual Task PutScriptAsync(PutScriptRequest request, /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) + public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); } /// @@ -5379,9 +5475,9 @@ public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new PutScriptRequestDescriptor(id, context); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); } /// @@ -5389,12 +5485,12 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsea /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action configureRequest) + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action> configureRequest) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new PutScriptRequestDescriptor(id, context); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); } /// @@ -5404,9 +5500,9 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsea [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new PutScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); } /// @@ -5414,12 +5510,12 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsea /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new PutScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); } /// @@ -5487,10 +5583,10 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, /// Creates or updates a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -5499,21 +5595,21 @@ public virtual Task PutScriptAsync(PutScriptReques /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new PutScriptRequestDescriptor(id, context); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// /// Creates or updates a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new PutScriptRequestDescriptor(id, context); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -5522,21 +5618,21 @@ public virtual Task PutScriptAsync(Elastic.Clients /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new PutScriptRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// /// Creates or updates a script. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new PutScriptRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); } /// @@ -6125,10 +6221,10 @@ public virtual Task RenderSearchTemplateAsync(Rend /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) + public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); } /// @@ -6138,9 +6234,9 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Rend [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); + var descriptor = new RenderSearchTemplateRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); } /// @@ -6148,12 +6244,12 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elas /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) + public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); + var descriptor = new RenderSearchTemplateRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); } /// @@ -6163,9 +6259,9 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elas [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate() { - var descriptor = new RenderSearchTemplateRequestDescriptor(); + var descriptor = new RenderSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); } /// @@ -6173,12 +6269,12 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action configureRequest) + public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action> configureRequest) { - var descriptor = new RenderSearchTemplateRequestDescriptor(); + var descriptor = new RenderSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); } /// @@ -6246,10 +6342,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(ActionAllows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -6258,21 +6354,21 @@ public virtual Task RenderSearchTemplateAsync public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); + var descriptor = new RenderSearchTemplateRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); + var descriptor = new RenderSearchTemplateRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -6281,21 +6377,21 @@ public virtual Task RenderSearchTemplateAsync public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(); + var descriptor = new RenderSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RenderSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(); + var descriptor = new RenderSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -6660,6 +6756,31 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); } + /// + /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) + { + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); + descriptor.BeforeRequest(); + return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); + } + + /// + /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest) + { + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); + } + /// /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. /// Learn more about this API in the Elasticsearch documentation. @@ -6729,6 +6850,29 @@ public virtual Task SearchMvtAsync(Elastic.Clients return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); } + /// + /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) + { + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); + descriptor.BeforeRequest(); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); + } + /// /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. /// Learn more about this API in the Elasticsearch documentation. @@ -6788,10 +6932,10 @@ public virtual Task SearchShardsAsync(SearchShardsRequest /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) + public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } /// @@ -6801,9 +6945,9 @@ public virtual SearchShardsResponse SearchShards(SearchShardsRequestD [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new SearchShardsRequestDescriptor(indices); + var descriptor = new SearchShardsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } /// @@ -6811,12 +6955,12 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elas /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new SearchShardsRequestDescriptor(indices); + var descriptor = new SearchShardsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } /// @@ -6826,9 +6970,9 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elas [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards() { - var descriptor = new SearchShardsRequestDescriptor(); + var descriptor = new SearchShardsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } /// @@ -6836,12 +6980,12 @@ public virtual SearchShardsResponse SearchShards() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(Action configureRequest) + public virtual SearchShardsResponse SearchShards(Action> configureRequest) { - var descriptor = new SearchShardsRequestDescriptor(); + var descriptor = new SearchShardsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } /// @@ -6909,10 +7053,10 @@ public virtual SearchShardsResponse SearchShards(ActionReturns information about the indices and shards that a search request would be executed against. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); } /// @@ -6921,21 +7065,21 @@ public virtual Task SearchShardsAsync(SearchSha /// public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new SearchShardsRequestDescriptor(indices); + var descriptor = new SearchShardsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about the indices and shards that a search request would be executed against. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SearchShardsRequestDescriptor(indices); + var descriptor = new SearchShardsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); } /// @@ -6944,21 +7088,21 @@ public virtual Task SearchShardsAsync(Elastic.C /// public virtual Task SearchShardsAsync(CancellationToken cancellationToken = default) { - var descriptor = new SearchShardsRequestDescriptor(); + var descriptor = new SearchShardsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); } /// /// Returns information about the indices and shards that a search request would be executed against. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SearchShardsAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SearchShardsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SearchShardsRequestDescriptor(); + var descriptor = new SearchShardsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); } /// @@ -7043,10 +7187,10 @@ public virtual Task> SearchTemplateAsyncLearn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequestDescriptor descriptor) + public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, SearchTemplateRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// @@ -7056,9 +7200,9 @@ public virtual SearchTemplateResponse SearchTemplate(Searc [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new SearchTemplateRequestDescriptor(indices); + var descriptor = new SearchTemplateRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest, SearchTemplateRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// @@ -7066,12 +7210,12 @@ public virtual SearchTemplateResponse SearchTemplate(Elast /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new SearchTemplateRequestDescriptor(indices); + var descriptor = new SearchTemplateRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, SearchTemplateRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// @@ -7081,9 +7225,9 @@ public virtual SearchTemplateResponse SearchTemplate(Elast [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate() { - var descriptor = new SearchTemplateRequestDescriptor(); + var descriptor = new SearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, SearchTemplateRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// @@ -7091,22 +7235,22 @@ public virtual SearchTemplateResponse SearchTemplate() /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate(Action configureRequest) + public virtual SearchTemplateResponse SearchTemplate(Action> configureRequest) { - var descriptor = new SearchTemplateRequestDescriptor(); + var descriptor = new SearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, SearchTemplateRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -7115,21 +7259,21 @@ public virtual Task> SearchTemplateAsync public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new SearchTemplateRequestDescriptor(indices); + var descriptor = new SearchTemplateRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SearchTemplateRequestDescriptor(indices); + var descriptor = new SearchTemplateRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -7138,21 +7282,21 @@ public virtual Task> SearchTemplateAsync public virtual Task> SearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new SearchTemplateRequestDescriptor(); + var descriptor = new SearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> SearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SearchTemplateRequestDescriptor(); + var descriptor = new SearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// @@ -7983,6 +8127,31 @@ public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.El return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); } + /// + /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateByQueryResponse UpdateByQuery() + { + var descriptor = new UpdateByQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); + } + + /// + /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateByQueryResponse UpdateByQuery(Action> configureRequest) + { + var descriptor = new UpdateByQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); + } + /// /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
/// Learn more about this API in the Elasticsearch documentation. @@ -8052,6 +8221,29 @@ public virtual Task UpdateByQueryAsync(Elastic return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); } + /// + /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task UpdateByQueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new UpdateByQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task UpdateByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateByQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); + } + /// /// Updates documents that match the specified query. If no query is specified,
performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
/// Learn more about this API in the Elasticsearch documentation.