Skip to content

Commit 1234954

Browse files
stevejgordonflobernd
authored andcommitted
Remove params overloads (for now)
1 parent b25055c commit 1234954

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs

-58
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,6 @@ public static CreateIndexRequestDescriptor WithAlias(this CreateIndexRequestDesc
3131
return descriptor;
3232
}
3333

34-
/// <summary>
35-
/// Add multiple aliases to the index at creation time.
36-
/// </summary>
37-
/// <param name="descriptor">A descriptor for an index request.</param>
38-
/// <param name="aliasNames">The names of the aliases.</param>
39-
/// <returns>The <see cref="CreateIndexRequestDescriptor"/> to allow fluent chaining of calls to configure the indexing request.</returns>
40-
public static CreateIndexRequestDescriptor WithAliases(this CreateIndexRequestDescriptor descriptor, params ReadOnlySpan<string> aliasNames)
41-
{
42-
foreach (var name in aliasNames)
43-
descriptor.Aliases(a => a.Add(name, static _ => { }));
44-
45-
return descriptor;
46-
}
47-
48-
/// <summary>
49-
/// Add multiple aliases to the index at creation time.
50-
/// </summary>
51-
/// <param name="descriptor">A descriptor for an index request.</param>
52-
/// <param name="aliasNames">The names of the aliases.</param>
53-
/// <returns>The <see cref="CreateIndexRequestDescriptor"/> to allow fluent chaining of calls to configure the indexing request.</returns>
54-
public static CreateIndexRequestDescriptor WithAliases(this CreateIndexRequestDescriptor descriptor, params string[] aliasNames)
55-
{
56-
foreach (var name in aliasNames)
57-
descriptor.Aliases(a => a.Add(name, static _ => { }));
58-
59-
return descriptor;
60-
}
61-
6234
/// <summary>
6335
/// Adds an alias to the index at creation time.
6436
/// </summary>
@@ -78,34 +50,4 @@ public static CreateIndexRequestDescriptor<TDocument> WithAlias<TDocument>(this
7850
descriptor.Aliases(a => a.Add(aliasName, static _ => { }));
7951
return descriptor;
8052
}
81-
82-
/// <summary>
83-
/// Add multiple aliases to the index at creation time.
84-
/// </summary>
85-
/// <typeparam name="TDocument">The type representing documents stored in this index.</typeparam>
86-
/// <param name="descriptor">A fluent descriptor for an index request.</param>
87-
/// <param name="aliasNames">The names of the aliases.</param>
88-
/// <returns>The <see cref="CreateIndexRequestDescriptor{TDocument}"/> to allow fluent chaining of calls to configure the indexing request.</returns>
89-
public static CreateIndexRequestDescriptor<TDocument> WithAliases<TDocument>(this CreateIndexRequestDescriptor<TDocument> descriptor, params ReadOnlySpan<string> aliasNames)
90-
{
91-
foreach (var name in aliasNames)
92-
descriptor.Aliases(a => a.Add(name, static _ => { }));
93-
94-
return descriptor;
95-
}
96-
97-
/// <summary>
98-
/// Add multiple aliases to the index at creation time.
99-
/// </summary>
100-
/// <typeparam name="TDocument">The type representing documents stored in this index.</typeparam>
101-
/// <param name="descriptor">A fluent descriptor for an index request.</param>
102-
/// <param name="aliasNames">The names of the aliases.</param>
103-
/// <returns>The <see cref="CreateIndexRequestDescriptor{TDocument}"/> to allow fluent chaining of calls to configure the indexing request.</returns>
104-
public static CreateIndexRequestDescriptor<TDocument> WithAliases<TDocument>(this CreateIndexRequestDescriptor<TDocument> descriptor, params string[] aliasNames)
105-
{
106-
foreach (var name in aliasNames)
107-
descriptor.Aliases(a => a.Add(name, static _ => { }));
108-
109-
return descriptor;
110-
}
11153
}

0 commit comments

Comments
 (0)