diff --git a/build/NEST.7xUpgradeAssistant.nuspec b/build/NEST.7xUpgradeAssistant.nuspec deleted file mode 100644 index ceef6205de3..00000000000 --- a/build/NEST.7xUpgradeAssistant.nuspec +++ /dev/null @@ -1,35 +0,0 @@ - - - - NEST.7xUpgradeAssistant - $version$ - NEST 7.x - Upgrade Assistant - Elastic and contributors - Elastic - 2014-$year$ Elasticsearch BV - false - license.txt - https://github.com/elastic/elasticsearch-net - https://raw.githubusercontent.com/elastic/elasticsearch-net/master/build/nuget-icon.png - NEST 7.0 introduces API namespaces on the client. This package reintroduces removed methods on the client, with instructions on how to upgrade to using the new APIs - NEST 7.0 introduces API namespaces on the client. This package reintroduces removed methods on the client, with instructions on how to upgrade to using the new APIs - https://github.com/elastic/elasticsearch-net/releases/tag/$version$ - elasticsearch,elastic,search,lucene,nest - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/build/scripts/Projects.fs b/build/scripts/Projects.fs index 25966f0a34a..7b41a27b3c0 100644 --- a/build/scripts/Projects.fs +++ b/build/scripts/Projects.fs @@ -20,7 +20,6 @@ module Projects = | Nest | ElasticsearchNet | NestJsonNetSerializer - | NestUpgradeAssistant type PrivateProject = | Tests @@ -40,7 +39,6 @@ module Projects = Project Project.ElasticsearchNet; Project Project.Nest; Project Project.NestJsonNetSerializer; - Project Project.NestUpgradeAssistant; PrivateProject PrivateProject.Tests ] @@ -49,7 +47,6 @@ module Projects = Project Project.ElasticsearchNet; Project Project.Nest; Project Project.NestJsonNetSerializer; - Project Project.NestUpgradeAssistant; ] static member Tests = seq [PrivateProject PrivateProject.Tests] @@ -70,7 +67,6 @@ module Projects = | Project Nest -> "Nest" | Project ElasticsearchNet -> "Elasticsearch.Net" | Project NestJsonNetSerializer -> "Nest.JsonNetSerializer" - | Project NestUpgradeAssistant -> "Nest.7xUpgradeAssistant" | PrivateProject Tests -> "Tests" | PrivateProject DocGenerator -> "DocGenerator" | PrivateProject ApiGenerator -> "ApiGenerator" @@ -80,7 +76,6 @@ module Projects = match this with | Project Nest -> "NEST" | Project NestJsonNetSerializer -> "NEST.JsonNetSerializer" - | Project NestUpgradeAssistant -> "NEST.7xUpgradeAssistant" | _ -> this.Name member this.NeedsMerge = match this with | Project NestJsonNetSerializer -> false | _ -> true diff --git a/build/scripts/Releasing.fs b/build/scripts/Releasing.fs index e874d8da766..2a674513925 100644 --- a/build/scripts/Releasing.fs +++ b/build/scripts/Releasing.fs @@ -107,7 +107,6 @@ module Release = | Project ElasticsearchNet -> rewriteDllFile p.Name ignore() - | Project NestUpgradeAssistant | Project NestJsonNetSerializer -> let nestDeps = doc.XPathSelectElements("/x:package/x:metadata//x:dependency[@id='NEST']", nsManager); nestDeps |> Seq.iter (fun e -> @@ -144,9 +143,6 @@ module Release = let private nugetPackVersioned (p:DotNetProject) nugetId nuspec properties version = match p with - | Project NestUpgradeAssistant -> - printfn "Skipping %s from building a versioned nightly" p.Name - ignore() | _ -> nugetPackVersionedUnfiltered p nugetId nuspec properties version let NugetPack (ArtifactsVersion(version)) = packProjects version nugetPackMain diff --git a/src/Elasticsearch.sln b/src/Elasticsearch.sln index 50c73db08ab..1ffe55d3759 100644 --- a/src/Elasticsearch.sln +++ b/src/Elasticsearch.sln @@ -65,7 +65,6 @@ ProjectSection(SolutionItems) = preProject ..\build\NEST.nuspec = ..\build\NEST.nuspec ..\NuGet.config = ..\NuGet.config ..\build\Elasticsearch.Net.nuspec = ..\build\Elasticsearch.Net.nuspec - ..\build\NEST.7xUpgradeAssistant.nuspec = ..\build\NEST.7xUpgradeAssistant.nuspec EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Markdown", "Markdown", "{2FABB663-F4DB-499A-89F8-3A08828D1D91}" @@ -75,8 +74,6 @@ ProjectSection(SolutionItems) = preProject ..\readme.md = ..\readme.md EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nest.7xUpgradeAssistant", "Nest.7xUpgradeAssistant\Nest.7xUpgradeAssistant.csproj", "{B8B8C45A-22D3-4D1E-9A3A-C030997D5BF7}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -161,9 +158,5 @@ Global {D6997ADC-E933-418E-831C-DE1A78897493}.Release|Any CPU.ActiveCfg = Release|Any CPU {D6997ADC-E933-418E-831C-DE1A78897493}.Debug|Any CPU.Build.0 = Debug|Any CPU {D6997ADC-E933-418E-831C-DE1A78897493}.Release|Any CPU.Build.0 = Release|Any CPU - {B8B8C45A-22D3-4D1E-9A3A-C030997D5BF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B8B8C45A-22D3-4D1E-9A3A-C030997D5BF7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B8B8C45A-22D3-4D1E-9A3A-C030997D5BF7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B8B8C45A-22D3-4D1E-9A3A-C030997D5BF7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-AcknowledgeWatch.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-AcknowledgeWatch.cs deleted file mode 100644 index 1dd408a3479..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-AcknowledgeWatch.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Acknowledge(), please update this usage.")] - public static AcknowledgeWatchResponse AcknowledgeWatch(this IElasticClient client, Id id, - Func selector = null - ) - => client.Watcher.Acknowledge(id, selector); - - [Obsolete("Moved to client.Watcher.Acknowledge(), please update this usage.")] - public static AcknowledgeWatchResponse AcknowledgeWatch(this IElasticClient client, IAcknowledgeWatchRequest request) - => client.Watcher.Acknowledge(request); - - [Obsolete("Moved to client.Watcher.AcknowledgeAsync(), please update this usage.")] - public static Task AcknowledgeWatchAsync(this IElasticClient client, Id id, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.AcknowledgeAsync(id, selector, ct); - - [Obsolete("Moved to client.Watcher.AcknowledgeAsync(), please update this usage.")] - public static Task AcknowledgeWatchAsync(this IElasticClient client, IAcknowledgeWatchRequest request, - CancellationToken ct = default - ) - => client.Watcher.AcknowledgeAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ActivateWatch.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ActivateWatch.cs deleted file mode 100644 index 9837954a91e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ActivateWatch.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Activate(), please update this usage.")] - public static ActivateWatchResponse ActivateWatch(this IElasticClient client, Id id, - Func selector = null - ) - => client.Watcher.Activate(id, selector); - - [Obsolete("Moved to client.Watcher.Activate(), please update this usage.")] - public static ActivateWatchResponse ActivateWatch(this IElasticClient client, IActivateWatchRequest request) - => client.Watcher.Activate(request); - - [Obsolete("Moved to client.Watcher.ActivateAsync(), please update this usage.")] - public static Task ActivateWatchAsync(this IElasticClient client, Id id, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.ActivateAsync(id, selector, ct); - - [Obsolete("Moved to client.Watcher.ActivateAsync(), please update this usage.")] - public static Task ActivateWatchAsync(this IElasticClient client, IActivateWatchRequest request, - CancellationToken ct = default - ) - => client.Watcher.ActivateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-Alias.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-Alias.cs deleted file mode 100644 index 13a56398101..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-Alias.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.BulkAlias(), please update this usage.")] - public static BulkAliasResponse Alias(this IElasticClient client, Func selector) - => client.Indices.BulkAlias(selector); - - [Obsolete("Moved to client.Indices.BulkAlias(), please update this usage.")] - public static BulkAliasResponse Alias(this IElasticClient client, IBulkAliasRequest request) - => client.Indices.BulkAlias(request); - - [Obsolete("Moved to client.Indices.BulkAliasAsync(), please update this usage.")] - public static Task AliasAsync(this IElasticClient client, Func selector, - CancellationToken ct = default - ) - => client.Indices.BulkAliasAsync(selector, ct); - - [Obsolete("Moved to client.Indices.BulkAliasAsync(), please update this usage.")] - public static Task AliasAsync(this IElasticClient client, IBulkAliasRequest request, CancellationToken ct = default) - => client.Indices.BulkAliasAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-AliasExists.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-AliasExists.cs deleted file mode 100644 index a205b05f88d..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-AliasExists.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using AliasExistConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.AliasExists(), please update this usage.")] - public static ExistsResponse AliasExists(this IElasticClient client, Names name, - Func selector = null - ) - => client.Indices.AliasExists(name, selector); - - [Obsolete("Moved to client.Indices.AliasExists(), please update this usage.")] - public static ExistsResponse AliasExists(this IElasticClient client, IAliasExistsRequest request) - => client.Indices.AliasExists(request); - - [Obsolete("Moved to client.Indices.AliasExistsAsync(), please update this usage.")] - public static Task AliasExistsAsync(this IElasticClient client, Names name, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.AliasExistsAsync(name, selector, ct); - - [Obsolete("Moved to client.Indices.AliasExistsAsync(), please update this usage.")] - public static Task AliasExistsAsync(this IElasticClient client, IAliasExistsRequest request, CancellationToken ct = default) - => client.Indices.AliasExistsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-Analyze.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-Analyze.cs deleted file mode 100644 index 6b92460b21e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-Analyze.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Analyze(), please update this usage.")] - public static AnalyzeResponse Analyze(this IElasticClient client, Func selector) - => client.Indices.Analyze(selector); - - [Obsolete("Moved to client.Indices.Analyze(), please update this usage.")] - public static AnalyzeResponse Analyze(this IElasticClient client, IAnalyzeRequest request) - => client.Indices.Analyze(request); - - [Obsolete("Moved to client.Indices.AnalyzeAsync(), please update this usage.")] - public static Task AnalyzeAsync(this IElasticClient client, Func selector, - CancellationToken ct = default - ) - => client.Indices.AnalyzeAsync(selector, ct); - - [Obsolete("Moved to client.Indices.AnalyzeAsync(), please update this usage.")] - public static Task AnalyzeAsync(this IElasticClient client, IAnalyzeRequest request, CancellationToken ct = default) - => client.Indices.AnalyzeAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-Authenticate.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-Authenticate.cs deleted file mode 100644 index 0699d5def44..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-Authenticate.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.Authenticate(), please update this usage.")] - public static AuthenticateResponse Authenticate(this IElasticClient client, Func selector = null - ) - => client.Security.Authenticate(selector); - - [Obsolete("Moved to client.Security.Authenticate(), please update this usage.")] - public static AuthenticateResponse Authenticate(this IElasticClient client, IAuthenticateRequest request) - => client.Security.Authenticate(request); - - [Obsolete("Moved to client.Security.AuthenticateAsync(), please update this usage.")] - public static Task AuthenticateAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.AuthenticateAsync(selector, ct); - - [Obsolete("Moved to client.Security.AuthenticateAsync(), please update this usage.")] - public static Task AuthenticateAsync(this IElasticClient client, IAuthenticateRequest request, - CancellationToken ct = default - ) - => client.Security.AuthenticateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CancelTasks.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CancelTasks.cs deleted file mode 100644 index 26881b86944..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CancelTasks.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Tasks.Cancel(), please update this usage.")] - public static CancelTasksResponse CancelTasks(this IElasticClient client, Func selector = null) - => client.Tasks.Cancel(selector); - - [Obsolete("Moved to client.Tasks.Cancel(), please update this usage.")] - public static CancelTasksResponse CancelTasks(this IElasticClient client, ICancelTasksRequest request) - => client.Tasks.Cancel(request); - - [Obsolete("Moved to client.Tasks.CancelAsync(), please update this usage.")] - public static Task CancelTasksAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Tasks.CancelAsync(selector, ct); - - [Obsolete("Moved to client.Tasks.CancelAsync(), please update this usage.")] - public static Task CancelTasksAsync(this IElasticClient client, ICancelTasksRequest request, - CancellationToken ct = default - ) - => client.Tasks.CancelAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatAliases.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatAliases.cs deleted file mode 100644 index f7930a064c1..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatAliases.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Aliases(), please update this usage.")] - public static CatResponse CatAliases(this IElasticClient client, - Func selector = null - ) - => client.Cat.Aliases(selector); - - [Obsolete("Moved to client.Cat.Aliases(), please update this usage.")] - public static CatResponse CatAliases(this IElasticClient client, ICatAliasesRequest request) - => client.Cat.Aliases(request); - - [Obsolete("Moved to client.Cat.AliasesAsync(), please update this usage.")] - public static Task> CatAliasesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.AliasesAsync(selector, ct); - - [Obsolete("Moved to client.Cat.AliasesAsync(), please update this usage.")] - public static Task> CatAliasesAsync(this IElasticClient client, ICatAliasesRequest request, - CancellationToken ct = default - ) - => client.Cat.AliasesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatAllocation.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatAllocation.cs deleted file mode 100644 index 0c9bcd6486a..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatAllocation.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Allocation(), please update this usage.")] - public static CatResponse CatAllocation(this IElasticClient client, - Func selector = null - ) - => client.Cat.Allocation(selector); - - [Obsolete("Moved to client.Cat.Allocation(), please update this usage.")] - public static CatResponse CatAllocation(this IElasticClient client, ICatAllocationRequest request) - => client.Cat.Allocation(request); - - [Obsolete("Moved to client.Cat.AllocationAsync(), please update this usage.")] - public static Task> CatAllocationAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.AllocationAsync(selector, ct); - - [Obsolete("Moved to client.Cat.AllocationAsync(), please update this usage.")] - public static Task> CatAllocationAsync(this IElasticClient client, ICatAllocationRequest request, - CancellationToken ct = default - ) - => client.Cat.AllocationAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatCount.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatCount.cs deleted file mode 100644 index 48db376af5e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatCount.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Count(), please update this usage.")] - public static CatResponse CatCount(this IElasticClient client, Func selector = null) - => client.Cat.Count(selector); - - [Obsolete("Moved to client.Cat.Count(), please update this usage.")] - public static CatResponse CatCount(this IElasticClient client, ICatCountRequest request) - => client.Cat.Count(request); - - [Obsolete("Moved to client.Cat.CountAsync(), please update this usage.")] - public static Task> CatCountAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.CountAsync(selector, ct); - - [Obsolete("Moved to client.Cat.CountAsync(), please update this usage.")] - public static Task> CatCountAsync(this IElasticClient client, ICatCountRequest request, - CancellationToken ct = default - ) - => client.Cat.CountAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatFielddata.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatFielddata.cs deleted file mode 100644 index 8b93a4a6f3c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatFielddata.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Fielddata(), please update this usage.")] - public static CatResponse CatFielddata(this IElasticClient client, - Func selector = null - ) - => client.Cat.Fielddata(selector); - - [Obsolete("Moved to client.Cat.Fielddata(), please update this usage.")] - public static CatResponse CatFielddata(this IElasticClient client, ICatFielddataRequest request) - => client.Cat.Fielddata(request); - - [Obsolete("Moved to client.Cat.FielddataAsync(), please update this usage.")] - public static Task> CatFielddataAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.FielddataAsync(selector, ct); - - [Obsolete("Moved to client.Cat.FielddataAsync(), please update this usage.")] - public static Task> CatFielddataAsync(this IElasticClient client, ICatFielddataRequest request, - CancellationToken ct = default - ) - => client.Cat.FielddataAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatHealth.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatHealth.cs deleted file mode 100644 index f08ba4f941c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatHealth.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Health(), please update this usage.")] - public static CatResponse CatHealth(this IElasticClient client, Func selector = null) - => client.Cat.Health(selector); - - [Obsolete("Moved to client.Cat.Health(), please update this usage.")] - public static CatResponse CatHealth(this IElasticClient client, ICatHealthRequest request) - => client.Cat.Health(request); - - [Obsolete("Moved to client.Cat.HealthAsync(), please update this usage.")] - public static Task> CatHealthAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.HealthAsync(selector, ct); - - [Obsolete("Moved to client.Cat.HealthAsync(), please update this usage.")] - public static Task> CatHealthAsync(this IElasticClient client, ICatHealthRequest request, - CancellationToken ct = default - ) - => client.Cat.HealthAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatHelp.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatHelp.cs deleted file mode 100644 index 2a555276de6..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatHelp.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Help(), please update this usage.")] - public static CatResponse CatHelp(this IElasticClient client, Func selector = null) - => client.Cat.Help(selector); - - [Obsolete("Moved to client.Cat.Help(), please update this usage.")] - public static CatResponse CatHelp(this IElasticClient client, ICatHelpRequest request) - => client.Cat.Help(request); - - [Obsolete("Moved to client.Cat.HelpAsync(), please update this usage.")] - public static Task> CatHelpAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.HelpAsync(selector, ct); - - [Obsolete("Moved to client.Cat.HelpAsync(), please update this usage.")] - public static Task> CatHelpAsync(this IElasticClient client, ICatHelpRequest request, - CancellationToken ct = default - ) - => client.Cat.HelpAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatIndices.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatIndices.cs deleted file mode 100644 index 4b69ff84430..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatIndices.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Indices(), please update this usage.")] - public static CatResponse CatIndices(this IElasticClient client, - Func selector = null - ) - => client.Cat.Indices(selector); - - [Obsolete("Moved to client.Cat.Indices(), please update this usage.")] - public static CatResponse CatIndices(this IElasticClient client, ICatIndicesRequest request) - => client.Cat.Indices(request); - - [Obsolete("Moved to client.Cat.IndicesAsync(), please update this usage.")] - public static Task> CatIndicesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.IndicesAsync(selector, ct); - - [Obsolete("Moved to client.Cat.IndicesAsync(), please update this usage.")] - public static Task> CatIndicesAsync(this IElasticClient client, ICatIndicesRequest request, - CancellationToken ct = default - ) - => client.Cat.IndicesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatMaster.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatMaster.cs deleted file mode 100644 index fddb569a9fa..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatMaster.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Master(), please update this usage.")] - public static CatResponse CatMaster(this IElasticClient client, Func selector = null) - => client.Cat.Master(selector); - - [Obsolete("Moved to client.Cat.Master(), please update this usage.")] - public static CatResponse CatMaster(this IElasticClient client, ICatMasterRequest request) - => client.Cat.Master(request); - - [Obsolete("Moved to client.Cat.MasterAsync(), please update this usage.")] - public static Task> CatMasterAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.MasterAsync(selector, ct); - - [Obsolete("Moved to client.Cat.MasterAsync(), please update this usage.")] - public static Task> CatMasterAsync(this IElasticClient client, ICatMasterRequest request, - CancellationToken ct = default - ) - => client.Cat.MasterAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatNodeAttributes.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatNodeAttributes.cs deleted file mode 100644 index 22b8d50b86b..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatNodeAttributes.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.NodeAttributes(), please update this usage.")] - public static CatResponse CatNodeAttributes(this IElasticClient client, - Func selector = null - ) - => client.Cat.NodeAttributes(selector); - - [Obsolete("Moved to client.Cat.NodeAttributes(), please update this usage.")] - public static CatResponse CatNodeAttributes(this IElasticClient client, ICatNodeAttributesRequest request) - => client.Cat.NodeAttributes(request); - - [Obsolete("Moved to client.Cat.NodeAttributesAsync(), please update this usage.")] - public static Task> CatNodeAttributesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.NodeAttributesAsync(selector, ct); - - [Obsolete("Moved to client.Cat.NodeAttributesAsync(), please update this usage.")] - public static Task> CatNodeAttributesAsync(this IElasticClient client, ICatNodeAttributesRequest request, - CancellationToken ct = default - ) - => client.Cat.NodeAttributesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatNodes.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatNodes.cs deleted file mode 100644 index 8ea2e92608f..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatNodes.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Nodes(), please update this usage.")] - public static CatResponse CatNodes(this IElasticClient client, Func selector = null) - => client.Cat.Nodes(selector); - - [Obsolete("Moved to client.Cat.Nodes(), please update this usage.")] - public static CatResponse CatNodes(this IElasticClient client, ICatNodesRequest request) - => client.Cat.Nodes(request); - - [Obsolete("Moved to client.Cat.NodesAsync(), please update this usage.")] - public static Task> CatNodesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.NodesAsync(selector, ct); - - [Obsolete("Moved to client.Cat.NodesAsync(), please update this usage.")] - public static Task> CatNodesAsync(this IElasticClient client, ICatNodesRequest request, - CancellationToken ct = default - ) - => client.Cat.NodesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatPendingTasks.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatPendingTasks.cs deleted file mode 100644 index d0b4a580af6..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatPendingTasks.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.PendingTasks(), please update this usage.")] - public static CatResponse CatPendingTasks(this IElasticClient client, - Func selector = null - ) - => client.Cat.PendingTasks(selector); - - [Obsolete("Moved to client.Cat.PendingTasks(), please update this usage.")] - public static CatResponse CatPendingTasks(this IElasticClient client, ICatPendingTasksRequest request) - => client.Cat.PendingTasks(request); - - [Obsolete("Moved to client.Cat.PendingTasksAsync(), please update this usage.")] - public static Task> CatPendingTasksAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.PendingTasksAsync(selector, ct); - - [Obsolete("Moved to client.Cat.PendingTasksAsync(), please update this usage.")] - public static Task> CatPendingTasksAsync(this IElasticClient client, ICatPendingTasksRequest request, - CancellationToken ct = default - ) - => client.Cat.PendingTasksAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatPlugins.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatPlugins.cs deleted file mode 100644 index 048c23d6206..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatPlugins.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Plugins(), please update this usage.")] - public static CatResponse CatPlugins(this IElasticClient client, - Func selector = null - ) - => client.Cat.Plugins(selector); - - [Obsolete("Moved to client.Cat.Plugins(), please update this usage.")] - public static CatResponse CatPlugins(this IElasticClient client, ICatPluginsRequest request) - => client.Cat.Plugins(request); - - [Obsolete("Moved to client.Cat.PluginsAsync(), please update this usage.")] - public static Task> CatPluginsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.PluginsAsync(selector, ct); - - [Obsolete("Moved to client.Cat.PluginsAsync(), please update this usage.")] - public static Task> CatPluginsAsync(this IElasticClient client, ICatPluginsRequest request, - CancellationToken ct = default - ) - => client.Cat.PluginsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatRecovery.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatRecovery.cs deleted file mode 100644 index 04b9717b4aa..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatRecovery.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Recovery(), please update this usage.")] - public static CatResponse CatRecovery(this IElasticClient client, - Func selector = null - ) - => client.Cat.Recovery(selector); - - [Obsolete("Moved to client.Cat.Recovery(), please update this usage.")] - public static CatResponse CatRecovery(this IElasticClient client, ICatRecoveryRequest request) - => client.Cat.Recovery(request); - - [Obsolete("Moved to client.Cat.RecoveryAsync(), please update this usage.")] - public static Task> CatRecoveryAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.RecoveryAsync(selector, ct); - - [Obsolete("Moved to client.Cat.RecoveryAsync(), please update this usage.")] - public static Task> CatRecoveryAsync(this IElasticClient client, ICatRecoveryRequest request, - CancellationToken ct = default - ) - => client.Cat.RecoveryAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatRepositories.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatRepositories.cs deleted file mode 100644 index 10607dfe1f0..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatRepositories.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Repositories(), please update this usage.")] - public static CatResponse CatRepositories(this IElasticClient client, - Func selector = null - ) - => client.Cat.Repositories(selector); - - [Obsolete("Moved to client.Cat.Repositories(), please update this usage.")] - public static CatResponse CatRepositories(this IElasticClient client, ICatRepositoriesRequest request) - => client.Cat.Repositories(request); - - [Obsolete("Moved to client.Cat.RepositoriesAsync(), please update this usage.")] - public static Task> CatRepositoriesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.RepositoriesAsync(selector, ct); - - [Obsolete("Moved to client.Cat.RepositoriesAsync(), please update this usage.")] - public static Task> CatRepositoriesAsync(this IElasticClient client, ICatRepositoriesRequest request, - CancellationToken ct = default - ) - => client.Cat.RepositoriesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatSegments.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatSegments.cs deleted file mode 100644 index 2cf4f2faf8a..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatSegments.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Segments(), please update this usage.")] - public static CatResponse CatSegments(this IElasticClient client, - Func selector = null - ) - => client.Cat.Segments(selector); - - [Obsolete("Moved to client.Cat.Segments(), please update this usage.")] - public static CatResponse CatSegments(this IElasticClient client, ICatSegmentsRequest request) - => client.Cat.Segments(request); - - [Obsolete("Moved to client.Cat.SegmentsAsync(), please update this usage.")] - public static Task> CatSegmentsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.SegmentsAsync(selector, ct); - - [Obsolete("Moved to client.Cat.SegmentsAsync(), please update this usage.")] - public static Task> CatSegmentsAsync(this IElasticClient client, ICatSegmentsRequest request, - CancellationToken ct = default - ) - => client.Cat.SegmentsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatShards.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatShards.cs deleted file mode 100644 index b8d9f123d6c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatShards.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Shards(), please update this usage.")] - public static CatResponse CatShards(this IElasticClient client, Func selector = null) - => client.Cat.Shards(selector); - - [Obsolete("Moved to client.Cat.Shards(), please update this usage.")] - public static CatResponse CatShards(this IElasticClient client, ICatShardsRequest request) - => client.Cat.Shards(request); - - [Obsolete("Moved to client.Cat.ShardsAsync(), please update this usage.")] - public static Task> CatShardsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.ShardsAsync(selector, ct); - - [Obsolete("Moved to client.Cat.ShardsAsync(), please update this usage.")] - public static Task> CatShardsAsync(this IElasticClient client, ICatShardsRequest request, - CancellationToken ct = default - ) - => client.Cat.ShardsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatSnapshots.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatSnapshots.cs deleted file mode 100644 index 30bb79f6efa..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatSnapshots.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Snapshots(), please update this usage.")] - public static CatResponse CatSnapshots(this IElasticClient client, Names repositories, - Func selector = null - ) - => client.Cat.Snapshots(selector); - - [Obsolete("Moved to client.Cat.Snapshots(), please update this usage.")] - public static CatResponse CatSnapshots(this IElasticClient client, ICatSnapshotsRequest request) - => client.Cat.Snapshots(request); - - [Obsolete("Moved to client.Cat.SnapshotsAsync(), please update this usage.")] - public static Task> CatSnapshotsAsync(this IElasticClient client, - Names repositories, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.SnapshotsAsync(selector, ct); - - [Obsolete("Moved to client.Cat.SnapshotsAsync(), please update this usage.")] - public static Task> CatSnapshotsAsync(this IElasticClient client, ICatSnapshotsRequest request, - CancellationToken ct = default - ) - => client.Cat.SnapshotsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatTasks.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatTasks.cs deleted file mode 100644 index 021ca0397d7..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatTasks.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Tasks(), please update this usage.")] - public static CatResponse CatTasks(this IElasticClient client, Func selector = null) - => client.Cat.Tasks(selector); - - [Obsolete("Moved to client.Cat.Tasks(), please update this usage.")] - public static CatResponse CatTasks(this IElasticClient client, ICatTasksRequest request) - => client.Cat.Tasks(request); - - [Obsolete("Moved to client.Cat.TasksAsync(), please update this usage.")] - public static Task> CatTasksAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.TasksAsync(selector, ct); - - [Obsolete("Moved to client.Cat.TasksAsync(), please update this usage.")] - public static Task> CatTasksAsync(this IElasticClient client, ICatTasksRequest request, - CancellationToken ct = default - ) - => client.Cat.TasksAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatTemplates.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatTemplates.cs deleted file mode 100644 index 071658b1f52..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatTemplates.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.Templates(), please update this usage.")] - public static CatResponse CatTemplates(this IElasticClient client, - Func selector = null - ) - => client.Cat.Templates(selector); - - [Obsolete("Moved to client.Cat.Templates(), please update this usage.")] - public static CatResponse CatTemplates(this IElasticClient client, ICatTemplatesRequest request) - => client.Cat.Templates(request); - - [Obsolete("Moved to client.Cat.TemplatesAsync(), please update this usage.")] - public static Task> CatTemplatesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.TemplatesAsync(selector, ct); - - [Obsolete("Moved to client.Cat.TemplatesAsync(), please update this usage.")] - public static Task> CatTemplatesAsync(this IElasticClient client, ICatTemplatesRequest request, - CancellationToken ct = default - ) - => client.Cat.TemplatesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CatThreadpool.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CatThreadpool.cs deleted file mode 100644 index 893c2e4cf8a..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CatThreadpool.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cat.ThreadPool(), please update this usage.")] - public static CatResponse CatThreadPool(this IElasticClient client, - Func selector = null - ) - => client.Cat.ThreadPool(selector); - - [Obsolete("Moved to client.Cat.ThreadPool(), please update this usage.")] - public static CatResponse CatThreadPool(this IElasticClient client, ICatThreadPoolRequest request) - => client.Cat.ThreadPool(request); - - [Obsolete("Moved to client.Cat.ThreadPoolAsync(), please update this usage.")] - public static Task> CatThreadPoolAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cat.ThreadPoolAsync(selector, ct); - - [Obsolete("Moved to client.Cat.ThreadPoolAsync(), please update this usage.")] - public static Task> CatThreadPoolAsync(this IElasticClient client, ICatThreadPoolRequest request, - CancellationToken ct = default - ) - => client.Cat.ThreadPoolAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CcrStats.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CcrStats.cs deleted file mode 100644 index abf4a222212..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CcrStats.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.Stats(), please update this usage.")] - public static CcrStatsResponse CcrStats(this IElasticClient client, Func selector = null) - => client.CrossClusterReplication.Stats(selector); - - [Obsolete("Moved to client.CrossClusterReplication.Stats(), please update this usage.")] - public static CcrStatsResponse CcrStats(this IElasticClient client, ICcrStatsRequest request) - => client.CrossClusterReplication.Stats(request); - - [Obsolete("Moved to client.CrossClusterReplication.StatsAsync(), please update this usage.")] - public static Task CcrStatsAsync(this IElasticClient client, Func selector = null, - CancellationToken ct = default - ) - => client.CrossClusterReplication.StatsAsync(selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.StatsAsync(), please update this usage.")] - public static Task CcrStatsAsync(this IElasticClient client, ICcrStatsRequest request, CancellationToken ct = default) - => client.CrossClusterReplication.StatsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ChangePassword.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ChangePassword.cs deleted file mode 100644 index 0e6868bd8ad..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ChangePassword.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.ChangePassword(), please update this usage.")] - public static ChangePasswordResponse ChangePassword(this IElasticClient client, - Func selector - ) - => client.Security.ChangePassword(selector); - - [Obsolete("Moved to client.Security.ChangePassword(), please update this usage.")] - public static ChangePasswordResponse ChangePassword(this IElasticClient client, IChangePasswordRequest request) - => client.Security.ChangePassword(request); - - [Obsolete("Moved to client.Security.ChangePasswordAsync(), please update this usage.")] - public static Task ChangePasswordAsync(this IElasticClient client, - Func selector, - CancellationToken ct = default - ) - => client.Security.ChangePasswordAsync(selector, ct); - - [Obsolete("Moved to client.Security.ChangePasswordAsync(), please update this usage.")] - public static Task ChangePasswordAsync(this IElasticClient client, IChangePasswordRequest request, - CancellationToken ct = default - ) - => client.Security.ChangePasswordAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCache.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCache.cs deleted file mode 100644 index 1c674505d79..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCache.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.ClearCache(), please update this usage.")] - public static ClearCacheResponse ClearCache(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.ClearCache(indices, selector); - - [Obsolete("Moved to client.Indices.ClearCache(), please update this usage.")] - public static ClearCacheResponse ClearCache(this IElasticClient client, IClearCacheRequest request) - => client.Indices.ClearCache(request); - - [Obsolete("Moved to client.Indices.ClearCacheAsync(), please update this usage.")] - public static Task ClearCacheAsync(this IElasticClient client, - Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.ClearCacheAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.ClearCacheAsync(), please update this usage.")] - public static Task ClearCacheAsync(this IElasticClient client, IClearCacheRequest request, CancellationToken ct = default) - => client.Indices.ClearCacheAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCachedRealms.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCachedRealms.cs deleted file mode 100644 index 635c507cca1..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCachedRealms.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.ClearCachedRealms(), please update this usage.")] - public static ClearCachedRealmsResponse ClearCachedRealms(this IElasticClient client, Names realms, - Func selector = null - ) - => client.Security.ClearCachedRealms(realms, selector); - - [Obsolete("Moved to client.Security.ClearCachedRealms(), please update this usage.")] - public static ClearCachedRealmsResponse ClearCachedRealms(this IElasticClient client, IClearCachedRealmsRequest request) - => client.Security.ClearCachedRealms(request); - - [Obsolete("Moved to client.Security.ClearCachedRealmsAsync(), please update this usage.")] - public static Task ClearCachedRealmsAsync(this IElasticClient client, Names realms, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.ClearCachedRealmsAsync(realms, selector, ct); - - [Obsolete("Moved to client.Security.ClearCachedRealmsAsync(), please update this usage.")] - public static Task ClearCachedRealmsAsync(this IElasticClient client, IClearCachedRealmsRequest request, - CancellationToken ct = default - ) - => client.Security.ClearCachedRealmsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCachedRoles.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCachedRoles.cs deleted file mode 100644 index 3f7bb413d48..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClearCachedRoles.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.ClearCachedRoles(), please update this usage.")] - public static ClearCachedRolesResponse ClearCachedRoles(this IElasticClient client, Names roles, - Func selector = null - ) - => client.Security.ClearCachedRoles(roles, selector); - - [Obsolete("Moved to client.Security.ClearCachedRoles(), please update this usage.")] - public static ClearCachedRolesResponse ClearCachedRoles(this IElasticClient client, IClearCachedRolesRequest request) - => client.Security.ClearCachedRoles(request); - - [Obsolete("Moved to client.Security.ClearCachedRolesAsync(), please update this usage.")] - public static Task ClearCachedRolesAsync(this IElasticClient client, Names roles, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.ClearCachedRolesAsync(roles, selector, ct); - - [Obsolete("Moved to client.Security.ClearCachedRolesAsync(), please update this usage.")] - public static Task ClearCachedRolesAsync(this IElasticClient client, IClearCachedRolesRequest request, - CancellationToken ct = default - ) - => client.Security.ClearCachedRolesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClearSqlCursor.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClearSqlCursor.cs deleted file mode 100644 index d1e9d87d0e7..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClearSqlCursor.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Sql.ClearCursor(), please update this usage.")] - public static ClearSqlCursorResponse ClearSqlCursor(this IElasticClient client, - Func selector = null - ) - => client.Sql.ClearCursor(selector); - - [Obsolete("Moved to client.Sql.ClearCursor(), please update this usage.")] - public static ClearSqlCursorResponse ClearSqlCursor(this IElasticClient client, IClearSqlCursorRequest request) - => client.Sql.ClearCursor(request); - - [Obsolete("Moved to client.Sql.ClearCursorAsync(), please update this usage.")] - public static Task ClearSqlCursorAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Sql.ClearCursorAsync(selector, ct); - - [Obsolete("Moved to client.Sql.ClearCursorAsync(), please update this usage.")] - public static Task ClearSqlCursorAsync(this IElasticClient client, IClearSqlCursorRequest request, - CancellationToken ct = default - ) - => client.Sql.ClearCursorAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CloseIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CloseIndex.cs deleted file mode 100644 index fc37e92e1ce..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CloseIndex.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Close(), please update this usage.")] - public static CloseIndexResponse CloseIndex(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.Close(indices, selector); - - [Obsolete("Moved to client.Indices.Close(), please update this usage.")] - public static CloseIndexResponse CloseIndex(this IElasticClient client, ICloseIndexRequest request) - => client.Indices.Close(request); - - [Obsolete("Moved to client.Indices.CloseAsync(), please update this usage.")] - public static Task CloseIndexAsync(this IElasticClient client, - Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.CloseAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.CloseAsync(), please update this usage.")] - public static Task CloseIndexAsync(this IElasticClient client, ICloseIndexRequest request, CancellationToken ct = default) - => client.Indices.CloseAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CloseJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CloseJob.cs deleted file mode 100644 index 3a21b71f7e1..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CloseJob.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.CloseJob(), please update this usage.")] - public static CloseJobResponse CloseJob(this IElasticClient client, Id jobId, Func selector = null) - => client.MachineLearning.CloseJob(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.CloseJob(), please update this usage.")] - public static CloseJobResponse CloseJob(this IElasticClient client, ICloseJobRequest request) - => client.MachineLearning.CloseJob(request); - - [Obsolete("Moved to client.MachineLearning.CloseJobAsync(), please update this usage.")] - public static Task CloseJobAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.CloseJobAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.CloseJobAsync(), please update this usage.")] - public static Task CloseJobAsync(this IElasticClient client, ICloseJobRequest request, CancellationToken ct = default) - => client.MachineLearning.CloseJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterAllocationExplain.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterAllocationExplain.cs deleted file mode 100644 index fdda7d316e5..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterAllocationExplain.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.AllocationExplain(), please update this usage.")] - public static ClusterAllocationExplainResponse ClusterAllocationExplain(this IElasticClient client, - Func selector = null - ) - => client.Cluster.AllocationExplain(selector); - - [Obsolete("Moved to client.Cluster.AllocationExplain(), please update this usage.")] - public static ClusterAllocationExplainResponse ClusterAllocationExplain(this IElasticClient client, IClusterAllocationExplainRequest request) - => client.Cluster.AllocationExplain(request); - - [Obsolete("Moved to client.Cluster.AllocationExplainAsync(), please update this usage.")] - public static Task ClusterAllocationExplainAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cluster.AllocationExplainAsync(selector, ct); - - [Obsolete("Moved to client.Cluster.AllocationExplainAsync(), please update this usage.")] - public static Task ClusterAllocationExplainAsync(this IElasticClient client, - IClusterAllocationExplainRequest request, - CancellationToken ct = default - ) - => client.Cluster.AllocationExplainAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterGetSettings.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterGetSettings.cs deleted file mode 100644 index 7f48aa31540..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterGetSettings.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.GetSettings(), please update this usage.")] - public static ClusterGetSettingsResponse ClusterGetSettings(this IElasticClient client, - Func selector = null - ) - => client.Cluster.GetSettings(selector); - - [Obsolete("Moved to client.Cluster.GetSettingsAsync(), please update this usage.")] - public static Task ClusterGetSettingsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cluster.GetSettingsAsync(selector, ct); - - [Obsolete("Moved to client.Cluster.GetSettings(), please update this usage.")] - public static ClusterGetSettingsResponse ClusterGetSettings(this IElasticClient client, IClusterGetSettingsRequest request) - => client.Cluster.GetSettings(request); - - [Obsolete("Moved to client.Cluster.GetSettingsAsync(), please update this usage.")] - public static Task ClusterGetSettingsAsync(this IElasticClient client, IClusterGetSettingsRequest request, - CancellationToken ct = default - ) - => client.Cluster.GetSettingsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterHealth.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterHealth.cs deleted file mode 100644 index 8a98e24f1f0..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterHealth.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.Health(), please update this usage.")] - public static ClusterHealthResponse ClusterHealth(this IElasticClient client, - Func selector = null - ) - => client.Cluster.Health(Indices.All, selector); - - [Obsolete("Moved to client.Cluster.Health(), please update this usage.")] - public static ClusterHealthResponse ClusterHealth(this IElasticClient client, IClusterHealthRequest request) - => client.Cluster.Health(request); - - [Obsolete("Moved to client.Cluster.HealthAsync(), please update this usage.")] - public static Task ClusterHealthAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cluster.HealthAsync(Indices.All, selector, ct); - - [Obsolete("Moved to client.Cluster.HealthAsync(), please update this usage.")] - public static Task ClusterHealthAsync(this IElasticClient client, IClusterHealthRequest request, - CancellationToken ct = default - ) - => client.Cluster.HealthAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterPendingTasks.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterPendingTasks.cs deleted file mode 100644 index 175442de767..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterPendingTasks.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.PendingTasks(), please update this usage.")] - public static ClusterPendingTasksResponse ClusterPendingTasks(this IElasticClient client, - Func selector = null - ) - => client.Cluster.PendingTasks(selector); - - [Obsolete("Moved to client.Cluster.PendingTasksAsync(), please update this usage.")] - public static Task ClusterPendingTasksAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cluster.PendingTasksAsync(selector, ct); - - [Obsolete("Moved to client.Cluster.PendingTasks(), please update this usage.")] - public static ClusterPendingTasksResponse ClusterPendingTasks(this IElasticClient client, IClusterPendingTasksRequest request) - => client.Cluster.PendingTasks(request); - - [Obsolete("Moved to client.Cluster.PendingTasksAsync(), please update this usage.")] - public static Task ClusterPendingTasksAsync(this IElasticClient client, IClusterPendingTasksRequest request, - CancellationToken ct = default - ) - => client.Cluster.PendingTasksAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterPutSettings.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterPutSettings.cs deleted file mode 100644 index cce4dc9bd65..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterPutSettings.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.PutSettings(), please update this usage.")] - public static ClusterPutSettingsResponse ClusterPutSettings(this IElasticClient client, - Func selector - ) - => client.Cluster.PutSettings(selector); - - [Obsolete("Moved to client.Cluster.PutSettingsAsync(), please update this usage.")] - public static Task ClusterPutSettingsAsync(this IElasticClient client, - Func selector, - CancellationToken ct = default - ) - => client.Cluster.PutSettingsAsync(selector, ct); - - [Obsolete("Moved to client.Cluster.PutSettings(), please update this usage.")] - public static ClusterPutSettingsResponse ClusterPutSettings(this IElasticClient client, IClusterPutSettingsRequest request) - => client.Cluster.PutSettings(request); - - [Obsolete("Moved to client.Cluster.PutSettingsAsync(), please update this usage.")] - public static Task ClusterPutSettingsAsync(this IElasticClient client, IClusterPutSettingsRequest request, - CancellationToken ct = default - ) - => client.Cluster.PutSettingsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterReroute.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterReroute.cs deleted file mode 100644 index 5f57624cb5c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterReroute.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.Reroute(), please update this usage.")] - public static ClusterRerouteResponse ClusterReroute(this IElasticClient client, - Func selector - ) - => client.Cluster.Reroute(selector); - - [Obsolete("Moved to client.Cluster.RerouteAsync(), please update this usage.")] - public static Task ClusterRerouteAsync(this IElasticClient client, - Func selector, - CancellationToken ct = default - ) - => client.Cluster.RerouteAsync(selector, ct); - - [Obsolete("Moved to client.Cluster.Reroute(), please update this usage.")] - public static ClusterRerouteResponse ClusterReroute(this IElasticClient client, IClusterRerouteRequest request) - => client.Cluster.Reroute(request); - - [Obsolete("Moved to client.Cluster.RerouteAsync(), please update this usage.")] - public static Task ClusterRerouteAsync(this IElasticClient client, IClusterRerouteRequest request, - CancellationToken ct = default - ) - => client.Cluster.RerouteAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterState.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterState.cs deleted file mode 100644 index 753ddfeb1a0..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterState.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.State(), please update this usage.")] - public static ClusterStateResponse ClusterState(this IElasticClient client, Func selector = null - ) - => client.Cluster.State(Indices.All, selector); - - [Obsolete("Moved to client.Cluster.State(), please update this usage.")] - public static ClusterStateResponse ClusterState(this IElasticClient client, IClusterStateRequest request) - => client.Cluster.State(request); - - [Obsolete("Moved to client.Cluster.StateAsync(), please update this usage.")] - public static Task ClusterStateAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cluster.StateAsync(Indices.All, selector, ct); - - [Obsolete("Moved to client.Cluster.StateAsync(), please update this usage.")] - public static Task ClusterStateAsync(this IElasticClient client, IClusterStateRequest request, - CancellationToken ct = default - ) - => client.Cluster.StateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterStats.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterStats.cs deleted file mode 100644 index 038e817d585..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ClusterStats.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.Stats(), please update this usage.")] - public static ClusterStatsResponse ClusterStats(this IElasticClient client, Func selector = null - ) - => client.Cluster.Stats(selector); - - [Obsolete("Moved to client.Cluster.StatsAsync(), please update this usage.")] - public static Task ClusterStatsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cluster.StatsAsync(selector, ct); - - [Obsolete("Moved to client.Cluster.Stats(), please update this usage.")] - public static ClusterStatsResponse ClusterStats(this IElasticClient client, IClusterStatsRequest request) - => client.Cluster.Stats(request); - - [Obsolete("Moved to client.Cluster.StatsAsync(), please update this usage.")] - public static Task ClusterStatsAsync(this IElasticClient client, IClusterStatsRequest request, - CancellationToken ct = default - ) - => client.Cluster.StatsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateAutoFollowPattern.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CreateAutoFollowPattern.cs deleted file mode 100644 index 8112f714fad..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateAutoFollowPattern.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.CreateAutoFollowPattern(), please update this usage.")] - public static CreateAutoFollowPatternResponse CreateAutoFollowPattern(this IElasticClient client, Name name, - Func selector - ) - => client.CrossClusterReplication.CreateAutoFollowPattern(name, selector); - - [Obsolete("Moved to client.CrossClusterReplication.CreateAutoFollowPattern(), please update this usage.")] - public static CreateAutoFollowPatternResponse CreateAutoFollowPattern(this IElasticClient client, ICreateAutoFollowPatternRequest request) - => client.CrossClusterReplication.CreateAutoFollowPattern(request); - - [Obsolete("Moved to client.CrossClusterReplication.CreateAutoFollowPatternAsync(), please update this usage.")] - public static Task CreateAutoFollowPatternAsync(this IElasticClient client, Name name, - Func selector, - CancellationToken ct = default - ) - => client.CrossClusterReplication.CreateAutoFollowPatternAsync(name, selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.CreateAutoFollowPatternAsync(), please update this usage.")] - public static Task CreateAutoFollowPatternAsync(this IElasticClient client, - ICreateAutoFollowPatternRequest request, CancellationToken ct = default - ) - => client.CrossClusterReplication.CreateAutoFollowPatternAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateFollowIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CreateFollowIndex.cs deleted file mode 100644 index ba521e7f49d..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateFollowIndex.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.CreateFollowIndex(), please update this usage.")] - public static CreateFollowIndexResponse CreateFollowIndex(this IElasticClient client, IndexName index, - Func selector - ) - => client.CrossClusterReplication.CreateFollowIndex(index, selector); - - [Obsolete("Moved to client.CrossClusterReplication.CreateFollowIndex(), please update this usage.")] - public static CreateFollowIndexResponse CreateFollowIndex(this IElasticClient client, ICreateFollowIndexRequest request) - => client.CrossClusterReplication.CreateFollowIndex(request); - - [Obsolete("Moved to client.CrossClusterReplication.CreateFollowIndexAsync(), please update this usage.")] - public static Task CreateFollowIndexAsync(this IElasticClient client, IndexName index, - Func selector, - CancellationToken ct = default - ) - => client.CrossClusterReplication.CreateFollowIndexAsync(index, selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.CreateFollowIndexAsync(), please update this usage.")] - public static Task CreateFollowIndexAsync(this IElasticClient client, ICreateFollowIndexRequest request, - CancellationToken ct = default - ) - => client.CrossClusterReplication.CreateFollowIndexAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CreateIndex.cs deleted file mode 100644 index ad551ee1496..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateIndex.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Create(), please update this usage.")] - public static CreateIndexResponse CreateIndex(this IElasticClient client, IndexName index, - Func selector = null - ) - => client.Indices.Create(index, selector); - - [Obsolete("Moved to client.Indices.Create(), please update this usage.")] - public static CreateIndexResponse CreateIndex(this IElasticClient client, ICreateIndexRequest request) - => client.Indices.Create(request); - - [Obsolete("Moved to client.Indices.CreateAsync(), please update this usage.")] - public static Task CreateIndexAsync(this IElasticClient client, - IndexName index, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.CreateAsync(index, selector, ct); - - [Obsolete("Moved to client.Indices.CreateAsync(), please update this usage.")] - public static Task CreateIndexAsync(this IElasticClient client, ICreateIndexRequest request, - CancellationToken ct = default - ) - => client.Indices.CreateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateRepository.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CreateRepository.cs deleted file mode 100644 index 2e46c647de8..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateRepository.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.CreateRepository(), please update this usage.")] - public static CreateRepositoryResponse CreateRepository(this IElasticClient client, Name repository, - Func selector - ) - => client.Snapshot.CreateRepository(repository, selector); - - [Obsolete("Moved to client.Snapshot.CreateRepository(), please update this usage.")] - public static CreateRepositoryResponse CreateRepository(this IElasticClient client, ICreateRepositoryRequest request) - => client.Snapshot.CreateRepository(request); - - [Obsolete("Moved to client.Snapshot.CreateRepositoryAsync(), please update this usage.")] - public static Task CreateRepositoryAsync(this IElasticClient client, Name repository, - Func selector, - CancellationToken ct = default - ) - => client.Snapshot.CreateRepositoryAsync(repository, selector, ct); - - [Obsolete("Moved to client.Snapshot.CreateRepositoryAsync(), please update this usage.")] - public static Task CreateRepositoryAsync(this IElasticClient client, ICreateRepositoryRequest request, - CancellationToken ct = default - ) - => client.Snapshot.CreateRepositoryAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateRollupJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-CreateRollupJob.cs deleted file mode 100644 index a2a175357c5..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-CreateRollupJob.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Rollup.CreateJob(), please update this usage.")] - public static CreateRollupJobResponse CreateRollupJob(this IElasticClient client, Id id, - Func, ICreateRollupJobRequest> selector - ) - where T : class => client.Rollup.CreateJob(id, selector); - - [Obsolete("Moved to client.Rollup.CreateJob(), please update this usage.")] - public static CreateRollupJobResponse CreateRollupJob(this IElasticClient client, ICreateRollupJobRequest request) - => client.Rollup.CreateJob(request); - - [Obsolete("Moved to client.Rollup.CreateJobAsync(), please update this usage.")] - public static Task CreateRollupJobAsync(this IElasticClient client, Id id, - Func, ICreateRollupJobRequest> selector, CancellationToken ct = default - ) - where T : class => client.Rollup.CreateJobAsync(id, selector, ct); - - [Obsolete("Moved to client.Rollup.CreateJobAsync(), please update this usage.")] - public static Task CreateRollupJobAsync(this IElasticClient client, ICreateRollupJobRequest request, - CancellationToken ct = default - ) - => client.Rollup.CreateJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeactivateWatch.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeactivateWatch.cs deleted file mode 100644 index e2a9d35f01e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeactivateWatch.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Deactivate(), please update this usage.")] - public static DeactivateWatchResponse DeactivateWatch(this IElasticClient client, Id id, - Func selector = null - ) - => client.Watcher.Deactivate(id, selector); - - [Obsolete("Moved to client.Watcher.Deactivate(), please update this usage.")] - public static DeactivateWatchResponse DeactivateWatch(this IElasticClient client, IDeactivateWatchRequest request) - => client.Watcher.Deactivate(request); - - [Obsolete("Moved to client.Watcher.DeactivateAsync(), please update this usage.")] - public static Task DeactivateWatchAsync(this IElasticClient client, Id id, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.DeactivateAsync(id, selector, ct); - - [Obsolete("Moved to client.Watcher.DeactivateAsync(), please update this usage.")] - public static Task DeactivateWatchAsync(this IElasticClient client, IDeactivateWatchRequest request, - CancellationToken ct = default - ) - => client.Watcher.DeactivateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteAlias.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteAlias.cs deleted file mode 100644 index c15d5de18da..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteAlias.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.DeleteAlias(), please update this usage.")] - public static DeleteAliasResponse DeleteAlias(this IElasticClient client, IDeleteAliasRequest request) - => client.Indices.DeleteAlias(request); - - [Obsolete("Moved to client.Indices.DeleteAliasAsync(), please update this usage.")] - public static Task DeleteAliasAsync(this IElasticClient client, IDeleteAliasRequest request, - CancellationToken ct = default - ) - => client.Indices.DeleteAliasAsync(request, ct); - - [Obsolete("Moved to client.Indices.DeleteAlias(), please update this usage.")] - public static DeleteAliasResponse DeleteAlias(this IElasticClient client, Indices indices, Names names, - Func selector = null - ) - => client.Indices.DeleteAlias(indices, names, selector); - - [Obsolete("Moved to client.Indices.DeleteAliasAsync(), please update this usage.")] - public static Task DeleteAliasAsync(this IElasticClient client, - Indices indices, - Names names, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.DeleteAliasAsync(indices, names, selector, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteAutoFollowPattern.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteAutoFollowPattern.cs deleted file mode 100644 index 75240c0278e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteAutoFollowPattern.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.DeleteAutoFollowPattern(), please update this usage.")] - public static DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(this IElasticClient client, Name name, - Func selector = null - ) - => client.CrossClusterReplication.DeleteAutoFollowPattern(name, selector); - - [Obsolete("Moved to client.CrossClusterReplication.DeleteAutoFollowPattern(), please update this usage.")] - public static DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(this IElasticClient client, IDeleteAutoFollowPatternRequest request) - => client.CrossClusterReplication.DeleteAutoFollowPattern(request); - - [Obsolete("Moved to client.CrossClusterReplication.DeleteAutoFollowPatternAsync(), please update this usage.")] - public static Task DeleteAutoFollowPatternAsync(this IElasticClient client, Name name, - Func selector = null, - CancellationToken ct = default - ) - => client.CrossClusterReplication.DeleteAutoFollowPatternAsync(name, selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.DeleteAutoFollowPatternAsync(), please update this usage.")] - public static Task DeleteAutoFollowPatternAsync(this IElasticClient client, - IDeleteAutoFollowPatternRequest request, CancellationToken ct = default - ) - => client.CrossClusterReplication.DeleteAutoFollowPatternAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendar.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendar.cs deleted file mode 100644 index 16b69b3bf5a..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendar.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.DeleteCalendar(), please update this usage.")] - public static DeleteCalendarResponse DeleteCalendar(this IElasticClient client, Id calendarId, - Func selector = null - ) - => client.MachineLearning.DeleteCalendar(calendarId, selector); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendar(), please update this usage.")] - public static DeleteCalendarResponse DeleteCalendar(this IElasticClient client, IDeleteCalendarRequest request) - => client.MachineLearning.DeleteCalendar(request); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendarAsync(), please update this usage.")] - public static Task DeleteCalendarAsync(this IElasticClient client, Id calendarId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteCalendarAsync(calendarId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendarAsync(), please update this usage.")] - public static Task DeleteCalendarAsync(this IElasticClient client, IDeleteCalendarRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteCalendarAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendarEvent.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendarEvent.cs deleted file mode 100644 index ec24db3f7ad..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendarEvent.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.DeleteCalendarEvent(), please update this usage.")] - public static DeleteCalendarEventResponse DeleteCalendarEvent(this IElasticClient client, Id calendarId, Id eventId, - Func selector = null - ) - => client.MachineLearning.DeleteCalendarEvent(calendarId, eventId, selector); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendarEvent(), please update this usage.")] - public static DeleteCalendarEventResponse DeleteCalendarEvent(this IElasticClient client, IDeleteCalendarEventRequest request) - => client.MachineLearning.DeleteCalendarEvent(request); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendarEventAsync(), please update this usage.")] - public static Task DeleteCalendarEventAsync(this IElasticClient client, Id calendarId, Id eventId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteCalendarEventAsync(calendarId, eventId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendarEventAsync(), please update this usage.")] - public static Task DeleteCalendarEventAsync(this IElasticClient client, IDeleteCalendarEventRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteCalendarEventAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendarJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendarJob.cs deleted file mode 100644 index d6e8b5e7a33..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteCalendarJob.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.DeleteCalendarJob(), please update this usage.")] - public static DeleteCalendarJobResponse DeleteCalendarJob(this IElasticClient client, Id calendarId, Id jobId, - Func selector = null - ) - => client.MachineLearning.DeleteCalendarJob(calendarId, jobId, selector); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendarJob(), please update this usage.")] - public static DeleteCalendarJobResponse DeleteCalendarJob(this IElasticClient client, IDeleteCalendarJobRequest request) - => client.MachineLearning.DeleteCalendarJob(request); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendarJobAsync(), please update this usage.")] - public static Task DeleteCalendarJobAsync(this IElasticClient client, Id calendarId, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteCalendarJobAsync(calendarId, jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.DeleteCalendarJobAsync(), please update this usage.")] - public static Task DeleteCalendarJobAsync(this IElasticClient client, IDeleteCalendarJobRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteCalendarJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteDatafeed.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteDatafeed.cs deleted file mode 100644 index bad06a92e95..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteDatafeed.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.DeleteDatafeed(), please update this usage.")] - public static DeleteDatafeedResponse DeleteDatafeed(this IElasticClient client, Id datafeedId, - Func selector = null - ) - => client.MachineLearning.DeleteDatafeed(datafeedId, selector); - - [Obsolete("Moved to client.MachineLearning.DeleteDatafeed(), please update this usage.")] - public static DeleteDatafeedResponse DeleteDatafeed(this IElasticClient client, IDeleteDatafeedRequest request) - => client.MachineLearning.DeleteDatafeed(request); - - [Obsolete("Moved to client.MachineLearning.DeleteDatafeedAsync(), please update this usage.")] - public static Task DeleteDatafeedAsync(this IElasticClient client, Id datafeedId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteDatafeedAsync(datafeedId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.DeleteDatafeedAsync(), please update this usage.")] - public static Task DeleteDatafeedAsync(this IElasticClient client, IDeleteDatafeedRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteDatafeedAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteExpiredData.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteExpiredData.cs deleted file mode 100644 index 8d6f250bcc8..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteExpiredData.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.DeleteExpiredData(), please update this usage.")] - public static DeleteExpiredDataResponse DeleteExpiredData(this IElasticClient client, - Func selector = null - ) - => client.MachineLearning.DeleteExpiredData(selector); - - [Obsolete("Moved to client.MachineLearning.DeleteExpiredData(), please update this usage.")] - public static DeleteExpiredDataResponse DeleteExpiredData(this IElasticClient client, IDeleteExpiredDataRequest request) - => client.MachineLearning.DeleteExpiredData(request); - - [Obsolete("Moved to client.MachineLearning.DeleteExpiredDataAsync(), please update this usage.")] - public static Task DeleteExpiredDataAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteExpiredDataAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.DeleteExpiredDataAsync(), please update this usage.")] - public static Task DeleteExpiredDataAsync(this IElasticClient client, IDeleteExpiredDataRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteExpiredDataAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteForecast.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteForecast.cs deleted file mode 100644 index 80b0ed7d8ff..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteForecast.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.DeleteForecast(), please update this usage.")] - public static DeleteForecastResponse DeleteForecast(this IElasticClient client, Id jobId, Ids forecastId, - Func selector = null - ) - => client.MachineLearning.DeleteForecast(jobId, forecastId, selector); - - [Obsolete("Moved to client.MachineLearning.DeleteForecast(), please update this usage.")] - public static DeleteForecastResponse DeleteForecast(this IElasticClient client, IDeleteForecastRequest request) - => client.MachineLearning.DeleteForecast(request); - - [Obsolete("Moved to client.MachineLearning.DeleteForecastAsync(), please update this usage.")] - public static Task DeleteForecastAsync(this IElasticClient client, Id jobId, Ids forecastId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteForecastAsync(jobId, forecastId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.DeleteForecastAsync(), please update this usage.")] - public static Task DeleteForecastAsync(this IElasticClient client, IDeleteForecastRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteForecastAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteIndex.cs deleted file mode 100644 index fd95526f7af..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteIndex.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Delete(), please update this usage.")] - public static DeleteIndexResponse DeleteIndex(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.Delete(indices, selector); - - [Obsolete("Moved to client.Indices.Delete(), please update this usage.")] - public static DeleteIndexResponse DeleteIndex(this IElasticClient client, IDeleteIndexRequest request) - => client.Indices.Delete(request); - - [Obsolete("Moved to client.Indices.DeleteAsync(), please update this usage.")] - public static Task DeleteIndexAsync(this IElasticClient client, - Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.DeleteAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.DeleteAsync(), please update this usage.")] - public static Task DeleteIndexAsync(this IElasticClient client, IDeleteIndexRequest request, - CancellationToken ct = default - ) - => client.Indices.DeleteAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteIndexTemplate.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteIndexTemplate.cs deleted file mode 100644 index 4dde4fb2a07..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteIndexTemplate.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.DeleteTemplate(), please update this usage.")] - public static DeleteIndexTemplateResponse DeleteIndexTemplate(this IElasticClient client, Name name, - Func selector = null - ) - => client.Indices.DeleteTemplate(name, selector); - - [Obsolete("Moved to client.Indices.DeleteTemplate(), please update this usage.")] - public static DeleteIndexTemplateResponse DeleteIndexTemplate(this IElasticClient client, IDeleteIndexTemplateRequest request) - => client.Indices.DeleteTemplate(request); - - [Obsolete("Moved to client.Indices.DeleteTemplateAsync(), please update this usage.")] - public static Task DeleteIndexTemplateAsync(this IElasticClient client, - Name name, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.DeleteTemplateAsync(name, selector, ct); - - [Obsolete("Moved to client.Indices.DeleteTemplateAsync(), please update this usage.")] - public static Task DeleteIndexTemplateAsync(this IElasticClient client, IDeleteIndexTemplateRequest request, - CancellationToken ct = default - ) - => client.Indices.DeleteTemplateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteJob.cs deleted file mode 100644 index d6fe89d352f..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteJob.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.DeleteJob(), please update this usage.")] - public static DeleteJobResponse DeleteJob(this IElasticClient client, Id jobId, Func selector = null) - => client.MachineLearning.DeleteJob(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.DeleteJob(), please update this usage.")] - public static DeleteJobResponse DeleteJob(this IElasticClient client, IDeleteJobRequest request) - => client.MachineLearning.DeleteJob(request); - - [Obsolete("Moved to client.MachineLearning.DeleteJobAsync(), please update this usage.")] - public static Task DeleteJobAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteJobAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.DeleteJobAsync(), please update this usage.")] - public static Task DeleteJobAsync(this IElasticClient client, IDeleteJobRequest request, CancellationToken ct = default) - => client.MachineLearning.DeleteJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteLicense.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteLicense.cs deleted file mode 100644 index 2750f5c7b6e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteLicense.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.License.Delete(), please update this usage.")] - public static DeleteLicenseResponse DeleteLicense(this IElasticClient client, - Func selector = null - ) - => client.License.Delete(selector); - - [Obsolete("Moved to client.License.Delete(), please update this usage.")] - public static DeleteLicenseResponse DeleteLicense(this IElasticClient client, IDeleteLicenseRequest request) - => client.License.Delete(request); - - [Obsolete("Moved to client.License.DeleteAsync(), please update this usage.")] - public static Task DeleteLicenseAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.License.DeleteAsync(selector, ct); - - [Obsolete("Moved to client.License.DeleteAsync(), please update this usage.")] - public static Task DeleteLicenseAsync(this IElasticClient client, IDeleteLicenseRequest request, - CancellationToken ct = default - ) - => client.License.DeleteAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteModelSnapshot.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteModelSnapshot.cs deleted file mode 100644 index 817547b1928..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteModelSnapshot.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.DeleteModelSnapshot(), please update this usage.")] - public static DeleteModelSnapshotResponse DeleteModelSnapshot(this IElasticClient client, Id jobId, Id snapshotId, - Func selector = null - ) - => client.MachineLearning.DeleteModelSnapshot(jobId, snapshotId, selector); - - [Obsolete("Moved to client.MachineLearning.DeleteModelSnapshot(), please update this usage.")] - public static DeleteModelSnapshotResponse DeleteModelSnapshot(this IElasticClient client, IDeleteModelSnapshotRequest request) - => client.MachineLearning.DeleteModelSnapshot(request); - - [Obsolete("Moved to client.MachineLearning.DeleteModelSnapshotAsync(), please update this usage.")] - public static Task DeleteModelSnapshotAsync(this IElasticClient client, Id jobId, Id snapshotId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteModelSnapshotAsync(jobId, snapshotId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.DeleteModelSnapshotAsync(), please update this usage.")] - public static Task DeleteModelSnapshotAsync(this IElasticClient client, IDeleteModelSnapshotRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.DeleteModelSnapshotAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeletePipeline.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeletePipeline.cs deleted file mode 100644 index d8b471798ad..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeletePipeline.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Ingest.DeletePipeline(), please update this usage.")] - public static DeletePipelineResponse DeletePipeline(this IElasticClient client, Id id, - Func selector = null - ) - => client.Ingest.DeletePipeline(id, selector); - - [Obsolete("Moved to client.Ingest.DeletePipeline(), please update this usage.")] - public static DeletePipelineResponse DeletePipeline(this IElasticClient client, IDeletePipelineRequest request) - => client.Ingest.DeletePipeline(request); - - [Obsolete("Moved to client.Ingest.DeletePipelineAsync(), please update this usage.")] - public static Task DeletePipelineAsync(this IElasticClient client, Id id, - Func selector = null, - CancellationToken ct = default - ) - => client.Ingest.DeletePipelineAsync(id, selector, ct); - - [Obsolete("Moved to client.Ingest.DeletePipelineAsync(), please update this usage.")] - public static Task DeletePipelineAsync(this IElasticClient client, IDeletePipelineRequest request, - CancellationToken ct = default - ) - => client.Ingest.DeletePipelineAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeletePrivileges.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeletePrivileges.cs deleted file mode 100644 index 9a03464b319..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeletePrivileges.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.DeletePrivileges(), please update this usage.")] - public static DeletePrivilegesResponse DeletePrivileges(this IElasticClient client, Name application, Name name, - Func selector = null - ) - => client.Security.DeletePrivileges(application, name, selector); - - [Obsolete("Moved to client.Security.DeletePrivileges(), please update this usage.")] - public static DeletePrivilegesResponse DeletePrivileges(this IElasticClient client, IDeletePrivilegesRequest request) - => client.Security.DeletePrivileges(request); - - [Obsolete("Moved to client.Security.DeletePrivilegesAsync(), please update this usage.")] - public static Task DeletePrivilegesAsync(this IElasticClient client, Name application, Name name, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.DeletePrivilegesAsync(application, name, selector, ct); - - [Obsolete("Moved to client.Security.DeletePrivilegesAsync(), please update this usage.")] - public static Task DeletePrivilegesAsync(this IElasticClient client, IDeletePrivilegesRequest request, - CancellationToken ct = default - ) - => client.Security.DeletePrivilegesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRepository.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRepository.cs deleted file mode 100644 index 38cd9b57431..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRepository.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.DeleteRepository(), please update this usage.")] - public static DeleteRepositoryResponse DeleteRepository(this IElasticClient client, Names repositories, - Func selector = null - ) - => client.Snapshot.DeleteRepository(repositories, selector); - - [Obsolete("Moved to client.Snapshot.DeleteRepository(), please update this usage.")] - public static DeleteRepositoryResponse DeleteRepository(this IElasticClient client, IDeleteRepositoryRequest request) - => client.Snapshot.DeleteRepository(request); - - [Obsolete("Moved to client.Snapshot.DeleteRepositoryAsync(), please update this usage.")] - public static Task DeleteRepositoryAsync(this IElasticClient client, Names repositories, - Func selector = null, - CancellationToken ct = default - ) - => client.Snapshot.DeleteRepositoryAsync(repositories, selector, ct); - - [Obsolete("Moved to client.Snapshot.DeleteRepositoryAsync(), please update this usage.")] - public static Task DeleteRepositoryAsync(this IElasticClient client, IDeleteRepositoryRequest request, - CancellationToken ct = default - ) - => client.Snapshot.DeleteRepositoryAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRole.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRole.cs deleted file mode 100644 index 4ec119b4323..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRole.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.DeleteRole(), please update this usage.")] - public static DeleteRoleResponse DeleteRole(this IElasticClient client, Name role, - Func selector = null - ) - => client.Security.DeleteRole(role, selector); - - [Obsolete("Moved to client.Security.DeleteRole(), please update this usage.")] - public static DeleteRoleResponse DeleteRole(this IElasticClient client, IDeleteRoleRequest request) - => client.Security.DeleteRole(request); - - [Obsolete("Moved to client.Security.DeleteRoleAsync(), please update this usage.")] - public static Task DeleteRoleAsync(this IElasticClient client, Name role, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.DeleteRoleAsync(role, selector, ct); - - [Obsolete("Moved to client.Security.DeleteRoleAsync(), please update this usage.")] - public static Task DeleteRoleAsync(this IElasticClient client, IDeleteRoleRequest request, CancellationToken ct = default) - => client.Security.DeleteRoleAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRoleMapping.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRoleMapping.cs deleted file mode 100644 index 49c2898ad3c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRoleMapping.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.DeleteRoleMapping(), please update this usage.")] - public static DeleteRoleMappingResponse DeleteRoleMapping(this IElasticClient client, Name role, - Func selector = null - ) - => client.Security.DeleteRoleMapping(role, selector); - - [Obsolete("Moved to client.Security.DeleteRoleMapping(), please update this usage.")] - public static DeleteRoleMappingResponse DeleteRoleMapping(this IElasticClient client, IDeleteRoleMappingRequest request) - => client.Security.DeleteRoleMapping(request); - - [Obsolete("Moved to client.Security.DeleteRoleMappingAsync(), please update this usage.")] - public static Task DeleteRoleMappingAsync(this IElasticClient client, Name role, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.DeleteRoleMappingAsync(role, selector, ct); - - [Obsolete("Moved to client.Security.DeleteRoleMappingAsync(), please update this usage.")] - public static Task DeleteRoleMappingAsync(this IElasticClient client, IDeleteRoleMappingRequest request, - CancellationToken ct = default - ) - => client.Security.DeleteRoleMappingAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRollupJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRollupJob.cs deleted file mode 100644 index bdbc23e928f..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRollupJob.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Rollup.DeleteJob(), please update this usage.")] - public static DeleteRollupJobResponse DeleteRollupJob(this IElasticClient client, Id id, - Func selector = null - ) - => client.Rollup.DeleteJob(id, selector); - - [Obsolete("Moved to client.Rollup.DeleteJob(), please update this usage.")] - public static DeleteRollupJobResponse DeleteRollupJob(this IElasticClient client, IDeleteRollupJobRequest request) - => client.Rollup.DeleteJob(request); - - [Obsolete("Moved to client.Rollup.DeleteJobAsync(), please update this usage.")] - public static Task DeleteRollupJobAsync(this IElasticClient client, Id id, - Func selector = null, CancellationToken ct = default - ) - => client.Rollup.DeleteJobAsync(id, selector, ct); - - [Obsolete("Moved to client.Rollup.DeleteJobAsync(), please update this usage.")] - public static Task DeleteRollupJobAsync(this IElasticClient client, IDeleteRollupJobRequest request, - CancellationToken ct = default - ) - => client.Rollup.DeleteJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteSnapshot.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteSnapshot.cs deleted file mode 100644 index d64ccec6481..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteSnapshot.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.Delete(), please update this usage.")] - public static DeleteSnapshotResponse DeleteSnapshot(this IElasticClient client, Name repository, Name snapshotName, - Func selector = null - ) - => client.Snapshot.Delete(repository, snapshotName, selector); - - [Obsolete("Moved to client.Snapshot.Delete(), please update this usage.")] - public static DeleteSnapshotResponse DeleteSnapshot(this IElasticClient client, IDeleteSnapshotRequest request) - => client.Snapshot.Delete(request); - - [Obsolete("Moved to client.Snapshot.DeleteAsync(), please update this usage.")] - public static Task DeleteSnapshotAsync(this IElasticClient client, - Name repository, Name snapshotName, Func selector = null, - CancellationToken ct = default - ) - => client.Snapshot.DeleteAsync(repository, snapshotName, selector, ct); - - [Obsolete("Moved to client.Snapshot.DeleteAsync(), please update this usage.")] - public static Task DeleteSnapshotAsync(this IElasticClient client, IDeleteSnapshotRequest request, - CancellationToken ct = default - ) - => client.Snapshot.DeleteAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteUser.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteUser.cs deleted file mode 100644 index e62a7806f12..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteUser.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.DeleteUser(), please update this usage.")] - public static DeleteUserResponse DeleteUser(this IElasticClient client, Name username, - Func selector = null - ) - => client.Security.DeleteUser(username, selector); - - [Obsolete("Moved to client.Security.DeleteUser(), please update this usage.")] - public static DeleteUserResponse DeleteUser(this IElasticClient client, IDeleteUserRequest request) - => client.Security.DeleteUser(request); - - [Obsolete("Moved to client.Security.DeleteUserAsync(), please update this usage.")] - public static Task DeleteUserAsync(this IElasticClient client, Name username, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.DeleteUserAsync(username, selector, ct); - - [Obsolete("Moved to client.Security.DeleteUserAsync(), please update this usage.")] - public static Task DeleteUserAsync(this IElasticClient client, IDeleteUserRequest request, CancellationToken ct = default) - => client.Security.DeleteUserAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteWatch.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteWatch.cs deleted file mode 100644 index 2cbce202e85..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeleteWatch.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Delete(), please update this usage.")] - public static DeleteWatchResponse DeleteWatch(this IElasticClient client, Id watchId, - Func selector = null - ) - => client.Watcher.Delete(watchId, selector); - - [Obsolete("Moved to client.Watcher.Delete(), please update this usage.")] - public static DeleteWatchResponse DeleteWatch(this IElasticClient client, IDeleteWatchRequest request) - => client.Watcher.Delete(request); - - [Obsolete("Moved to client.Watcher.DeleteAsync(), please update this usage.")] - public static Task DeleteWatchAsync(this IElasticClient client, Id watchId, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.DeleteAsync(watchId, selector, ct); - - [Obsolete("Moved to client.Watcher.DeleteAsync(), please update this usage.")] - public static Task DeleteWatchAsync(this IElasticClient client, IDeleteWatchRequest request, - CancellationToken ct = default - ) - => client.Watcher.DeleteAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DeprecationInfo.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DeprecationInfo.cs deleted file mode 100644 index da3d4fbc403..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DeprecationInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Migration.DeprecationInfo(), please update this usage.")] - public static DeprecationInfoResponse DeprecationInfo(this IElasticClient client, - Func selector = null - ) - => client.Migration.DeprecationInfo(selector); - - [Obsolete("Moved to client.Migration.DeprecationInfo(), please update this usage.")] - public static DeprecationInfoResponse DeprecationInfo(this IElasticClient client, IDeprecationInfoRequest request) - => client.Migration.DeprecationInfo(request); - - [Obsolete("Moved to client.Migration.DeprecationInfoAsync(), please update this usage.")] - public static Task DeprecationInfoAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Migration.DeprecationInfoAsync(selector, ct); - - [Obsolete("Moved to client.Migration.DeprecationInfoAsync(), please update this usage.")] - public static Task DeprecationInfoAsync(this IElasticClient client, IDeprecationInfoRequest request, - CancellationToken ct = default - ) - => client.Migration.DeprecationInfoAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-DisableUser.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-DisableUser.cs deleted file mode 100644 index c5fea3c4d4e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-DisableUser.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.DisableUser(), please update this usage.")] - public static DisableUserResponse DisableUser(this IElasticClient client, Name username, - Func selector = null - ) - => client.Security.DisableUser(username, selector); - - [Obsolete("Moved to client.Security.DisableUser(), please update this usage.")] - public static DisableUserResponse DisableUser(this IElasticClient client, IDisableUserRequest request) - => client.Security.DisableUser(request); - - [Obsolete("Moved to client.Security.DisableUserAsync(), please update this usage.")] - public static Task DisableUserAsync(this IElasticClient client, Name username, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.DisableUserAsync(username, selector, ct); - - [Obsolete("Moved to client.Security.DisableUserAsync(), please update this usage.")] - public static Task DisableUserAsync(this IElasticClient client, IDisableUserRequest request, - CancellationToken ct = default - ) - => client.Security.DisableUserAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-EnableUser.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-EnableUser.cs deleted file mode 100644 index e6665ff3bda..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-EnableUser.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.EnableUser(), please update this usage.")] - public static EnableUserResponse EnableUser(this IElasticClient client, Name username, - Func selector = null - ) - => client.Security.EnableUser(username, selector); - - [Obsolete("Moved to client.Security.EnableUser(), please update this usage.")] - public static EnableUserResponse EnableUser(this IElasticClient client, IEnableUserRequest request) - => client.Security.EnableUser(request); - - [Obsolete("Moved to client.Security.EnableUserAsync(), please update this usage.")] - public static Task EnableUserAsync(this IElasticClient client, Name username, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.EnableUserAsync(username, selector, ct); - - [Obsolete("Moved to client.Security.EnableUserAsync(), please update this usage.")] - public static Task EnableUserAsync(this IElasticClient client, IEnableUserRequest request, CancellationToken ct = default) - => client.Security.EnableUserAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ExecuteWatch.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ExecuteWatch.cs deleted file mode 100644 index 4212cea61ca..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ExecuteWatch.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Execute(), please update this usage.")] - public static ExecuteWatchResponse ExecuteWatch(this IElasticClient client, Func selector) - => client.Watcher.Execute(selector); - - [Obsolete("Moved to client.Watcher.Execute(), please update this usage.")] - public static ExecuteWatchResponse ExecuteWatch(this IElasticClient client, IExecuteWatchRequest request) - => client.Watcher.Execute(request); - - [Obsolete("Moved to client.Watcher.ExecuteAsync(), please update this usage.")] - public static Task ExecuteWatchAsync(this IElasticClient client, - Func selector, - CancellationToken ct = default - ) - => client.Watcher.ExecuteAsync(selector, ct); - - [Obsolete("Moved to client.Watcher.ExecuteAsync(), please update this usage.")] - public static Task ExecuteWatchAsync(this IElasticClient client, IExecuteWatchRequest request, - CancellationToken ct = default - ) - => client.Watcher.ExecuteAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-Flush.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-Flush.cs deleted file mode 100644 index e307a77a9b2..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-Flush.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Flush(), please update this usage.")] - public static FlushResponse Flush(this IElasticClient client, Indices indices, Func selector = null) - => client.Indices.Flush(indices, selector); - - [Obsolete("Moved to client.Indices.Flush(), please update this usage.")] - public static FlushResponse Flush(this IElasticClient client, IFlushRequest request) - => client.Indices.Flush(request); - - [Obsolete("Moved to client.Indices.FlushAsync(), please update this usage.")] - public static Task FlushAsync(this IElasticClient client, Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.FlushAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.FlushAsync(), please update this usage.")] - public static Task FlushAsync(this IElasticClient client, IFlushRequest request, CancellationToken ct = default) - => client.Indices.FlushAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-FlushJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-FlushJob.cs deleted file mode 100644 index b344193ad9e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-FlushJob.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.FlushJob(), please update this usage.")] - public static FlushJobResponse FlushJob(this IElasticClient client, Id jobId, Func selector = null) - => client.MachineLearning.FlushJob(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.FlushJob(), please update this usage.")] - public static FlushJobResponse FlushJob(this IElasticClient client, IFlushJobRequest request) - => client.MachineLearning.FlushJob(request); - - [Obsolete("Moved to client.MachineLearning.FlushJobAsync(), please update this usage.")] - public static Task FlushJobAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.FlushJobAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.FlushJobAsync(), please update this usage.")] - public static Task FlushJobAsync(this IElasticClient client, IFlushJobRequest request, CancellationToken ct = default) - => client.MachineLearning.FlushJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-FollowIndexStats.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-FollowIndexStats.cs deleted file mode 100644 index 03d8b46f9e6..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-FollowIndexStats.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.FollowIndexStats(), please update this usage.")] - public static FollowIndexStatsResponse FollowIndexStats(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.CrossClusterReplication.FollowIndexStats(indices, selector); - - [Obsolete("Moved to client.CrossClusterReplication.FollowIndexStats(), please update this usage.")] - public static FollowIndexStatsResponse FollowIndexStats(this IElasticClient client, IFollowIndexStatsRequest request) - => client.CrossClusterReplication.FollowIndexStats(request); - - [Obsolete("Moved to client.CrossClusterReplication.FollowIndexStatsAsync(), please update this usage.")] - public static Task FollowIndexStatsAsync(this IElasticClient client, Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.CrossClusterReplication.FollowIndexStatsAsync(indices, selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.FollowIndexStatsAsync(), please update this usage.")] - public static Task FollowIndexStatsAsync(this IElasticClient client, IFollowIndexStatsRequest request, - CancellationToken ct = default - ) - => client.CrossClusterReplication.FollowIndexStatsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ForceMerge.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ForceMerge.cs deleted file mode 100644 index c66833308b2..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ForceMerge.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.ForceMerge(), please update this usage.")] - public static ForceMergeResponse ForceMerge(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.ForceMerge(indices, selector); - - [Obsolete("Moved to client.Indices.ForceMerge(), please update this usage.")] - public static ForceMergeResponse ForceMerge(this IElasticClient client, IForceMergeRequest request) - => client.Indices.ForceMerge(request); - - [Obsolete("Moved to client.Indices.ForceMergeAsync(), please update this usage.")] - public static Task ForceMergeAsync(this IElasticClient client, Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.ForceMergeAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.ForceMergeAsync(), please update this usage.")] - public static Task ForceMergeAsync(this IElasticClient client, IForceMergeRequest request, CancellationToken ct = default) - => client.Indices.ForceMergeAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ForecastJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ForecastJob.cs deleted file mode 100644 index 99b84c3600e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ForecastJob.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.ForecastJob(), please update this usage.")] - public static ForecastJobResponse ForecastJob(this IElasticClient client, Id jobId, - Func selector = null - ) - => client.MachineLearning.ForecastJob(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.ForecastJob(), please update this usage.")] - public static ForecastJobResponse ForecastJob(this IElasticClient client, IForecastJobRequest request) - => client.MachineLearning.ForecastJob(request); - - [Obsolete("Moved to client.MachineLearning.ForecastJobAsync(), please update this usage.")] - public static Task ForecastJobAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.ForecastJobAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.ForecastJobAsync(), please update this usage.")] - public static Task ForecastJobAsync(this IElasticClient client, IForecastJobRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.ForecastJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetAlias.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetAlias.cs deleted file mode 100644 index 64a35224d2f..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetAlias.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using static Nest.Infer; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.GetAlias(), please update this usage.")] - public static GetAliasResponse GetAlias(this IElasticClient client, Func selector = null) - => client.Indices.GetAlias(AllIndices, selector); - - [Obsolete("Moved to client.Indices.GetAlias(), please update this usage.")] - public static GetAliasResponse GetAlias(this IElasticClient client, IGetAliasRequest request) - => client.Indices.GetAlias(request); - - [Obsolete("Moved to client.Indices.GetAliasAsync(), please update this usage.")] - public static Task GetAliasAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.GetAliasAsync(AllIndices, selector, ct); - - [Obsolete("Moved to client.Indices.GetAliasAsync(), please update this usage.")] - public static Task GetAliasAsync(this IElasticClient client, IGetAliasRequest request, CancellationToken ct = default) - => client.Indices.GetAliasAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetAnomalyRecords.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetAnomalyRecords.cs deleted file mode 100644 index 1e701de41e9..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetAnomalyRecords.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetAnomalyRecords(), please update this usage.")] - public static GetAnomalyRecordsResponse GetAnomalyRecords(this IElasticClient client, Id jobId, - Func selector = null - ) - => client.MachineLearning.GetAnomalyRecords(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.GetAnomalyRecords(), please update this usage.")] - public static GetAnomalyRecordsResponse GetAnomalyRecords(this IElasticClient client, IGetAnomalyRecordsRequest request) - => client.MachineLearning.GetAnomalyRecords(request); - - [Obsolete("Moved to client.MachineLearning.GetAnomalyRecordsAsync(), please update this usage.")] - public static Task GetAnomalyRecordsAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetAnomalyRecordsAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetAnomalyRecordsAsync(), please update this usage.")] - public static Task GetAnomalyRecordsAsync(this IElasticClient client, IGetAnomalyRecordsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetAnomalyRecordsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetAutoFollowPattern.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetAutoFollowPattern.cs deleted file mode 100644 index fa3c4717253..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetAutoFollowPattern.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.GetAutoFollowPattern(), please update this usage.")] - public static GetAutoFollowPatternResponse GetAutoFollowPattern(this IElasticClient client, - Func selector = null - ) - => client.CrossClusterReplication.GetAutoFollowPattern(null, selector); - - [Obsolete("Moved to client.CrossClusterReplication.GetAutoFollowPattern(), please update this usage.")] - public static GetAutoFollowPatternResponse GetAutoFollowPattern(this IElasticClient client, IGetAutoFollowPatternRequest request) - => client.CrossClusterReplication.GetAutoFollowPattern(request); - - [Obsolete("Moved to client.CrossClusterReplication.GetAutoFollowPatternAsync(), please update this usage.")] - public static Task GetAutoFollowPatternAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.CrossClusterReplication.GetAutoFollowPatternAsync(null, selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.GetAutoFollowPatternAsync(), please update this usage.")] - public static Task GetAutoFollowPatternAsync(this IElasticClient client, IGetAutoFollowPatternRequest request, - CancellationToken ct = default - ) - => client.CrossClusterReplication.GetAutoFollowPatternAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetBasicLicenseStatus.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetBasicLicenseStatus.cs deleted file mode 100644 index e6a3cde8c65..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetBasicLicenseStatus.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.License.GetBasicStatus(), please update this usage.")] - public static GetBasicLicenseStatusResponse GetBasicLicenseStatus(this IElasticClient client, - Func selector = null - ) - => client.License.GetBasicStatus(selector); - - [Obsolete("Moved to client.License.GetBasicStatus(), please update this usage.")] - public static GetBasicLicenseStatusResponse GetBasicLicenseStatus(this IElasticClient client, IGetBasicLicenseStatusRequest request) - => client.License.GetBasicStatus(request); - - [Obsolete("Moved to client.License.GetBasicStatusAsync(), please update this usage.")] - public static Task GetBasicLicenseStatusAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.License.GetBasicStatusAsync(selector, ct); - - [Obsolete("Moved to client.License.GetBasicStatusAsync(), please update this usage.")] - public static Task GetBasicLicenseStatusAsync(this IElasticClient client, - IGetBasicLicenseStatusRequest request, CancellationToken ct = default - ) - => client.License.GetBasicStatusAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetBuckets.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetBuckets.cs deleted file mode 100644 index c3550b6ddea..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetBuckets.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetBuckets(), please update this usage.")] - public static GetBucketsResponse GetBuckets(this IElasticClient client, Id jobId, - Func selector = null - ) - => client.MachineLearning.GetBuckets(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.GetBuckets(), please update this usage.")] - public static GetBucketsResponse GetBuckets(this IElasticClient client, IGetBucketsRequest request) - => client.MachineLearning.GetBuckets(request); - - [Obsolete("Moved to client.MachineLearning.GetBucketsAsync(), please update this usage.")] - public static Task GetBucketsAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetBucketsAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetBucketsAsync(), please update this usage.")] - public static Task GetBucketsAsync(this IElasticClient client, IGetBucketsRequest request, CancellationToken ct = default) - => client.MachineLearning.GetBucketsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetCalendarEvents.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetCalendarEvents.cs deleted file mode 100644 index 9430dffb295..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetCalendarEvents.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetCalendarEvents(), please update this usage.")] - public static GetCalendarEventsResponse GetCalendarEvents(this IElasticClient client, Id calendarId, - Func selector = null - ) - => client.MachineLearning.GetCalendarEvents(calendarId, selector); - - [Obsolete("Moved to client.MachineLearning.GetCalendarEvents(), please update this usage.")] - public static GetCalendarEventsResponse GetCalendarEvents(this IElasticClient client, IGetCalendarEventsRequest request) - => client.MachineLearning.GetCalendarEvents(request); - - [Obsolete("Moved to client.MachineLearning.GetCalendarEventsAsync(), please update this usage.")] - public static Task GetCalendarEventsAsync(this IElasticClient client, Id calendarId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetCalendarEventsAsync(calendarId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetCalendarEventsAsync(), please update this usage.")] - public static Task GetCalendarEventsAsync(this IElasticClient client, IGetCalendarEventsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetCalendarEventsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetCalendars.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetCalendars.cs deleted file mode 100644 index 5e0f1baf8ad..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetCalendars.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetCalendars(), please update this usage.")] - public static GetCalendarsResponse GetCalendars(this IElasticClient client, Func selector = null - ) - => client.MachineLearning.GetCalendars(selector); - - - [Obsolete("Moved to client.MachineLearning.GetCalendars(), please update this usage.")] - public static GetCalendarsResponse GetCalendars(this IElasticClient client, IGetCalendarsRequest request) - => client.MachineLearning.GetCalendars(request); - - [Obsolete("Moved to client.MachineLearning.GetCalendarsAsync(), please update this usage.")] - public static Task GetCalendarsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetCalendarsAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetCalendarsAsync(), please update this usage.")] - public static Task GetCalendarsAsync(this IElasticClient client, IGetCalendarsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetCalendarsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetCategories.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetCategories.cs deleted file mode 100644 index a6403207db1..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetCategories.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetCategories(), please update this usage.")] - public static GetCategoriesResponse GetCategories(this IElasticClient client, Id jobId, - Func selector = null - ) - => client.MachineLearning.GetCategories(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.GetCategories(), please update this usage.")] - public static GetCategoriesResponse GetCategories(this IElasticClient client, IGetCategoriesRequest request) - => client.MachineLearning.GetCategories(request); - - [Obsolete("Moved to client.MachineLearning.GetCategoriesAsync(), please update this usage.")] - public static Task GetCategoriesAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetCategoriesAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetCategoriesAsync(), please update this usage.")] - public static Task GetCategoriesAsync(this IElasticClient client, IGetCategoriesRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetCategoriesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetCertificates.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetCertificates.cs deleted file mode 100644 index b82833fe637..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetCertificates.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.GetCertificates(), please update this usage.")] - public static GetCertificatesResponse GetCertificates(this IElasticClient client, - Func selector = null - ) - => client.Security.GetCertificates(selector); - - [Obsolete("Moved to client.Security.GetCertificates(), please update this usage.")] - public static GetCertificatesResponse GetCertificates(this IElasticClient client, IGetCertificatesRequest request) - => client.Security.GetCertificates(request); - - [Obsolete("Moved to client.Security.GetCertificatesAsync(), please update this usage.")] - public static Task GetCertificatesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.GetCertificatesAsync(selector, ct); - - [Obsolete("Moved to client.Security.GetCertificatesAsync(), please update this usage.")] - public static Task GetCertificatesAsync(this IElasticClient client, IGetCertificatesRequest request, - CancellationToken ct = default - ) - => client.Security.GetCertificatesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetDatafeedStats.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetDatafeedStats.cs deleted file mode 100644 index 8afe5048b13..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetDatafeedStats.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetDatafeedStats(), please update this usage.")] - public static GetDatafeedStatsResponse GetDatafeedStats(this IElasticClient client, - Func selector = null - ) - => client.MachineLearning.GetDatafeedStats(selector); - - [Obsolete("Moved to client.MachineLearning.GetDatafeedStats(), please update this usage.")] - public static GetDatafeedStatsResponse GetDatafeedStats(this IElasticClient client, IGetDatafeedStatsRequest request) - => client.MachineLearning.GetDatafeedStats(request); - - [Obsolete("Moved to client.MachineLearning.GetDatafeedStatsAsync(), please update this usage.")] - public static Task GetDatafeedStatsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetDatafeedStatsAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetDatafeedStatsAsync(), please update this usage.")] - public static Task GetDatafeedStatsAsync(this IElasticClient client, IGetDatafeedStatsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetDatafeedStatsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetDatafeeds.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetDatafeeds.cs deleted file mode 100644 index 5fa09eeb9f0..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetDatafeeds.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetDatafeeds(), please update this usage.")] - public static GetDatafeedsResponse GetDatafeeds(this IElasticClient client, Func selector = null - ) - => client.MachineLearning.GetDatafeeds(selector); - - [Obsolete("Moved to client.MachineLearning.GetDatafeeds(), please update this usage.")] - public static GetDatafeedsResponse GetDatafeeds(this IElasticClient client, IGetDatafeedsRequest request) - => client.MachineLearning.GetDatafeeds(request); - - [Obsolete("Moved to client.MachineLearning.GetDatafeedsAsync(), please update this usage.")] - public static Task GetDatafeedsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetDatafeedsAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetDatafeedsAsync(), please update this usage.")] - public static Task GetDatafeedsAsync(this IElasticClient client, IGetDatafeedsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetDatafeedsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetFieldMapping.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetFieldMapping.cs deleted file mode 100644 index 4a66d83aed0..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetFieldMapping.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.GetFieldMapping(), please update this usage.")] - public static GetFieldMappingResponse GetFieldMapping(this IElasticClient client, Fields fields, - Func, IGetFieldMappingRequest> selector = null - ) - where T : class => client.Indices.GetFieldMapping(fields, selector); - - [Obsolete("Moved to client.Indices.GetFieldMapping(), please update this usage.")] - public static GetFieldMappingResponse GetFieldMapping(this IElasticClient client, IGetFieldMappingRequest request) - => client.Indices.GetFieldMapping(request); - - [Obsolete("Moved to client.Indices.GetFieldMappingAsync(), please update this usage.")] - public static Task GetFieldMappingAsync(this IElasticClient client, Fields fields, - Func, IGetFieldMappingRequest> selector = null, - CancellationToken ct = default - ) - where T : class => client.Indices.GetFieldMappingAsync(fields, selector, ct); - - [Obsolete("Moved to client.Indices.GetFieldMappingAsync(), please update this usage.")] - public static Task GetFieldMappingAsync(this IElasticClient client, IGetFieldMappingRequest request, - CancellationToken ct = default - ) - => client.Indices.GetFieldMappingAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndex.cs deleted file mode 100644 index 1e9d311a950..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndex.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using GetIndexResponseConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Get(), please update this usage.")] - public static GetIndexResponse GetIndex(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.Get(indices, selector); - - [Obsolete("Moved to client.Indices.Get(), please update this usage.")] - public static GetIndexResponse GetIndex(this IElasticClient client, IGetIndexRequest request) - => client.Indices.Get(request); - - [Obsolete("Moved to client.Indices.GetAsync(), please update this usage.")] - public static Task GetIndexAsync(this IElasticClient client, Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.GetAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.GetAsync(), please update this usage.")] - public static Task GetIndexAsync(this IElasticClient client, IGetIndexRequest request, CancellationToken ct = default) - => client.Indices.GetAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndexSettings.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndexSettings.cs deleted file mode 100644 index ff863ce1beb..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndexSettings.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using static Nest.Infer; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.GetSettings(), please update this usage.")] - public static GetIndexSettingsResponse GetIndexSettings(this IElasticClient client, - Func selector - ) - => client.Indices.GetSettings(AllIndices, selector); - - [Obsolete("Moved to client.Indices.GetSettings(), please update this usage.")] - public static GetIndexSettingsResponse GetIndexSettings(this IElasticClient client, IGetIndexSettingsRequest request) - => client.Indices.GetSettings(request); - - [Obsolete("Moved to client.Indices.GetSettingsAsync(), please update this usage.")] - public static Task GetIndexSettingsAsync(this IElasticClient client, - Func selector, - CancellationToken ct = default - ) - => client.Indices.GetSettingsAsync(AllIndices, selector, ct); - - [Obsolete("Moved to client.Indices.GetSettingsAsync(), please update this usage.")] - public static Task GetIndexSettingsAsync(this IElasticClient client, IGetIndexSettingsRequest request, - CancellationToken ct = default - ) - => client.Indices.GetSettingsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndexTemplate.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndexTemplate.cs deleted file mode 100644 index dd7e8eb5542..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetIndexTemplate.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using GetIndexTemplateConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.GetTemplate(), please update this usage.")] - public static GetIndexTemplateResponse GetIndexTemplate(this IElasticClient client, - Func selector = null - ) - => client.Indices.GetTemplate(null, selector); - - [Obsolete("Moved to client.Indices.GetTemplate(), please update this usage.")] - public static GetIndexTemplateResponse GetIndexTemplate(this IElasticClient client, IGetIndexTemplateRequest request) - => client.Indices.GetTemplate(request); - - [Obsolete("Moved to client.Indices.GetTemplateAsync(), please update this usage.")] - public static Task GetIndexTemplateAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.GetTemplateAsync(null, selector, ct); - - [Obsolete("Moved to client.Indices.GetTemplateAsync(), please update this usage.")] - public static Task GetIndexTemplateAsync(this IElasticClient client, IGetIndexTemplateRequest request, - CancellationToken ct = default - ) - => client.Indices.GetTemplateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetInfluencers.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetInfluencers.cs deleted file mode 100644 index 2919f2c1401..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetInfluencers.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetInfluencers(), please update this usage.")] - public static GetInfluencersResponse GetInfluencers(this IElasticClient client, Id jobId, - Func selector = null - ) - => client.MachineLearning.GetInfluencers(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.GetInfluencers(), please update this usage.")] - public static GetInfluencersResponse GetInfluencers(this IElasticClient client, IGetInfluencersRequest request) - => client.MachineLearning.GetInfluencers(request); - - [Obsolete("Moved to client.MachineLearning.GetInfluencersAsync(), please update this usage.")] - public static Task GetInfluencersAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetInfluencersAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetInfluencersAsync(), please update this usage.")] - public static Task GetInfluencersAsync(this IElasticClient client, IGetInfluencersRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetInfluencersAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetJobStats.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetJobStats.cs deleted file mode 100644 index 29c54d4f012..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetJobStats.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetJobStats(), please update this usage.")] - public static GetJobStatsResponse GetJobStats(this IElasticClient client, Func selector = null) - => client.MachineLearning.GetJobStats(selector); - - [Obsolete("Moved to client.MachineLearning.GetJobStats(), please update this usage.")] - public static GetJobStatsResponse GetJobStats(this IElasticClient client, IGetJobStatsRequest request) - => client.MachineLearning.GetJobStats(request); - - [Obsolete("Moved to client.MachineLearning.GetJobStatsAsync(), please update this usage.")] - public static Task GetJobStatsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetJobStatsAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetJobStatsAsync(), please update this usage.")] - public static Task GetJobStatsAsync(this IElasticClient client, IGetJobStatsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetJobStatsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetJobs.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetJobs.cs deleted file mode 100644 index eaab72c88a7..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetJobs.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetJobs(), please update this usage.")] - public static GetJobsResponse GetJobs(this IElasticClient client, Func selector = null) - => client.MachineLearning.GetJobs(selector); - - [Obsolete("Moved to client.MachineLearning.GetJobs(), please update this usage.")] - public static GetJobsResponse GetJobs(this IElasticClient client, IGetJobsRequest request) - => client.MachineLearning.GetJobs(request); - - [Obsolete("Moved to client.MachineLearning.GetJobsAsync(), please update this usage.")] - public static Task GetJobsAsync(this IElasticClient client, Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetJobsAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetJobsAsync(), please update this usage.")] - public static Task GetJobsAsync(this IElasticClient client, IGetJobsRequest request, CancellationToken ct = default) - => client.MachineLearning.GetJobsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetLicense.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetLicense.cs deleted file mode 100644 index b12acbc1c3e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetLicense.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.License.Get(), please update this usage.")] - public static GetLicenseResponse GetLicense(this IElasticClient client, Func selector = null) - => client.License.Get(selector); - - [Obsolete("Moved to client.License.Get(), please update this usage.")] - public static GetLicenseResponse GetLicense(this IElasticClient client, IGetLicenseRequest request) - => client.License.Get(request); - - [Obsolete("Moved to client.License.GetAsync(), please update this usage.")] - public static Task GetLicenseAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.License.GetAsync(selector, ct); - - [Obsolete("Moved to client.License.GetAsync(), please update this usage.")] - public static Task GetLicenseAsync(this IElasticClient client, IGetLicenseRequest request, CancellationToken ct = default) - => client.License.GetAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetMapping.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetMapping.cs deleted file mode 100644 index d5a861dc3dd..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetMapping.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.GetMapping(), please update this usage.")] - public static GetMappingResponse GetMapping(this IElasticClient client, Func, IGetMappingRequest> selector = null) - where T : class => client.Indices.GetMapping(selector); - - [Obsolete("Moved to client.Indices.GetMapping(), please update this usage.")] - public static GetMappingResponse GetMapping(this IElasticClient client, IGetMappingRequest request) - => client.Indices.GetMapping(request); - - [Obsolete("Moved to client.Indices.GetMappingAsync(), please update this usage.")] - public static Task GetMappingAsync(this IElasticClient client, - Func, IGetMappingRequest> selector = null, - CancellationToken ct = default - ) - where T : class => client.Indices.GetMappingAsync(selector, ct); - - [Obsolete("Moved to client.Indices.GetMappingAsync(), please update this usage.")] - public static Task GetMappingAsync(this IElasticClient client, IGetMappingRequest request, CancellationToken ct = default) - => client.Indices.GetMappingAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetModelSnapshots.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetModelSnapshots.cs deleted file mode 100644 index 8a498597ceb..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetModelSnapshots.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetModelSnapshots(), please update this usage.")] - public static GetModelSnapshotsResponse GetModelSnapshots(this IElasticClient client, Id jobId, - Func selector = null - ) - => client.MachineLearning.GetModelSnapshots(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.GetModelSnapshots(), please update this usage.")] - public static GetModelSnapshotsResponse GetModelSnapshots(this IElasticClient client, IGetModelSnapshotsRequest request) - => client.MachineLearning.GetModelSnapshots(request); - - [Obsolete("Moved to client.MachineLearning.GetModelSnapshotsAsync(), please update this usage.")] - public static Task GetModelSnapshotsAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetModelSnapshotsAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetModelSnapshotsAsync(), please update this usage.")] - public static Task GetModelSnapshotsAsync(this IElasticClient client, IGetModelSnapshotsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetModelSnapshotsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetOverallBuckets.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetOverallBuckets.cs deleted file mode 100644 index 8e4e52cf55f..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetOverallBuckets.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.GetOverallBuckets(), please update this usage.")] - public static GetOverallBucketsResponse GetOverallBuckets(this IElasticClient client, Id jobId, - Func selector = null - ) - => client.MachineLearning.GetOverallBuckets(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.GetOverallBuckets(), please update this usage.")] - public static GetOverallBucketsResponse GetOverallBuckets(this IElasticClient client, IGetOverallBucketsRequest request) - => client.MachineLearning.GetOverallBuckets(request); - - [Obsolete("Moved to client.MachineLearning.GetOverallBucketsAsync(), please update this usage.")] - public static Task GetOverallBucketsAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.GetOverallBucketsAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.GetOverallBucketsAsync(), please update this usage.")] - public static Task GetOverallBucketsAsync(this IElasticClient client, IGetOverallBucketsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.GetOverallBucketsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetPipeline.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetPipeline.cs deleted file mode 100644 index f84de9ff34c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetPipeline.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Ingest.GetPipeline(), please update this usage.")] - public static GetPipelineResponse GetPipeline(this IElasticClient client, Func selector = null) - => client.Ingest.GetPipeline(selector); - - [Obsolete("Moved to client.Ingest.GetPipeline(), please update this usage.")] - public static GetPipelineResponse GetPipeline(this IElasticClient client, IGetPipelineRequest request) - => client.Ingest.GetPipeline(request); - - [Obsolete("Moved to client.Ingest.GetPipelineAsync(), please update this usage.")] - public static Task GetPipelineAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Ingest.GetPipelineAsync(selector, ct); - - [Obsolete("Moved to client.Ingest.GetPipelineAsync(), please update this usage.")] - public static Task GetPipelineAsync(this IElasticClient client, IGetPipelineRequest request, - CancellationToken ct = default - ) - => client.Ingest.GetPipelineAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetPrivileges.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetPrivileges.cs deleted file mode 100644 index 9aa17e9c508..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetPrivileges.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.GetPrivileges(), please update this usage.")] - public static GetPrivilegesResponse GetPrivileges(this IElasticClient client, - Func selector = null - ) - => client.Security.GetPrivileges(null, selector); - - [Obsolete("Moved to client.Security.GetPrivileges(), please update this usage.")] - public static GetPrivilegesResponse GetPrivileges(this IElasticClient client, IGetPrivilegesRequest request) - => client.Security.GetPrivileges(request); - - [Obsolete("Moved to client.Security.GetPrivilegesAsync(), please update this usage.")] - public static Task GetPrivilegesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.GetPrivilegesAsync(null, selector, ct); - - [Obsolete("Moved to client.Security.GetPrivilegesAsync(), please update this usage.")] - public static Task GetPrivilegesAsync(this IElasticClient client, IGetPrivilegesRequest request, - CancellationToken ct = default - ) - => client.Security.GetPrivilegesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRepository.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetRepository.cs deleted file mode 100644 index 683c2f41574..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRepository.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.GetRepository(), please update this usage.")] - public static GetRepositoryResponse GetRepository(this IElasticClient client, - Func selector = null - ) - => client.Snapshot.GetRepository(selector); - - [Obsolete("Moved to client.Snapshot.GetRepository(), please update this usage.")] - public static GetRepositoryResponse GetRepository(this IElasticClient client, IGetRepositoryRequest request) - => client.Snapshot.GetRepository(request); - - [Obsolete("Moved to client.Snapshot.GetRepositoryAsync(), please update this usage.")] - public static Task GetRepositoryAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Snapshot.GetRepositoryAsync(selector, ct); - - [Obsolete("Moved to client.Snapshot.GetRepositoryAsync(), please update this usage.")] - public static Task GetRepositoryAsync(this IElasticClient client, IGetRepositoryRequest request, - CancellationToken ct = default - ) - => client.Snapshot.GetRepositoryAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRole.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetRole.cs deleted file mode 100644 index 2d3bdb60ce6..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRole.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.GetRole(), please update this usage.")] - public static GetRoleResponse GetRole(this IElasticClient client, Func selector = null) - => client.Security.GetRole(null, selector); - - [Obsolete("Moved to client.Security.GetRole(), please update this usage.")] - public static GetRoleResponse GetRole(this IElasticClient client, IGetRoleRequest request) - => client.Security.GetRole(request); - - [Obsolete("Moved to client.Security.GetRoleAsync(), please update this usage.")] - public static Task GetRoleAsync(this IElasticClient client, Func selector = null, - CancellationToken ct = default - ) - => client.Security.GetRoleAsync(null, selector, ct); - - [Obsolete("Moved to client.Security.GetRoleAsync(), please update this usage.")] - public static Task GetRoleAsync(this IElasticClient client, IGetRoleRequest request, CancellationToken ct = default) - => client.Security.GetRoleAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRoleMapping.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetRoleMapping.cs deleted file mode 100644 index b4b07755227..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRoleMapping.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.GetRoleMapping(), please update this usage.")] - public static GetRoleMappingResponse GetRoleMapping(this IElasticClient client, - Func selector = null - ) - => client.Security.GetRoleMapping(null, selector); - - [Obsolete("Moved to client.Security.GetRoleMapping(), please update this usage.")] - public static GetRoleMappingResponse GetRoleMapping(this IElasticClient client, IGetRoleMappingRequest request) - => client.Security.GetRoleMapping(request); - - [Obsolete("Moved to client.Security.GetRoleMappingAsync(), please update this usage.")] - public static Task GetRoleMappingAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.GetRoleMappingAsync(null, selector, ct); - - [Obsolete("Moved to client.Security.GetRoleMappingAsync(), please update this usage.")] - public static Task GetRoleMappingAsync(this IElasticClient client, IGetRoleMappingRequest request, - CancellationToken ct = default - ) - => client.Security.GetRoleMappingAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupCapabilities.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupCapabilities.cs deleted file mode 100644 index 3b28180c074..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupCapabilities.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Rollup.GetCapabilities(), please update this usage.")] - public static GetRollupCapabilitiesResponse GetRollupCapabilities(this IElasticClient client, - Func selector = null - ) - => client.Rollup.GetCapabilities(selector); - - [Obsolete("Moved to client.Rollup.GetCapabilities(), please update this usage.")] - public static GetRollupCapabilitiesResponse GetRollupCapabilities(this IElasticClient client, IGetRollupCapabilitiesRequest request) - => client.Rollup.GetCapabilities(request); - - [Obsolete("Moved to client.Rollup.GetCapabilitiesAsync(), please update this usage.")] - public static Task GetRollupCapabilitiesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Rollup.GetCapabilitiesAsync(selector, ct); - - [Obsolete("Moved to client.Rollup.GetCapabilitiesAsync(), please update this usage.")] - public static Task GetRollupCapabilitiesAsync(this IElasticClient client, - IGetRollupCapabilitiesRequest request, - CancellationToken ct = default - ) - => client.Rollup.GetCapabilitiesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupIndexCapabilities.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupIndexCapabilities.cs deleted file mode 100644 index c6c4dcebe11..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupIndexCapabilities.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Rollup.GetIndexCapabilities(), please update this usage.")] - public static GetRollupIndexCapabilitiesResponse GetRollupIndexCapabilities(this IElasticClient client, - IndexName index, - Func selector = null - ) - => client.Rollup.GetIndexCapabilities(index, selector); - - [Obsolete("Moved to client.Rollup.GetIndexCapabilities(), please update this usage.")] - public static GetRollupIndexCapabilitiesResponse GetRollupIndexCapabilities(this IElasticClient client, - IGetRollupIndexCapabilitiesRequest request - ) - => client.Rollup.GetIndexCapabilities(request); - - [Obsolete("Moved to client.Rollup.GetIndexCapabilitiesAsync(), please update this usage.")] - public static Task GetRollupIndexCapabilitiesAsync(this IElasticClient client, - IndexName index, - Func selector = null, - CancellationToken ct = default - ) - => client.Rollup.GetIndexCapabilitiesAsync(index, selector, ct); - - [Obsolete("Moved to client.Rollup.GetIndexCapabilitiesAsync(), please update this usage.")] - public static Task GetRollupIndexCapabilitiesAsync(this IElasticClient client, - IGetRollupIndexCapabilitiesRequest request, - CancellationToken ct = default - ) - => client.Rollup.GetIndexCapabilitiesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupJob.cs deleted file mode 100644 index 67d03196ec8..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetRollupJob.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Rollup.GetJob(), please update this usage.")] - public static GetRollupJobResponse GetRollupJob(this IElasticClient client, Func selector = null - ) - => client.Rollup.GetJob(selector); - - [Obsolete("Moved to client.Rollup.GetJob(), please update this usage.")] - public static GetRollupJobResponse GetRollupJob(this IElasticClient client, IGetRollupJobRequest request) - => client.Rollup.GetJob(request); - - [Obsolete("Moved to client.Rollup.GetJobAsync(), please update this usage.")] - public static Task GetRollupJobAsync(this IElasticClient client, - Func selector = null, CancellationToken ct = default - ) - => client.Rollup.GetJobAsync(selector, ct); - - [Obsolete("Moved to client.Rollup.GetJobAsync(), please update this usage.")] - public static Task GetRollupJobAsync(this IElasticClient client, IGetRollupJobRequest request, - CancellationToken ct = default - ) - => client.Rollup.GetJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetSnapshot.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetSnapshot.cs deleted file mode 100644 index f889c1c8d87..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetSnapshot.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.Get(), please update this usage.")] - public static GetSnapshotResponse GetSnapshot(this IElasticClient client, Name repository, Names snapshots, - Func selector = null - ) - => client.Snapshot.Get(repository, snapshots, selector); - - [Obsolete("Moved to client.Snapshot.Get(), please update this usage.")] - public static GetSnapshotResponse GetSnapshot(this IElasticClient client, IGetSnapshotRequest request) - => client.Snapshot.Get(request); - - [Obsolete("Moved to client.Snapshot.GetAsync(), please update this usage.")] - public static Task GetSnapshotAsync(this IElasticClient client, Name repository, Names snapshots, - Func selector = null, CancellationToken ct = default - ) - => client.Snapshot.GetAsync(repository, snapshots, selector, ct); - - [Obsolete("Moved to client.Snapshot.GetAsync(), please update this usage.")] - public static Task GetSnapshotAsync(this IElasticClient client, IGetSnapshotRequest request, - CancellationToken ct = default - ) - => client.Snapshot.GetAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetTask.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetTask.cs deleted file mode 100644 index fe7496529d2..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetTask.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Tasks.GetTask(), please update this usage.")] - public static GetTaskResponse GetTask(this IElasticClient client, TaskId id, Func selector = null) - => client.Tasks.GetTask(id, selector); - - [Obsolete("Moved to client.Tasks.GetTask(), please update this usage.")] - public static GetTaskResponse GetTask(this IElasticClient client, IGetTaskRequest request) - => client.Tasks.GetTask(request); - - [Obsolete("Moved to client.Tasks.GetTaskAsync(), please update this usage.")] - public static Task GetTaskAsync(this IElasticClient client, - TaskId id, - Func selector = null, - CancellationToken ct = default - ) - => client.Tasks.GetTaskAsync(id, selector, ct); - - [Obsolete("Moved to client.Tasks.GetTaskAsync(), please update this usage.")] - public static Task GetTaskAsync(this IElasticClient client, IGetTaskRequest request, CancellationToken ct = default) - => client.Tasks.GetTaskAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetTrialLicenseStatus.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetTrialLicenseStatus.cs deleted file mode 100644 index c4020b5c608..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetTrialLicenseStatus.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.License.GetTrialStatus(), please update this usage.")] - public static GetTrialLicenseStatusResponse GetTrialLicenseStatus(this IElasticClient client, - Func selector = null - ) - => client.License.GetTrialStatus(selector); - - [Obsolete("Moved to client.License.GetTrialStatus(), please update this usage.")] - public static GetTrialLicenseStatusResponse GetTrialLicenseStatus(this IElasticClient client, IGetTrialLicenseStatusRequest request) - => client.License.GetTrialStatus(request); - - [Obsolete("Moved to client.License.GetTrialStatusAsync(), please update this usage.")] - public static Task GetTrialLicenseStatusAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.License.GetTrialStatusAsync(selector, ct); - - [Obsolete("Moved to client.License.GetTrialStatusAsync(), please update this usage.")] - public static Task GetTrialLicenseStatusAsync(this IElasticClient client, - IGetTrialLicenseStatusRequest request, - CancellationToken ct = default - ) - => client.License.GetTrialStatusAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetUser.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetUser.cs deleted file mode 100644 index 6c95ac4c64f..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetUser.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.GetUser(), please update this usage.")] - public static GetUserResponse GetUser(this IElasticClient client, Func selector = null) - => client.Security.GetUser(selector); - - [Obsolete("Moved to client.Security.GetUser(), please update this usage.")] - public static GetUserResponse GetUser(this IElasticClient client, IGetUserRequest request) - => client.Security.GetUser(request); - - [Obsolete("Moved to client.Security.GetUserAsync(), please update this usage.")] - public static Task GetUserAsync(this IElasticClient client, Func selector = null, - CancellationToken ct = default - ) - => client.Security.GetUserAsync(selector, ct); - - [Obsolete("Moved to client.Security.GetUserAsync(), please update this usage.")] - public static Task GetUserAsync(this IElasticClient client, IGetUserRequest request, CancellationToken ct = default) - => client.Security.GetUserAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetUserAccessToken.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetUserAccessToken.cs deleted file mode 100644 index 6d504edd7ba..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetUserAccessToken.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.GetUserAccessToken(), please update this usage.")] - public static GetUserAccessTokenResponse GetUserAccessToken(this IElasticClient client, string username, string password, - Func selector = null - ) - => client.Security.GetUserAccessToken(username, password, selector); - - [Obsolete("Moved to client.Security.GetUserAccessToken(), please update this usage.")] - public static GetUserAccessTokenResponse GetUserAccessToken(this IElasticClient client, IGetUserAccessTokenRequest request) - => client.Security.GetUserAccessToken(request); - - [Obsolete("Moved to client.Security.GetUserAccessTokenAsync(), please update this usage.")] - public static Task GetUserAccessTokenAsync(this IElasticClient client, string username, string password, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.GetUserAccessTokenAsync(username, password, selector, ct); - - [Obsolete("Moved to client.Security.GetUserAccessTokenAsync(), please update this usage.")] - public static Task GetUserAccessTokenAsync(this IElasticClient client, IGetUserAccessTokenRequest request, - CancellationToken ct = default - ) - => client.Security.GetUserAccessTokenAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetUserPrivileges.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetUserPrivileges.cs deleted file mode 100644 index 9b61863748e..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetUserPrivileges.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.GetUserPrivileges(), please update this usage.")] - public static GetUserPrivilegesResponse GetUserPrivileges(this IElasticClient client, - Func selector = null - ) - => client.Security.GetUserPrivileges(selector); - - [Obsolete("Moved to client.Security.GetUserPrivileges(), please update this usage.")] - public static GetUserPrivilegesResponse GetUserPrivileges(this IElasticClient client, IGetUserPrivilegesRequest request) - => client.Security.GetUserPrivileges(request); - - [Obsolete("Moved to client.Security.GetUserPrivilegesAsync(), please update this usage.")] - public static Task GetUserPrivilegesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.GetUserPrivilegesAsync(selector, ct); - - [Obsolete("Moved to client.Security.GetUserPrivilegesAsync(), please update this usage.")] - public static Task GetUserPrivilegesAsync(this IElasticClient client, IGetUserPrivilegesRequest request, - CancellationToken ct = default - ) - => client.Security.GetUserPrivilegesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GetWatch.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GetWatch.cs deleted file mode 100644 index 73d5fd7b6eb..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GetWatch.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Get(), please update this usage.")] - public static GetWatchResponse GetWatch(this IElasticClient client, Id watchId, Func selector = null) - => client.Watcher.Get(watchId, selector); - - [Obsolete("Moved to client.Watcher.Get(), please update this usage.")] - public static GetWatchResponse GetWatch(this IElasticClient client, IGetWatchRequest request) - => client.Watcher.Get(request); - - [Obsolete("Moved to client.Watcher.GetAsync(), please update this usage.")] - public static Task GetWatchAsync(this IElasticClient client, Id watchId, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.GetAsync(watchId, selector, ct); - - [Obsolete("Moved to client.Watcher.GetAsync(), please update this usage.")] - public static Task GetWatchAsync(this IElasticClient client, IGetWatchRequest request, CancellationToken ct = default) - => client.Watcher.GetAsync(request,ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GraphExplore.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GraphExplore.cs deleted file mode 100644 index b4639f1cc98..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GraphExplore.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Graph.Explore(), please update this usage.")] - public static GraphExploreResponse GraphExplore(this IElasticClient client, Func, IGraphExploreRequest> selector) - where T : class => client.Graph.Explore(selector); - - [Obsolete("Moved to client.Graph.Explore(), please update this usage.")] - public static GraphExploreResponse GraphExplore(this IElasticClient client, IGraphExploreRequest request) - => client.Graph.Explore(request); - - [Obsolete("Moved to client.Graph.ExploreAsync(), please update this usage.")] - public static Task GraphExploreAsync(this IElasticClient client, - Func, IGraphExploreRequest> selector, - CancellationToken ct = default - ) - where T : class => client.Graph.ExploreAsync(selector, ct); - - [Obsolete("Moved to client.Graph.ExploreAsync(), please update this usage.")] - public static Task GraphExploreAsync(this IElasticClient client, IGraphExploreRequest request, - CancellationToken ct = default - ) - => client.Graph.ExploreAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-GrokProcessorPatterns.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-GrokProcessorPatterns.cs deleted file mode 100644 index 2a9b052bf65..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-GrokProcessorPatterns.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Ingest.GrokProcessorPatterns(), please update this usage.")] - public static GrokProcessorPatternsResponse GrokProcessorPatterns(this IElasticClient client, - Func selector = null - ) - => client.Ingest.GrokProcessorPatterns(selector); - - [Obsolete("Moved to client.Ingest.GrokProcessorPatterns(), please update this usage.")] - public static GrokProcessorPatternsResponse GrokProcessorPatterns(this IElasticClient client, IGrokProcessorPatternsRequest request) - => client.Ingest.GrokProcessorPatterns(request); - - [Obsolete("Moved to client.Ingest.GrokProcessorPatternsAsync(), please update this usage.")] - public static Task GrokProcessorPatternsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Ingest.GrokProcessorPatternsAsync(selector, ct); - - [Obsolete("Moved to client.Ingest.GrokProcessorPatternsAsync(), please update this usage.")] - public static Task GrokProcessorPatternsAsync(this IElasticClient client, - IGrokProcessorPatternsRequest request, - CancellationToken ct = default - ) - => client.Ingest.GrokProcessorPatternsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-HasPrivileges.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-HasPrivileges.cs deleted file mode 100644 index 0d4435284cc..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-HasPrivileges.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.HasPrivileges(), please update this usage.")] - public static HasPrivilegesResponse HasPrivileges(this IElasticClient client, - Func selector = null - ) - => client.Security.HasPrivileges(selector); - - [Obsolete("Moved to client.Security.HasPrivileges(), please update this usage.")] - public static HasPrivilegesResponse HasPrivileges(this IElasticClient client, IHasPrivilegesRequest request) - => client.Security.HasPrivileges(request); - - [Obsolete("Moved to client.Security.HasPrivilegesAsync(), please update this usage.")] - public static Task HasPrivilegesAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.HasPrivilegesAsync(selector, ct); - - [Obsolete("Moved to client.Security.HasPrivilegesAsync(), please update this usage.")] - public static Task HasPrivilegesAsync(this IElasticClient client, IHasPrivilegesRequest request, - CancellationToken ct = default - ) - => client.Security.HasPrivilegesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-IndexExists.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-IndexExists.cs deleted file mode 100644 index 129bee4858c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-IndexExists.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using IndexExistConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Exists(), please update this usage.")] - public static ExistsResponse IndexExists(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.Exists(indices, selector); - - [Obsolete("Moved to client.Indices.Exists(), please update this usage.")] - public static ExistsResponse IndexExists(this IElasticClient client, IIndexExistsRequest request) - => client.Indices.Exists(request); - - [Obsolete("Moved to client.Indices.ExistsAsync(), please update this usage.")] - public static Task IndexExistsAsync(this IElasticClient client, Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.ExistsAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.ExistsAsync(), please update this usage.")] - public static Task IndexExistsAsync(this IElasticClient client, IIndexExistsRequest request, CancellationToken ct = default) - => client.Indices.ExistsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-IndexTemplateExists.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-IndexTemplateExists.cs deleted file mode 100644 index 4e7f6eac7f8..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-IndexTemplateExists.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using IndexTemplateExistConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.TemplateExists(), please update this usage.")] - public static ExistsResponse IndexTemplateExists(this IElasticClient client, Name template, - Func selector = null - ) - => client.Indices.TemplateExists(template, selector); - - [Obsolete("Moved to client.Indices.TemplateExists(), please update this usage.")] - public static ExistsResponse IndexTemplateExists(this IElasticClient client, IIndexTemplateExistsRequest request) - => client.Indices.TemplateExists(request); - - [Obsolete("Moved to client.Indices.TemplateExistsAsync(), please update this usage.")] - public static Task IndexTemplateExistsAsync(this IElasticClient client, Name template, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.TemplateExistsAsync(template, selector, ct); - - [Obsolete("Moved to client.Indices.TemplateExistsAsync(), please update this usage.")] - public static Task IndexTemplateExistsAsync(this IElasticClient client, IIndexTemplateExistsRequest request, - CancellationToken ct = default - ) - => client.Indices.TemplateExistsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-IndicesShardStores.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-IndicesShardStores.cs deleted file mode 100644 index 92a1c811c93..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-IndicesShardStores.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using static Nest.Infer; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.ShardStores(), please update this usage.")] - public static IndicesShardStoresResponse IndicesShardStores(this IElasticClient client, - Func selector = null - ) - => client.Indices.ShardStores(AllIndices, selector); - - [Obsolete("Moved to client.Indices.ShardStores(), please update this usage.")] - public static IndicesShardStoresResponse IndicesShardStores(this IElasticClient client, IIndicesShardStoresRequest request) - => client.Indices.ShardStores(request); - - [Obsolete("Moved to client.Indices.ShardStoresAsync(), please update this usage.")] - public static Task IndicesShardStoresAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.ShardStoresAsync(AllIndices, selector, ct); - - [Obsolete("Moved to client.Indices.ShardStoresAsync(), please update this usage.")] - public static Task IndicesShardStoresAsync(this IElasticClient client, IIndicesShardStoresRequest request, - CancellationToken ct = default - ) - => client.Indices.ShardStoresAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-IndicesStats.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-IndicesStats.cs deleted file mode 100644 index 54d51613842..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-IndicesStats.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Stats(), please update this usage.")] - public static IndicesStatsResponse IndicesStats(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.Stats(indices, selector); - - [Obsolete("Moved to client.Indices.Stats(), please update this usage.")] - public static IndicesStatsResponse IndicesStats(this IElasticClient client, IIndicesStatsRequest request) - => client.Indices.Stats(request); - - [Obsolete("Moved to client.Indices.StatsAsync(), please update this usage.")] - public static Task IndicesStatsAsync(this IElasticClient client, - Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.StatsAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.StatsAsync(), please update this usage.")] - public static Task IndicesStatsAsync(this IElasticClient client, IIndicesStatsRequest request, - CancellationToken ct = default - ) - => client.Indices.StatsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-InvalidateUserAccessToken.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-InvalidateUserAccessToken.cs deleted file mode 100644 index b3a59fa15ac..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-InvalidateUserAccessToken.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.InvalidateUserAccessToken(), please update this usage.")] - public static InvalidateUserAccessTokenResponse InvalidateUserAccessToken(this IElasticClient client, string token, - Func selector = null - ) - => client.Security.InvalidateUserAccessToken(token, selector); - - [Obsolete("Moved to client.Security.InvalidateUserAccessToken(), please update this usage.")] - public static InvalidateUserAccessTokenResponse InvalidateUserAccessToken(this IElasticClient client, - IInvalidateUserAccessTokenRequest request - ) - => client.Security.InvalidateUserAccessToken(request); - - [Obsolete("Moved to client.Security.InvalidateUserAccessTokenAsync(), please update this usage.")] - public static Task InvalidateUserAccessTokenAsync(this IElasticClient client, string token, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.InvalidateUserAccessTokenAsync(token, selector, ct); - - [Obsolete("Moved to client.Security.InvalidateUserAccessTokenAsync(), please update this usage.")] - public static Task InvalidateUserAccessTokenAsync(this IElasticClient client, - IInvalidateUserAccessTokenRequest request, - CancellationToken ct = default - ) - => client.Security.InvalidateUserAccessTokenAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ListTasks.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ListTasks.cs deleted file mode 100644 index cad895b5fc7..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ListTasks.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Tasks.List(), please update this usage.")] - public static ListTasksResponse ListTasks(this IElasticClient client, Func selector = null) - => client.Tasks.List(selector); - - [Obsolete("Moved to client.Tasks.List(), please update this usage.")] - public static ListTasksResponse ListTasks(this IElasticClient client, IListTasksRequest request) - => client.Tasks.List(request); - - [Obsolete("Moved to client.Tasks.ListAsync(), please update this usage.")] - public static Task ListTasksAsync(this IElasticClient client, Func selector = null, - CancellationToken ct = default - ) - => client.Tasks.ListAsync(selector, ct); - - [Obsolete("Moved to client.Tasks.ListAsync(), please update this usage.")] - public static Task ListTasksAsync(this IElasticClient client, IListTasksRequest request, CancellationToken ct = default) - => client.Tasks.ListAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-MachineLearningInfo.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-MachineLearningInfo.cs deleted file mode 100644 index 9a100e0d0e9..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-MachineLearningInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.Info(), please update this usage.")] - public static MachineLearningInfoResponse MachineLearningInfo(this IElasticClient client, - Func selector = null - ) - => client.MachineLearning.Info(selector); - - [Obsolete("Moved to client.MachineLearning.Info(), please update this usage.")] - public static MachineLearningInfoResponse MachineLearningInfo(this IElasticClient client, IMachineLearningInfoRequest request) - => client.MachineLearning.Info(request); - - [Obsolete("Moved to client.MachineLearning.InfoAsync(), please update this usage.")] - public static Task MachineLearningInfoAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.InfoAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.InfoAsync(), please update this usage.")] - public static Task MachineLearningInfoAsync(this IElasticClient client, IMachineLearningInfoRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.InfoAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-NodesHotThreads.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-NodesHotThreads.cs deleted file mode 100644 index 2c3b6fb0394..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-NodesHotThreads.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using NodesHotThreadConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Nodes.HotThreads(), please update this usage.")] - public static NodesHotThreadsResponse NodesHotThreads(this IElasticClient client, - Func selector = null - ) - => client.Nodes.HotThreads(selector); - - [Obsolete("Moved to client.Nodes.HotThreads(), please update this usage.")] - public static NodesHotThreadsResponse NodesHotThreads(this IElasticClient client, INodesHotThreadsRequest request) - => client.Nodes.HotThreads(request); - - [Obsolete("Moved to client.Nodes.HotThreadsAsync(), please update this usage.")] - public static Task NodesHotThreadsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Nodes.HotThreadsAsync(selector, ct); - - [Obsolete("Moved to client.Nodes.HotThreadsAsync(), please update this usage.")] - public static Task NodesHotThreadsAsync(this IElasticClient client, INodesHotThreadsRequest request, - CancellationToken ct = default - ) - => client.Nodes.HotThreadsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-NodesInfo.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-NodesInfo.cs deleted file mode 100644 index d5e5ab0aaf1..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-NodesInfo.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using NodesHotThreadConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Nodes.Info(), please update this usage.")] - public static NodesInfoResponse NodesInfo(this IElasticClient client, Func selector = null) - => client.Nodes.Info(selector); - - [Obsolete("Moved to client.Nodes.Info(), please update this usage.")] - public static NodesInfoResponse NodesInfo(this IElasticClient client, INodesInfoRequest request) - => client.Nodes.Info(request); - - [Obsolete("Moved to client.Nodes.InfoAsync(), please update this usage.")] - public static Task NodesInfoAsync(this IElasticClient client, Func selector = null, - CancellationToken ct = default - ) - => client.Nodes.InfoAsync(selector, ct); - - [Obsolete("Moved to client.Nodes.InfoAsync(), please update this usage.")] - public static Task NodesInfoAsync(this IElasticClient client, INodesInfoRequest request, CancellationToken ct = default) - => client.Nodes.InfoAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-NodesStats.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-NodesStats.cs deleted file mode 100644 index d55858a62e1..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-NodesStats.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using NodesHotThreadConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Nodes.Stats(), please update this usage.")] - public static NodesStatsResponse NodesStats(this IElasticClient client, Func selector = null) - => client.Nodes.Stats(selector); - - [Obsolete("Moved to client.Nodes.Stats(), please update this usage.")] - public static NodesStatsResponse NodesStats(this IElasticClient client, INodesStatsRequest request) - => client.Nodes.Stats(request); - - [Obsolete("Moved to client.Nodes.StatsAsync(), please update this usage.")] - public static Task NodesStatsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Nodes.StatsAsync(selector, ct); - - [Obsolete("Moved to client.Nodes.StatsAsync(), please update this usage.")] - public static Task NodesStatsAsync(this IElasticClient client, INodesStatsRequest request, CancellationToken ct = default) - => client.Nodes.StatsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-NodesUsage.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-NodesUsage.cs deleted file mode 100644 index c43eac57a07..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-NodesUsage.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using NodesHotThreadConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Nodes.Usage(), please update this usage.")] - public static NodesUsageResponse NodesUsage(this IElasticClient client, Func selector = null) - => client.Nodes.Usage(selector); - - [Obsolete("Moved to client.Nodes.Usage(), please update this usage.")] - public static NodesUsageResponse NodesUsage(this IElasticClient client, INodesUsageRequest request) - => client.Nodes.Usage(request); - - [Obsolete("Moved to client.Nodes.UsageAsync(), please update this usage.")] - public static Task NodesUsageAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Nodes.UsageAsync(selector, ct); - - [Obsolete("Moved to client.Nodes.UsageAsync(), please update this usage.")] - public static Task NodesUsageAsync(this IElasticClient client, INodesUsageRequest request, CancellationToken ct = default) - => client.Nodes.UsageAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-OpenIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-OpenIndex.cs deleted file mode 100644 index b940eab69a0..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-OpenIndex.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Open(), please update this usage.")] - public static OpenIndexResponse OpenIndex(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.Open(indices, selector); - - [Obsolete("Moved to client.Indices.Open(), please update this usage.")] - public static OpenIndexResponse OpenIndex(this IElasticClient client, IOpenIndexRequest request) - => client.Indices.Open(request); - - [Obsolete("Moved to client.Indices.OpenAsync(), please update this usage.")] - public static Task OpenIndexAsync(this IElasticClient client, - Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.OpenAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.OpenAsync(), please update this usage.")] - public static Task OpenIndexAsync(this IElasticClient client, IOpenIndexRequest request, CancellationToken ct = default) - => client.Indices.OpenAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-OpenJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-OpenJob.cs deleted file mode 100644 index 5c10f91461a..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-OpenJob.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.OpenJob(), please update this usage.")] - public static OpenJobResponse OpenJob(this IElasticClient client, Id jobId, Func selector = null) - => client.MachineLearning.OpenJob(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.OpenJob(), please update this usage.")] - public static OpenJobResponse OpenJob(this IElasticClient client, IOpenJobRequest request) - => client.MachineLearning.OpenJob(request); - - [Obsolete("Moved to client.MachineLearning.OpenJobAsync(), please update this usage.")] - public static Task OpenJobAsync(this IElasticClient client, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.OpenJobAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.OpenJobAsync(), please update this usage.")] - public static Task OpenJobAsync(this IElasticClient client, IOpenJobRequest request, CancellationToken ct = default) - => client.MachineLearning.OpenJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PauseFollowIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PauseFollowIndex.cs deleted file mode 100644 index f721e7f3cde..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PauseFollowIndex.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.PauseFollowIndex(), please update this usage.")] - public static PauseFollowIndexResponse PauseFollowIndex(this IElasticClient client, IndexName index, - Func selector = null - ) - => client.CrossClusterReplication.PauseFollowIndex(index, selector); - - [Obsolete("Moved to client.CrossClusterReplication.PauseFollowIndex(), please update this usage.")] - public static PauseFollowIndexResponse PauseFollowIndex(this IElasticClient client, IPauseFollowIndexRequest request) - => client.CrossClusterReplication.PauseFollowIndex(request); - - [Obsolete("Moved to client.CrossClusterReplication.PauseFollowIndexAsync(), please update this usage.")] - public static Task PauseFollowIndexAsync(this IElasticClient client, IndexName index, - Func selector = null, - CancellationToken ct = default - ) - => client.CrossClusterReplication.PauseFollowIndexAsync(index, selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.PauseFollowIndexAsync(), please update this usage.")] - public static Task PauseFollowIndexAsync(this IElasticClient client, IPauseFollowIndexRequest request, - CancellationToken ct = default - ) - => client.CrossClusterReplication.PauseFollowIndexAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PostCalendarEvents.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PostCalendarEvents.cs deleted file mode 100644 index badfad0c5be..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PostCalendarEvents.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.PostCalendarEvents(), please update this usage.")] - public static PostCalendarEventsResponse PostCalendarEvents(this IElasticClient client, Id calendarId, - Func selector = null - ) - => client.MachineLearning.PostCalendarEvents(calendarId, selector); - - [Obsolete("Moved to client.MachineLearning.PostCalendarEvents(), please update this usage.")] - public static PostCalendarEventsResponse PostCalendarEvents(this IElasticClient client, IPostCalendarEventsRequest request) - => client.MachineLearning.PostCalendarEvents(request); - - [Obsolete("Moved to client.MachineLearning.PostCalendarEventsAsync(), please update this usage.")] - public static Task PostCalendarEventsAsync(this IElasticClient client, Id calendarId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.PostCalendarEventsAsync(calendarId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.PostCalendarEventsAsync(), please update this usage.")] - public static Task PostCalendarEventsAsync(this IElasticClient client, IPostCalendarEventsRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.PostCalendarEventsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PostJobData.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PostJobData.cs deleted file mode 100644 index 6d14010608a..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PostJobData.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.PostJobData(), please update this usage.")] - public static PostJobDataResponse PostJobData(this IElasticClient client, Id jobId, Func selector) - => client.MachineLearning.PostJobData(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.PostJobData(), please update this usage.")] - public static PostJobDataResponse PostJobData(this IElasticClient client, IPostJobDataRequest request) - => client.MachineLearning.PostJobData(request); - - [Obsolete("Moved to client.MachineLearning.PostJobDataAsync(), please update this usage.")] - public static Task PostJobDataAsync(this IElasticClient client, Id jobId, - Func selector, - CancellationToken ct = default - ) - => client.MachineLearning.PostJobDataAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.PostJobDataAsync(), please update this usage.")] - public static Task PostJobDataAsync(this IElasticClient client, IPostJobDataRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.PostJobDataAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PostLicense.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PostLicense.cs deleted file mode 100644 index 3e8a757dfb2..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PostLicense.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.License.Post(), please update this usage.")] - public static PostLicenseResponse PostLicense(this IElasticClient client, Func selector = null) - => client.License.Post(selector); - - [Obsolete("Moved to client.License.Post(), please update this usage.")] - public static PostLicenseResponse PostLicense(this IElasticClient client, IPostLicenseRequest request) - => client.License.Post(request); - - [Obsolete("Moved to client.License.PostAsync(), please update this usage.")] - public static Task PostLicenseAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.License.PostAsync(selector, ct); - - [Obsolete("Moved to client.License.PostAsync(), please update this usage.")] - public static Task PostLicenseAsync(this IElasticClient client, IPostLicenseRequest request, - CancellationToken ct = default - ) - => client.License.PostAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PreviewDatafeed.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PreviewDatafeed.cs deleted file mode 100644 index c29623ee05a..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PreviewDatafeed.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.PreviewDatafeed(), please update this usage.")] - public static PreviewDatafeedResponse PreviewDatafeed(this IElasticClient client, Id datafeedId, - Func selector = null - ) where TDocument : class => client.MachineLearning.PreviewDatafeed(datafeedId, selector); - - [Obsolete("Moved to client.MachineLearning.PreviewDatafeed(), please update this usage.")] - public static PreviewDatafeedResponse PreviewDatafeed(this IElasticClient client, IPreviewDatafeedRequest request) - where TDocument : class => client.MachineLearning.PreviewDatafeed(request); - - [Obsolete("Moved to client.MachineLearning.PreviewDatafeedAsync(), please update this usage.")] - public static Task> PreviewDatafeedAsync(this IElasticClient client, Id datafeedId, - Func selector = null, CancellationToken ct = default - ) where TDocument : class => client.MachineLearning.PreviewDatafeedAsync(datafeedId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.PreviewDatafeedAsync(), please update this usage.")] - public static Task> PreviewDatafeedAsync(this IElasticClient client, - IPreviewDatafeedRequest request, - CancellationToken ct = default - ) where TDocument : class => client.MachineLearning.PreviewDatafeedAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutAlias.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutAlias.cs deleted file mode 100644 index 006d26ae17b..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutAlias.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.PutAlias(), please update this usage.")] - public static PutAliasResponse PutAlias(this IElasticClient client, IPutAliasRequest request) - => client.Indices.PutAlias(request); - - [Obsolete("Moved to client.Indices.PutAliasAsync(), please update this usage.")] - public static Task PutAliasAsync(this IElasticClient client, IPutAliasRequest request, CancellationToken ct = default) - => client.Indices.PutAliasAsync(request, ct); - - [Obsolete("Moved to client.Indices.PutAlias(), please update this usage.")] - public static PutAliasResponse PutAlias(this IElasticClient client, Indices indices, Name alias, - Func selector = null - ) - => client.Indices.PutAlias(indices, alias, selector); - - [Obsolete("Moved to client.Indices.PutAliasAsync(), please update this usage.")] - public static Task PutAliasAsync(this IElasticClient client, - Indices indices, - Name alias, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.PutAliasAsync(indices, alias, selector, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutCalendar.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutCalendar.cs deleted file mode 100644 index e63765a9e49..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutCalendar.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.PutCalendar(), please update this usage.")] - public static PutCalendarResponse PutCalendar(this IElasticClient client, Id calendarId, - Func selector = null - ) - => client.MachineLearning.PutCalendar(calendarId, selector); - - [Obsolete("Moved to client.MachineLearning.PutCalendar(), please update this usage.")] - public static PutCalendarResponse PutCalendar(this IElasticClient client, IPutCalendarRequest request) - => client.MachineLearning.PutCalendar(request); - - [Obsolete("Moved to client.MachineLearning.PutCalendarAsync(), please update this usage.")] - public static Task PutCalendarAsync(this IElasticClient client, Id calendarId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.PutCalendarAsync(calendarId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.PutCalendarAsync(), please update this usage.")] - public static Task PutCalendarAsync(this IElasticClient client, IPutCalendarRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.PutCalendarAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutCalendarJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutCalendarJob.cs deleted file mode 100644 index 1d65817ab85..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutCalendarJob.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.PutCalendarJob(), please update this usage.")] - public static PutCalendarJobResponse PutCalendarJob(this IElasticClient client, Id calendarId, Id jobId, - Func selector = null - ) - => client.MachineLearning.PutCalendarJob(calendarId, jobId, selector); - - [Obsolete("Moved to client.MachineLearning.PutCalendarJob(), please update this usage.")] - public static PutCalendarJobResponse PutCalendarJob(this IElasticClient client, IPutCalendarJobRequest request) - => client.MachineLearning.PutCalendarJob(request); - - [Obsolete("Moved to client.MachineLearning.PutCalendarJobAsync(), please update this usage.")] - public static Task PutCalendarJobAsync(this IElasticClient client, Id calendarId, Id jobId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.PutCalendarJobAsync(calendarId, jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.PutCalendarJobAsync(), please update this usage.")] - public static Task PutCalendarJobAsync(this IElasticClient client, IPutCalendarJobRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.PutCalendarJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutDatafeed.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutDatafeed.cs deleted file mode 100644 index a7cf0a24f41..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutDatafeed.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.PutDatafeed(), please update this usage.")] - public static PutDatafeedResponse PutDatafeed(this IElasticClient client, Id datafeedId, - Func, IPutDatafeedRequest> selector = null - ) where T : class - => client.MachineLearning.PutDatafeed(datafeedId, selector); - - [Obsolete("Moved to client.MachineLearning.PutDatafeed(), please update this usage.")] - public static PutDatafeedResponse PutDatafeed(this IElasticClient client, IPutDatafeedRequest request) - => client.MachineLearning.PutDatafeed(request); - - [Obsolete("Moved to client.MachineLearning.PutDatafeedAsync(), please update this usage.")] - public static Task PutDatafeedAsync(this IElasticClient client, Id datafeedId, - Func, IPutDatafeedRequest> selector = null, - CancellationToken ct = default - ) where T : class - => client.MachineLearning.PutDatafeedAsync(datafeedId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.PutDatafeedAsync(), please update this usage.")] - public static Task PutDatafeedAsync(this IElasticClient client, IPutDatafeedRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.PutDatafeedAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutIndexTemplate.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutIndexTemplate.cs deleted file mode 100644 index 5e7b52701b1..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutIndexTemplate.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.PutTemplate(), please update this usage.")] - public static PutIndexTemplateResponse PutIndexTemplate(this IElasticClient client, Name name, - Func selector - ) - => client.Indices.PutTemplate(name, selector); - - [Obsolete("Moved to client.Indices.PutTemplate(), please update this usage.")] - public static PutIndexTemplateResponse PutIndexTemplate(this IElasticClient client, IPutIndexTemplateRequest request) - => client.Indices.PutTemplate(request); - - [Obsolete("Moved to client.Indices.PutTemplateAsync(), please update this usage.")] - public static Task PutIndexTemplateAsync(this IElasticClient client, - Name name, - Func selector, - CancellationToken ct = default - ) - => client.Indices.PutTemplateAsync(name, selector, ct); - - [Obsolete("Moved to client.Indices.PutTemplateAsync(), please update this usage.")] - public static Task PutIndexTemplateAsync(this IElasticClient client, IPutIndexTemplateRequest request, - CancellationToken ct = default - ) - => client.Indices.PutTemplateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutJob.cs deleted file mode 100644 index 6506feb9c9f..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutJob.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.PutJob(), please update this usage.")] - public static PutJobResponse PutJob(this IElasticClient client, Id jobId, Func, IPutJobRequest> selector) - where T : class - => client.MachineLearning.PutJob(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.PutJob(), please update this usage.")] - public static PutJobResponse PutJob(this IElasticClient client, IPutJobRequest request) - => client.MachineLearning.PutJob(request); - - [Obsolete("Moved to client.MachineLearning.PutJobAsync(), please update this usage.")] - public static Task PutJobAsync(this IElasticClient client, Id jobId, Func, IPutJobRequest> selector, - CancellationToken ct = default - ) where T : class - => client.MachineLearning.PutJobAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.PutJobAsync(), please update this usage.")] - public static Task PutJobAsync(this IElasticClient client, IPutJobRequest request, CancellationToken ct = default) - => client.MachineLearning.PutJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutPipeline.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutPipeline.cs deleted file mode 100644 index 3c5fcdddefb..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutPipeline.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Ingest.PutPipeline(), please update this usage.")] - public static PutPipelineResponse PutPipeline(this IElasticClient client, Id id, Func selector) - => client.Ingest.PutPipeline(id, selector); - - [Obsolete("Moved to client.Ingest.PutPipeline(), please update this usage.")] - public static PutPipelineResponse PutPipeline(this IElasticClient client, IPutPipelineRequest request) - => client.Ingest.PutPipeline(request); - - [Obsolete("Moved to client.Ingest.PutPipelineAsync(), please update this usage.")] - public static Task PutPipelineAsync(this IElasticClient client, Id id, - Func selector, - CancellationToken ct = default - ) - => client.Ingest.PutPipelineAsync(id, selector, ct); - - [Obsolete("Moved to client.Ingest.PutPipelineAsync(), please update this usage.")] - public static Task PutPipelineAsync(this IElasticClient client, IPutPipelineRequest request, - CancellationToken ct = default - ) - => client.Ingest.PutPipelineAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutPrivileges.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutPrivileges.cs deleted file mode 100644 index aec3f7ef606..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutPrivileges.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.PutPrivileges(), please update this usage.")] - public static PutPrivilegesResponse PutPrivileges(this IElasticClient client, Func selector) - => client.Security.PutPrivileges(selector); - - [Obsolete("Moved to client.Security.PutPrivileges(), please update this usage.")] - public static PutPrivilegesResponse PutPrivileges(this IElasticClient client, IPutPrivilegesRequest request) - => client.Security.PutPrivileges(request); - - [Obsolete("Moved to client.Security.PutPrivilegesAsync(), please update this usage.")] - public static Task PutPrivilegesAsync(this IElasticClient client, - Func selector, CancellationToken ct = default - ) - => client.Security.PutPrivilegesAsync(selector, ct); - - [Obsolete("Moved to client.Security.PutPrivilegesAsync(), please update this usage.")] - public static Task PutPrivilegesAsync(this IElasticClient client, IPutPrivilegesRequest request, - CancellationToken ct = default - ) - => client.Security.PutPrivilegesAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutRole.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutRole.cs deleted file mode 100644 index fef9ad7815c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutRole.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.PutRole(), please update this usage.")] - public static PutRoleResponse PutRole(this IElasticClient client, Name role, Func selector = null) - => client.Security.PutRole(role, selector); - - [Obsolete("Moved to client.Security.PutRole(), please update this usage.")] - public static PutRoleResponse PutRole(this IElasticClient client, IPutRoleRequest request) - => client.Security.PutRole(request); - - [Obsolete("Moved to client.Security.PutRoleAsync(), please update this usage.")] - public static Task PutRoleAsync(this IElasticClient client, Name role, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.PutRoleAsync(role, selector, ct); - - [Obsolete("Moved to client.Security.PutRoleAsync(), please update this usage.")] - public static Task PutRoleAsync(this IElasticClient client, IPutRoleRequest request, CancellationToken ct = default) - => client.Security.PutRoleAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutRoleMapping.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutRoleMapping.cs deleted file mode 100644 index a1c16529915..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutRoleMapping.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.PutRoleMapping(), please update this usage.")] - public static PutRoleMappingResponse PutRoleMapping(this IElasticClient client, Name role, - Func selector = null - ) - => client.Security.PutRoleMapping(role, selector); - - [Obsolete("Moved to client.Security.PutRoleMapping(), please update this usage.")] - public static PutRoleMappingResponse PutRoleMapping(this IElasticClient client, IPutRoleMappingRequest request) - => client.Security.PutRoleMapping(request); - - [Obsolete("Moved to client.Security.PutRoleMappingAsync(), please update this usage.")] - public static Task PutRoleMappingAsync(this IElasticClient client, Name role, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.PutRoleMappingAsync(role, selector, ct); - - [Obsolete("Moved to client.Security.PutRoleMappingAsync(), please update this usage.")] - public static Task PutRoleMappingAsync(this IElasticClient client, IPutRoleMappingRequest request, - CancellationToken ct = default - ) - => client.Security.PutRoleMappingAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutUser.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutUser.cs deleted file mode 100644 index 42d38890044..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutUser.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Security.PutUser(), please update this usage.")] - public static PutUserResponse PutUser(this IElasticClient client, Name username, Func selector = null) - => client.Security.PutUser(username, selector); - - [Obsolete("Moved to client.Security.PutUser(), please update this usage.")] - public static PutUserResponse PutUser(this IElasticClient client, IPutUserRequest request) - => client.Security.PutUser(request); - - [Obsolete("Moved to client.Security.PutUserAsync(), please update this usage.")] - public static Task PutUserAsync(this IElasticClient client, Name username, - Func selector = null, - CancellationToken ct = default - ) - => client.Security.PutUserAsync(username, selector, ct); - - [Obsolete("Moved to client.Security.PutUserAsync(), please update this usage.")] - public static Task PutUserAsync(this IElasticClient client, IPutUserRequest request, CancellationToken ct = default) - => client.Security.PutUserAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-PutWatch.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-PutWatch.cs deleted file mode 100644 index 3120e32461b..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-PutWatch.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Put(), please update this usage.")] - public static PutWatchResponse PutWatch(this IElasticClient client, Id watchId, Func selector = null) - => client.Watcher.Put(watchId, selector); - - [Obsolete("Moved to client.Watcher.Put(), please update this usage.")] - public static PutWatchResponse PutWatch(this IElasticClient client, IPutWatchRequest request) - => client.Watcher.Put(request); - - [Obsolete("Moved to client.Watcher.PutAsync(), please update this usage.")] - public static Task PutWatchAsync(this IElasticClient client, Id watchId, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.PutAsync(watchId, selector, ct); - - [Obsolete("Moved to client.Watcher.PutAsync(), please update this usage.")] - public static Task PutWatchAsync(this IElasticClient client, IPutWatchRequest request, CancellationToken ct = default) - => client.Watcher.PutAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-QuerySql.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-QuerySql.cs deleted file mode 100644 index 68676b9d524..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-QuerySql.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Sql.Query(), please update this usage.")] - public static QuerySqlResponse QuerySql(this IElasticClient client, Func selector = null) - => client.Sql.Query(selector); - - [Obsolete("Moved to client.Sql.Query(), please update this usage.")] - public static QuerySqlResponse QuerySql(this IElasticClient client, IQuerySqlRequest request) - => client.Sql.Query(request); - - [Obsolete("Moved to client.Sql.QueryAsync(), please update this usage.")] - public static Task QuerySqlAsync(this IElasticClient client, Func selector = null, - CancellationToken ct = default - ) - => client.Sql.QueryAsync(selector, ct); - - [Obsolete("Moved to client.Sql.QueryAsync(), please update this usage.")] - public static Task QuerySqlAsync(this IElasticClient client, IQuerySqlRequest request, CancellationToken ct = default) - => client.Sql.QueryAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-RecoveryStatus.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-RecoveryStatus.cs deleted file mode 100644 index eeeec9fdd00..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-RecoveryStatus.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.RecoveryStatus(), please update this usage.")] - public static RecoveryStatusResponse RecoveryStatus(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.RecoveryStatus(indices, selector); - - [Obsolete("Moved to client.Indices.RecoveryStatus(), please update this usage.")] - public static RecoveryStatusResponse RecoveryStatus(this IElasticClient client, IRecoveryStatusRequest request) - => client.Indices.RecoveryStatus(request); - - [Obsolete("Moved to client.Indices.RecoveryStatusAsync(), please update this usage.")] - public static Task RecoveryStatusAsync(this IElasticClient client, Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.RecoveryStatusAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.RecoveryStatusAsync(), please update this usage.")] - public static Task RecoveryStatusAsync(this IElasticClient client, IRecoveryStatusRequest request, - CancellationToken ct = default - ) - => client.Indices.RecoveryStatusAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-Refresh.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-Refresh.cs deleted file mode 100644 index 5b2d417194d..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-Refresh.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Refresh(), please update this usage.")] - public static RefreshResponse Refresh(this IElasticClient client, Indices indices, Func selector = null) - => client.Indices.Refresh(indices, selector); - - [Obsolete("Moved to client.Indices.Refresh(), please update this usage.")] - public static RefreshResponse Refresh(this IElasticClient client, IRefreshRequest request) - => client.Indices.Refresh(request); - - [Obsolete("Moved to client.Indices.RefreshAsync(), please update this usage.")] - public static Task RefreshAsync(this IElasticClient client, Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.RefreshAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.RefreshAsync(), please update this usage.")] - public static Task RefreshAsync(this IElasticClient client, IRefreshRequest request, CancellationToken ct = default) - => client.Indices.RefreshAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ReloadSecureSettings.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ReloadSecureSettings.cs deleted file mode 100644 index 47da8b9aa35..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ReloadSecureSettings.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Nodes.ReloadSecureSettings(), please update this usage.")] - public static ReloadSecureSettingsResponse ReloadSecureSettings(this IElasticClient client, - Func selector = null - ) - => client.Nodes.ReloadSecureSettings(selector); - - [Obsolete("Moved to client.Nodes.ReloadSecureSettings(), please update this usage.")] - public static ReloadSecureSettingsResponse ReloadSecureSettings(this IElasticClient client, IReloadSecureSettingsRequest request) - => client.Nodes.ReloadSecureSettings(request); - - [Obsolete("Moved to client.Nodes.ReloadSecureSettingsAsync(), please update this usage.")] - public static Task ReloadSecureSettingsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Nodes.ReloadSecureSettingsAsync(selector, ct); - - [Obsolete("Moved to client.Nodes.ReloadSecureSettingsAsync(), please update this usage.")] - public static Task ReloadSecureSettingsAsync(this IElasticClient client, IReloadSecureSettingsRequest request, - CancellationToken ct = default - ) - => client.Nodes.ReloadSecureSettingsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-RemoteInfo.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-RemoteInfo.cs deleted file mode 100644 index 14ab2ac3a21..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-RemoteInfo.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Cluster.RemoteInfo(), please update this usage.")] - public static RemoteInfoResponse RemoteInfo(this IElasticClient client, Func selector = null) - => client.Cluster.RemoteInfo(selector); - - [Obsolete("Moved to client.Cluster.RemoteInfo(), please update this usage.")] - public static RemoteInfoResponse RemoteInfo(this IElasticClient client, IRemoteInfoRequest request) - => client.Cluster.RemoteInfo(request); - - [Obsolete("Moved to client.Cluster.RemoteInfoAsync(), please update this usage.")] - public static Task RemoteInfoAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Cluster.RemoteInfoAsync(selector, ct); - - [Obsolete("Moved to client.Cluster.RemoteInfoAsync(), please update this usage.")] - public static Task RemoteInfoAsync(this IElasticClient client, IRemoteInfoRequest request, CancellationToken ct = default) - => client.Cluster.RemoteInfoAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-Restore.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-Restore.cs deleted file mode 100644 index ab0fabc5680..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-Restore.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.Restore(), please update this usage.")] - public static RestoreResponse Restore(this IElasticClient client, Name repository, Name snapshotName, - Func selector = null - ) - => client.Snapshot.Restore(repository, snapshotName, selector); - - [Obsolete("Moved to client.Snapshot.Restore(), please update this usage.")] - public static RestoreResponse Restore(this IElasticClient client, IRestoreRequest request) - => client.Snapshot.Restore(request); - - [Obsolete("Moved to client.Snapshot.RestoreAsync(), please update this usage.")] - public static Task RestoreAsync(this IElasticClient client, Name repository, Name snapshotName, - Func selector = null, - CancellationToken ct = default - ) - => client.Snapshot.RestoreAsync(repository, snapshotName, selector, ct); - - [Obsolete("Moved to client.Snapshot.RestoreAsync(), please update this usage.")] - public static Task RestoreAsync(this IElasticClient client, IRestoreRequest request, CancellationToken ct = default) - => client.Snapshot.RestoreAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ResumeFollowIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ResumeFollowIndex.cs deleted file mode 100644 index 5e6f017f537..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ResumeFollowIndex.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.ResumeFollowIndex(), please update this usage.")] - public static ResumeFollowIndexResponse ResumeFollowIndex(this IElasticClient client, IndexName index, - Func selector = null - ) - => client.CrossClusterReplication.ResumeFollowIndex(index, selector); - - [Obsolete("Moved to client.CrossClusterReplication.ResumeFollowIndex(), please update this usage.")] - public static ResumeFollowIndexResponse ResumeFollowIndex(this IElasticClient client, IResumeFollowIndexRequest request) - => client.CrossClusterReplication.ResumeFollowIndex(request); - - [Obsolete("Moved to client.CrossClusterReplication.ResumeFollowIndexAsync(), please update this usage.")] - public static Task ResumeFollowIndexAsync(this IElasticClient client, IndexName index, - Func selector = null, - CancellationToken ct = default - ) - => client.CrossClusterReplication.ResumeFollowIndexAsync(index, selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.ResumeFollowIndexAsync(), please update this usage.")] - public static Task ResumeFollowIndexAsync(this IElasticClient client, IResumeFollowIndexRequest request, - CancellationToken ct = default - ) - => client.CrossClusterReplication.ResumeFollowIndexAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-RevertModelSnapshot.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-RevertModelSnapshot.cs deleted file mode 100644 index 36433733c0d..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-RevertModelSnapshot.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.RevertModelSnapshot(), please update this usage.")] - public static RevertModelSnapshotResponse RevertModelSnapshot(this IElasticClient client, Id jobId, Id snapshotId, - Func selector = null - ) - => client.MachineLearning.RevertModelSnapshot(jobId, snapshotId, selector); - - [Obsolete("Moved to client.MachineLearning.RevertModelSnapshot(), please update this usage.")] - public static RevertModelSnapshotResponse RevertModelSnapshot(this IElasticClient client, IRevertModelSnapshotRequest request) - => client.MachineLearning.RevertModelSnapshot(request); - - [Obsolete("Moved to client.MachineLearning.RevertModelSnapshotAsync(), please update this usage.")] - public static Task RevertModelSnapshotAsync(this IElasticClient client, Id jobId, Id snapshotId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.RevertModelSnapshotAsync(jobId, snapshotId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.RevertModelSnapshotAsync(), please update this usage.")] - public static Task RevertModelSnapshotAsync(this IElasticClient client, IRevertModelSnapshotRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.RevertModelSnapshotAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-RolloverIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-RolloverIndex.cs deleted file mode 100644 index 3c16e30a190..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-RolloverIndex.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Rollover(), please update this usage.")] - public static RolloverIndexResponse RolloverIndex(this IElasticClient client, Name alias, - Func selector = null - ) - => client.Indices.Rollover(alias, selector); - - [Obsolete("Moved to client.Indices.Rollover(), please update this usage.")] - public static RolloverIndexResponse RolloverIndex(this IElasticClient client, IRolloverIndexRequest request) - => client.Indices.Rollover(request); - - [Obsolete("Moved to client.Indices.RolloverAsync(), please update this usage.")] - public static Task RolloverIndexAsync(this IElasticClient client, - Name alias, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.RolloverAsync(alias, selector, ct); - - [Obsolete("Moved to client.Indices.RolloverAsync(), please update this usage.")] - public static Task RolloverIndexAsync(this IElasticClient client, IRolloverIndexRequest request, - CancellationToken ct = default - ) - => client.Indices.RolloverAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-RollupSearch.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-RollupSearch.cs deleted file mode 100644 index a285a5aebbf..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-RollupSearch.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Rollup.Search(), please update this usage.")] - public static RollupSearchResponse RollupSearch(this IElasticClient client, Indices indices, - Func, IRollupSearchRequest> selector = null - ) - where THit : class - => client.Rollup.Search(s => selector?.InvokeOrDefault(s.Index(indices))); - - [Obsolete("Moved to client.Rollup.Search(), please update this usage.")] - public static RollupSearchResponse RollupSearch(this IElasticClient client, IRollupSearchRequest request) - where THit : class - => client.Rollup.Search(request); - - [Obsolete("Moved to client.Rollup.SearchAsync(), please update this usage.")] - public static Task> RollupSearchAsync(this IElasticClient client, Indices indices, - Func, IRollupSearchRequest> selector = null, CancellationToken ct = default - ) - where THit : class - => client.Rollup.SearchAsync(s => selector?.InvokeOrDefault(s.Index(indices)), ct); - - [Obsolete("Moved to client.Rollup.SearchAsync(), please update this usage.")] - public static Task> RollupSearchAsync(this IElasticClient client, IRollupSearchRequest request, - CancellationToken ct = default - ) - where THit : class - => client.Rollup.SearchAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-Segments.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-Segments.cs deleted file mode 100644 index 3d57925bd53..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-Segments.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Segments(), please update this usage.")] - public static SegmentsResponse Segments(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.Segments(indices, selector); - - [Obsolete("Moved to client.Indices.Segments(), please update this usage.")] - public static SegmentsResponse Segments(this IElasticClient client, ISegmentsRequest request) - => client.Indices.Segments(request); - - [Obsolete("Moved to client.Indices.SegmentsAsync(), please update this usage.")] - public static Task SegmentsAsync(this IElasticClient client, - Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.SegmentsAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.SegmentsAsync(), please update this usage.")] - public static Task SegmentsAsync(this IElasticClient client, ISegmentsRequest request, CancellationToken ct = default) - => client.Indices.SegmentsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ShrinkIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ShrinkIndex.cs deleted file mode 100644 index 056d1bea2b4..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ShrinkIndex.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Shrink(), please update this usage.")] - public static ShrinkIndexResponse ShrinkIndex(this IElasticClient client, IndexName source, IndexName target, - Func selector = null - ) - => client.Indices.Shrink(source, target, selector); - - [Obsolete("Moved to client.Indices.Shrink(), please update this usage.")] - public static ShrinkIndexResponse ShrinkIndex(this IElasticClient client, IShrinkIndexRequest request) - => client.Indices.Shrink(request); - - [Obsolete("Moved to client.Indices.ShrinkAsync(), please update this usage.")] - public static Task ShrinkIndexAsync(this IElasticClient client, - IndexName source, - IndexName target, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.ShrinkAsync(source, target, selector, ct); - - [Obsolete("Moved to client.Indices.ShrinkAsync(), please update this usage.")] - public static Task ShrinkIndexAsync(this IElasticClient client, IShrinkIndexRequest request, - CancellationToken ct = default - ) - => client.Indices.ShrinkAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-SimulatePipeline.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-SimulatePipeline.cs deleted file mode 100644 index 1469ae7c62c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-SimulatePipeline.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Ingest.SimulatePipeline(), please update this usage.")] - public static SimulatePipelineResponse SimulatePipeline(this IElasticClient client, - Func selector - ) - => client.Ingest.SimulatePipeline(selector); - - [Obsolete("Moved to client.Ingest.SimulatePipeline(), please update this usage.")] - public static SimulatePipelineResponse SimulatePipeline(this IElasticClient client, ISimulatePipelineRequest request) - => client.Ingest.SimulatePipeline(request); - - [Obsolete("Moved to client.Ingest.SimulatePipelineAsync(), please update this usage.")] - public static Task SimulatePipelineAsync(this IElasticClient client, - Func selector, - CancellationToken ct = default - ) - => client.Ingest.SimulatePipelineAsync(selector, ct); - - [Obsolete("Moved to client.Ingest.SimulatePipelineAsync(), please update this usage.")] - public static Task SimulatePipelineAsync(this IElasticClient client, ISimulatePipelineRequest request, - CancellationToken ct = default - ) - => client.Ingest.SimulatePipelineAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-Snapshot.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-Snapshot.cs deleted file mode 100644 index a59b99bdde7..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-Snapshot.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.Snapshot(), please update this usage.")] - public static SnapshotResponse Snapshot(this IElasticClient client, Name repository, Name snapshotName, - Func selector = null - ) - => client.Snapshot.Snapshot(repository, snapshotName, selector); - - [Obsolete("Moved to client.Snapshot.Snapshot(), please update this usage.")] - public static SnapshotResponse Snapshot(this IElasticClient client, ISnapshotRequest request) - => client.Snapshot.Snapshot(request); - - [Obsolete("Moved to client.Snapshot.SnapshotAsync(), please update this usage.")] - public static Task SnapshotAsync(this IElasticClient client, Name repository, Name snapshotName, - Func selector = null, - CancellationToken ct = default - ) - => client.Snapshot.SnapshotAsync(repository, snapshotName, selector, ct); - - [Obsolete("Moved to client.Snapshot.SnapshotAsync(), please update this usage.")] - public static Task SnapshotAsync(this IElasticClient client, ISnapshotRequest request, CancellationToken ct = default) - => client.Snapshot.SnapshotAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-SnapshotStatus.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-SnapshotStatus.cs deleted file mode 100644 index 0c83fd54d40..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-SnapshotStatus.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.Status(), please update this usage.")] - public static SnapshotStatusResponse SnapshotStatus(this IElasticClient client, - Func selector = null - ) - => client.Snapshot.Status(selector); - - [Obsolete("Moved to client.Snapshot.Status(), please update this usage.")] - public static SnapshotStatusResponse SnapshotStatus(this IElasticClient client, ISnapshotStatusRequest request) - => client.Snapshot.Status(request); - - [Obsolete("Moved to client.Snapshot.StatusAsync(), please update this usage.")] - public static Task SnapshotStatusAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Snapshot.StatusAsync(selector, ct); - - [Obsolete("Moved to client.Snapshot.StatusAsync(), please update this usage.")] - public static Task SnapshotStatusAsync(this IElasticClient client, ISnapshotStatusRequest request, - CancellationToken ct = default - ) - => client.Snapshot.StatusAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-SplitIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-SplitIndex.cs deleted file mode 100644 index 78bc631c599..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-SplitIndex.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.Split(), please update this usage.")] - public static SplitIndexResponse SplitIndex(this IElasticClient client, IndexName source, IndexName target, - Func selector = null - ) - => client.Indices.Split(source, target, selector); - - [Obsolete("Moved to client.Indices.Split(), please update this usage.")] - public static SplitIndexResponse SplitIndex(this IElasticClient client, ISplitIndexRequest request) - => client.Indices.Split(request); - - [Obsolete("Moved to client.Indices.SplitAsync(), please update this usage.")] - public static Task SplitIndexAsync(this IElasticClient client, - IndexName source, - IndexName target, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.SplitAsync(source, target, selector, ct); - - [Obsolete("Moved to client.Indices.SplitAsync(), please update this usage.")] - public static Task SplitIndexAsync(this IElasticClient client, ISplitIndexRequest request, CancellationToken ct = default) - => client.Indices.SplitAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-StartBasicLicense.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-StartBasicLicense.cs deleted file mode 100644 index 46689c2f565..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-StartBasicLicense.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.License.StartBasic(), please update this usage.")] - public static StartBasicLicenseResponse StartBasicLicense(this IElasticClient client, - Func selector = null - ) - => client.License.StartBasic(selector); - - [Obsolete("Moved to client.License.StartBasic(), please update this usage.")] - public static StartBasicLicenseResponse StartBasicLicense(this IElasticClient client, IStartBasicLicenseRequest request) - => client.License.StartBasic(request); - - [Obsolete("Moved to client.License.StartBasicAsync(), please update this usage.")] - public static Task StartBasicLicenseAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.License.StartBasicAsync(selector, ct); - - [Obsolete("Moved to client.License.StartBasicAsync(), please update this usage.")] - public static Task StartBasicLicenseAsync(this IElasticClient client, IStartBasicLicenseRequest request, - CancellationToken ct = default - ) - => client.License.StartBasicAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-StartDatafeed.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-StartDatafeed.cs deleted file mode 100644 index b998a8db198..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-StartDatafeed.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.StartDatafeed(), please update this usage.")] - public static StartDatafeedResponse StartDatafeed(this IElasticClient client, Id datafeedId, - Func selector = null - ) - => client.MachineLearning.StartDatafeed(datafeedId, selector); - - [Obsolete("Moved to client.MachineLearning.StartDatafeed(), please update this usage.")] - public static StartDatafeedResponse StartDatafeed(this IElasticClient client, IStartDatafeedRequest request) - => client.MachineLearning.StartDatafeed(request); - - [Obsolete("Moved to client.MachineLearning.StartDatafeedAsync(), please update this usage.")] - public static Task StartDatafeedAsync(this IElasticClient client, Id datafeedId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.StartDatafeedAsync(datafeedId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.StartDatafeedAsync(), please update this usage.")] - public static Task StartDatafeedAsync(this IElasticClient client, IStartDatafeedRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.StartDatafeedAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-StartRollupJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-StartRollupJob.cs deleted file mode 100644 index e2ce31314a7..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-StartRollupJob.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Rollup.StartJob(), please update this usage.")] - public static StartRollupJobResponse StartRollupJob(this IElasticClient client, Id id, - Func selector = null - ) - => client.Rollup.StartJob(id, selector); - - [Obsolete("Moved to client.Rollup.StartJob(), please update this usage.")] - public static StartRollupJobResponse StartRollupJob(this IElasticClient client, IStartRollupJobRequest request) - => client.Rollup.StartJob(request); - - [Obsolete("Moved to client.Rollup.StartJobAsync(), please update this usage.")] - public static Task StartRollupJobAsync(this IElasticClient client, Id id, - Func selector = null, CancellationToken ct = default - ) - => client.Rollup.StartJobAsync(id, selector, ct); - - [Obsolete("Moved to client.Rollup.StartJobAsync(), please update this usage.")] - public static Task StartRollupJobAsync(this IElasticClient client, IStartRollupJobRequest request, - CancellationToken ct = default - ) - => client.Rollup.StartJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-StartTrialLicense.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-StartTrialLicense.cs deleted file mode 100644 index 21df89d902b..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-StartTrialLicense.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.License.StartTrial(), please update this usage.")] - public static StartTrialLicenseResponse StartTrialLicense(this IElasticClient client, - Func selector = null - ) - => client.License.StartTrial(selector); - - [Obsolete("Moved to client.License.StartTrial(), please update this usage.")] - public static StartTrialLicenseResponse StartTrialLicense(this IElasticClient client, IStartTrialLicenseRequest request) - => client.License.StartTrial(request); - - [Obsolete("Moved to client.License.StartTrialAsync(), please update this usage.")] - public static Task StartTrialLicenseAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.License.StartTrialAsync(selector, ct); - - [Obsolete("Moved to client.License.StartTrialAsync(), please update this usage.")] - public static Task StartTrialLicenseAsync(this IElasticClient client, IStartTrialLicenseRequest request, - CancellationToken ct = default - ) - => client.License.StartTrialAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-StartWatcher.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-StartWatcher.cs deleted file mode 100644 index ee8479a5330..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-StartWatcher.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Start(), please update this usage.")] - public static StartWatcherResponse StartWatcher(this IElasticClient client, Func selector = null - ) - => client.Watcher.Start(selector); - - [Obsolete("Moved to client.Watcher.Start(), please update this usage.")] - public static StartWatcherResponse StartWatcher(this IElasticClient client, IStartWatcherRequest request) - => client.Watcher.Start(request); - - [Obsolete("Moved to client.Watcher.StartAsync(), please update this usage.")] - public static Task StartWatcherAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.StartAsync(selector, ct); - - [Obsolete("Moved to client.Watcher.StartAsync(), please update this usage.")] - public static Task StartWatcherAsync(this IElasticClient client, IStartWatcherRequest request, - CancellationToken ct = default - ) - => client.Watcher.StartAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-StopDatafeed.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-StopDatafeed.cs deleted file mode 100644 index 6154d2f0273..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-StopDatafeed.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.StopDatafeed(), please update this usage.")] - public static StopDatafeedResponse StopDatafeed(this IElasticClient client, Id datafeedId, - Func selector = null - ) - => client.MachineLearning.StopDatafeed(datafeedId, selector); - - [Obsolete("Moved to client.MachineLearning.StopDatafeed(), please update this usage.")] - public static StopDatafeedResponse StopDatafeed(this IElasticClient client, IStopDatafeedRequest request) - => client.MachineLearning.StopDatafeed(request); - - [Obsolete("Moved to client.MachineLearning.StopDatafeedAsync(), please update this usage.")] - public static Task StopDatafeedAsync(this IElasticClient client, Id datafeedId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.StopDatafeedAsync(datafeedId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.StopDatafeedAsync(), please update this usage.")] - public static Task StopDatafeedAsync(this IElasticClient client, IStopDatafeedRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.StopDatafeedAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-StopRollupJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-StopRollupJob.cs deleted file mode 100644 index c1a0d80e9a7..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-StopRollupJob.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Rollup.StopJob(), please update this usage.")] - public static StopRollupJobResponse StopRollupJob(this IElasticClient client, Id id, - Func selector = null - ) - => client.Rollup.StopJob(id, selector); - - [Obsolete("Moved to client.Rollup.StopJob(), please update this usage.")] - public static StopRollupJobResponse StopRollupJob(this IElasticClient client, IStopRollupJobRequest request) - => client.Rollup.StopJob(request); - - [Obsolete("Moved to client.Rollup.StopJobAsync(), please update this usage.")] - public static Task StopRollupJobAsync(this IElasticClient client, Id id, - Func selector = null, CancellationToken ct = default - ) - => client.Rollup.StopJobAsync(id, selector, ct); - - [Obsolete("Moved to client.Rollup.StopJobAsync(), please update this usage.")] - public static Task StopRollupJobAsync(this IElasticClient client, IStopRollupJobRequest request, - CancellationToken ct = default - ) - => client.Rollup.StopJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-StopWatcher.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-StopWatcher.cs deleted file mode 100644 index 5d4d5ec6bad..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-StopWatcher.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Stop(), please update this usage.")] - public static StopWatcherResponse StopWatcher(this IElasticClient client, Func selector = null) - => client.Watcher.Stop(selector); - - [Obsolete("Moved to client.Watcher.Stop(), please update this usage.")] - public static StopWatcherResponse StopWatcher(this IElasticClient client, IStopWatcherRequest request) - => client.Watcher.Stop(request); - - [Obsolete("Moved to client.Watcher.StopAsync(), please update this usage.")] - public static Task StopWatcherAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.StopAsync(selector, ct); - - [Obsolete("Moved to client.Watcher.StopAsync(), please update this usage.")] - public static Task StopWatcherAsync(this IElasticClient client, IStopWatcherRequest request, - CancellationToken ct = default - ) - => client.Watcher.StopAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-SyncedFlush.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-SyncedFlush.cs deleted file mode 100644 index 33a31975161..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-SyncedFlush.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.SyncedFlush(), please update this usage.")] - public static SyncedFlushResponse SyncedFlush(this IElasticClient client, Indices indices, - Func selector = null - ) - => client.Indices.SyncedFlush(indices, selector); - - [Obsolete("Moved to client.Indices.SyncedFlush(), please update this usage.")] - public static SyncedFlushResponse SyncedFlush(this IElasticClient client, ISyncedFlushRequest request) - => client.Indices.SyncedFlush(request); - - [Obsolete("Moved to client.Indices.SyncedFlushAsync(), please update this usage.")] - public static Task SyncedFlushAsync(this IElasticClient client, Indices indices, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.SyncedFlushAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.SyncedFlushAsync(), please update this usage.")] - public static Task SyncedFlushAsync(this IElasticClient client, ISyncedFlushRequest request, - CancellationToken ct = default - ) - => client.Indices.SyncedFlushAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-TranslateSql.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-TranslateSql.cs deleted file mode 100644 index 3898a8fe35a..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-TranslateSql.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Sql.Translate(), please update this usage.")] - public static TranslateSqlResponse TranslateSql(this IElasticClient client, Func selector = null - ) - => client.Sql.Translate(selector); - - [Obsolete("Moved to client.Sql.Translate(), please update this usage.")] - public static TranslateSqlResponse TranslateSql(this IElasticClient client, ITranslateSqlRequest request) - => client.Sql.Translate(request); - - [Obsolete("Moved to client.Sql.TranslateAsync(), please update this usage.")] - public static Task TranslateSqlAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Sql.TranslateAsync(selector, ct); - - [Obsolete("Moved to client.Sql.TranslateAsync(), please update this usage.")] - public static Task TranslateSqlAsync(this IElasticClient client, ITranslateSqlRequest request, - CancellationToken ct = default - ) - => client.Sql.TranslateAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-TypeExists.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-TypeExists.cs deleted file mode 100644 index 472dfc2f7e2..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-TypeExists.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; - -namespace Nest -{ - using TypeExistConverter = Func; - - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.TypeExists(), please update this usage.")] - public static ExistsResponse TypeExists(this IElasticClient client, Indices indices, string type, - Func selector = null - ) - => client.Indices.TypeExists(indices, type, selector); - - [Obsolete("Moved to client.Indices.TypeExists(), please update this usage.")] - public static ExistsResponse TypeExists(this IElasticClient client, ITypeExistsRequest request) - => client.Indices.TypeExists(request); - - [Obsolete("Moved to client.Indices.TypeExistsAsync(), please update this usage.")] - public static Task TypeExistsAsync(this IElasticClient client, Indices indices, string type, - Func selector = null, - CancellationToken ct = default - ) - => client.Indices.TypeExistsAsync(indices, type, selector, ct); - - [Obsolete("Moved to client.Indices.TypeExistsAsync(), please update this usage.")] - public static Task TypeExistsAsync(this IElasticClient client, ITypeExistsRequest request, CancellationToken ct = default) - => client.Indices.TypeExistsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-UnfollowIndex.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-UnfollowIndex.cs deleted file mode 100644 index 4b33bd2e20f..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-UnfollowIndex.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.CrossClusterReplication.UnfollowIndex(), please update this usage.")] - public static UnfollowIndexResponse UnfollowIndex(this IElasticClient client, IndexName index, - Func selector = null - ) - => client.CrossClusterReplication.UnfollowIndex(index, selector); - - [Obsolete("Moved to client.CrossClusterReplication.UnfollowIndex(), please update this usage.")] - public static UnfollowIndexResponse UnfollowIndex(this IElasticClient client, IUnfollowIndexRequest request) - => client.CrossClusterReplication.UnfollowIndex(request); - - [Obsolete("Moved to client.CrossClusterReplication.UnfollowIndexAsync(), please update this usage.")] - public static Task UnfollowIndexAsync(this IElasticClient client, IndexName index, - Func selector = null, - CancellationToken ct = default - ) - => client.CrossClusterReplication.UnfollowIndexAsync(index, selector, ct); - - [Obsolete("Moved to client.CrossClusterReplication.UnfollowIndexAsync(), please update this usage.")] - public static Task UnfollowIndexAsync(this IElasticClient client, IUnfollowIndexRequest request, - CancellationToken ct = default - ) - => client.CrossClusterReplication.UnfollowIndexAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateDatafeed.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateDatafeed.cs deleted file mode 100644 index 45447d58a54..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateDatafeed.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.UpdateDatafeed(), please update this usage.")] - public static UpdateDatafeedResponse UpdateDatafeed(this IElasticClient client, Id datafeedId, - Func, IUpdateDatafeedRequest> selector = null - ) - where T : class - => client.MachineLearning.UpdateDatafeed(datafeedId, selector); - - [Obsolete("Moved to client.MachineLearning.UpdateDatafeed(), please update this usage.")] - public static UpdateDatafeedResponse UpdateDatafeed(this IElasticClient client, IUpdateDatafeedRequest request) - => client.MachineLearning.UpdateDatafeed(request); - - [Obsolete("Moved to client.MachineLearning.UpdateDatafeedAsync(), please update this usage.")] - public static Task UpdateDatafeedAsync(this IElasticClient client, Id datafeedId, - Func, IUpdateDatafeedRequest> selector = null, - CancellationToken ct = default - ) where T : class - => client.MachineLearning.UpdateDatafeedAsync(datafeedId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.UpdateDatafeedAsync(), please update this usage.")] - public static Task UpdateDatafeedAsync(this IElasticClient client, IUpdateDatafeedRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.UpdateDatafeedAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateIndexSettings.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateIndexSettings.cs deleted file mode 100644 index ea683f6d4fe..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateIndexSettings.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.UpdateSettings(), please update this usage.")] - public static UpdateIndexSettingsResponse UpdateIndexSettings(this IElasticClient client, Indices indices, - Func selector - ) - => client.Indices.UpdateSettings(indices, selector); - - [Obsolete("Moved to client.Indices.UpdateSettings(), please update this usage.")] - public static UpdateIndexSettingsResponse UpdateIndexSettings(this IElasticClient client, IUpdateIndexSettingsRequest request) - => client.Indices.UpdateSettings(request); - - [Obsolete("Moved to client.Indices.UpdateSettingsAsync(), please update this usage.")] - public static Task UpdateIndexSettingsAsync(this IElasticClient client, - Indices indices, - Func selector, - CancellationToken ct = default - ) - => client.Indices.UpdateSettingsAsync(indices, selector, ct); - - [Obsolete("Moved to client.Indices.UpdateSettingsAsync(), please update this usage.")] - public static Task UpdateIndexSettingsAsync(this IElasticClient client, IUpdateIndexSettingsRequest request, - CancellationToken ct = default - ) - => client.Indices.UpdateSettingsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateJob.cs deleted file mode 100644 index 9572bf2af3d..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateJob.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.UpdateJob(), please update this usage.")] - public static UpdateJobResponse UpdateJob(this IElasticClient client, Id jobId, - Func, IUpdateJobRequest> selector = null - ) where T : class - => client.MachineLearning.UpdateJob(jobId, selector); - - [Obsolete("Moved to client.MachineLearning.UpdateJob(), please update this usage.")] - public static UpdateJobResponse UpdateJob(this IElasticClient client, IUpdateJobRequest request) - => client.MachineLearning.UpdateJob(request); - - [Obsolete("Moved to client.MachineLearning.UpdateJobAsync(), please update this usage.")] - public static Task UpdateJobAsync(this IElasticClient client, Id jobId, - Func, IUpdateJobRequest> selector = null, - CancellationToken ct = default - ) where T : class - => client.MachineLearning.UpdateJobAsync(jobId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.UpdateJobAsync(), please update this usage.")] - public static Task UpdateJobAsync(this IElasticClient client, IUpdateJobRequest request, CancellationToken ct = default) - => client.MachineLearning.UpdateJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateModelSnapshot.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateModelSnapshot.cs deleted file mode 100644 index b8034e0bbf1..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-UpdateModelSnapshot.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.UpdateModelSnapshot(), please update this usage.")] - public static UpdateModelSnapshotResponse UpdateModelSnapshot(this IElasticClient client, Id jobId, Id snapshotId, - Func selector = null - ) - => client.MachineLearning.UpdateModelSnapshot(jobId, snapshotId, selector); - - [Obsolete("Moved to client.MachineLearning.UpdateModelSnapshot(), please update this usage.")] - public static UpdateModelSnapshotResponse UpdateModelSnapshot(this IElasticClient client, IUpdateModelSnapshotRequest request) - => client.MachineLearning.UpdateModelSnapshot(request); - - [Obsolete("Moved to client.MachineLearning.UpdateModelSnapshotAsync(), please update this usage.")] - public static Task UpdateModelSnapshotAsync(this IElasticClient client, Id jobId, Id snapshotId, - Func selector = null, - CancellationToken ct = default - ) - => client.MachineLearning.UpdateModelSnapshotAsync(jobId, snapshotId, selector, ct); - - [Obsolete("Moved to client.MachineLearning.UpdateModelSnapshotAsync(), please update this usage.")] - public static Task UpdateModelSnapshotAsync(this IElasticClient client, IUpdateModelSnapshotRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.UpdateModelSnapshotAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateDetector.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateDetector.cs deleted file mode 100644 index 9fc5be26d97..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateDetector.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.ValidateDetector(), please update this usage.")] - public static ValidateDetectorResponse ValidateDetector(this IElasticClient client, - Func, IValidateDetectorRequest> selector - ) where T : class - => client.MachineLearning.ValidateDetector(selector); - - [Obsolete("Moved to client.MachineLearning.ValidateDetector(), please update this usage.")] - public static ValidateDetectorResponse ValidateDetector(this IElasticClient client, IValidateDetectorRequest request) - => client.MachineLearning.ValidateDetector(request); - - [Obsolete("Moved to client.MachineLearning.ValidateDetectorAsync(), please update this usage.")] - public static Task ValidateDetectorAsync(this IElasticClient client, - Func, IValidateDetectorRequest> selector, - CancellationToken ct = default - ) where T : class - => client.MachineLearning.ValidateDetectorAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.ValidateDetectorAsync(), please update this usage.")] - public static Task ValidateDetectorAsync(this IElasticClient client, IValidateDetectorRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.ValidateDetectorAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateJob.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateJob.cs deleted file mode 100644 index 9651db33a76..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateJob.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.MachineLearning.ValidateJob(), please update this usage.")] - public static ValidateJobResponse ValidateJob(this IElasticClient client, Func, IValidateJobRequest> selector) - where T : class - => client.MachineLearning.ValidateJob(selector); - - [Obsolete("Moved to client.MachineLearning.ValidateJob(), please update this usage.")] - public static ValidateJobResponse ValidateJob(this IElasticClient client, IValidateJobRequest request) - => client.MachineLearning.ValidateJob(request); - - [Obsolete("Moved to client.MachineLearning.ValidateJobAsync(), please update this usage.")] - public static Task ValidateJobAsync(this IElasticClient client, - Func, IValidateJobRequest> selector, - CancellationToken ct = default - ) where T : class - => client.MachineLearning.ValidateJobAsync(selector, ct); - - [Obsolete("Moved to client.MachineLearning.ValidateJobAsync(), please update this usage.")] - public static Task ValidateJobAsync(this IElasticClient client, IValidateJobRequest request, - CancellationToken ct = default - ) - => client.MachineLearning.ValidateJobAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateQuery.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateQuery.cs deleted file mode 100644 index 68758c6a4f0..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-ValidateQuery.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Indices.ValidateQuery(), please update this usage.")] - public static ValidateQueryResponse ValidateQuery(this IElasticClient client, - Func, IValidateQueryRequest> selector - ) - where T : class - => client.Indices.ValidateQuery(selector); - - [Obsolete("Moved to client.Indices.ValidateQuery(), please update this usage.")] - public static ValidateQueryResponse ValidateQuery(this IElasticClient client, IValidateQueryRequest request) - => client.Indices.ValidateQuery(request); - - [Obsolete("Moved to client.Indices.ValidateQueryAsync(), please update this usage.")] - public static Task ValidateQueryAsync(this IElasticClient client, - Func, IValidateQueryRequest> selector, - CancellationToken ct = default - ) - where T : class - => client.Indices.ValidateQueryAsync(selector, ct); - - [Obsolete("Moved to client.Indices.ValidateQueryAsync(), please update this usage.")] - public static Task ValidateQueryAsync(this IElasticClient client, IValidateQueryRequest request, - CancellationToken ct = default - ) - => client.Indices.ValidateQueryAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-VerifyRepository.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-VerifyRepository.cs deleted file mode 100644 index 8837f8dbf58..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-VerifyRepository.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Snapshot.VerifyRepository(), please update this usage.")] - public static VerifyRepositoryResponse VerifyRepository(this IElasticClient client, Name repository, - Func selector = null - ) - => client.Snapshot.VerifyRepository(repository, selector); - - [Obsolete("Moved to client.Snapshot.VerifyRepository(), please update this usage.")] - public static VerifyRepositoryResponse VerifyRepository(this IElasticClient client, IVerifyRepositoryRequest request) - => client.Snapshot.VerifyRepository(request); - - [Obsolete("Moved to client.Snapshot.VerifyRepositoryAsync(), please update this usage.")] - public static Task VerifyRepositoryAsync(this IElasticClient client, Name repository, - Func selector = null, - CancellationToken ct = default - ) - => client.Snapshot.VerifyRepositoryAsync(repository, selector, ct); - - [Obsolete("Moved to client.Snapshot.VerifyRepositoryAsync(), please update this usage.")] - public static Task VerifyRepositoryAsync(this IElasticClient client, IVerifyRepositoryRequest request, - CancellationToken ct = default - ) - => client.Snapshot.VerifyRepositoryAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-WatcherStats.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-WatcherStats.cs deleted file mode 100644 index 4a54bb5b757..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-WatcherStats.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.Watcher.Stats(), please update this usage.")] - public static WatcherStatsResponse WatcherStats(this IElasticClient client, Func selector = null - ) - => client.Watcher.Stats(selector); - - [Obsolete("Moved to client.Watcher.Stats(), please update this usage.")] - public static WatcherStatsResponse WatcherStats(this IElasticClient client, IWatcherStatsRequest request) - => client.Watcher.Stats(request); - - [Obsolete("Moved to client.Watcher.StatsAsync(), please update this usage.")] - public static Task WatcherStatsAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.Watcher.StatsAsync(selector, ct); - - [Obsolete("Moved to client.Watcher.StatsAsync(), please update this usage.")] - public static Task WatcherStatsAsync(this IElasticClient client, IWatcherStatsRequest request, - CancellationToken ct = default - ) - => client.Watcher.StatsAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-XPackInfo.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-XPackInfo.cs deleted file mode 100644 index f7f1aa41893..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-XPackInfo.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.XPack.Info(), please update this usage.")] - public static XPackInfoResponse XPackInfo(this IElasticClient client, Func selector = null) - => client.XPack.Info(selector); - - [Obsolete("Moved to client.XPack.Info(), please update this usage.")] - public static XPackInfoResponse XPackInfo(this IElasticClient client, IXPackInfoRequest request) - => client.XPack.Info(request); - - [Obsolete("Moved to client.XPack.InfoAsync(), please update this usage.")] - public static Task XPackInfoAsync(this IElasticClient client, Func selector = null, - CancellationToken ct = default - ) - => client.XPack.InfoAsync(selector, ct); - - [Obsolete("Moved to client.XPack.InfoAsync(), please update this usage.")] - public static Task XPackInfoAsync(this IElasticClient client, IXPackInfoRequest request, CancellationToken ct = default) - => client.XPack.InfoAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/ElasticClient-XPackUsage.cs b/src/Nest.7xUpgradeAssistant/ElasticClient-XPackUsage.cs deleted file mode 100644 index 24e2b06ab8c..00000000000 --- a/src/Nest.7xUpgradeAssistant/ElasticClient-XPackUsage.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace Nest -{ - public static partial class ElasticClientExtensions - { - [Obsolete("Moved to client.XPack.Usage(), please update this usage.")] - public static XPackUsageResponse XPackUsage(this IElasticClient client, Func selector = null) - => client.XPack.Usage(selector); - - [Obsolete("Moved to client.XPack.Usage(), please update this usage.")] - public static XPackUsageResponse XPackUsage(this IElasticClient client, IXPackUsageRequest request) - => client.XPack.Usage(request); - - [Obsolete("Moved to client.XPack.UsageAsync(), please update this usage.")] - public static Task XPackUsageAsync(this IElasticClient client, - Func selector = null, - CancellationToken ct = default - ) - => client.XPack.UsageAsync(selector, ct); - - [Obsolete("Moved to client.XPack.UsageAsync(), please update this usage.")] - public static Task XPackUsageAsync(this IElasticClient client, IXPackUsageRequest request, CancellationToken ct = default) - => client.XPack.UsageAsync(request, ct); - } -} diff --git a/src/Nest.7xUpgradeAssistant/InvokeExtensions.cs b/src/Nest.7xUpgradeAssistant/InvokeExtensions.cs deleted file mode 100644 index 4e6eed792f5..00000000000 --- a/src/Nest.7xUpgradeAssistant/InvokeExtensions.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace Nest -{ - internal static class UpgradeAssistantInvokeExtensions - { - internal static TReturn InvokeOrDefault(this Func func, T @default) - where T : class, TReturn where TReturn : class => - func?.Invoke(@default) ?? @default; - } -} \ No newline at end of file diff --git a/src/Nest.7xUpgradeAssistant/Nest.7xUpgradeAssistant.csproj b/src/Nest.7xUpgradeAssistant/Nest.7xUpgradeAssistant.csproj deleted file mode 100644 index 1f30fc825d0..00000000000 --- a/src/Nest.7xUpgradeAssistant/Nest.7xUpgradeAssistant.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - netstandard2.0;net461 - netstandard2.0 - latest - Nest.UpgradeAssistant - - - - - - -