Skip to content

Commit 29907cd

Browse files
committed
Improve fluent API generation
1 parent 519e0f2 commit 29907cd

File tree

667 files changed

+2516
-31058
lines changed

Some content is hidden

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

667 files changed

+2516
-31058
lines changed

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

+44-399
Large diffs are not rendered by default.

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,9 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor Source(Elastic.Client
801801
/// Indicates whether to return the <c>_source</c> field (<c>true</c> or <c>false</c>) or contains a list of fields to return.
802802
/// </para>
803803
/// </summary>
804-
public Elastic.Clients.Elasticsearch.BulkRequestDescriptor Source(System.Func<Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamBuilder, Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam> action)
804+
public Elastic.Clients.Elasticsearch.BulkRequestDescriptor Source(System.Func<Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamFactory, Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam> action)
805805
{
806-
Instance.Source = Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamBuilder.Build(action);
806+
Instance.Source = Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamFactory.Build(action);
807807
return this;
808808
}
809809

@@ -812,9 +812,9 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor Source(System.Func<El
812812
/// Indicates whether to return the <c>_source</c> field (<c>true</c> or <c>false</c>) or contains a list of fields to return.
813813
/// </para>
814814
/// </summary>
815-
public Elastic.Clients.Elasticsearch.BulkRequestDescriptor Source<T>(System.Func<Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamBuilder<T>, Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam> action)
815+
public Elastic.Clients.Elasticsearch.BulkRequestDescriptor Source<T>(System.Func<Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamFactory<T>, Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam> action)
816816
{
817-
Instance.Source = Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamBuilder<T>.Build(action);
817+
Instance.Source = Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamFactory<T>.Build(action);
818818
return this;
819819
}
820820

@@ -1276,9 +1276,9 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor<TDocument> Source(Ela
12761276
/// Indicates whether to return the <c>_source</c> field (<c>true</c> or <c>false</c>) or contains a list of fields to return.
12771277
/// </para>
12781278
/// </summary>
1279-
public Elastic.Clients.Elasticsearch.BulkRequestDescriptor<TDocument> Source(System.Func<Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamBuilder<TDocument>, Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam> action)
1279+
public Elastic.Clients.Elasticsearch.BulkRequestDescriptor<TDocument> Source(System.Func<Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamFactory<TDocument>, Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam> action)
12801280
{
1281-
Instance.Source = Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamBuilder<TDocument>.Build(action);
1281+
Instance.Source = Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParamFactory<TDocument>.Build(action);
12821282
return this;
12831283
}
12841284

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

-22
Original file line numberDiff line numberDiff line change
@@ -141,28 +141,6 @@ public Elastic.Clients.Elasticsearch.Cluster.ClusterInfoRequestDescriptor Target
141141
return this;
142142
}
143143

144-
/// <summary>
145-
/// <para>
146-
/// Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest.
147-
/// </para>
148-
/// </summary>
149-
public Elastic.Clients.Elasticsearch.Cluster.ClusterInfoRequestDescriptor Target()
150-
{
151-
Instance.Target = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfClusterInfoTarget.Build(null);
152-
return this;
153-
}
154-
155-
/// <summary>
156-
/// <para>
157-
/// Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest.
158-
/// </para>
159-
/// </summary>
160-
public Elastic.Clients.Elasticsearch.Cluster.ClusterInfoRequestDescriptor Target(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfClusterInfoTarget>? action)
161-
{
162-
Instance.Target = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfClusterInfoTarget.Build(action);
163-
return this;
164-
}
165-
166144
/// <summary>
167145
/// <para>
168146
/// Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest.

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

-44
Original file line numberDiff line numberDiff line change
@@ -328,28 +328,6 @@ public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor ExpandWildc
328328
return this;
329329
}
330330

331-
/// <summary>
332-
/// <para>
333-
/// Whether to expand wildcard expression to concrete indices that are open, closed or both.
334-
/// </para>
335-
/// </summary>
336-
public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor ExpandWildcards()
337-
{
338-
Instance.ExpandWildcards = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard.Build(null);
339-
return this;
340-
}
341-
342-
/// <summary>
343-
/// <para>
344-
/// Whether to expand wildcard expression to concrete indices that are open, closed or both.
345-
/// </para>
346-
/// </summary>
347-
public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor ExpandWildcards(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard>? action)
348-
{
349-
Instance.ExpandWildcards = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard.Build(action);
350-
return this;
351-
}
352-
353331
/// <summary>
354332
/// <para>
355333
/// Whether to expand wildcard expression to concrete indices that are open, closed or both.
@@ -590,28 +568,6 @@ public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor<TDocument>
590568
return this;
591569
}
592570

