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 @@ -162,5 +162,7 @@ internal static class ApiUrlsLookups
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "/{index}/_update_by_query" });
internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "/_update_by_query/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "/{index}/_update/{id}" });
internal static ApiUrls XpackInfo = new ApiUrls(new[] { "/_xpack" });
internal static ApiUrls XpackUsage = new ApiUrls(new[] { "/_xpack/usage" });
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// 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.Xpack
{
public class XpackInfoRequestParameters : RequestParameters<XpackInfoRequestParameters>
{
[JsonIgnore]
public IEnumerable<string>? Categories { get => Q<IEnumerable<string>?>("categories"); set => Q("categories", value); }

[JsonIgnore]
public bool? AcceptEnterprise { get => Q<bool?>("accept_enterprise"); set => Q("accept_enterprise", value); }
}

public partial class XpackInfoRequest : PlainRequestBase<XpackInfoRequestParameters>
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.XpackInfo;
protected override HttpMethod HttpMethod => HttpMethod.GET;
protected override bool SupportsBody => false;
[JsonIgnore]
public IEnumerable<string>? Categories { get => Q<IEnumerable<string>?>("categories"); set => Q("categories", value); }

[JsonIgnore]
public bool? AcceptEnterprise { get => Q<bool?>("accept_enterprise"); set => Q("accept_enterprise", value); }
}

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

internal override ApiUrls ApiUrls => ApiUrlsLookups.XpackInfo;
protected override HttpMethod HttpMethod => HttpMethod.GET;
protected override bool SupportsBody => false;
public XpackInfoRequestDescriptor AcceptEnterprise(bool? acceptEnterprise = true) => Qs("accept_enterprise", acceptEnterprise);
public XpackInfoRequestDescriptor Categories(IEnumerable<string>? categories) => Qs("categories", categories);
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// 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.Xpack
{
public partial class XpackInfoResponse : ElasticsearchResponseBase
{
[JsonInclude]
[JsonPropertyName("build")]
public Elastic.Clients.Elasticsearch.Xpack.BuildInformation Build { get; init; }

[JsonInclude]
[JsonPropertyName("features")]
public Elastic.Clients.Elasticsearch.Xpack.Features Features { get; init; }

[JsonInclude]
[JsonPropertyName("license")]
public Elastic.Clients.Elasticsearch.Xpack.MinimalLicenseInformation License { get; init; }

[JsonInclude]
[JsonPropertyName("tagline")]
public string Tagline { get; init; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// 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.Xpack
{
public class XpackUsageRequestParameters : RequestParameters<XpackUsageRequestParameters>
{
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Time?>("master_timeout"); set => Q("master_timeout", value); }
}

public partial class XpackUsageRequest : PlainRequestBase<XpackUsageRequestParameters>
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.XpackUsage;
protected override HttpMethod HttpMethod => HttpMethod.GET;
protected override bool SupportsBody => false;
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Time?>("master_timeout"); set => Q("master_timeout", value); }
}

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

internal override ApiUrls ApiUrls => ApiUrlsLookups.XpackUsage;
protected override HttpMethod HttpMethod => HttpMethod.GET;
protected override bool SupportsBody => false;
public XpackUsageRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout);
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
// 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.Xpack
{
public partial class XpackUsageResponse : ElasticsearchResponseBase
{
[JsonInclude]
[JsonPropertyName("aggregate_metric")]
public Elastic.Clients.Elasticsearch.Xpack.Base AggregateMetric { get; init; }

[JsonInclude]
[JsonPropertyName("analytics")]
public Elastic.Clients.Elasticsearch.Xpack.Analytics Analytics { get; init; }

[JsonInclude]
[JsonPropertyName("ccr")]
public Elastic.Clients.Elasticsearch.Xpack.Ccr Ccr { get; init; }

[JsonInclude]
[JsonPropertyName("data_frame")]
public Elastic.Clients.Elasticsearch.Xpack.Base? DataFrame { get; init; }

[JsonInclude]
[JsonPropertyName("data_science")]
public Elastic.Clients.Elasticsearch.Xpack.Base? DataScience { get; init; }

[JsonInclude]
[JsonPropertyName("data_streams")]
public Elastic.Clients.Elasticsearch.Xpack.DataStreams? DataStreams { get; init; }

[JsonInclude]
[JsonPropertyName("data_tiers")]
public Elastic.Clients.Elasticsearch.Xpack.DataTiers DataTiers { get; init; }

[JsonInclude]
[JsonPropertyName("enrich")]
public Elastic.Clients.Elasticsearch.Xpack.Base? Enrich { get; init; }

[JsonInclude]
[JsonPropertyName("eql")]
public Elastic.Clients.Elasticsearch.Xpack.Eql Eql { get; init; }

[JsonInclude]
[JsonPropertyName("flattened")]
public Elastic.Clients.Elasticsearch.Xpack.Flattened? Flattened { get; init; }

[JsonInclude]
[JsonPropertyName("frozen_indices")]
public Elastic.Clients.Elasticsearch.Xpack.FrozenIndices FrozenIndices { get; init; }

[JsonInclude]
[JsonPropertyName("graph")]
public Elastic.Clients.Elasticsearch.Xpack.Base Graph { get; init; }

[JsonInclude]
[JsonPropertyName("ilm")]
public Elastic.Clients.Elasticsearch.Xpack.Ilm Ilm { get; init; }

[JsonInclude]
[JsonPropertyName("logstash")]
public Elastic.Clients.Elasticsearch.Xpack.Base Logstash { get; init; }

[JsonInclude]
[JsonPropertyName("ml")]
public Elastic.Clients.Elasticsearch.Xpack.MachineLearning Ml { get; init; }

[JsonInclude]
[JsonPropertyName("monitoring")]
public Elastic.Clients.Elasticsearch.Xpack.Monitoring Monitoring { get; init; }

[JsonInclude]
[JsonPropertyName("rollup")]
public Elastic.Clients.Elasticsearch.Xpack.Base Rollup { get; init; }

[JsonInclude]
[JsonPropertyName("runtime_fields")]
public Elastic.Clients.Elasticsearch.Xpack.RuntimeFieldTypes? RuntimeFields { get; init; }

[JsonInclude]
[JsonPropertyName("searchable_snapshots")]
public Elastic.Clients.Elasticsearch.Xpack.SearchableSnapshots SearchableSnapshots { get; init; }

[JsonInclude]
[JsonPropertyName("security")]
public Elastic.Clients.Elasticsearch.Xpack.Security Security { get; init; }

[JsonInclude]
[JsonPropertyName("slm")]
public Elastic.Clients.Elasticsearch.Xpack.Slm Slm { get; init; }

[JsonInclude]
[JsonPropertyName("spatial")]
public Elastic.Clients.Elasticsearch.Xpack.Base Spatial { get; init; }

[JsonInclude]
[JsonPropertyName("sql")]
public Elastic.Clients.Elasticsearch.Xpack.Sql Sql { get; init; }

[JsonInclude]
[JsonPropertyName("transform")]
public Elastic.Clients.Elasticsearch.Xpack.Base Transform { get; init; }

[JsonInclude]
[JsonPropertyName("vectors")]
public Elastic.Clients.Elasticsearch.Xpack.Vector? Vectors { get; init; }

[JsonInclude]
[JsonPropertyName("voting_only")]
public Elastic.Clients.Elasticsearch.Xpack.Base VotingOnly { get; init; }

[JsonInclude]
[JsonPropertyName("watcher")]
public Elastic.Clients.Elasticsearch.Xpack.Watcher Watcher { get; init; }
}
}
Loading