-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
63 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/Elastic.Ingest.Elasticsearch/Serialization/BulkHeader.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Licensed to Elasticsearch B.V under one or more agreements. | ||
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||
// See the LICENSE file in the project root for more information | ||
|
||
using System.Collections.Generic; | ||
using Elastic.Ingest.Elasticsearch.DataStreams; | ||
|
||
namespace Elastic.Ingest.Elasticsearch.Serialization; | ||
|
||
/// <summary> TODO </summary> | ||
public struct BulkHeader | ||
{ | ||
|
||
/// <summary> The index to write to, never set when writing using <see cref="DataStreamChannel{TEvent}"/> </summary> | ||
public string? Index { get; set; } | ||
|
||
/// <summary> The id of the object being written, never set when writing using <see cref="DataStreamChannel{TEvent}"/> </summary> | ||
public string? Id { get; set; } | ||
|
||
/// <summary> Require <see cref="Index"/> to point to an alias, never set when writing using <see cref="DataStreamChannel{TEvent}"/> </summary> | ||
public bool? RequireAlias { get; set; } | ||
|
||
/// <summary> TODO </summary> | ||
public Dictionary<string, string>? DynamicTemplates { get; init; } | ||
} |
98 changes: 0 additions & 98 deletions
98
src/Elastic.Ingest.Elasticsearch/Serialization/BulkOperationHeader.cs
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/Elastic.Ingest.Elasticsearch/Serialization/HeaderSerialization.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Licensed to Elasticsearch B.V under one or more agreements. | ||
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||
// See the LICENSE file in the project root for more information | ||
|
||
namespace Elastic.Ingest.Elasticsearch.Serialization; | ||
|
||
/// <summary> TODO </summary> | ||
public enum HeaderSerialization | ||
{ | ||
/// <summary> </summary> | ||
Index, | ||
/// <summary> </summary> | ||
IndexNoParams, | ||
/// <summary> </summary> | ||
Create, | ||
/// <summary> </summary> | ||
CreateNoParams, | ||
/// <summary> </summary> | ||
Delete, | ||
/// <summary> </summary> | ||
Update, | ||
} |