593-
/// <summary>
594-
/// <para>
595-
/// Whether to expand wildcard expression to concrete indices that are open, closed or both.
596-
/// </para>
597-
/// </summary>
598-
public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor<TDocument> ExpandWildcards()
599-
{
600-
Instance.ExpandWildcards = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard.Build(null);
601-
return this;
602-
}
603-
604-
/// <summary>
605-
/// <para>
606-
/// Whether to expand wildcard expression to concrete indices that are open, closed or both.
607-
/// </para>
608-
/// </summary>
609-
public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor<TDocument> ExpandWildcards(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard>? action)
610-
{
611-
Instance.ExpandWildcards = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard.Build(action);
612-
return this;
613-
}
614-
615571
/// <summary>
616572
/// <para>
617573
/// Whether to expand wildcard expression to concrete indices that are open, closed or both.

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
369369
/// </summary>
370370
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Meta()
371371
{
372-
Instance.Meta = Elastic.Clients.Elasticsearch.Fluent.FluentIDictionaryOfStringObject.Build(null);
372+
Instance.Meta = Elastic.Clients.Elasticsearch.Fluent.FluentDictionaryOfStringObject.Build(null);
373373
return this;
374374
}
375375

@@ -381,9 +381,9 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
381381
/// To unset <c>_meta</c>, replace the template without specifying this information.
382382
/// </para>
383383
/// </summary>
384-
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Meta(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentIDictionaryOfStringObject>? action)
384+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Meta(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentDictionaryOfStringObject>? action)
385385
{
386-
Instance.Meta = Elastic.Clients.Elasticsearch.Fluent.FluentIDictionaryOfStringObject.Build(action);
386+
Instance.Meta = Elastic.Clients.Elasticsearch.Fluent.FluentDictionaryOfStringObject.Build(action);
387387
return this;
388388
}
389389

@@ -632,7 +632,7 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
632632
/// </summary>
633633
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Meta()
634634
{
635-
Instance.Meta = Elastic.Clients.Elasticsearch.Fluent.FluentIDictionaryOfStringObject.Build(null);
635+
Instance.Meta = Elastic.Clients.Elasticsearch.Fluent.FluentDictionaryOfStringObject.Build(null);
636636
return this;
637637
}
638638

@@ -644,9 +644,9 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
644644
/// To unset <c>_meta</c>, replace the template without specifying this information.
645645
/// </para>
646646
/// </summary>
647-
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Meta(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentIDictionaryOfStringObject>? action)
647+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Meta(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentDictionaryOfStringObject>? action)
648648
{
649-
Instance.Meta = Elastic.Clients.Elasticsearch.Fluent.FluentIDictionaryOfStringObject.Build(action);
649+
Instance.Meta = Elastic.Clients.Elasticsearch.Fluent.FluentDictionaryOfStringObject.Build(action);
650650
return this;
651651
}
652652

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

-52
Original file line numberDiff line numberDiff line change
@@ -493,32 +493,6 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor ExpandWildcards(Syst
493493
return this;
494494
}
495495

496-
/// <summary>
497-
/// <para>
498-
/// The type of index that wildcard patterns can match.
499-
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
500-
/// It supports comma-separated values, such as <c>open,hidden</c>.
501-
/// </para>
502-
/// </summary>
503-
public Elastic.Clients.Elasticsearch.CountRequestDescriptor ExpandWildcards()
504-
{
505-
Instance.ExpandWildcards = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard.Build(null);
506-
return this;
507-
}
508-
509-
/// <summary>
510-
/// <para>
511-
/// The type of index that wildcard patterns can match.
512-
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
513-
/// It supports comma-separated values, such as <c>open,hidden</c>.
514-
/// </para>
515-
/// </summary>
516-
public Elastic.Clients.Elasticsearch.CountRequestDescriptor ExpandWildcards(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard>? action)
517-
{
518-
Instance.ExpandWildcards = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard.Build(action);
519-
return this;
520-
}
521-
522496
/// <summary>
523497
/// <para>
524498
/// The type of index that wildcard patterns can match.
@@ -851,32 +825,6 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor<TDocument> ExpandWil
851825
return this;
852826
}
853827

854-
/// <summary>
855-
/// <para>
856-
/// The type of index that wildcard patterns can match.
857-
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
858-
/// It supports comma-separated values, such as <c>open,hidden</c>.
859-
/// </para>
860-
/// </summary>
861-
public Elastic.Clients.Elasticsearch.CountRequestDescriptor<TDocument> ExpandWildcards()
862-
{
863-
Instance.ExpandWildcards = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard.Build(null);
864-
return this;
865-
}
866-
867-
/// <summary>
868-
/// <para>
869-
/// The type of index that wildcard patterns can match.
870-
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
871-
/// It supports comma-separated values, such as <c>open,hidden</c>.
872-
/// </para>
873-
/// </summary>
874-
public Elastic.Clients.Elasticsearch.CountRequestDescriptor<TDocument> ExpandWildcards(System.Action<Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard>? action)
875-
{
876-
Instance.ExpandWildcards = Elastic.Clients.Elasticsearch.Fluent.FluentICollectionOfExpandWildcard.Build(action);
877-
return this;
878-
}
879-
880828
/// <summary>
881829
/// <para>
882830
/// The type of index that wildcard patterns can match.

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

