diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs index 802b49bdf8a..79b21896242 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs @@ -117,7 +117,6 @@ internal static class ApiUrlsLookups internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "/_index_template", "/_index_template/{name}" }); internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "/_mapping", "/{index}/_mapping" }); internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "/_data_stream/_migrate/{name}" }); - internal static ApiUrls IndexManagementModifyDataStream = new ApiUrls(new[] { "/_data_stream/_modify" }); internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "/{index}/_open" }); internal static ApiUrls IndexManagementPromoteDataStream = new ApiUrls(new[] { "/_data_stream/_promote/{name}" }); internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "/{index}/_alias/{name}" }); @@ -139,7 +138,6 @@ internal static class ApiUrlsLookups internal static ApiUrls IndexManagementSplit = new ApiUrls(new[] { "/{index}/_split/{target}" }); internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "/_stats", "/_stats/{metric}", "/{index}/_stats", "/{index}/_stats/{metric}" }); internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "/_template", "/_template/{name}" }); - internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "/_aliases" }); internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "/_validate/query", "/{index}/_validate/query" }); internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "/{index}/_doc/{id}", "/{index}/_doc" }); internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "/" }); @@ -157,6 +155,9 @@ internal static class ApiUrlsLookups internal static ApiUrls LicensePost = new ApiUrls(new[] { "/_license" }); internal static ApiUrls LicensePostStartBasic = new ApiUrls(new[] { "/_license/start_basic" }); internal static ApiUrls LicensePostStartTrial = new ApiUrls(new[] { "/_license/start_trial" }); + internal static ApiUrls LogstashDeletePipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" }); + internal static ApiUrls LogstashPutPipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" }); + internal static ApiUrls MigrationDeprecations = new ApiUrls(new[] { "/_migration/deprecations", "/{index}/_migration/deprecations" }); internal static ApiUrls NodesHotThreads = new ApiUrls(new[] { "/_nodes/hot_threads", "/_nodes/{node_id}/hot_threads" }); internal static ApiUrls NodesInfo = new ApiUrls(new[] { "/_nodes", "/_nodes/{node_id}", "/_nodes/{metric}", "/_nodes/{node_id}/{metric}" }); internal static ApiUrls NodesReloadSecureSettings = new ApiUrls(new[] { "/_nodes/reload_secure_settings", "/_nodes/{node_id}/reload_secure_settings" }); @@ -202,6 +203,7 @@ internal static class ApiUrlsLookups internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "/_sql/async/{id}" }); internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "/_sql/async/status/{id}" }); internal static ApiUrls SqlQuery = new ApiUrls(new[] { "/_sql" }); + internal static ApiUrls SecurityCertificates = new ApiUrls(new[] { "/_ssl/certificates" }); internal static ApiUrls TasksGet = new ApiUrls(new[] { "/_tasks/{task_id}" }); internal static ApiUrls TasksCancel = new ApiUrls(new[] { "/_tasks/_cancel", "/_tasks/{task_id}/_cancel" }); internal static ApiUrls TasksList = new ApiUrls(new[] { "/_tasks" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs deleted file mode 100644 index e1ab962be6c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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.IndexManagement -{ - public class ModifyDataStreamRequestParameters : RequestParameters - { - } - - public partial class ModifyDataStreamRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementModifyDataStream; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("actions")] - public IEnumerable Actions { get; set; } - } - - public sealed partial class ModifyDataStreamRequestDescriptor : RequestDescriptorBase - { - internal ModifyDataStreamRequestDescriptor(Action configure) => configure.Invoke(this); - public ModifyDataStreamRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementModifyDataStream; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private IEnumerable ActionsValue { get; set; } - - public ModifyDataStreamRequestDescriptor Actions(IEnumerable actions) - { - ActionsValue = actions; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs deleted file mode 100644 index baaa825d1ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// 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.IndexManagement -{ - public class UpdateAliasesRequestParameters : 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 UpdateAliasesRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementUpdateAliases; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [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); } - - [JsonInclude] - [JsonPropertyName("actions")] - public IEnumerable? Actions { get; set; } - } - - public sealed partial class UpdateAliasesRequestDescriptor : RequestDescriptorBase - { - internal UpdateAliasesRequestDescriptor(Action configure) => configure.Invoke(this); - public UpdateAliasesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementUpdateAliases; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public UpdateAliasesRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); - public UpdateAliasesRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); - private IEnumerable? ActionsValue { get; set; } - - public UpdateAliasesRequestDescriptor Actions(IEnumerable? actions) - { - ActionsValue = actions; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsValue is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineRequest.g.cs new file mode 100644 index 00000000000..5139c06d431 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineRequest.g.cs @@ -0,0 +1,92 @@ +// 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.Logstash +{ + public class LogstashDeletePipelineRequestParameters : RequestParameters + { + } + + public partial class LogstashDeletePipelineRequest : PlainRequestBase + { + public LogstashDeletePipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline; + protected override HttpMethod HttpMethod => HttpMethod.DELETE; + protected override bool SupportsBody => false; + } + + public sealed partial class LogstashDeletePipelineRequestDescriptor : RequestDescriptorBase, LogstashDeletePipelineRequestParameters> + { + internal LogstashDeletePipelineRequestDescriptor(Action> configure) => configure.Invoke(this); + public LogstashDeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal LogstashDeletePipelineRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline; + protected override HttpMethod HttpMethod => HttpMethod.DELETE; + protected override bool SupportsBody => false; + public LogstashDeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } + + public sealed partial class LogstashDeletePipelineRequestDescriptor : RequestDescriptorBase + { + internal LogstashDeletePipelineRequestDescriptor(Action configure) => configure.Invoke(this); + public LogstashDeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal LogstashDeletePipelineRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline; + protected override HttpMethod HttpMethod => HttpMethod.DELETE; + protected override bool SupportsBody => false; + public LogstashDeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + 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/IndexManagement/UpdateAliasesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineResponse.g.cs similarity index 85% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineResponse.g.cs index c966c1cf9c2..73aac5e77f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineResponse.g.cs @@ -20,12 +20,9 @@ using System.Text.Json.Serialization; #nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement +namespace Elastic.Clients.Elasticsearch.Logstash { - public partial class UpdateAliasesResponse : ElasticsearchResponseBase + public partial class LogstashDeletePipelineResponse : ElasticsearchResponseBase { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineRequest.g.cs new file mode 100644 index 00000000000..75e0d18ecfc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineRequest.g.cs @@ -0,0 +1,92 @@ +// 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.Logstash +{ + public class LogstashPutPipelineRequestParameters : RequestParameters + { + } + + public partial class LogstashPutPipelineRequest : PlainRequestBase + { + public LogstashPutPipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline; + protected override HttpMethod HttpMethod => HttpMethod.PUT; + protected override bool SupportsBody => false; + } + + public sealed partial class LogstashPutPipelineRequestDescriptor : RequestDescriptorBase, LogstashPutPipelineRequestParameters> + { + internal LogstashPutPipelineRequestDescriptor(Action> configure) => configure.Invoke(this); + public LogstashPutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal LogstashPutPipelineRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline; + protected override HttpMethod HttpMethod => HttpMethod.PUT; + protected override bool SupportsBody => false; + public LogstashPutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } + + public sealed partial class LogstashPutPipelineRequestDescriptor : RequestDescriptorBase + { + internal LogstashPutPipelineRequestDescriptor(Action configure) => configure.Invoke(this); + public LogstashPutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal LogstashPutPipelineRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline; + protected override HttpMethod HttpMethod => HttpMethod.PUT; + protected override bool SupportsBody => false; + public LogstashPutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + 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/IndexManagement/ModifyDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineResponse.g.cs similarity index 85% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineResponse.g.cs index d584e999e77..b18ee9167b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineResponse.g.cs @@ -20,12 +20,9 @@ using System.Text.Json.Serialization; #nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement +namespace Elastic.Clients.Elasticsearch.Logstash { - public partial class ModifyDataStreamResponse : ElasticsearchResponseBase + public partial class LogstashPutPipelineResponse : ElasticsearchResponseBase { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Migration/MigrationDeprecationsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Migration/MigrationDeprecationsRequest.g.cs new file mode 100644 index 00000000000..35a802d6c10 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Migration/MigrationDeprecationsRequest.g.cs @@ -0,0 +1,88 @@ +// 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.Migration +{ + public class MigrationDeprecationsRequestParameters : RequestParameters + { + } + + public partial class MigrationDeprecationsRequest : PlainRequestBase + { + public MigrationDeprecationsRequest() + { + } + + public MigrationDeprecationsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.MigrationDeprecations; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + } + + public sealed partial class MigrationDeprecationsRequestDescriptor : RequestDescriptorBase, MigrationDeprecationsRequestParameters> + { + internal MigrationDeprecationsRequestDescriptor(Action> configure) => configure.Invoke(this); + public MigrationDeprecationsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.MigrationDeprecations; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + public MigrationDeprecationsRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + RouteValues.Optional("index", index); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + } + + public sealed partial class MigrationDeprecationsRequestDescriptor : RequestDescriptorBase + { + internal MigrationDeprecationsRequestDescriptor(Action configure) => configure.Invoke(this); + public MigrationDeprecationsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.MigrationDeprecations; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + public MigrationDeprecationsRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + RouteValues.Optional("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/Migration/MigrationDeprecationsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Migration/MigrationDeprecationsResponse.g.cs new file mode 100644 index 00000000000..b708ec06b85 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Migration/MigrationDeprecationsResponse.g.cs @@ -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.Migration +{ + public partial class MigrationDeprecationsResponse : ElasticsearchResponseBase + { + [JsonInclude] + [JsonPropertyName("cluster_settings")] + public IReadOnlyCollection ClusterSettings { get; init; } + + [JsonInclude] + [JsonPropertyName("index_settings")] + public Dictionary> IndexSettings { get; init; } + + [JsonInclude] + [JsonPropertyName("ml_settings")] + public IReadOnlyCollection MlSettings { get; init; } + + [JsonInclude] + [JsonPropertyName("node_settings")] + public IReadOnlyCollection NodeSettings { get; init; } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesRequest.g.cs new file mode 100644 index 00000000000..12794a3f7a6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesRequest.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.Ssl +{ + public class SslCertificatesRequestParameters : RequestParameters + { + } + + public partial class SslCertificatesRequest : PlainRequestBase + { + internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityCertificates; + protected override HttpMethod HttpMethod => HttpMethod.GET; + protected override bool SupportsBody => false; + } + + public sealed partial class SslCertificatesRequestDescriptor : RequestDescriptorBase + { + internal SslCertificatesRequestDescriptor(Action configure) => configure.Invoke(this); + public SslCertificatesRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityCertificates; + 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/Ssl/SslCertificatesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesResponse.g.cs new file mode 100644 index 00000000000..39bccc96a1a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesResponse.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.Ssl +{ + public partial class SslCertificatesResponse : ElasticsearchResponseBase + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index be5ab3e5ae5..e38294a104d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -784,34 +784,6 @@ public Task MigrateToDataStreamAsync(Elastic.Client return DoRequestAsync(descriptor); } - public ModifyDataStreamResponse ModifyDataStream(ModifyDataStreamRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ModifyDataStreamAsync(ModifyDataStreamRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ModifyDataStreamResponse ModifyDataStream(Action configureRequest = null) - { - var descriptor = new ModifyDataStreamRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ModifyDataStreamAsync(Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new ModifyDataStreamRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public OpenResponse Open(OpenRequest request) { request.BeforeRequest(); @@ -1400,34 +1372,6 @@ public Task GetTemplateAsync(Action return DoRequestAsync(descriptor); } - public UpdateAliasesResponse UpdateAliases(UpdateAliasesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UpdateAliasesAsync(UpdateAliasesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public UpdateAliasesResponse UpdateAliases(Action configureRequest = null) - { - var descriptor = new UpdateAliasesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task UpdateAliasesAsync(Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateAliasesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public ValidateQueryResponse ValidateQuery(ValidateQueryRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Logstash.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Logstash.g.cs new file mode 100644 index 00000000000..8a6c8e0cf07 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Logstash.g.cs @@ -0,0 +1,87 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +using System; +using System.Threading; +using System.Threading.Tasks; + +#nullable restore +namespace Elastic.Clients.Elasticsearch.Logstash +{ + public class LogstashNamespace : NamespacedClientProxy + { + internal LogstashNamespace(ElasticsearchClient client) : base(client) + { + } + + public LogstashDeletePipelineResponse DeletePipeline(LogstashDeletePipelineRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task DeletePipelineAsync(LogstashDeletePipelineRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public LogstashDeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest = null) + { + var descriptor = new LogstashDeletePipelineRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new LogstashDeletePipelineRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + public LogstashPutPipelineResponse PutPipeline(LogstashPutPipelineRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task PutPipelineAsync(LogstashPutPipelineRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public LogstashPutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest = null) + { + var descriptor = new LogstashPutPipelineRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new LogstashPutPipelineRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Migration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Migration.g.cs new file mode 100644 index 00000000000..f4403806b89 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Migration.g.cs @@ -0,0 +1,59 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +using System; +using System.Threading; +using System.Threading.Tasks; + +#nullable restore +namespace Elastic.Clients.Elasticsearch.Migration +{ + public class MigrationNamespace : NamespacedClientProxy + { + internal MigrationNamespace(ElasticsearchClient client) : base(client) + { + } + + public MigrationDeprecationsResponse Deprecations(MigrationDeprecationsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task DeprecationsAsync(MigrationDeprecationsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public MigrationDeprecationsResponse Deprecations(Action configureRequest = null) + { + var descriptor = new MigrationDeprecationsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task DeprecationsAsync(Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new MigrationDeprecationsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ssl.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ssl.g.cs new file mode 100644 index 00000000000..ad32a5b3a35 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ssl.g.cs @@ -0,0 +1,59 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +using System; +using System.Threading; +using System.Threading.Tasks; + +#nullable restore +namespace Elastic.Clients.Elasticsearch.Ssl +{ + public class SslNamespace : NamespacedClientProxy + { + internal SslNamespace(ElasticsearchClient client) : base(client) + { + } + + public SslCertificatesResponse Certificates(SslCertificatesRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public Task CertificatesAsync(SslCertificatesRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public SslCertificatesResponse Certificates(Action configureRequest = null) + { + var descriptor = new SslCertificatesRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + public Task CertificatesAsync(Action configureRequest = null, CancellationToken cancellationToken = default) + { + var descriptor = new SslCertificatesRequestDescriptor(); + 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 8cb4c3b99a0..c66c684ee75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -28,11 +28,14 @@ using Elastic.Clients.Elasticsearch.IndexManagement; using Elastic.Clients.Elasticsearch.Ingest; using Elastic.Clients.Elasticsearch.License; +using Elastic.Clients.Elasticsearch.Logstash; +using Elastic.Clients.Elasticsearch.Migration; using Elastic.Clients.Elasticsearch.Nodes; using Elastic.Clients.Elasticsearch.SearchableSnapshots; using Elastic.Clients.Elasticsearch.Slm; using Elastic.Clients.Elasticsearch.Snapshot; using Elastic.Clients.Elasticsearch.Sql; +using Elastic.Clients.Elasticsearch.Ssl; using Elastic.Clients.Elasticsearch.Tasks; using Elastic.Clients.Elasticsearch.Xpack; using System; @@ -70,6 +73,10 @@ public partial class ElasticsearchClient public LicenseNamespace License { get; private set; } + public LogstashNamespace Logstash { get; private set; } + + public MigrationNamespace Migration { get; private set; } + public NodesNamespace Nodes { get; private set; } public SearchableSnapshotsNamespace SearchableSnapshots { get; private set; } @@ -80,6 +87,8 @@ public partial class ElasticsearchClient public SqlNamespace Sql { get; private set; } + public SslNamespace Ssl { get; private set; } + public TasksNamespace Tasks { get; private set; } public XpackNamespace Xpack { get; private set; } @@ -99,11 +108,14 @@ private partial void SetupNamespaces() Indices = new IndicesNamespace(this); Ingest = new IngestNamespace(this); License = new LicenseNamespace(this); + Logstash = new LogstashNamespace(this); + Migration = new MigrationNamespace(this); Nodes = new NodesNamespace(this); SearchableSnapshots = new SearchableSnapshotsNamespace(this); Slm = new SlmNamespace(this); Snapshot = new SnapshotNamespace(this); Sql = new SqlNamespace(this); + Ssl = new SslNamespace(this); Tasks = new TasksNamespace(this); Xpack = new XpackNamespace(this); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Migration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Migration.g.cs new file mode 100644 index 00000000000..51e47daae14 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Migration.g.cs @@ -0,0 +1,82 @@ +// 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.Text.Json; +using System.Text.Json.Serialization; +using System.Runtime.Serialization; +using Elastic.Transport; + +#nullable restore +namespace Elastic.Clients.Elasticsearch.Migration +{ + [JsonConverter(typeof(DeprecationLevelConverter))] + public enum DeprecationLevel + { + [EnumMember(Value = "warning")] + Warning, + [EnumMember(Value = "none")] + None, + [EnumMember(Value = "info")] + Info, + [EnumMember(Value = "critical")] + Critical + } + + internal sealed class DeprecationLevelConverter : JsonConverter + { + public override DeprecationLevel Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "warning": + return DeprecationLevel.Warning; + case "none": + return DeprecationLevel.None; + case "info": + return DeprecationLevel.Info; + case "critical": + return DeprecationLevel.Critical; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DeprecationLevel value, JsonSerializerOptions options) + { + switch (value) + { + case DeprecationLevel.Warning: + writer.WriteStringValue("warning"); + return; + case DeprecationLevel.None: + writer.WriteStringValue("none"); + return; + case DeprecationLevel.Info: + writer.WriteStringValue("info"); + return; + case DeprecationLevel.Critical: + writer.WriteStringValue("critical"); + return; + } + + writer.WriteNullValue(); + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Action.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Action.g.cs deleted file mode 100644 index 09899b2c857..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Action.g.cs +++ /dev/null @@ -1,227 +0,0 @@ -// 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.IndexManagement -{ - public interface IActionVariant - { - string ActionVariantName { get; } - } - - [JsonConverter(typeof(ActionConverter))] - public partial class Action : IContainer - { - public Action(IActionVariant variant) => Variant = variant ?? throw new ArgumentNullException(nameof(variant)); - internal IActionVariant Variant { get; } - } - - internal sealed class ActionConverter : JsonConverter - { - public override Action Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var readerCopy = reader; - readerCopy.Read(); - if (readerCopy.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException(); - } - - var propertyName = readerCopy.GetString(); - if (propertyName == "add") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - return new Action(variant); - } - - if (propertyName == "remove") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - return new Action(variant); - } - - if (propertyName == "remove_index") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - return new Action(variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, Action value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.Variant.ActionVariantName); - switch (value.Variant) - { - case Elastic.Clients.Elasticsearch.IndexManagement.AddAction variant: - JsonSerializer.Serialize(writer, variant, options); - break; - case Elastic.Clients.Elasticsearch.IndexManagement.RemoveAction variant: - JsonSerializer.Serialize(writer, variant, options); - break; - case Elastic.Clients.Elasticsearch.IndexManagement.RemoveIndexAction variant: - JsonSerializer.Serialize(writer, variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class ActionDescriptor : DescriptorBase> - { - internal ActionDescriptor(Action> configure) => configure.Invoke(this); - public ActionDescriptor() : base() - { - } - - internal bool ContainsVariant { get; private set; } - - internal string ContainedVariantName { get; private set; } - - internal Action Container { get; private set; } - - internal IDescriptor Descriptor { get; private set; } - - internal Type DescriptorType { get; private set; } - - private void Set(Action descriptorAction, string variantName) - where T : IDescriptor, new() - { - if (ContainsVariant) - throw new Exception("TODO"); - ContainedVariantName = variantName; - ContainsVariant = true; - DescriptorType = typeof(T); - var descriptor = new T(); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(IActionVariant variant, string variantName) - { - if (ContainsVariant) - throw new Exception("TODO"); - Container = new Action(variant); - ContainedVariantName = variantName; - ContainsVariant = true; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - if (Container is not null) - { - JsonSerializer.Serialize(writer, Container, options); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - JsonSerializer.Serialize(writer, Descriptor, DescriptorType, options); - writer.WriteEndObject(); - } - - public void Add(AddAction variant) => Set(variant, "add"); - public void Add(Action> configure) => Set(configure, "add"); - public void Remove(RemoveAction variant) => Set(variant, "remove"); - public void Remove(Action configure) => Set(configure, "remove"); - public void RemoveIndex(RemoveIndexAction variant) => Set(variant, "remove_index"); - public void RemoveIndex(Action configure) => Set(configure, "remove_index"); - } - - public sealed partial class ActionDescriptor : DescriptorBase - { - internal ActionDescriptor(Action configure) => configure.Invoke(this); - public ActionDescriptor() : base() - { - } - - internal bool ContainsVariant { get; private set; } - - internal string ContainedVariantName { get; private set; } - - internal Action Container { get; private set; } - - internal IDescriptor Descriptor { get; private set; } - - internal Type DescriptorType { get; private set; } - - private void Set(Action descriptorAction, string variantName) - where T : IDescriptor, new() - { - if (ContainsVariant) - throw new Exception("TODO"); - ContainedVariantName = variantName; - ContainsVariant = true; - DescriptorType = typeof(T); - var descriptor = new T(); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(IActionVariant variant, string variantName) - { - if (ContainsVariant) - throw new Exception("TODO"); - Container = new Action(variant); - ContainedVariantName = variantName; - ContainsVariant = true; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - if (Container is not null) - { - JsonSerializer.Serialize(writer, Container, options); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - JsonSerializer.Serialize(writer, Descriptor, DescriptorType, options); - writer.WriteEndObject(); - } - - public void Add(AddAction variant) => Set(variant, "add"); - public void Add(Action configure) => Set(configure, "add"); - public void Add(Action> configure) => Set(configure, "add"); - public void Remove(RemoveAction variant) => Set(variant, "remove"); - public void Remove(Action configure) => Set(configure, "remove"); - public void RemoveIndex(RemoveIndexAction variant) => Set(variant, "remove_index"); - public void RemoveIndex(Action configure) => Set(configure, "remove_index"); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AddAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AddAction.g.cs deleted file mode 100644 index 9461b1e7530..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AddAction.g.cs +++ /dev/null @@ -1,475 +0,0 @@ -// 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.IndexManagement -{ - public partial class AddAction : IActionVariant - { - [JsonIgnore] - string IActionVariant.ActionVariantName => "add"; - [JsonInclude] - [JsonPropertyName("alias")] - public Elastic.Clients.Elasticsearch.IndexAlias? Alias { get; set; } - - [JsonInclude] - [JsonPropertyName("aliases")] - public IEnumerable? Aliases { get; set; } - - [JsonInclude] - [JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Filter { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } - - [JsonInclude] - [JsonPropertyName("index_routing")] - public Elastic.Clients.Elasticsearch.Routing? IndexRouting { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices? Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("is_hidden")] - public bool? IsHidden { get; set; } - - [JsonInclude] - [JsonPropertyName("is_write_index")] - public bool? IsWriteIndex { get; set; } - - [JsonInclude] - [JsonPropertyName("must_exist")] - public bool? MustExist { get; set; } - - [JsonInclude] - [JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Routing? Routing { get; set; } - - [JsonInclude] - [JsonPropertyName("search_routing")] - public Elastic.Clients.Elasticsearch.Routing? SearchRouting { get; set; } - } - - public sealed partial class AddActionDescriptor : DescriptorBase> - { - internal AddActionDescriptor(Action> configure) => configure.Invoke(this); - public AddActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? FilterValue { get; set; } - - private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } - - private Action> FilterDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexAlias? AliasValue { get; set; } - - private IEnumerable? AliasesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } - - private Elastic.Clients.Elasticsearch.Routing? IndexRoutingValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private bool? IsHiddenValue { get; set; } - - private bool? IsWriteIndexValue { get; set; } - - private bool? MustExistValue { get; set; } - - private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } - - private Elastic.Clients.Elasticsearch.Routing? SearchRoutingValue { get; set; } - - public AddActionDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public AddActionDescriptor Filter(QueryDsl.QueryContainerDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public AddActionDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorAction = configure; - return Self; - } - - public AddActionDescriptor Alias(Elastic.Clients.Elasticsearch.IndexAlias? alias) - { - AliasValue = alias; - return Self; - } - - public AddActionDescriptor Aliases(IEnumerable? aliases) - { - AliasesValue = aliases; - return Self; - } - - public AddActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - IndexValue = index; - return Self; - } - - public AddActionDescriptor IndexRouting(Elastic.Clients.Elasticsearch.Routing? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - public AddActionDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public AddActionDescriptor IsHidden(bool? isHidden = true) - { - IsHiddenValue = isHidden; - return Self; - } - - public AddActionDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - public AddActionDescriptor MustExist(bool? mustExist = true) - { - MustExistValue = mustExist; - return Self; - } - - public AddActionDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - public AddActionDescriptor SearchRouting(Elastic.Clients.Elasticsearch.Routing? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FilterDescriptor is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterDescriptor, options); - } - else if (FilterDescriptorAction is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (AliasValue is not null) - { - writer.WritePropertyName("alias"); - JsonSerializer.Serialize(writer, AliasValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndexRoutingValue is not null) - { - writer.WritePropertyName("index_routing"); - JsonSerializer.Serialize(writer, IndexRoutingValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IsHiddenValue.HasValue) - { - writer.WritePropertyName("is_hidden"); - writer.WriteBooleanValue(IsHiddenValue.Value); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (MustExistValue.HasValue) - { - writer.WritePropertyName("must_exist"); - writer.WriteBooleanValue(MustExistValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchRoutingValue is not null) - { - writer.WritePropertyName("search_routing"); - JsonSerializer.Serialize(writer, SearchRoutingValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class AddActionDescriptor : DescriptorBase - { - internal AddActionDescriptor(Action configure) => configure.Invoke(this); - public AddActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? FilterValue { get; set; } - - private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } - - private Action FilterDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexAlias? AliasValue { get; set; } - - private IEnumerable? AliasesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } - - private Elastic.Clients.Elasticsearch.Routing? IndexRoutingValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private bool? IsHiddenValue { get; set; } - - private bool? IsWriteIndexValue { get; set; } - - private bool? MustExistValue { get; set; } - - private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } - - private Elastic.Clients.Elasticsearch.Routing? SearchRoutingValue { get; set; } - - public AddActionDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public AddActionDescriptor Filter(QueryDsl.QueryContainerDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public AddActionDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorAction = configure; - return Self; - } - - public AddActionDescriptor Alias(Elastic.Clients.Elasticsearch.IndexAlias? alias) - { - AliasValue = alias; - return Self; - } - - public AddActionDescriptor Aliases(IEnumerable? aliases) - { - AliasesValue = aliases; - return Self; - } - - public AddActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - IndexValue = index; - return Self; - } - - public AddActionDescriptor IndexRouting(Elastic.Clients.Elasticsearch.Routing? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - public AddActionDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public AddActionDescriptor IsHidden(bool? isHidden = true) - { - IsHiddenValue = isHidden; - return Self; - } - - public AddActionDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - public AddActionDescriptor MustExist(bool? mustExist = true) - { - MustExistValue = mustExist; - return Self; - } - - public AddActionDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - public AddActionDescriptor SearchRouting(Elastic.Clients.Elasticsearch.Routing? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FilterDescriptor is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterDescriptor, options); - } - else if (FilterDescriptorAction is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (AliasValue is not null) - { - writer.WritePropertyName("alias"); - JsonSerializer.Serialize(writer, AliasValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndexRoutingValue is not null) - { - writer.WritePropertyName("index_routing"); - JsonSerializer.Serialize(writer, IndexRoutingValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IsHiddenValue.HasValue) - { - writer.WritePropertyName("is_hidden"); - writer.WriteBooleanValue(IsHiddenValue.Value); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (MustExistValue.HasValue) - { - writer.WritePropertyName("must_exist"); - writer.WriteBooleanValue(MustExistValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchRoutingValue is not null) - { - writer.WritePropertyName("search_routing"); - JsonSerializer.Serialize(writer, SearchRoutingValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs deleted file mode 100644 index 66642b6127c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// 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.IndexManagement -{ - public partial class IndexAndDataStreamAction : IActionVariant - { - [JsonIgnore] - string IActionVariant.ActionVariantName => "add_backing_index"; - [JsonInclude] - [JsonPropertyName("data_stream")] - public Elastic.Clients.Elasticsearch.DataStreamName DataStream { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - } - - public sealed partial class IndexAndDataStreamActionDescriptor : DescriptorBase - { - internal IndexAndDataStreamActionDescriptor(Action configure) => configure.Invoke(this); - public IndexAndDataStreamActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.DataStreamName DataStreamValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - public IndexAndDataStreamActionDescriptor DataStream(Elastic.Clients.Elasticsearch.DataStreamName dataStream) - { - DataStreamValue = dataStream; - return Self; - } - - public IndexAndDataStreamActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveAction.g.cs deleted file mode 100644 index aafc6c53399..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveAction.g.cs +++ /dev/null @@ -1,135 +0,0 @@ -// 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.IndexManagement -{ - public partial class RemoveAction : IActionVariant - { - [JsonIgnore] - string IActionVariant.ActionVariantName => "remove"; - [JsonInclude] - [JsonPropertyName("alias")] - public Elastic.Clients.Elasticsearch.IndexAlias? Alias { get; set; } - - [JsonInclude] - [JsonPropertyName("aliases")] - public IEnumerable? Aliases { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices? Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("must_exist")] - public bool? MustExist { get; set; } - } - - public sealed partial class RemoveActionDescriptor : DescriptorBase - { - internal RemoveActionDescriptor(Action configure) => configure.Invoke(this); - public RemoveActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.IndexAlias? AliasValue { get; set; } - - private IEnumerable? AliasesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private bool? MustExistValue { get; set; } - - public RemoveActionDescriptor Alias(Elastic.Clients.Elasticsearch.IndexAlias? alias) - { - AliasValue = alias; - return Self; - } - - public RemoveActionDescriptor Aliases(IEnumerable? aliases) - { - AliasesValue = aliases; - return Self; - } - - public RemoveActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - IndexValue = index; - return Self; - } - - public RemoveActionDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public RemoveActionDescriptor MustExist(bool? mustExist = true) - { - MustExistValue = mustExist; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasValue is not null) - { - writer.WritePropertyName("alias"); - JsonSerializer.Serialize(writer, AliasValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MustExistValue.HasValue) - { - writer.WritePropertyName("must_exist"); - writer.WriteBooleanValue(MustExistValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs deleted file mode 100644 index f3be59e5949..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs +++ /dev/null @@ -1,99 +0,0 @@ -// 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.IndexManagement -{ - public partial class RemoveIndexAction : IActionVariant - { - [JsonIgnore] - string IActionVariant.ActionVariantName => "remove_index"; - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices? Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("must_exist")] - public bool? MustExist { get; set; } - } - - public sealed partial class RemoveIndexActionDescriptor : DescriptorBase - { - internal RemoveIndexActionDescriptor(Action configure) => configure.Invoke(this); - public RemoveIndexActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private bool? MustExistValue { get; set; } - - public RemoveIndexActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - IndexValue = index; - return Self; - } - - public RemoveIndexActionDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public RemoveIndexActionDescriptor MustExist(bool? mustExist = true) - { - MustExistValue = mustExist; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MustExistValue.HasValue) - { - writer.WritePropertyName("must_exist"); - writer.WriteBooleanValue(MustExistValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Migration/Deprecation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Migration/Deprecation.g.cs new file mode 100644 index 00000000000..d6a4692442f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Migration/Deprecation.g.cs @@ -0,0 +1,45 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +#nullable restore +namespace Elastic.Clients.Elasticsearch.Migration +{ + public partial class Deprecation + { + [JsonInclude] + [JsonPropertyName("details")] + public string Details { get; init; } + + [JsonInclude] + [JsonPropertyName("level")] + public Elastic.Clients.Elasticsearch.Migration.DeprecationLevel Level { get; init; } + + [JsonInclude] + [JsonPropertyName("message")] + public string Message { get; init; } + + [JsonInclude] + [JsonPropertyName("url")] + public string Url { get; init; } + } +} \ No newline at end of file