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 @@ -59,6 +59,7 @@ internal static class ApiUrlsLookups
internal static ApiUrls ClusterStats = new ApiUrls(new[] { "/_cluster/stats", "/_cluster/stats/nodes/{node_id}" });
internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "/_count", "/{index}/_count" });
internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "/{index}/_create/{id}" });
internal static ApiUrls DanglingIndicesListDanglingIndices = new ApiUrls(new[] { "/_dangling" });
internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "/{index}/_delete_by_query" });
internal static ApiUrls NoNamespaceDeleteByQueryRethrottle = new ApiUrls(new[] { "/_delete_by_query/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "/{index}/_doc/{id}" });
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.
//
// ------------------------------------------------

using Elastic.Transport;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.DanglingIndices
{
public class DanglingIndicesListDanglingIndicesRequestParameters : RequestParameters<DanglingIndicesListDanglingIndicesRequestParameters>
{
}

public partial class DanglingIndicesListDanglingIndicesRequest : PlainRequestBase<DanglingIndicesListDanglingIndicesRequestParameters>
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.DanglingIndicesListDanglingIndices;
protected override HttpMethod HttpMethod => HttpMethod.GET;
protected override bool SupportsBody => false;
}

public sealed partial class DanglingIndicesListDanglingIndicesRequestDescriptor : RequestDescriptorBase<DanglingIndicesListDanglingIndicesRequestDescriptor, DanglingIndicesListDanglingIndicesRequestParameters>
{
internal DanglingIndicesListDanglingIndicesRequestDescriptor(Action<DanglingIndicesListDanglingIndicesRequestDescriptor> configure) => configure.Invoke(this);
public DanglingIndicesListDanglingIndicesRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlsLookups.DanglingIndicesListDanglingIndices;
protected override HttpMethod HttpMethod => HttpMethod.GET;
protected override bool SupportsBody => false;
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// 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.
//
// ------------------------------------------------

using Elastic.Transport.Products.Elasticsearch;
using System.Collections.Generic;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.DanglingIndices
{
public partial class DanglingIndicesListDanglingIndicesResponse : ElasticsearchResponseBase
{
[JsonInclude]
[JsonPropertyName("dangling_indices")]
public IReadOnlyCollection<Elastic.Clients.Elasticsearch.DanglingIndices.DanglingIndex> DanglingIndices { get; init; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// 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.
//
// ------------------------------------------------

using System;
using System.Threading;
using System.Threading.Tasks;

#nullable restore
namespace Elastic.Clients.Elasticsearch.DanglingIndices
{
public class DanglingIndicesNamespace : NamespacedClientProxy
{
internal DanglingIndicesNamespace(ElasticsearchClient client) : base(client)
{
}

public DanglingIndicesListDanglingIndicesResponse ListDanglingIndices(DanglingIndicesListDanglingIndicesRequest request)
{
request.BeforeRequest();
return DoRequest<DanglingIndicesListDanglingIndicesRequest, DanglingIndicesListDanglingIndicesResponse>(request);
}

public Task<DanglingIndicesListDanglingIndicesResponse> ListDanglingIndicesAsync(DanglingIndicesListDanglingIndicesRequest request, CancellationToken cancellationToken = default)
{
request.BeforeRequest();
return DoRequestAsync<DanglingIndicesListDanglingIndicesRequest, DanglingIndicesListDanglingIndicesResponse>(request, cancellationToken);
}

public DanglingIndicesListDanglingIndicesResponse ListDanglingIndices(Action<DanglingIndicesListDanglingIndicesRequestDescriptor> configureRequest = null)
{
var descriptor = new DanglingIndicesListDanglingIndicesRequestDescriptor();
configureRequest?.Invoke(descriptor);
descriptor.BeforeRequest();
return DoRequest<DanglingIndicesListDanglingIndicesRequestDescriptor, DanglingIndicesListDanglingIndicesResponse>(descriptor);
}

public Task<DanglingIndicesListDanglingIndicesResponse> ListDanglingIndicesAsync(Action<DanglingIndicesListDanglingIndicesRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
{
var descriptor = new DanglingIndicesListDanglingIndicesRequestDescriptor();
configureRequest?.Invoke(descriptor);
descriptor.BeforeRequest();
return DoRequestAsync<DanglingIndicesListDanglingIndicesRequestDescriptor, DanglingIndicesListDanglingIndicesResponse>(descriptor);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using Elastic.Clients.Elasticsearch.Autoscaling;
using Elastic.Clients.Elasticsearch.Ccr;
using Elastic.Clients.Elasticsearch.Cluster;
using Elastic.Clients.Elasticsearch.DanglingIndices;
using Elastic.Clients.Elasticsearch.Enrich;
using Elastic.Clients.Elasticsearch.Eql;
using Elastic.Clients.Elasticsearch.Graph;
Expand Down Expand Up @@ -49,6 +50,8 @@ public partial class ElasticsearchClient

public ClusterNamespace Cluster { get; private set; }

public DanglingIndicesNamespace DanglingIndices { get; private set; }

public EnrichNamespace Enrich { get; private set; }

public EqlNamespace Eql { get; private set; }
Expand Down Expand Up @@ -81,6 +84,7 @@ private partial void SetupNamespaces()
Autoscaling = new AutoscalingNamespace(this);
Ccr = new CcrNamespace(this);
Cluster = new ClusterNamespace(this);
DanglingIndices = new DanglingIndicesNamespace(this);
Enrich = new EnrichNamespace(this);
Eql = new EqlNamespace(this);
Graph = new GraphNamespace(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// 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.
//
// ------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.DanglingIndices
{
public partial class DanglingIndex
{
[JsonInclude]
[JsonPropertyName("creation_date_millis")]
public Elastic.Clients.Elasticsearch.EpochMillis CreationDateMillis { get; init; }

[JsonInclude]
[JsonPropertyName("index_name")]
public string IndexName { get; init; }

[JsonInclude]
[JsonPropertyName("index_uuid")]
public string IndexUuid { get; init; }

[JsonInclude]
[JsonPropertyName("node_ids")]
public Elastic.Clients.Elasticsearch.Ids NodeIds { get; init; }
}
}