From bc8b2ff02ea12c7745aae57d1776d04935bc87d4 Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Thu, 3 Oct 2024 09:14:20 +0100 Subject: [PATCH] Remove params overloads (for now) --- .../CreateIndexRequestDescriptorExtensions.cs | 58 ------------------- 1 file changed, 58 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs b/src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs index 113dfe31de..5b722d75ad 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs @@ -31,34 +31,6 @@ public static CreateIndexRequestDescriptor WithAlias(this CreateIndexRequestDesc return descriptor; } - /// - /// Add multiple aliases to the index at creation time. - /// - /// A descriptor for an index request. - /// The names of the aliases. - /// The to allow fluent chaining of calls to configure the indexing request. - public static CreateIndexRequestDescriptor WithAliases(this CreateIndexRequestDescriptor descriptor, params ReadOnlySpan aliasNames) - { - foreach (var name in aliasNames) - descriptor.Aliases(a => a.Add(name, static _ => { })); - - return descriptor; - } - - /// - /// Add multiple aliases to the index at creation time. - /// - /// A descriptor for an index request. - /// The names of the aliases. - /// The to allow fluent chaining of calls to configure the indexing request. - public static CreateIndexRequestDescriptor WithAliases(this CreateIndexRequestDescriptor descriptor, params string[] aliasNames) - { - foreach (var name in aliasNames) - descriptor.Aliases(a => a.Add(name, static _ => { })); - - return descriptor; - } - /// /// Adds an alias to the index at creation time. /// @@ -78,34 +50,4 @@ public static CreateIndexRequestDescriptor WithAlias(this descriptor.Aliases(a => a.Add(aliasName, static _ => { })); return descriptor; } - - /// - /// Add multiple aliases to the index at creation time. - /// - /// The type representing documents stored in this index. - /// A fluent descriptor for an index request. - /// The names of the aliases. - /// The to allow fluent chaining of calls to configure the indexing request. - public static CreateIndexRequestDescriptor WithAliases(this CreateIndexRequestDescriptor descriptor, params ReadOnlySpan aliasNames) - { - foreach (var name in aliasNames) - descriptor.Aliases(a => a.Add(name, static _ => { })); - - return descriptor; - } - - /// - /// Add multiple aliases to the index at creation time. - /// - /// The type representing documents stored in this index. - /// A fluent descriptor for an index request. - /// The names of the aliases. - /// The to allow fluent chaining of calls to configure the indexing request. - public static CreateIndexRequestDescriptor WithAliases(this CreateIndexRequestDescriptor descriptor, params string[] aliasNames) - { - foreach (var name in aliasNames) - descriptor.Aliases(a => a.Add(name, static _ => { })); - - return descriptor; - } }