@@ -495,6 +495,34 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloneIndexRequestDescriptor
495
495
return this ;
496
496
}
497
497
498
+ /// <summary>
499
+ /// <para>
500
+ /// Aliases for the resulting index.
501
+ /// </para>
502
+ /// </summary>
503
+ public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor Aliases ( Elastic . Clients . Elasticsearch . IndexName key )
504
+ {
505
+ Instance . Aliases = new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > { { key , Elastic . Clients . Elasticsearch . IndexManagement . AliasDescriptor . Build ( null ) } } ;
506
+ return this ;
507
+ }
508
+
509
+ /// <summary>
510
+ /// <para>
511
+ /// Aliases for the resulting index.
512
+ /// </para>
513
+ /// </summary>
514
+ public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor Aliases ( params Elastic . Clients . Elasticsearch . IndexName [ ] keys )
515
+ {
516
+ var items = new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > ( ) ;
517
+ foreach ( var key in keys )
518
+ {
519
+ items . Add ( key , Elastic . Clients . Elasticsearch . IndexManagement . AliasDescriptor . Build ( null ) ) ;
520
+ }
521
+
522
+ Instance . Aliases = items ;
523
+ return this ;
524
+ }
525
+
498
526
public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor AddAlias ( Elastic . Clients . Elasticsearch . IndexName key )
499
527
{
500
528
Instance . Aliases ??= new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > ( ) ;
@@ -509,6 +537,34 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloneIndexRequestDescriptor
509
537
return this ;
510
538
}
511
539
540
+ /// <summary>
541
+ /// <para>
542
+ /// Aliases for the resulting index.
543
+ /// </para>
544
+ /// </summary>
545
+ public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor Aliases < T > ( Elastic . Clients . Elasticsearch . IndexName key )
546
+ {
547
+ Instance . Aliases = new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > { { key , Elastic . Clients . Elasticsearch . IndexManagement . AliasDescriptor < T > . Build ( null ) } } ;
548
+ return this ;
549
+ }
550
+
551
+ /// <summary>
552
+ /// <para>
553
+ /// Aliases for the resulting index.
554
+ /// </para>
555
+ /// </summary>
556
+ public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor Aliases < T > ( params Elastic . Clients . Elasticsearch . IndexName [ ] keys )
557
+ {
558
+ var items = new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > ( ) ;
559
+ foreach ( var key in keys )
560
+ {
561
+ items . Add ( key , Elastic . Clients . Elasticsearch . IndexManagement . AliasDescriptor < T > . Build ( null ) ) ;
562
+ }
563
+
564
+ Instance . Aliases = items ;
565
+ return this ;
566
+ }
567
+
512
568
public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor AddAlias < T > ( Elastic . Clients . Elasticsearch . IndexName key , System . Action < Elastic . Clients . Elasticsearch . IndexManagement . AliasDescriptor < T > > action )
513
569
{
514
570
Instance . Aliases ??= new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > ( ) ;
@@ -773,6 +829,34 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloneIndexRequestDescriptor
773
829
return this ;
774
830
}
775
831
832
+ /// <summary>
833
+ /// <para>
834
+ /// Aliases for the resulting index.
835
+ /// </para>
836
+ /// </summary>
837
+ public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor < TDocument > Aliases ( Elastic . Clients . Elasticsearch . IndexName key )
838
+ {
839
+ Instance . Aliases = new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > { { key , Elastic . Clients . Elasticsearch . IndexManagement . AliasDescriptor < TDocument > . Build ( null ) } } ;
840
+ return this ;
841
+ }
842
+
843
+ /// <summary>
844
+ /// <para>
845
+ /// Aliases for the resulting index.
846
+ /// </para>
847
+ /// </summary>
848
+ public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor < TDocument > Aliases ( params Elastic . Clients . Elasticsearch . IndexName [ ] keys )
849
+ {
850
+ var items = new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > ( ) ;
851
+ foreach ( var key in keys )
852
+ {
853
+ items . Add ( key , Elastic . Clients . Elasticsearch . IndexManagement . AliasDescriptor < TDocument > . Build ( null ) ) ;
854
+ }
855
+
856
+ Instance . Aliases = items ;
857
+ return this ;
858
+ }
859
+
776
860
public Elastic . Clients . Elasticsearch . IndexManagement . CloneIndexRequestDescriptor < TDocument > AddAlias ( Elastic . Clients . Elasticsearch . IndexName key )
777
861
{
778
862
Instance . Aliases ??= new System . Collections . Generic . Dictionary < Elastic . Clients . Elasticsearch . IndexName , Elastic . Clients . Elasticsearch . IndexManagement . Alias > ( ) ;
0 commit comments