Skip to content

Commit

Permalink
Move dangling_indices API requests into the `.Specification.DanglingI…
Browse files Browse the repository at this point in the history
…ndicesApi` namespace (#203)

* Move dangling_indices API requests into the `.Specification.DanglingIndicesApi` namespace

Signed-off-by: Thomas Farr <tsfarr@amazon.com>

* Add to changelog

Signed-off-by: Thomas Farr <tsfarr@amazon.com>

---------

Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia authored May 8, 2023
1 parent affc04b commit 9043508
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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))
- 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))

### Dependencies
- Bumps `System.Reflection.Emit` from 4.3.0 to 4.7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.DanglingIndicesApi
{
[MapsApi("dangling_indices.delete_dangling_index.json")]
public partial interface IDeleteDanglingIndexRequest
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
namespace OpenSearch.Client.Specification.DanglingIndicesApi
{
[DataContract]
public class DeleteDanglingIndexResponse : AcknowledgedResponseBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.DanglingIndicesApi
{
[MapsApi("dangling_indices.import_dangling_index.json")]
public partial interface IImportDanglingIndexRequest
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
namespace OpenSearch.Client.Specification.DanglingIndicesApi
{
[DataContract]
public class ImportDanglingIndexResponse : AcknowledgedResponseBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* under the License.
*/

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.DanglingIndicesApi
{
[MapsApi("dangling_indices.list_dangling_indices.json")]
public partial interface IListDanglingIndicesRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.DanglingIndicesApi
{
[DataContract]
public class ListDanglingIndicesResponse : ResponseBase
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Descriptors.DanglingIndices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
// ReSharper disable UnusedTypeParameter
// ReSharper disable PartialMethodWithSinglePart
// ReSharper disable RedundantNameQualifier
namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.DanglingIndicesApi
{
///<summary>Descriptor for DeleteDanglingIndex <para></para></summary>
public partial class DeleteDanglingIndexDescriptor : RequestDescriptorBase<DeleteDanglingIndexDescriptor, DeleteDanglingIndexRequestParameters, IDeleteDanglingIndexRequest>, IDeleteDanglingIndexRequest
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Requests.DanglingIndices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
// ReSharper disable UnusedTypeParameter
// ReSharper disable PartialMethodWithSinglePart
// ReSharper disable RedundantNameQualifier
namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.DanglingIndicesApi
{
[InterfaceDataContract]
public partial interface IDeleteDanglingIndexRequest : IRequest<DeleteDanglingIndexRequestParameters>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using System;
using OpenSearch.Net;
using OpenSearch.Client;
using OpenSearch.Client.Specification.DanglingIndicesApi;
using Tests.Core.ManagedOpenSearch.Clusters;
using Tests.Framework.EndpointTests;
using Tests.Framework.EndpointTests.TestState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using System.Threading.Tasks;
using OpenSearch.OpenSearch.Xunit.XunitPlumbing;
using OpenSearch.Client;
using OpenSearch.Client.Specification.DanglingIndicesApi;
using Tests.Framework.EndpointTests;
using static Tests.Framework.EndpointTests.UrlTester;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using System;
using OpenSearch.Net;
using OpenSearch.Client;
using OpenSearch.Client.Specification.DanglingIndicesApi;
using Tests.Core.ManagedOpenSearch.Clusters;
using Tests.Framework.EndpointTests;
using Tests.Framework.EndpointTests.TestState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using System.Threading.Tasks;
using OpenSearch.OpenSearch.Xunit.XunitPlumbing;
using OpenSearch.Client;
using OpenSearch.Client.Specification.DanglingIndicesApi;
using Tests.Framework.EndpointTests;
using static Tests.Framework.EndpointTests.UrlTester;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using System;
using OpenSearch.Net;
using OpenSearch.Client;
using OpenSearch.Client.Specification.DanglingIndicesApi;
using Tests.Core.ManagedOpenSearch.Clusters;
using Tests.Framework.EndpointTests;
using Tests.Framework.EndpointTests.TestState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using System.Threading.Tasks;
using OpenSearch.OpenSearch.Xunit.XunitPlumbing;
using OpenSearch.Client;
using OpenSearch.Client.Specification.DanglingIndicesApi;
using Tests.Framework.EndpointTests;
using static Tests.Framework.EndpointTests.UrlTester;

Expand Down

0 comments on commit 9043508

Please sign in to comment.