From cb16ad45c12ea25d278db0f4130b4db681ad0fdd Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Sun, 19 Nov 2023 12:24:00 +1300 Subject: [PATCH] Sort usings in generated code (#438) Signed-off-by: Thomas Farr --- src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs | 5 ++--- .../_Generated/Descriptors.DanglingIndices.cs | 5 ++--- src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs | 5 ++--- src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs | 3 +-- src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs | 5 ++--- src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs | 5 ++--- src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs | 5 ++--- src/OpenSearch.Client/_Generated/IOpenSearchClient.cs | 2 +- src/OpenSearch.Client/_Generated/Requests.Cluster.cs | 4 ++-- src/OpenSearch.Client/_Generated/Requests.DanglingIndices.cs | 4 ++-- src/OpenSearch.Client/_Generated/Requests.Ingest.cs | 4 ++-- src/OpenSearch.Client/_Generated/Requests.NoNamespace.cs | 2 +- src/OpenSearch.Client/_Generated/Requests.Nodes.cs | 4 ++-- src/OpenSearch.Client/_Generated/Requests.Snapshot.cs | 4 ++-- src/OpenSearch.Client/_Generated/Requests.Tasks.cs | 4 ++-- src/OpenSearch.Client/_Generated/Requests.cs | 4 ++-- src/OpenSearch.Net/_Generated/Api/Enums.cs | 4 ++-- .../Api/RequestParameters/RequestParameters.Cluster.cs | 2 +- .../RequestParameters/RequestParameters.DanglingIndices.cs | 2 +- .../Api/RequestParameters/RequestParameters.Ingest.cs | 2 +- .../Api/RequestParameters/RequestParameters.NoNamespace.cs | 2 +- .../Api/RequestParameters/RequestParameters.Nodes.cs | 2 +- .../Api/RequestParameters/RequestParameters.Snapshot.cs | 2 +- .../Api/RequestParameters/RequestParameters.Tasks.cs | 2 +- 24 files changed, 38 insertions(+), 45 deletions(-) diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs b/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs index 75eb9a9964..6c8dcd7c90 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs @@ -45,12 +45,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; - +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.ClusterApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs b/src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs index 37ce61165c..41b073e5cc 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs @@ -45,12 +45,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; - +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.DanglingIndicesApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs b/src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs index 06352e5bb0..0700f7e7ea 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs @@ -45,12 +45,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; - +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.IngestApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs b/src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs index 3eb30c27c2..6e1b206c5b 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs @@ -45,9 +45,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; - +using System.Text; using OpenSearch.Net; using OpenSearch.Net.Utf8Json; diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs b/src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs index c961752aef..6c09ea7b43 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs @@ -45,12 +45,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; - +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.NodesApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs b/src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs index a6fb6f7737..43fb17f3cf 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs @@ -45,12 +45,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; - +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.SnapshotApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs b/src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs index dad7ecf2d2..123027a22d 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs @@ -45,12 +45,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; - +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.TasksApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/IOpenSearchClient.cs b/src/OpenSearch.Client/_Generated/IOpenSearchClient.cs index 8fa9a0bccc..6954a80a79 100644 --- a/src/OpenSearch.Client/_Generated/IOpenSearchClient.cs +++ b/src/OpenSearch.Client/_Generated/IOpenSearchClient.cs @@ -44,9 +44,9 @@ // ReSharper disable RedundantUsingDirective using System; using System.Collections.Generic; +using System.Linq; using System.Threading; using System.Threading.Tasks; -using System.Linq; using OpenSearch.Client; using OpenSearch.Client.Specification.ClusterApi; using OpenSearch.Client.Specification.DanglingIndicesApi; diff --git a/src/OpenSearch.Client/_Generated/Requests.Cluster.cs b/src/OpenSearch.Client/_Generated/Requests.Cluster.cs index 34566239c9..9ffab174d1 100644 --- a/src/OpenSearch.Client/_Generated/Requests.Cluster.cs +++ b/src/OpenSearch.Client/_Generated/Requests.Cluster.cs @@ -45,12 +45,12 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; using System.Runtime.Serialization; +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.ClusterApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Requests.DanglingIndices.cs b/src/OpenSearch.Client/_Generated/Requests.DanglingIndices.cs index aad5a765fd..d049fcb067 100644 --- a/src/OpenSearch.Client/_Generated/Requests.DanglingIndices.cs +++ b/src/OpenSearch.Client/_Generated/Requests.DanglingIndices.cs @@ -45,12 +45,12 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; using System.Runtime.Serialization; +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.DanglingIndicesApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Requests.Ingest.cs b/src/OpenSearch.Client/_Generated/Requests.Ingest.cs index b3a8fbaa6c..4caaa71079 100644 --- a/src/OpenSearch.Client/_Generated/Requests.Ingest.cs +++ b/src/OpenSearch.Client/_Generated/Requests.Ingest.cs @@ -45,12 +45,12 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; using System.Runtime.Serialization; +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.IngestApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Requests.NoNamespace.cs b/src/OpenSearch.Client/_Generated/Requests.NoNamespace.cs index 5ab1abdbcd..4afe3b3cd7 100644 --- a/src/OpenSearch.Client/_Generated/Requests.NoNamespace.cs +++ b/src/OpenSearch.Client/_Generated/Requests.NoNamespace.cs @@ -45,9 +45,9 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; using System.Runtime.Serialization; +using System.Text; using OpenSearch.Net; using OpenSearch.Net.Utf8Json; diff --git a/src/OpenSearch.Client/_Generated/Requests.Nodes.cs b/src/OpenSearch.Client/_Generated/Requests.Nodes.cs index 6c5db6bfc8..a6e1743829 100644 --- a/src/OpenSearch.Client/_Generated/Requests.Nodes.cs +++ b/src/OpenSearch.Client/_Generated/Requests.Nodes.cs @@ -45,12 +45,12 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; using System.Runtime.Serialization; +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.NodesApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Requests.Snapshot.cs b/src/OpenSearch.Client/_Generated/Requests.Snapshot.cs index 12c6b98dd7..8634ae872c 100644 --- a/src/OpenSearch.Client/_Generated/Requests.Snapshot.cs +++ b/src/OpenSearch.Client/_Generated/Requests.Snapshot.cs @@ -45,12 +45,12 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; using System.Runtime.Serialization; +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.SnapshotApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Requests.Tasks.cs b/src/OpenSearch.Client/_Generated/Requests.Tasks.cs index b9bb38ebd1..b63bd3ab4c 100644 --- a/src/OpenSearch.Client/_Generated/Requests.Tasks.cs +++ b/src/OpenSearch.Client/_Generated/Requests.Tasks.cs @@ -45,12 +45,12 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; using System.Runtime.Serialization; +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.TasksApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable RedundantBaseConstructorCall // ReSharper disable UnusedTypeParameter diff --git a/src/OpenSearch.Client/_Generated/Requests.cs b/src/OpenSearch.Client/_Generated/Requests.cs index 595d9f8cee..9a22f3bd5b 100644 --- a/src/OpenSearch.Client/_Generated/Requests.cs +++ b/src/OpenSearch.Client/_Generated/Requests.cs @@ -45,17 +45,17 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; using System.Runtime.Serialization; +using System.Text; using OpenSearch.Net; -using OpenSearch.Net.Utf8Json; using OpenSearch.Net.Specification.ClusterApi; using OpenSearch.Net.Specification.DanglingIndicesApi; using OpenSearch.Net.Specification.IngestApi; using OpenSearch.Net.Specification.NodesApi; using OpenSearch.Net.Specification.SnapshotApi; using OpenSearch.Net.Specification.TasksApi; +using OpenSearch.Net.Utf8Json; // ReSharper disable UnusedTypeParameter namespace OpenSearch.Client diff --git a/src/OpenSearch.Net/_Generated/Api/Enums.cs b/src/OpenSearch.Net/_Generated/Api/Enums.cs index 9a7b3ce13c..e29577a10c 100644 --- a/src/OpenSearch.Net/_Generated/Api/Enums.cs +++ b/src/OpenSearch.Net/_Generated/Api/Enums.cs @@ -43,12 +43,12 @@ // ----------------------------------------------- // ReSharper disable RedundantUsingDirective using System; -using System.Collections.Generic; using System.Collections.Concurrent; +using System.Collections.Generic; using System.Linq; -using System.Text; using System.Reflection; using System.Runtime.Serialization; +using System.Text; namespace OpenSearch.Net { diff --git a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Cluster.cs b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Cluster.cs index 047344b66c..b8492ff048 100644 --- a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Cluster.cs +++ b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Cluster.cs @@ -46,8 +46,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; +using System.Text; // ReSharper disable once CheckNamespace namespace OpenSearch.Net.Specification.ClusterApi diff --git a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.DanglingIndices.cs b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.DanglingIndices.cs index 797b59c12c..a4d85a08f5 100644 --- a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.DanglingIndices.cs +++ b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.DanglingIndices.cs @@ -46,8 +46,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; +using System.Text; // ReSharper disable once CheckNamespace namespace OpenSearch.Net.Specification.DanglingIndicesApi diff --git a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Ingest.cs b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Ingest.cs index 2e477048bc..9ed905b9ec 100644 --- a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Ingest.cs +++ b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Ingest.cs @@ -46,8 +46,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; +using System.Text; // ReSharper disable once CheckNamespace namespace OpenSearch.Net.Specification.IngestApi diff --git a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.NoNamespace.cs b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.NoNamespace.cs index 14227ad8c0..086f04f412 100644 --- a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.NoNamespace.cs +++ b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.NoNamespace.cs @@ -46,8 +46,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; +using System.Text; // ReSharper disable once CheckNamespace namespace OpenSearch.Net diff --git a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Nodes.cs b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Nodes.cs index d01be877fe..1860769a9c 100644 --- a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Nodes.cs +++ b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Nodes.cs @@ -46,8 +46,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; +using System.Text; // ReSharper disable once CheckNamespace namespace OpenSearch.Net.Specification.NodesApi diff --git a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Snapshot.cs b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Snapshot.cs index 123fc32244..2b19326fdb 100644 --- a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Snapshot.cs +++ b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Snapshot.cs @@ -46,8 +46,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; +using System.Text; // ReSharper disable once CheckNamespace namespace OpenSearch.Net.Specification.SnapshotApi diff --git a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Tasks.cs b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Tasks.cs index 71e1120a36..067a2ae43b 100644 --- a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Tasks.cs +++ b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Tasks.cs @@ -46,8 +46,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Linq.Expressions; +using System.Text; // ReSharper disable once CheckNamespace namespace OpenSearch.Net.Specification.TasksApi