Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move ingest API requests into the .Specification.IngestApi namespace #206

Merged
merged 3 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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), [#203](https://github.com/opensearch-project/opensearch-net/pull/203), [#205](https://github.com/opensearch-project/opensearch-net/pull/205))
- 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))

### Dependencies
- Bumps `System.Reflection.Emit` from 4.3.0 to 4.7.0
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Descriptors.Ingest.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.IngestApi
{
///<summary>Descriptor for DeletePipeline <para></para></summary>
public partial class DeletePipelineDescriptor : RequestDescriptorBase<DeletePipelineDescriptor, DeletePipelineRequestParameters, IDeletePipelineRequest>, IDeletePipelineRequest
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.IngestApi
{
[MapsApi("ingest.delete_pipeline.json")]
public partial interface IDeletePipelineRequest { }
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.IngestApi
{
public class DeletePipelineResponse : AcknowledgedResponseBase { }
}
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.IngestApi
{
[MapsApi("ingest.get_pipeline.json")]
public partial interface IGetPipelineRequest { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[JsonFormatter(typeof(DictionaryResponseFormatter<GetPipelineResponse, string, IPipeline>))]
public class GetPipelineResponse : DictionaryResponseBase<string, IPipeline>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Pipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[InterfaceDataContract]
[ReadAs(typeof(Pipeline))]
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary> Ingest pipelines are composed of one or more processors </summary>
[InterfaceDataContract]
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.IngestApi
{
[MapsApi("ingest.processor_grok.json")]
public partial interface IGrokProcessorPatternsRequest { }
Expand Down
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
namespace OpenSearch.Client.Specification.IngestApi
{
public class GrokProcessorPatternsResponse : ResponseBase
{
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/ProcessorFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using OpenSearch.Net.Utf8Json.Resolvers;


namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
internal class ProcessorFormatter : IJsonFormatter<IProcessor>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[InterfaceDataContract]
public interface IAppendProcessor : IProcessor
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Converts a human readable byte value (e.g. 1kb) to its value in bytes (e.g. 1024).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
using OpenSearch.Net.Utf8Json;


namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Converts a field in the currently ingested document to a different type,
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/CsvProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Extracts fields from CSV line out of a single text field within a document.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
using OpenSearch.Net;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// The purpose of this processor is to point documents to the right time
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/DateProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[InterfaceDataContract]
public interface IDateProcessor : IProcessor
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Similar to the Grok Processor, dissect also extracts structured fields out of a single text field
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Expands a field with dots into an object field.
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/DropProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Drops the document without raising any errors. This is useful to prevent the document from getting indexed based on some condition.
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/FailProcessor.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
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Raises an exception. This is useful for when you expect a pipeline to
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[InterfaceDataContract]
public interface IFingerprintProcessor : IProcessor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Processes elements in an array of unknown length.
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/GrokProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[InterfaceDataContract]
public interface IGrokProcessor : IProcessor
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/GsubProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Converts a string field by applying a regular expression and a replacement.
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/JoinProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Joins each element of an array into a single string using a separator
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/JsonProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Converts a JSON string into a structured JSON object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Processor to automatically parse messages (or specific event fields) which are of the key=value variety.
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Converts a string to its lowercase equivalent.
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[InterfaceDataContract]
public interface INetworkCommunityIdProcessor : IProcessor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[InterfaceDataContract]
public interface INetworkDirectionProcessor : IProcessor
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
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary> Executes another pipeline.</summary>
[InterfaceDataContract]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// The ingest attachment plugin lets OpenSearch extract file attachments in common formats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// The GeoIP processor adds information about the geographical location of IP addresses,
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;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
[StringEnum]
public enum UserAgentProperty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// The user_agent processor extracts details from the user agent string a browser sends with its web requests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Removes existing fields. If one field doesn't exist, an exception will be thrown.
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Renames an existing field. If the field doesn't exist or the new name is already used, an exception will be thrown.
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Allows inline and stored scripts to be executed within ingest pipelines.
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/SetProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Sets one field and associates it with the specified value.
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/SortProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Sorts the elements of an array ascending or descending. Homogeneous arrays of numbers
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Splits a field into an array using a separator character. Only works on string fields
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Ingest/Processors/TrimProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Runtime.Serialization;
using OpenSearch.Net.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Trims whitespace from field. This only works on leading and trailing whitespace
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.Utf8Json;

namespace OpenSearch.Client
namespace OpenSearch.Client.Specification.IngestApi
{
/// <summary>
/// Converts a string to its uppercase equivalent.
Expand Down
Loading
Loading