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 @@ -74,6 +74,8 @@ internal static class ApiUrlsLookups
internal static ApiUrls EqlGet = new ApiUrls(new[] { "/_eql/search/{id}" });
internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "/{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "/{index}/_source/{id}" });
internal static ApiUrls FeaturesGetFeatures = new ApiUrls(new[] { "/_features" });
internal static ApiUrls FeaturesResetFeatures = new ApiUrls(new[] { "/_features/_reset" });
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 GraphExplore = new ApiUrls(new[] { "/{index}/_graph/explore" });
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.Features
{
public class FeaturesGetFeaturesRequestParameters : RequestParameters<FeaturesGetFeaturesRequestParameters>
{
}

public partial class FeaturesGetFeaturesRequest : PlainRequestBase<FeaturesGetFeaturesRequestParameters>
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.FeaturesGetFeatures;
protected override HttpMethod HttpMethod => HttpMethod.GET;
protected override bool SupportsBody => false;
}

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

internal override ApiUrls ApiUrls => ApiUrlsLookups.FeaturesGetFeatures;
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.Features
{
public partial class FeaturesGetFeaturesResponse : ElasticsearchResponseBase
{
[JsonInclude]
[JsonPropertyName("features")]
public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Features.Feature> Features { get; init; }
}
}
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.Features
{
public class FeaturesResetFeaturesRequestParameters : RequestParameters<FeaturesResetFeaturesRequestParameters>
{
}

public partial class FeaturesResetFeaturesRequest : PlainRequestBase<FeaturesResetFeaturesRequestParameters>
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.FeaturesResetFeatures;
protected override HttpMethod HttpMethod => HttpMethod.POST;
protected override bool SupportsBody => false;
}

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

internal override ApiUrls ApiUrls => ApiUrlsLookups.FeaturesResetFeatures;
protected override HttpMethod HttpMethod => HttpMethod.POST;
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.Features
{
public partial class FeaturesResetFeaturesResponse : ElasticsearchResponseBase
{
[JsonInclude]
[JsonPropertyName("features")]
public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Features.Feature> Features { get; init; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// 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.Features
{
public class FeaturesNamespace : NamespacedClientProxy
{
internal FeaturesNamespace(ElasticsearchClient client) : base(client)
{
}

public FeaturesGetFeaturesResponse GetFeatures(FeaturesGetFeaturesRequest request)
{
request.BeforeRequest();
return DoRequest<FeaturesGetFeaturesRequest, FeaturesGetFeaturesResponse>(request);
}

public Task<FeaturesGetFeaturesResponse> GetFeaturesAsync(FeaturesGetFeaturesRequest request, CancellationToken cancellationToken = default)
{
request.BeforeRequest();
return DoRequestAsync<FeaturesGetFeaturesRequest, FeaturesGetFeaturesResponse>(request, cancellationToken);
}

public FeaturesGetFeaturesResponse GetFeatures(Action<FeaturesGetFeaturesRequestDescriptor> configureRequest = null)
{
var descriptor = new FeaturesGetFeaturesRequestDescriptor();
configureRequest?.Invoke(descriptor);
descriptor.BeforeRequest();
return DoRequest<FeaturesGetFeaturesRequestDescriptor, FeaturesGetFeaturesResponse>(descriptor);
}

public Task<FeaturesGetFeaturesResponse> GetFeaturesAsync(Action<FeaturesGetFeaturesRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
{
var descriptor = new FeaturesGetFeaturesRequestDescriptor();
configureRequest?.Invoke(descriptor);
descriptor.BeforeRequest();
return DoRequestAsync<FeaturesGetFeaturesRequestDescriptor, FeaturesGetFeaturesResponse>(descriptor);
}

public FeaturesResetFeaturesResponse ResetFeatures(FeaturesResetFeaturesRequest request)
{
request.BeforeRequest();
return DoRequest<FeaturesResetFeaturesRequest, FeaturesResetFeaturesResponse>(request);
}

public Task<FeaturesResetFeaturesResponse> ResetFeaturesAsync(FeaturesResetFeaturesRequest request, CancellationToken cancellationToken = default)
{
request.BeforeRequest();
return DoRequestAsync<FeaturesResetFeaturesRequest, FeaturesResetFeaturesResponse>(request, cancellationToken);
}

public FeaturesResetFeaturesResponse ResetFeatures(Action<FeaturesResetFeaturesRequestDescriptor> configureRequest = null)
{
var descriptor = new FeaturesResetFeaturesRequestDescriptor();
configureRequest?.Invoke(descriptor);
descriptor.BeforeRequest();
return DoRequest<FeaturesResetFeaturesRequestDescriptor, FeaturesResetFeaturesResponse>(descriptor);
}

public Task<FeaturesResetFeaturesResponse> ResetFeaturesAsync(Action<FeaturesResetFeaturesRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
{
var descriptor = new FeaturesResetFeaturesRequestDescriptor();
configureRequest?.Invoke(descriptor);
descriptor.BeforeRequest();
return DoRequestAsync<FeaturesResetFeaturesRequestDescriptor, FeaturesResetFeaturesResponse>(descriptor);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using Elastic.Clients.Elasticsearch.DanglingIndices;
using Elastic.Clients.Elasticsearch.Enrich;
using Elastic.Clients.Elasticsearch.Eql;
using Elastic.Clients.Elasticsearch.Features;
using Elastic.Clients.Elasticsearch.Graph;
using Elastic.Clients.Elasticsearch.Ilm;
using Elastic.Clients.Elasticsearch.IndexManagement;
Expand Down Expand Up @@ -56,6 +57,8 @@ public partial class ElasticsearchClient

public EqlNamespace Eql { get; private set; }

public FeaturesNamespace Features { get; private set; }

public GraphNamespace Graph { get; private set; }

public IlmNamespace Ilm { get; private set; }
Expand Down Expand Up @@ -87,6 +90,7 @@ private partial void SetupNamespaces()
DanglingIndices = new DanglingIndicesNamespace(this);
Enrich = new EnrichNamespace(this);
Eql = new EqlNamespace(this);
Features = new FeaturesNamespace(this);
Graph = new GraphNamespace(this);
Ilm = new IlmNamespace(this);
Indices = new IndicesNamespace(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// 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.Features
{
public partial class Feature
{
[JsonInclude]
[JsonPropertyName("description")]
public string Description { get; init; }

[JsonInclude]
[JsonPropertyName("name")]
public string Name { get; init; }
}
}