Skip to content

Commit

Permalink
Revert breaking namespace changes (#425)
Browse files Browse the repository at this point in the history
Reverts #200, #202, #203, #205, #206, #207, #208, #209

Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia authored Nov 8, 2023
1 parent 91117e4 commit d347903
Show file tree
Hide file tree
Showing 597 changed files with 386 additions and 619 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]
### ⚠️ Breaking Changes ⚠️
- Moved `OpenSearch.Client` request classes into their respective namespaces to match those in `OpenSearch.Net` ([#200](https://github.com/opensearch-project/opensearch-net/pull/200), [#202](https://github.com/opensearch-project/opensearch-net/pull/202), [#203](https://github.com/opensearch-project/opensearch-net/pull/203), [#205](https://github.com/opensearch-project/opensearch-net/pull/205), [#206](https://github.com/opensearch-project/opensearch-net/pull/206), [#207](https://github.com/opensearch-project/opensearch-net/pull/207), [#208](https://github.com/opensearch-project/opensearch-net/pull/208), [#209](https://github.com/opensearch-project/opensearch-net/pull/209))
- Removed support for the `net461` target ([#256](https://github.com/opensearch-project/opensearch-net/pull/256))
- Fixed naming of `ClusterManagerTimeout` and `MasterTimeout` properties from `*TimeSpanout` in the low-level client ([#332](https://github.com/opensearch-project/opensearch-net/pull/332))

Expand Down Expand Up @@ -111,4 +110,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
[Unreleased]: https://github.com/opensearch-project/opensearch-net/compare/v1.5.0...main
[1.5.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.2.0...v1.3.0
[1.3.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.2.0...v1.3.0
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using OpenSearch.Net.Utf8Json;
// ReSharper disable UnusedTypeParameter
// ReSharper disable PartialMethodWithSinglePart
// ReSharper disable RedundantNameQualifier
namespace OpenSearch.Client@(ns)
namespace OpenSearch.Client
{
@foreach (var endpoint in endpoints)
{
Expand Down
2 changes: 1 addition & 1 deletion src/ApiGenerator/Views/HighLevel/Requests/Requests.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using OpenSearch.Net.Utf8Json;
// ReSharper disable UnusedTypeParameter
// ReSharper disable PartialMethodWithSinglePart
// ReSharper disable RedundantNameQualifier
namespace OpenSearch.Client@(ns)
namespace OpenSearch.Client
{
@foreach (var endpoint in endpoints)
{
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatAliases/CatAliasesRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatAliasesRecord : ICatRecord
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatAliases/CatAliasesRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.aliases.json")]
public partial interface ICatAliasesRequest { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using System;
using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatAllocationRecord : ICatRecord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.allocation.json")]
public partial interface ICatAllocationRequest { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
/// <summary>
/// See docs <see href="https://opensearch.org/docs/2.0/opensearch/rest-api/cat/cat-cluster_manager/">here</see>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.cluster_manager.json")]
///<remarks>Introduced in OpenSearch 2.0 instead of <see cref="ICatMasterRequest"/></remarks>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatCount/CatCountRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatCountRecord : ICatRecord
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatCount/CatCountRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.count.json")]
public partial interface ICatCountRequest { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
[JsonFormatter(typeof(CatFielddataRecordFormatter))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using OpenSearch.Net.Utf8Json.Internal;


namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
internal class CatFielddataRecordFormatter : IJsonFormatter<CatFielddataRecord>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.fielddata.json")]
public partial interface ICatFielddataRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatHealth/CatHealthRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatHealthRecord : ICatRecord
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatHealth/CatHealthRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.health.json")]
public partial interface ICatHealthRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatHelp/CatHelpRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatHelpRecord : ICatRecord
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatHelp/CatHelpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.help.json")]
public partial interface ICatHelpRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatHelpResponseBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
using OpenSearch.Net;
using OpenSearch.Net.Extensions;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
internal class CatHelpResponseBuilder : CustomResponseBuilderBase
{
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatIndices/CatIndicesRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatIndicesRecord : ICatRecord
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatIndices/CatIndicesRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.indices.json")]
public partial interface ICatIndicesRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatMaster/CatMasterRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
/// <summary>
/// See docs <see href="https://opensearch.org/docs/1.2/opensearch/rest-api/cat/cat-master/">here</see>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatMaster/CatMasterRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.master.json")]
/// <remarks>Deprecated as of OpenSearch 2.0, use <see cref="ICatClusterManagerRequest"/> instead</remarks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatNodeAttributesRecord : ICatRecord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#pragma warning disable 612, 618

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.nodeattrs.json")]
public partial interface ICatNodeAttributesRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatNodes/CatNodesRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatNodesRecord : ICatRecord
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatNodes/CatNodesRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.nodes.json")]
public partial interface ICatNodesRequest { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatPendingTasksRecord : ICatRecord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.pending_tasks.json")]
public partial interface ICatPendingTasksRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatPlugins/CatPluginsRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatPluginsRecord : ICatRecord
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatPlugins/CatPluginsRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.plugins.json")]
public partial interface ICatPluginsRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatRecovery/CatRecoveryRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatRecoveryRecord : ICatRecord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.recovery.json")]
public partial interface ICatRecoveryRequest { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatRepositoriesRecord : ICatRecord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.repositories.json")]
public partial interface ICatRepositoriesRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatResponse<TCatRecord> : ResponseBase
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatResponseBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Threading.Tasks;
using OpenSearch.Net;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
internal class CatResponseBuilder<TCatRecord> : CustomResponseBuilderBase where TCatRecord : ICatRecord
{
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatSegments/CatSegmentsRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatSegmentsRecord : ICatRecord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.segments.json")]
public partial interface ICatSegmentsRequest { }
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatShards/CatShardsRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using System.Runtime.Serialization;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatShardsRecord : ICatRecord
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Cat/CatShards/CatShardsRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.shards.json")]
public partial interface ICatShardsRequest { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[DataContract]
public class CatSnapshotsRecord : ICatRecord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client.Specification.CatApi
namespace OpenSearch.Client
{
[MapsApi("cat.snapshots.json")]
public partial interface ICatSnapshotsRequest { }
Expand Down
Loading

0 comments on commit d347903

Please sign in to comment.