+12-12
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,9 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri
520520
/// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.
521521
/// </para>
522522
/// </summary>
523-
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor MaxReadRequestSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeBuilder, Elastic.Clients.Elasticsearch.ByteSize> action)
523+
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor MaxReadRequestSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeFactory, Elastic.Clients.Elasticsearch.ByteSize> action)
524524
{
525-
Instance.MaxReadRequestSize = Elastic.Clients.Elasticsearch.ByteSizeBuilder.Build(action);
525+
Instance.MaxReadRequestSize = Elastic.Clients.Elasticsearch.ByteSizeFactory.Build(action);
526526
return this;
527527
}
528528

@@ -568,9 +568,9 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri
568568
/// be deferred until the total bytes of queued operations goes below the limit.
569569
/// </para>
570570
/// </summary>
571-
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor MaxWriteBufferSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeBuilder, Elastic.Clients.Elasticsearch.ByteSize> action)
571+
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor MaxWriteBufferSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeFactory, Elastic.Clients.Elasticsearch.ByteSize> action)
572572
{
573-
Instance.MaxWriteBufferSize = Elastic.Clients.Elasticsearch.ByteSizeBuilder.Build(action);
573+
Instance.MaxWriteBufferSize = Elastic.Clients.Elasticsearch.ByteSizeFactory.Build(action);
574574
return this;
575575
}
576576

@@ -601,9 +601,9 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri
601601
/// The maximum total bytes of operations per bulk write request executed on the follower.
602602
/// </para>
603603
/// </summary>
604-
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor MaxWriteRequestSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeBuilder, Elastic.Clients.Elasticsearch.ByteSize> action)
604+
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor MaxWriteRequestSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeFactory, Elastic.Clients.Elasticsearch.ByteSize> action)
605605
{
606-
Instance.MaxWriteRequestSize = Elastic.Clients.Elasticsearch.ByteSizeBuilder.Build(action);
606+
Instance.MaxWriteRequestSize = Elastic.Clients.Elasticsearch.ByteSizeFactory.Build(action);
607607
return this;
608608
}
609609

@@ -867,9 +867,9 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri
867867
/// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.
868868
/// </para>
869869
/// </summary>
870-
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor<TDocument> MaxReadRequestSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeBuilder, Elastic.Clients.Elasticsearch.ByteSize> action)
870+
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor<TDocument> MaxReadRequestSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeFactory, Elastic.Clients.Elasticsearch.ByteSize> action)
871871
{
872-
Instance.MaxReadRequestSize = Elastic.Clients.Elasticsearch.ByteSizeBuilder.Build(action);
872+
Instance.MaxReadRequestSize = Elastic.Clients.Elasticsearch.ByteSizeFactory.Build(action);
873873
return this;
874874
}
875875

@@ -915,9 +915,9 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri
915915
/// be deferred until the total bytes of queued operations goes below the limit.
916916
/// </para>
917917
/// </summary>
918-
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor<TDocument> MaxWriteBufferSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeBuilder, Elastic.Clients.Elasticsearch.ByteSize> action)
918+
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor<TDocument> MaxWriteBufferSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeFactory, Elastic.Clients.Elasticsearch.ByteSize> action)
919919
{
920-
Instance.MaxWriteBufferSize = Elastic.Clients.Elasticsearch.ByteSizeBuilder.Build(action);
920+
Instance.MaxWriteBufferSize = Elastic.Clients.Elasticsearch.ByteSizeFactory.Build(action);
921921
return this;
922922
}
923923

@@ -948,9 +948,9 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri
948948
/// The maximum total bytes of operations per bulk write request executed on the follower.
949949
/// </para>
950950
/// </summary>
951-
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor<TDocument> MaxWriteRequestSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeBuilder, Elastic.Clients.Elasticsearch.ByteSize> action)
951+
public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor<TDocument> MaxWriteRequestSize(System.Func<Elastic.Clients.Elasticsearch.ByteSizeFactory, Elastic.Clients.Elasticsearch.ByteSize> action)
952952
{
953-
Instance.MaxWriteRequestSize = Elastic.Clients.Elasticsearch.ByteSizeBuilder.Build(action);
953+
Instance.MaxWriteRequestSize = Elastic.Clients.Elasticsearch.ByteSizeFactory.Build(action);
954954
return this;
955955
}
956956

0 commit comments

Comments
 (0)