Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<ItemGroup>
<PackageReference Include="Elastic.Esql" Version="0.10.0" />
<PackageReference Include="Elastic.Transport" Version="0.15.1" />
<PackageReference Include="Elastic.Transport" Version="0.16.0" />
<PackageReference Include="PolySharp" Version="1.15.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ internal static class ApiUrlLookup
internal static ApiUrls NodesStats = new ApiUrls(new[] { "_nodes/stats", "_nodes/{node_id}/stats", "_nodes/stats/{metric}", "_nodes/{node_id}/stats/{metric}", "_nodes/stats/{metric}/{index_metric}", "_nodes/{node_id}/stats/{metric}/{index_metric}" });
internal static ApiUrls NodesUsage = new ApiUrls(new[] { "_nodes/usage", "_nodes/{node_id}/usage", "_nodes/usage/{metric}", "_nodes/{node_id}/usage/{metric}" });
internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[] { "_bulk", "{index}/_bulk" });
internal static ApiUrls NoNamespaceCancelReindex = new ApiUrls(new[] { "_reindex/{task_id}/_cancel" });
internal static ApiUrls NoNamespaceCapabilities = new ApiUrls(new[] { "_capabilities" });
internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[] { "_search/scroll" });
internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[] { "_pit" });
Expand All @@ -308,13 +309,15 @@ internal static class ApiUrlLookup
internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "{index}/_explain/{id}" });
internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "_field_caps", "{index}/_field_caps" });
internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceGetReindex = new ApiUrls(new[] { "_reindex/{task_id}" });
internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "_scripts/{id}" });
internal static ApiUrls NoNamespaceGetScriptContext = new ApiUrls(new[] { "_script_context" });
internal static ApiUrls NoNamespaceGetScriptLanguages = new ApiUrls(new[] { "_script_language" });
internal static ApiUrls NoNamespaceGetSource = new ApiUrls(new[] { "{index}/_source/{id}" });
internal static ApiUrls NoNamespaceHealthReport = new ApiUrls(new[] { "_health_report", "_health_report/{feature}" });
internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "{index}/_doc/{id}", "{index}/_doc" });
internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "" });
internal static ApiUrls NoNamespaceListReindex = new ApiUrls(new[] { "_reindex" });
internal static ApiUrls NoNamespaceMtermvectors = new ApiUrls(new[] { "_mtermvectors", "{index}/_mtermvectors" });
internal static ApiUrls NoNamespaceMultiGet = new ApiUrls(new[] { "_mget", "{index}/_mget" });
internal static ApiUrls NoNamespaceMultiSearch = new ApiUrls(new[] { "_msearch", "{index}/_msearch" });
Expand Down Expand Up @@ -384,6 +387,7 @@ internal static class ApiUrlLookup
internal static ApiUrls SecurityClearCachedRealms = new ApiUrls(new[] { "_security/realm/{realms}/_clear_cache" });
internal static ApiUrls SecurityClearCachedRoles = new ApiUrls(new[] { "_security/role/{name}/_clear_cache" });
internal static ApiUrls SecurityClearCachedServiceTokens = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}/_clear_cache" });
internal static ApiUrls SecurityCloneApiKey = new ApiUrls(new[] { "_security/api_key/clone" });
internal static ApiUrls SecurityCreateApiKey = new ApiUrls(new[] { "_security/api_key" });
internal static ApiUrls SecurityCreateCrossClusterApiKey = new ApiUrls(new[] { "_security/cross_cluster/api_key" });
internal static ApiUrls SecurityCreateServiceToken = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}", "_security/service/{namespace}/{service}/credential/token" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ public sealed partial class SubmitAsyncSearchRequestParameters : Elastic.Transpo
{
/// <summary>
/// <para>
/// Whether to ignore if a wildcard indices expression resolves into no concrete indices.
/// (This includes <c>_all</c> string or when no indices have been specified)
/// A setting that does two separate checks on the index expression.
/// If <c>false</c>, the request returns an error (1) if any wildcard expression
/// (including <c>_all</c> and <c>*</c>) resolves to zero matching indices or (2) if the
/// complete set of resolved indices, aliases or data streams is empty after all
/// expressions are evaluated. If <c>true</c>, index expressions that resolve to no
/// indices are allowed and the request returns an empty result.
/// </para>
/// </summary>
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
Expand Down Expand Up @@ -99,7 +103,9 @@ public sealed partial class SubmitAsyncSearchRequestParameters : Elastic.Transpo

/// <summary>
/// <para>
/// Whether specified concrete indices should be ignored when unavailable (missing or closed)
/// If <c>false</c>, the request returns an error if it targets a concrete (non-wildcarded)
/// index, alias, or data stream that is missing, closed, or otherwise unavailable.
/// If <c>true</c>, unavailable concrete targets are silently ignored.
/// </para>
/// </summary>
public bool? IgnoreUnavailable { get => Q<bool?>("ignore_unavailable"); set => Q("ignore_unavailable", value); }
Expand Down Expand Up @@ -283,8 +289,12 @@ internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js

/// <summary>
/// <para>
/// Whether to ignore if a wildcard indices expression resolves into no concrete indices.
/// (This includes <c>_all</c> string or when no indices have been specified)
/// A setting that does two separate checks on the index expression.
/// If <c>false</c>, the request returns an error (1) if any wildcard expression
/// (including <c>_all</c> and <c>*</c>) resolves to zero matching indices or (2) if the
/// complete set of resolved indices, aliases or data streams is empty after all
/// expressions are evaluated. If <c>true</c>, index expressions that resolve to no
/// indices are allowed and the request returns an empty result.
/// </para>
/// </summary>
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
Expand Down Expand Up @@ -355,7 +365,9 @@ internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js

/// <summary>
/// <para>
/// Whether specified concrete indices should be ignored when unavailable (missing or closed)
/// If <c>false</c>, the request returns an error if it targets a concrete (non-wildcarded)
/// index, alias, or data stream that is missing, closed, or otherwise unavailable.
/// If <c>true</c>, unavailable concrete targets are silently ignored.
/// </para>
/// </summary>
public bool? IgnoreUnavailable { get => Q<bool?>("ignore_unavailable"); set => Q("ignore_unavailable", value); }
Expand Down Expand Up @@ -742,8 +754,12 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip

/// <summary>
/// <para>
/// Whether to ignore if a wildcard indices expression resolves into no concrete indices.
/// (This includes <c>_all</c> string or when no indices have been specified)
/// A setting that does two separate checks on the index expression.
/// If <c>false</c>, the request returns an error (1) if any wildcard expression
/// (including <c>_all</c> and <c>*</c>) resolves to zero matching indices or (2) if the
/// complete set of resolved indices, aliases or data streams is empty after all
/// expressions are evaluated. If <c>true</c>, index expressions that resolve to no
/// indices are allowed and the request returns an empty result.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor AllowNoIndices(bool? value = true)
Expand Down Expand Up @@ -865,7 +881,9 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip

/// <summary>
/// <para>
/// Whether specified concrete indices should be ignored when unavailable (missing or closed)
/// If <c>false</c>, the request returns an error if it targets a concrete (non-wildcarded)
/// index, alias, or data stream that is missing, closed, or otherwise unavailable.
/// If <c>true</c>, unavailable concrete targets are silently ignored.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? value = true)
Expand Down Expand Up @@ -2146,8 +2164,12 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip

/// <summary>
/// <para>
/// Whether to ignore if a wildcard indices expression resolves into no concrete indices.
/// (This includes <c>_all</c> string or when no indices have been specified)
/// A setting that does two separate checks on the index expression.
/// If <c>false</c>, the request returns an error (1) if any wildcard expression
/// (including <c>_all</c> and <c>*</c>) resolves to zero matching indices or (2) if the
/// complete set of resolved indices, aliases or data streams is empty after all
/// expressions are evaluated. If <c>true</c>, index expressions that resolve to no
/// indices are allowed and the request returns an empty result.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor<TDocument> AllowNoIndices(bool? value = true)
Expand Down Expand Up @@ -2269,7 +2291,9 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip

/// <summary>
/// <para>
/// Whether specified concrete indices should be ignored when unavailable (missing or closed)
/// If <c>false</c>, the request returns an error if it targets a concrete (non-wildcarded)
/// index, alias, or data stream that is missing, closed, or otherwise unavailable.
/// If <c>true</c>, unavailable concrete targets are silently ignored.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor<TDocument> IgnoreUnavailable(bool? value = true)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// 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.
//
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Json;

public sealed partial class CancelReindexRequestConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.CancelReindexRequest>
{
public override Elastic.Clients.Elasticsearch.CancelReindexRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
{
if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
{
reader.SafeSkip();
continue;
}

throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
}

reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
return new Elastic.Clients.Elasticsearch.CancelReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
{
};
}

public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.CancelReindexRequest value, System.Text.Json.JsonSerializerOptions options)
{
writer.WriteStartObject();
writer.WriteEndObject();
}
}
Loading
Loading