diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs index e320b4c2ba6..dfbfd3e0e86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs @@ -44,6 +44,17 @@ internal static class ApiUrlsLookups internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "/{index}/_doc/{id}" }); internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "/{index}/_doc/{id}" }); internal static ApiUrls GraphExplore = new ApiUrls(new[] { "/{index}/_graph/explore" }); + internal static ApiUrls IndexLifecycleManagementDeleteLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}" }); + internal static ApiUrls IndexLifecycleManagementExplainLifecycle = new ApiUrls(new[] { "/{index}/_ilm/explain" }); + internal static ApiUrls IndexLifecycleManagementGetLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}", "/_ilm/policy" }); + internal static ApiUrls IndexLifecycleManagementGetStatus = new ApiUrls(new[] { "/_ilm/status" }); + internal static ApiUrls IndexLifecycleManagementMigrateToDataTiers = new ApiUrls(new[] { "/_ilm/migrate_to_data_tiers" }); + internal static ApiUrls IndexLifecycleManagementMoveToStep = new ApiUrls(new[] { "/_ilm/move/{index}" }); + internal static ApiUrls IndexLifecycleManagementPutLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}" }); + internal static ApiUrls IndexLifecycleManagementRemovePolicy = new ApiUrls(new[] { "/{index}/_ilm/remove" }); + internal static ApiUrls IndexLifecycleManagementRetry = new ApiUrls(new[] { "/{index}/_ilm/retry" }); + internal static ApiUrls IndexLifecycleManagementStart = new ApiUrls(new[] { "/_ilm/start" }); + internal static ApiUrls IndexLifecycleManagementStop = new ApiUrls(new[] { "/_ilm/stop" }); internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "/{index}" }); internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "/{index}" }); internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "/_refresh", "/{index}/_refresh" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleRequest.g.cs new file mode 100644 index 00000000000..2ac8064dde7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleRequest.g.cs @@ -0,0 +1,79 @@ +// 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.Ilm +{ + public class IlmDeleteLifecycleRequestParameters : RequestParameters + { + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public partial class IlmDeleteLifecycleRequest : PlainRequestBase + { + public IlmDeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policy) : base(r => r.Required("policy", policy)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementDeleteLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.DELETE; + protected override bool SupportsBody => false; + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public sealed partial class IlmDeleteLifecycleRequestDescriptor : RequestDescriptorBase + { + internal IlmDeleteLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmDeleteLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name policy) : base(r => r.Required("policy", policy)) + { + } + + internal IlmDeleteLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementDeleteLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.DELETE; + protected override bool SupportsBody => false; + public IlmDeleteLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); + public IlmDeleteLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); + public IlmDeleteLifecycleRequestDescriptor Policy(Elastic.Clients.Elasticsearch.Name policy) + { + RouteValues.Required("policy", policy); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleResponse.g.cs new file mode 100644 index 00000000000..702aa966245 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleResponse.g.cs @@ -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.Ilm +{ + public partial class IlmDeleteLifecycleResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleRequest.g.cs new file mode 100644 index 00000000000..709e39424d5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleRequest.g.cs @@ -0,0 +1,126 @@ +// 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.Ilm +{ + public class IlmExplainLifecycleRequestParameters : RequestParameters + { + [JsonIgnore] + public bool? OnlyErrors { get => Q("only_errors"); set => Q("only_errors", value); } + + [JsonIgnore] + public bool? OnlyManaged { get => Q("only_managed"); set => Q("only_managed", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public partial class IlmExplainLifecycleRequest : PlainRequestBase + { + public IlmExplainLifecycleRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementExplainLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + [JsonIgnore] + public bool? OnlyErrors { get => Q("only_errors"); set => Q("only_errors", value); } + + [JsonIgnore] + public bool? OnlyManaged { get => Q("only_managed"); set => Q("only_managed", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public sealed partial class IlmExplainLifecycleRequestDescriptor : RequestDescriptorBase, IlmExplainLifecycleRequestParameters> + { + internal IlmExplainLifecycleRequestDescriptor(Action> configure) => configure.Invoke(this); + public IlmExplainLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + public IlmExplainLifecycleRequestDescriptor(TDocument document) : this(typeof(TDocument)) + { + } + + internal IlmExplainLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementExplainLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + public IlmExplainLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); + public IlmExplainLifecycleRequestDescriptor OnlyErrors(bool? onlyErrors = true) => Qs("only_errors", onlyErrors); + public IlmExplainLifecycleRequestDescriptor OnlyManaged(bool? onlyManaged = true) => Qs("only_managed", onlyManaged); + public IlmExplainLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); + public IlmExplainLifecycleRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } + + public sealed partial class IlmExplainLifecycleRequestDescriptor : RequestDescriptorBase + { + internal IlmExplainLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmExplainLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal IlmExplainLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementExplainLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + public IlmExplainLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); + public IlmExplainLifecycleRequestDescriptor OnlyErrors(bool? onlyErrors = true) => Qs("only_errors", onlyErrors); + public IlmExplainLifecycleRequestDescriptor OnlyManaged(bool? onlyManaged = true) => Qs("only_managed", onlyManaged); + public IlmExplainLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); + public IlmExplainLifecycleRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleResponse.g.cs new file mode 100644 index 00000000000..4db4bae2039 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleResponse.g.cs @@ -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.Ilm +{ + public partial class IlmExplainLifecycleResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("indices")] + public Elastic.Clients.Elasticsearch.Ilm.ExplainLifecycle.LifecycleExplains Indices { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleRequest.g.cs new file mode 100644 index 00000000000..d8db77677b9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleRequest.g.cs @@ -0,0 +1,79 @@ +// 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.Ilm +{ + public class IlmGetLifecycleRequestParameters : RequestParameters + { + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public partial class IlmGetLifecycleRequest : PlainRequestBase + { + public IlmGetLifecycleRequest() + { + } + + public IlmGetLifecycleRequest(Elastic.Clients.Elasticsearch.Name? policy) : base(r => r.Optional("policy", policy)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementGetLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public sealed partial class IlmGetLifecycleRequestDescriptor : RequestDescriptorBase + { + internal IlmGetLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmGetLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementGetLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + public IlmGetLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); + public IlmGetLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); + public IlmGetLifecycleRequestDescriptor Policy(Elastic.Clients.Elasticsearch.Name? policy) + { + RouteValues.Optional("policy", policy); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleResponse.g.cs new file mode 100644 index 00000000000..e01e6a233e1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleResponse.g.cs @@ -0,0 +1,28 @@ +// 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.Ilm +{ + public partial class IlmGetLifecycleResponse : ElasticsearchResponseBase + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusRequest.g.cs new file mode 100644 index 00000000000..1ff7ab9dacf --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusRequest.g.cs @@ -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.Ilm +{ + public class IlmGetStatusRequestParameters : RequestParameters + { + } + + public partial class IlmGetStatusRequest : PlainRequestBase + { + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementGetStatus; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + } + + public sealed partial class IlmGetStatusRequestDescriptor : RequestDescriptorBase + { + internal IlmGetStatusRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmGetStatusRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementGetStatus; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusResponse.g.cs new file mode 100644 index 00000000000..44ce19abce6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusResponse.g.cs @@ -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.Ilm +{ + public partial class IlmGetStatusResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("operation_mode")] + public Elastic.Clients.Elasticsearch.LifecycleOperationMode OperationMode { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersRequest.g.cs new file mode 100644 index 00000000000..c7a2528a4ff --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersRequest.g.cs @@ -0,0 +1,96 @@ +// 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.Ilm +{ + public class IlmMigrateToDataTiersRequestParameters : RequestParameters + { + [JsonIgnore] + public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } + } + + public partial class IlmMigrateToDataTiersRequest : PlainRequestBase + { + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMigrateToDataTiers; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => true; + [JsonIgnore] + public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } + + [JsonInclude] + [JsonPropertyName("legacy_template_to_delete")] + public string? LegacyTemplateToDelete { get; set; } + + [JsonInclude] + [JsonPropertyName("node_attribute")] + public string? NodeAttribute { get; set; } + } + + public sealed partial class IlmMigrateToDataTiersRequestDescriptor : RequestDescriptorBase + { + internal IlmMigrateToDataTiersRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmMigrateToDataTiersRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMigrateToDataTiers; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => true; + public IlmMigrateToDataTiersRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); + private string? LegacyTemplateToDeleteValue { get; set; } + + private string? NodeAttributeValue { get; set; } + + public IlmMigrateToDataTiersRequestDescriptor LegacyTemplateToDelete(string? legacyTemplateToDelete) + { + LegacyTemplateToDeleteValue = legacyTemplateToDelete; + return Self; + } + + public IlmMigrateToDataTiersRequestDescriptor NodeAttribute(string? nodeAttribute) + { + NodeAttributeValue = nodeAttribute; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(LegacyTemplateToDeleteValue)) + { + writer.WritePropertyName("legacy_template_to_delete"); + writer.WriteStringValue(LegacyTemplateToDeleteValue); + } + + if (!string.IsNullOrEmpty(NodeAttributeValue)) + { + writer.WritePropertyName("node_attribute"); + writer.WriteStringValue(NodeAttributeValue); + } + + writer.WriteEndObject(); + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersResponse.g.cs new file mode 100644 index 00000000000..9f001eddf5d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersResponse.g.cs @@ -0,0 +1,55 @@ +// 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.Ilm +{ + public partial class IlmMigrateToDataTiersResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("dry_run")] + public bool DryRun { get; init; } + + [JsonInclude] + [JsonPropertyName("migrated_component_templates")] + public IReadOnlyCollection MigratedComponentTemplates { get; init; } + + [JsonInclude] + [JsonPropertyName("migrated_composable_templates")] + public IReadOnlyCollection MigratedComposableTemplates { get; init; } + + [JsonInclude] + [JsonPropertyName("migrated_ilm_policies")] + public IReadOnlyCollection MigratedIlmPolicies { get; init; } + + [JsonInclude] + [JsonPropertyName("migrated_indices")] + public Elastic.Clients.Elasticsearch.Indices MigratedIndices { get; init; } + + [JsonInclude] + [JsonPropertyName("migrated_legacy_templates")] + public IReadOnlyCollection MigratedLegacyTemplates { get; init; } + + [JsonInclude] + [JsonPropertyName("removed_legacy_template")] + public string RemovedLegacyTemplate { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepRequest.g.cs new file mode 100644 index 00000000000..e226eb4231a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepRequest.g.cs @@ -0,0 +1,291 @@ +// 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.Ilm +{ + public class IlmMoveToStepRequestParameters : RequestParameters + { + } + + public partial class IlmMoveToStepRequest : PlainRequestBase + { + public IlmMoveToStepRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMoveToStep; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => true; + [JsonInclude] + [JsonPropertyName("current_step")] + public Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? CurrentStep { get; set; } + + [JsonInclude] + [JsonPropertyName("next_step")] + public Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? NextStep { get; set; } + } + + public sealed partial class IlmMoveToStepRequestDescriptor : RequestDescriptorBase, IlmMoveToStepRequestParameters> + { + internal IlmMoveToStepRequestDescriptor(Action> configure) => configure.Invoke(this); + public IlmMoveToStepRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + public IlmMoveToStepRequestDescriptor(TDocument document) : this(typeof(TDocument)) + { + } + + internal IlmMoveToStepRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMoveToStep; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => true; + public IlmMoveToStepRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + private Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? CurrentStepValue { get; set; } + + private Ilm.MoveToStep.StepKeyDescriptor CurrentStepDescriptor { get; set; } + + private Action CurrentStepDescriptorAction { get; set; } + + private Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? NextStepValue { get; set; } + + private Ilm.MoveToStep.StepKeyDescriptor NextStepDescriptor { get; set; } + + private Action NextStepDescriptorAction { get; set; } + + public IlmMoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? currentStep) + { + CurrentStepDescriptor = null; + CurrentStepDescriptorAction = null; + CurrentStepValue = currentStep; + return Self; + } + + public IlmMoveToStepRequestDescriptor CurrentStep(Ilm.MoveToStep.StepKeyDescriptor descriptor) + { + CurrentStepValue = null; + CurrentStepDescriptorAction = null; + CurrentStepDescriptor = descriptor; + return Self; + } + + public IlmMoveToStepRequestDescriptor CurrentStep(Action configure) + { + CurrentStepValue = null; + CurrentStepDescriptorAction = null; + CurrentStepDescriptorAction = configure; + return Self; + } + + public IlmMoveToStepRequestDescriptor NextStep(Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? nextStep) + { + NextStepDescriptor = null; + NextStepDescriptorAction = null; + NextStepValue = nextStep; + return Self; + } + + public IlmMoveToStepRequestDescriptor NextStep(Ilm.MoveToStep.StepKeyDescriptor descriptor) + { + NextStepValue = null; + NextStepDescriptorAction = null; + NextStepDescriptor = descriptor; + return Self; + } + + public IlmMoveToStepRequestDescriptor NextStep(Action configure) + { + NextStepValue = null; + NextStepDescriptorAction = null; + NextStepDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CurrentStepDescriptor is not null) + { + writer.WritePropertyName("current_step"); + JsonSerializer.Serialize(writer, CurrentStepDescriptor, options); + } + else if (CurrentStepDescriptorAction is not null) + { + writer.WritePropertyName("current_step"); + JsonSerializer.Serialize(writer, new Ilm.MoveToStep.StepKeyDescriptor(CurrentStepDescriptorAction), options); + } + else if (CurrentStepValue is not null) + { + writer.WritePropertyName("current_step"); + JsonSerializer.Serialize(writer, CurrentStepValue, options); + } + + if (NextStepDescriptor is not null) + { + writer.WritePropertyName("next_step"); + JsonSerializer.Serialize(writer, NextStepDescriptor, options); + } + else if (NextStepDescriptorAction is not null) + { + writer.WritePropertyName("next_step"); + JsonSerializer.Serialize(writer, new Ilm.MoveToStep.StepKeyDescriptor(NextStepDescriptorAction), options); + } + else if (NextStepValue is not null) + { + writer.WritePropertyName("next_step"); + JsonSerializer.Serialize(writer, NextStepValue, options); + } + + writer.WriteEndObject(); + } + } + + public sealed partial class IlmMoveToStepRequestDescriptor : RequestDescriptorBase + { + internal IlmMoveToStepRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmMoveToStepRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal IlmMoveToStepRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMoveToStep; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => true; + public IlmMoveToStepRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + private Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? CurrentStepValue { get; set; } + + private Ilm.MoveToStep.StepKeyDescriptor CurrentStepDescriptor { get; set; } + + private Action CurrentStepDescriptorAction { get; set; } + + private Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? NextStepValue { get; set; } + + private Ilm.MoveToStep.StepKeyDescriptor NextStepDescriptor { get; set; } + + private Action NextStepDescriptorAction { get; set; } + + public IlmMoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? currentStep) + { + CurrentStepDescriptor = null; + CurrentStepDescriptorAction = null; + CurrentStepValue = currentStep; + return Self; + } + + public IlmMoveToStepRequestDescriptor CurrentStep(Ilm.MoveToStep.StepKeyDescriptor descriptor) + { + CurrentStepValue = null; + CurrentStepDescriptorAction = null; + CurrentStepDescriptor = descriptor; + return Self; + } + + public IlmMoveToStepRequestDescriptor CurrentStep(Action configure) + { + CurrentStepValue = null; + CurrentStepDescriptorAction = null; + CurrentStepDescriptorAction = configure; + return Self; + } + + public IlmMoveToStepRequestDescriptor NextStep(Elastic.Clients.Elasticsearch.Ilm.MoveToStep.StepKey? nextStep) + { + NextStepDescriptor = null; + NextStepDescriptorAction = null; + NextStepValue = nextStep; + return Self; + } + + public IlmMoveToStepRequestDescriptor NextStep(Ilm.MoveToStep.StepKeyDescriptor descriptor) + { + NextStepValue = null; + NextStepDescriptorAction = null; + NextStepDescriptor = descriptor; + return Self; + } + + public IlmMoveToStepRequestDescriptor NextStep(Action configure) + { + NextStepValue = null; + NextStepDescriptorAction = null; + NextStepDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CurrentStepDescriptor is not null) + { + writer.WritePropertyName("current_step"); + JsonSerializer.Serialize(writer, CurrentStepDescriptor, options); + } + else if (CurrentStepDescriptorAction is not null) + { + writer.WritePropertyName("current_step"); + JsonSerializer.Serialize(writer, new Ilm.MoveToStep.StepKeyDescriptor(CurrentStepDescriptorAction), options); + } + else if (CurrentStepValue is not null) + { + writer.WritePropertyName("current_step"); + JsonSerializer.Serialize(writer, CurrentStepValue, options); + } + + if (NextStepDescriptor is not null) + { + writer.WritePropertyName("next_step"); + JsonSerializer.Serialize(writer, NextStepDescriptor, options); + } + else if (NextStepDescriptorAction is not null) + { + writer.WritePropertyName("next_step"); + JsonSerializer.Serialize(writer, new Ilm.MoveToStep.StepKeyDescriptor(NextStepDescriptorAction), options); + } + else if (NextStepValue is not null) + { + writer.WritePropertyName("next_step"); + JsonSerializer.Serialize(writer, NextStepValue, options); + } + + writer.WriteEndObject(); + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepResponse.g.cs new file mode 100644 index 00000000000..a8040ec5ec9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepResponse.g.cs @@ -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.Ilm +{ + public partial class IlmMoveToStepResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleRequest.g.cs new file mode 100644 index 00000000000..038f0728b85 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleRequest.g.cs @@ -0,0 +1,79 @@ +// 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.Ilm +{ + public class IlmPutLifecycleRequestParameters : RequestParameters + { + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public partial class IlmPutLifecycleRequest : PlainRequestBase + { + public IlmPutLifecycleRequest(Elastic.Clients.Elasticsearch.Name policy) : base(r => r.Required("policy", policy)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementPutLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.PUT; + protected override bool SupportsBody => false; + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public sealed partial class IlmPutLifecycleRequestDescriptor : RequestDescriptorBase + { + internal IlmPutLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmPutLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name policy) : base(r => r.Required("policy", policy)) + { + } + + internal IlmPutLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementPutLifecycle; + protected override HttpMethod HttpMethod => HttpMethod.PUT; + protected override bool SupportsBody => false; + public IlmPutLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); + public IlmPutLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); + public IlmPutLifecycleRequestDescriptor Policy(Elastic.Clients.Elasticsearch.Name policy) + { + RouteValues.Required("policy", policy); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleResponse.g.cs new file mode 100644 index 00000000000..77e2f24f441 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleResponse.g.cs @@ -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.Ilm +{ + public partial class IlmPutLifecycleResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyRequest.g.cs new file mode 100644 index 00000000000..329e50c63bf --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyRequest.g.cs @@ -0,0 +1,96 @@ +// 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.Ilm +{ + public class IlmRemovePolicyRequestParameters : RequestParameters + { + } + + public partial class IlmRemovePolicyRequest : PlainRequestBase + { + public IlmRemovePolicyRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRemovePolicy; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + } + + public sealed partial class IlmRemovePolicyRequestDescriptor : RequestDescriptorBase, IlmRemovePolicyRequestParameters> + { + internal IlmRemovePolicyRequestDescriptor(Action> configure) => configure.Invoke(this); + public IlmRemovePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + public IlmRemovePolicyRequestDescriptor(TDocument document) : this(typeof(TDocument)) + { + } + + internal IlmRemovePolicyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRemovePolicy; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + public IlmRemovePolicyRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } + + public sealed partial class IlmRemovePolicyRequestDescriptor : RequestDescriptorBase + { + internal IlmRemovePolicyRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmRemovePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal IlmRemovePolicyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRemovePolicy; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + public IlmRemovePolicyRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyResponse.g.cs new file mode 100644 index 00000000000..1361fd85bbe --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyResponse.g.cs @@ -0,0 +1,35 @@ +// 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.Ilm +{ + public partial class IlmRemovePolicyResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("failed_indexes")] + public IReadOnlyCollection FailedIndexes { get; init; } + + [JsonInclude] + [JsonPropertyName("has_failures")] + public bool HasFailures { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryRequest.g.cs new file mode 100644 index 00000000000..09ebe0f1800 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryRequest.g.cs @@ -0,0 +1,96 @@ +// 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.Ilm +{ + public class IlmRetryRequestParameters : RequestParameters + { + } + + public partial class IlmRetryRequest : PlainRequestBase + { + public IlmRetryRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRetry; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + } + + public sealed partial class IlmRetryRequestDescriptor : RequestDescriptorBase, IlmRetryRequestParameters> + { + internal IlmRetryRequestDescriptor(Action> configure) => configure.Invoke(this); + public IlmRetryRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + public IlmRetryRequestDescriptor(TDocument document) : this(typeof(TDocument)) + { + } + + internal IlmRetryRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRetry; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + public IlmRetryRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } + + public sealed partial class IlmRetryRequestDescriptor : RequestDescriptorBase + { + internal IlmRetryRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmRetryRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal IlmRetryRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRetry; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + public IlmRetryRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryResponse.g.cs new file mode 100644 index 00000000000..799c0a3587e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryResponse.g.cs @@ -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.Ilm +{ + public partial class IlmRetryResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartRequest.g.cs new file mode 100644 index 00000000000..1635da1fe40 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartRequest.g.cs @@ -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.Ilm +{ + public class IlmStartRequestParameters : RequestParameters + { + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public partial class IlmStartRequest : PlainRequestBase + { + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementStart; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public sealed partial class IlmStartRequestDescriptor : RequestDescriptorBase + { + internal IlmStartRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmStartRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementStart; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + public IlmStartRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); + public IlmStartRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartResponse.g.cs new file mode 100644 index 00000000000..91beffa8732 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartResponse.g.cs @@ -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.Ilm +{ + public partial class IlmStartResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopRequest.g.cs new file mode 100644 index 00000000000..18d5f5732c9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopRequest.g.cs @@ -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.Ilm +{ + public class IlmStopRequestParameters : RequestParameters + { + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public partial class IlmStopRequest : PlainRequestBase + { + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementStop; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } + } + + public sealed partial class IlmStopRequestDescriptor : RequestDescriptorBase + { + internal IlmStopRequestDescriptor(Action configure) => configure.Invoke(this); + public IlmStopRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementStop; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => false; + public IlmStopRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); + public IlmStopRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopResponse.g.cs new file mode 100644 index 00000000000..0055d3f00d3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopResponse.g.cs @@ -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.Ilm +{ + public partial class IlmStopResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs new file mode 100644 index 00000000000..013b8eb60d4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs @@ -0,0 +1,339 @@ +// 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.Ilm +{ + public class IlmNamespace : NamespacedClientProxy + { + internal IlmNamespace(ElasticsearchClient client) : base(client) + { + } + + public IlmDeleteLifecycleResponse DeleteLifecycle(IlmDeleteLifecycleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task DeleteLifecycleAsync(IlmDeleteLifecycleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmDeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policy, Action configureRequest = null) + { + var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy, Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmExplainLifecycleResponse ExplainLifecycle(IlmExplainLifecycleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task ExplainLifecycleAsync(IlmExplainLifecycleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmExplainLifecycleResponse ExplainLifecycle(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null) + { + var descriptor = new IlmExplainLifecycleRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task ExplainLifecycleAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmExplainLifecycleRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmGetLifecycleResponse GetLifecycle(IlmGetLifecycleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task GetLifecycleAsync(IlmGetLifecycleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmGetLifecycleResponse GetLifecycle(Action configureRequest = null) + { + var descriptor = new IlmGetLifecycleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task GetLifecycleAsync(Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmGetLifecycleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmGetStatusResponse GetStatus(IlmGetStatusRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task GetStatusAsync(IlmGetStatusRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmGetStatusResponse GetStatus(Action configureRequest = null) + { + var descriptor = new IlmGetStatusRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task GetStatusAsync(Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmGetStatusRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmMigrateToDataTiersResponse MigrateToDataTiers(IlmMigrateToDataTiersRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task MigrateToDataTiersAsync(IlmMigrateToDataTiersRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmMigrateToDataTiersResponse MigrateToDataTiers(Action configureRequest = null) + { + var descriptor = new IlmMigrateToDataTiersRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task MigrateToDataTiersAsync(Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmMigrateToDataTiersRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmMoveToStepResponse MoveToStep(IlmMoveToStepRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task MoveToStepAsync(IlmMoveToStepRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmMoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null) + { + var descriptor = new IlmMoveToStepRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmMoveToStepRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmPutLifecycleResponse PutLifecycle(IlmPutLifecycleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task PutLifecycleAsync(IlmPutLifecycleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmPutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policy, Action configureRequest = null) + { + var descriptor = new IlmPutLifecycleRequestDescriptor(policy); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy, Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmPutLifecycleRequestDescriptor(policy); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmRemovePolicyResponse RemovePolicy(IlmRemovePolicyRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task RemovePolicyAsync(IlmRemovePolicyRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmRemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null) + { + var descriptor = new IlmRemovePolicyRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmRemovePolicyRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmRetryResponse Retry(IlmRetryRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task RetryAsync(IlmRetryRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmRetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null) + { + var descriptor = new IlmRetryRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmRetryRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmStartResponse Start(IlmStartRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task StartAsync(IlmStartRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmStartResponse Start(Action configureRequest = null) + { + var descriptor = new IlmStartRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task StartAsync(Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmStartRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public IlmStopResponse Stop(IlmStopRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task StopAsync(IlmStopRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public IlmStopResponse Stop(Action configureRequest = null) + { + var descriptor = new IlmStopRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task StopAsync(Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new IlmStopRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index 7aef43912ce..fbdd6833af0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -20,6 +20,7 @@ using Elastic.Clients.Elasticsearch.Enrich; using Elastic.Clients.Elasticsearch.Eql; using Elastic.Clients.Elasticsearch.Graph; +using Elastic.Clients.Elasticsearch.Ilm; using Elastic.Clients.Elasticsearch.IndexManagement; using Elastic.Clients.Elasticsearch.Sql; using Elastic.Clients.Elasticsearch.Tasks; @@ -42,6 +43,8 @@ public partial class ElasticsearchClient public GraphNamespace Graph { get; private set; } + public IlmNamespace Ilm { get; private set; } + public IndexManagementNamespace IndexManagement { get; private set; } public SqlNamespace Sql { get; private set; } @@ -55,6 +58,7 @@ private partial void SetupNamespaces() Enrich = new EnrichNamespace(this); Eql = new EqlNamespace(this); Graph = new GraphNamespace(this); + Ilm = new IlmNamespace(this); IndexManagement = new IndexManagementNamespace(this); Sql = new SqlNamespace(this); Tasks = new TasksNamespace(this); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs index 1c93d4faf20..c3eac25e56c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs @@ -787,6 +787,55 @@ public override void Write(Utf8JsonWriter writer, Level value, JsonSerializerOpt } } + [JsonConverter(typeof(LifecycleOperationModeConverter))] + public enum LifecycleOperationMode + { + [EnumMember(Value = "STOPPING")] + Stopping, + [EnumMember(Value = "STOPPED")] + Stopped, + [EnumMember(Value = "RUNNING")] + Running + } + + internal sealed class LifecycleOperationModeConverter : JsonConverter + { + public override LifecycleOperationMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "STOPPING": + return LifecycleOperationMode.Stopping; + case "STOPPED": + return LifecycleOperationMode.Stopped; + case "RUNNING": + return LifecycleOperationMode.Running; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, LifecycleOperationMode value, JsonSerializerOptions options) + { + switch (value) + { + case LifecycleOperationMode.Stopping: + writer.WriteStringValue("STOPPING"); + return; + case LifecycleOperationMode.Stopped: + writer.WriteStringValue("STOPPED"); + return; + case LifecycleOperationMode.Running: + writer.WriteStringValue("RUNNING"); + return; + } + + writer.WriteNullValue(); + } + } + [JsonConverter(typeof(NormalizationConverter))] public enum Normalization { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainManaged.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainManaged.g.cs new file mode 100644 index 00000000000..5618a3412a3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainManaged.g.cs @@ -0,0 +1,100 @@ +// 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.Ilm.ExplainLifecycle +{ + public partial class LifecycleExplainManaged : ILifecycleExplainsVariant + { + [JsonInclude] + [JsonPropertyName("action")] + public string Action { get; init; } + + [JsonInclude] + [JsonPropertyName("action_time_millis")] + public Elastic.Clients.Elasticsearch.EpochMillis ActionTimeMillis { get; init; } + + [JsonInclude] + [JsonPropertyName("age")] + public Elastic.Clients.Elasticsearch.Time Age { get; init; } + + [JsonInclude] + [JsonPropertyName("failed_step")] + public string? FailedStep { get; init; } + + [JsonInclude] + [JsonPropertyName("failed_step_retry_count")] + public int? FailedStepRetryCount { get; init; } + + [JsonInclude] + [JsonPropertyName("index")] + public string Index { get; init; } + + [JsonInclude] + [JsonPropertyName("index_creation_date_millis")] + public Elastic.Clients.Elasticsearch.EpochMillis? IndexCreationDateMillis { get; init; } + + [JsonInclude] + [JsonPropertyName("is_auto_retryable_error")] + public bool? IsAutoRetryableError { get; init; } + + [JsonInclude] + [JsonPropertyName("lifecycle_date_millis")] + public Elastic.Clients.Elasticsearch.EpochMillis LifecycleDateMillis { get; init; } + + [JsonInclude] + [JsonPropertyName("managed")] + public bool Managed => true; + [JsonInclude] + [JsonPropertyName("phase")] + public string Phase { get; init; } + + [JsonInclude] + [JsonPropertyName("phase_execution")] + public Elastic.Clients.Elasticsearch.Ilm.ExplainLifecycle.LifecycleExplainPhaseExecution PhaseExecution { get; init; } + + [JsonInclude] + [JsonPropertyName("phase_time_millis")] + public Elastic.Clients.Elasticsearch.EpochMillis PhaseTimeMillis { get; init; } + + [JsonInclude] + [JsonPropertyName("policy")] + public string Policy { get; init; } + + [JsonInclude] + [JsonPropertyName("step")] + public string Step { get; init; } + + [JsonInclude] + [JsonPropertyName("step_info")] + public Dictionary? StepInfo { get; init; } + + [JsonInclude] + [JsonPropertyName("step_time_millis")] + public Elastic.Clients.Elasticsearch.EpochMillis StepTimeMillis { get; init; } + + [JsonInclude] + [JsonPropertyName("time_since_index_creation")] + public Elastic.Clients.Elasticsearch.Time? TimeSinceIndexCreation { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainPhaseExecution.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainPhaseExecution.g.cs new file mode 100644 index 00000000000..d387f3b6e3a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainPhaseExecution.g.cs @@ -0,0 +1,41 @@ +// 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.Ilm.ExplainLifecycle +{ + public partial class LifecycleExplainPhaseExecution + { + [JsonInclude] + [JsonPropertyName("modified_date_in_millis")] + public Elastic.Clients.Elasticsearch.EpochMillis ModifiedDateInMillis { get; init; } + + [JsonInclude] + [JsonPropertyName("policy")] + public string Policy { get; init; } + + [JsonInclude] + [JsonPropertyName("version")] + public long Version { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainUnmanaged.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainUnmanaged.g.cs new file mode 100644 index 00000000000..091f9e87a35 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainUnmanaged.g.cs @@ -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.Ilm.ExplainLifecycle +{ + public partial class LifecycleExplainUnmanaged : ILifecycleExplainsVariant + { + [JsonInclude] + [JsonPropertyName("index")] + public string Index { get; init; } + + [JsonInclude] + [JsonPropertyName("managed")] + public bool Managed => false; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplains.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplains.g.cs new file mode 100644 index 00000000000..835da91e7c6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplains.g.cs @@ -0,0 +1,36 @@ +// 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; + +#nullable restore +namespace Elastic.Clients.Elasticsearch.Ilm.ExplainLifecycle +{ + public interface ILifecycleExplainsVariant + { + } + + public interface ILifecycleExplains : IIsADictionary + { + } + + public class LifecycleExplains : IsADictionaryBase + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/StepKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/StepKey.g.cs new file mode 100644 index 00000000000..11f706f650f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/StepKey.g.cs @@ -0,0 +1,85 @@ +// 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.Ilm.MoveToStep +{ + public partial class StepKey + { + [JsonInclude] + [JsonPropertyName("action")] + public string Action { get; set; } + + [JsonInclude] + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonInclude] + [JsonPropertyName("phase")] + public string Phase { get; set; } + } + + public sealed partial class StepKeyDescriptor : DescriptorBase + { + internal StepKeyDescriptor(Action configure) => configure.Invoke(this); + public StepKeyDescriptor() : base() + { + } + + private string ActionValue { get; set; } + + private string NameValue { get; set; } + + private string PhaseValue { get; set; } + + public StepKeyDescriptor Action(string action) + { + ActionValue = action; + return Self; + } + + public StepKeyDescriptor Name(string name) + { + NameValue = name; + return Self; + } + + public StepKeyDescriptor Phase(string phase) + { + PhaseValue = phase; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("action"); + writer.WriteStringValue(ActionValue); + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + writer.WritePropertyName("phase"); + writer.WriteStringValue(PhaseValue); + writer.WriteEndObject(); + } + } +} \ No newline at end of file