From 1822c035e739316454fa3af0f25161d2d13383b8 Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Thu, 3 Nov 2022 14:26:43 +0000 Subject: [PATCH] Skip untested indices endpoints for GA (#6881) These will be reintroduced with proper testing --- .../_Generated/Api/ApiUrlsLookup.g.cs | 9 - .../Api/IndexManagement/AnalyzeRequest.g.cs | 399 -------------- .../Api/IndexManagement/AnalyzeResponse.g.cs | 35 -- .../IndexManagement/ClearCacheRequest.g.cs | 143 ----- .../IndexManagement/ClearCacheResponse.g.cs | 31 -- .../DataStreamsStatsRequest.g.cs | 73 --- .../DataStreamsStatsResponse.g.cs | 51 -- .../IndexManagement/PutSettingsRequest.g.cs | 143 ----- .../IndexManagement/PutSettingsResponse.g.cs | 31 -- .../ReloadSearchAnalyzersRequest.g.cs | 115 ---- .../ReloadSearchAnalyzersResponse.g.cs | 35 -- .../IndexManagement/ResolveIndexRequest.g.cs | 73 --- .../IndexManagement/ResolveIndexResponse.g.cs | 39 -- .../Api/IndexManagement/SegmentsRequest.g.cs | 119 ----- .../Api/IndexManagement/SegmentsResponse.g.cs | 35 -- .../IndexManagement/ShardStoresRequest.g.cs | 119 ----- .../IndexManagement/ShardStoresResponse.g.cs | 31 -- .../IndexManagement/ValidateQueryRequest.g.cs | 283 ---------- .../ValidateQueryResponse.g.cs | 39 -- .../Client/ElasticsearchClient.Indices.g.cs | 490 ------------------ .../Types/Enums/Enums.IndexManagement.g.cs | 105 ---- .../Types/IndexManagement/AnalyzeDetail.g.cs | 49 -- .../Types/IndexManagement/AnalyzeToken.g.cs | 53 -- .../Types/IndexManagement/AnalyzerDetail.g.cs | 37 -- .../IndexManagement/CharFilterDetail.g.cs | 37 -- .../IndexManagement/DataStreamsStatsItem.g.cs | 49 -- .../IndexManagement/ExplainAnalyzeToken.g.cs | 140 ----- .../Types/IndexManagement/IndexSegment.g.cs | 33 -- .../IndexManagement/IndicesShardStores.g.cs | 33 -- .../IndicesValidationExplanation.g.cs | 45 -- .../Types/IndexManagement/ReloadDetails.g.cs | 41 -- .../ResolveIndexAliasItem.g.cs | 37 -- .../ResolveIndexDataStreamsItem.g.cs | 41 -- .../IndexManagement/ResolveIndexItem.g.cs | 45 -- .../Types/IndexManagement/Segment.g.cs | 69 --- .../IndexManagement/ShardSegmentRouting.g.cs | 41 -- .../Types/IndexManagement/ShardStore.g.cs | 61 --- .../IndexManagement/ShardStoreException.g.cs | 37 -- .../IndexManagement/ShardStoreWrapper.g.cs | 33 -- .../Types/IndexManagement/ShardsSegment.g.cs | 45 -- .../Types/IndexManagement/TokenDetail.g.cs | 37 -- .../Types/TextToAnalyzeConverter.g.cs | 31 -- 42 files changed, 3392 deletions(-) delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CharFilterDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegment.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesShardStores.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreException.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreWrapper.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsSegment.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TokenDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TextToAnalyzeConverter.g.cs diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs index 5e7a1e09be8..f1114f63791 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs @@ -42,14 +42,11 @@ internal static class ApiUrlsLookups internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "/_field_caps", "/{index}/_field_caps" }); internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "/{index}/_doc/{id}" }); internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "/_alias", "/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias" }); - internal static ApiUrls IndexManagementAnalyze = new ApiUrls(new[] { "/_analyze", "/{index}/_analyze" }); - internal static ApiUrls IndexManagementClearCache = new ApiUrls(new[] { "/_cache/clear", "/{index}/_cache/clear" }); internal static ApiUrls IndexManagementClone = new ApiUrls(new[] { "/{index}/_clone/{target}" }); internal static ApiUrls IndexManagementClose = new ApiUrls(new[] { "/{index}/_close" }); internal static ApiUrls IndexManagementCreateDataStream = new ApiUrls(new[] { "/_data_stream/{name}" }); internal static ApiUrls IndexManagementCreate = new ApiUrls(new[] { "/{index}" }); internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "/_data_stream", "/_data_stream/{name}" }); - internal static ApiUrls IndexManagementDataStreamsStats = new ApiUrls(new[] { "/_data_stream/_stats", "/_data_stream/{name}/_stats" }); internal static ApiUrls IndexManagementDeleteAlias = new ApiUrls(new[] { "/{index}/_alias/{name}" }); internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "/_data_stream/{name}" }); internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "/_index_template/{name}" }); @@ -70,21 +67,15 @@ internal static class ApiUrlsLookups internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "/{index}/_alias/{name}" }); internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "/_index_template/{name}" }); internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "/{index}/_mapping" }); - internal static ApiUrls IndexManagementPutSettings = new ApiUrls(new[] { "/_settings", "/{index}/_settings" }); internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "/_template/{name}" }); internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "/_refresh", "/{index}/_refresh" }); - internal static ApiUrls IndexManagementReloadSearchAnalyzers = new ApiUrls(new[] { "/{index}/_reload_search_analyzers" }); - internal static ApiUrls IndexManagementResolveIndex = new ApiUrls(new[] { "/_resolve/index/{name}" }); internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "/{alias}/_rollover", "/{alias}/_rollover/{new_index}" }); - internal static ApiUrls IndexManagementSegments = new ApiUrls(new[] { "/_segments", "/{index}/_segments" }); - internal static ApiUrls IndexManagementShardStores = new ApiUrls(new[] { "/_shard_stores", "/{index}/_shard_stores" }); internal static ApiUrls IndexManagementShrink = new ApiUrls(new[] { "/{index}/_shrink/{target}" }); internal static ApiUrls IndexManagementSimulateIndexTemplate = new ApiUrls(new[] { "/_index_template/_simulate_index/{name}" }); internal static ApiUrls IndexManagementSimulateTemplate = new ApiUrls(new[] { "/_index_template/_simulate", "/_index_template/_simulate/{name}" }); 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 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[] { "/" }); internal static ApiUrls NoNamespaceMget = new ApiUrls(new[] { "/_mget", "/{index}/_mget" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeRequest.g.cs deleted file mode 100644 index f00581d7f81..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeRequest.g.cs +++ /dev/null @@ -1,399 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class AnalyzeRequestParameters : RequestParameters -{ -} - -public sealed partial class AnalyzeRequest : PlainRequest -{ - public AnalyzeRequest() - { - } - - public AnalyzeRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementAnalyze; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - [JsonInclude] - [JsonPropertyName("attributes")] - public IList? Attributes { get; set; } - - [JsonInclude] - [JsonPropertyName("char_filter")] - public IList? CharFilter { get; set; } - - [JsonInclude] - [JsonPropertyName("explain")] - public bool? Explain { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field? Field { get; set; } - - [JsonInclude] - [JsonPropertyName("filter")] - public IList? Filter { get; set; } - - [JsonInclude] - [JsonPropertyName("normalizer")] - public string? Normalizer { get; set; } - - [JsonInclude] - [JsonPropertyName("text")] - [JsonConverter(typeof(TextToAnalyzeConverter))] - public IList? Text { get; set; } - - [JsonInclude] - [JsonPropertyName("tokenizer")] - public Elastic.Clients.Elasticsearch.Analysis.Tokenizer? Tokenizer { get; set; } -} - -public sealed partial class AnalyzeRequestDescriptor : RequestDescriptor, AnalyzeRequestParameters> -{ - internal AnalyzeRequestDescriptor(Action> configure) => configure.Invoke(this); - public AnalyzeRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementAnalyze; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public AnalyzeRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - private string? AnalyzerValue { get; set; } - - private IList? AttributesValue { get; set; } - - private IList? CharFilterValue { get; set; } - - private bool? ExplainValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? FieldValue { get; set; } - - private IList? FilterValue { get; set; } - - private string? NormalizerValue { get; set; } - - private IList? TextValue { get; set; } - - private Elastic.Clients.Elasticsearch.Analysis.Tokenizer? TokenizerValue { get; set; } - - public AnalyzeRequestDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public AnalyzeRequestDescriptor Attributes(IList? attributes) - { - AttributesValue = attributes; - return Self; - } - - public AnalyzeRequestDescriptor CharFilter(IList? charFilter) - { - CharFilterValue = charFilter; - return Self; - } - - public AnalyzeRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - public AnalyzeRequestDescriptor Field(Elastic.Clients.Elasticsearch.Field? field) - { - FieldValue = field; - return Self; - } - - public AnalyzeRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AnalyzeRequestDescriptor Filter(IList? filter) - { - FilterValue = filter; - return Self; - } - - public AnalyzeRequestDescriptor Normalizer(string? normalizer) - { - NormalizerValue = normalizer; - return Self; - } - - public AnalyzeRequestDescriptor Text(IList? text) - { - TextValue = text; - return Self; - } - - public AnalyzeRequestDescriptor Tokenizer(Elastic.Clients.Elasticsearch.Analysis.Tokenizer? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AttributesValue is not null) - { - writer.WritePropertyName("attributes"); - JsonSerializer.Serialize(writer, AttributesValue, options); - } - - if (CharFilterValue is not null) - { - writer.WritePropertyName("char_filter"); - JsonSerializer.Serialize(writer, CharFilterValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (!string.IsNullOrEmpty(NormalizerValue)) - { - writer.WritePropertyName("normalizer"); - writer.WriteStringValue(NormalizerValue); - } - - if (TextValue is not null) - { - writer.WritePropertyName("text"); - SingleOrManySerializationHelper.Serialize(TextValue, writer, options); - } - - if (TokenizerValue is not null) - { - writer.WritePropertyName("tokenizer"); - JsonSerializer.Serialize(writer, TokenizerValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AnalyzeRequestDescriptor : RequestDescriptor -{ - internal AnalyzeRequestDescriptor(Action configure) => configure.Invoke(this); - public AnalyzeRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementAnalyze; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public AnalyzeRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - private string? AnalyzerValue { get; set; } - - private IList? AttributesValue { get; set; } - - private IList? CharFilterValue { get; set; } - - private bool? ExplainValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? FieldValue { get; set; } - - private IList? FilterValue { get; set; } - - private string? NormalizerValue { get; set; } - - private IList? TextValue { get; set; } - - private Elastic.Clients.Elasticsearch.Analysis.Tokenizer? TokenizerValue { get; set; } - - public AnalyzeRequestDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public AnalyzeRequestDescriptor Attributes(IList? attributes) - { - AttributesValue = attributes; - return Self; - } - - public AnalyzeRequestDescriptor CharFilter(IList? charFilter) - { - CharFilterValue = charFilter; - return Self; - } - - public AnalyzeRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - public AnalyzeRequestDescriptor Field(Elastic.Clients.Elasticsearch.Field? field) - { - FieldValue = field; - return Self; - } - - public AnalyzeRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AnalyzeRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AnalyzeRequestDescriptor Filter(IList? filter) - { - FilterValue = filter; - return Self; - } - - public AnalyzeRequestDescriptor Normalizer(string? normalizer) - { - NormalizerValue = normalizer; - return Self; - } - - public AnalyzeRequestDescriptor Text(IList? text) - { - TextValue = text; - return Self; - } - - public AnalyzeRequestDescriptor Tokenizer(Elastic.Clients.Elasticsearch.Analysis.Tokenizer? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AttributesValue is not null) - { - writer.WritePropertyName("attributes"); - JsonSerializer.Serialize(writer, AttributesValue, options); - } - - if (CharFilterValue is not null) - { - writer.WritePropertyName("char_filter"); - JsonSerializer.Serialize(writer, CharFilterValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (!string.IsNullOrEmpty(NormalizerValue)) - { - writer.WritePropertyName("normalizer"); - writer.WriteStringValue(NormalizerValue); - } - - if (TextValue is not null) - { - writer.WritePropertyName("text"); - SingleOrManySerializationHelper.Serialize(TextValue, writer, options); - } - - if (TokenizerValue is not null) - { - writer.WritePropertyName("tokenizer"); - JsonSerializer.Serialize(writer, TokenizerValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeResponse.g.cs deleted file mode 100644 index 7bc90a3be51..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeResponse.g.cs +++ /dev/null @@ -1,35 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class AnalyzeResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("detail")] - public Elastic.Clients.Elasticsearch.IndexManagement.AnalyzeDetail? Detail { get; init; } - - [JsonInclude] - [JsonPropertyName("tokens")] - public IReadOnlyCollection? Tokens { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs deleted file mode 100644 index fb7babd9853..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ /dev/null @@ -1,143 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class ClearCacheRequestParameters : RequestParameters -{ - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? Fielddata { get => Q("fielddata"); set => Q("fielddata", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public bool? Query { get => Q("query"); set => Q("query", value); } - - [JsonIgnore] - public bool? Request { get => Q("request"); set => Q("request", value); } -} - -public sealed partial class ClearCacheRequest : PlainRequest -{ - public ClearCacheRequest() - { - } - - public ClearCacheRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementClearCache; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? Fielddata { get => Q("fielddata"); set => Q("fielddata", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public bool? Query { get => Q("query"); set => Q("query", value); } - - [JsonIgnore] - public bool? Request { get => Q("request"); set => Q("request", value); } -} - -public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor, ClearCacheRequestParameters> -{ - internal ClearCacheRequestDescriptor(Action> configure) => configure.Invoke(this); - public ClearCacheRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementClearCache; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public ClearCacheRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ClearCacheRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ClearCacheRequestDescriptor Fielddata(bool? fielddata = true) => Qs("fielddata", fielddata); - public ClearCacheRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); - public ClearCacheRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ClearCacheRequestDescriptor Query(bool? query = true) => Qs("query", query); - public ClearCacheRequestDescriptor Request(bool? request = true) => Qs("request", request); - public ClearCacheRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor -{ - internal ClearCacheRequestDescriptor(Action configure) => configure.Invoke(this); - public ClearCacheRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementClearCache; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public ClearCacheRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ClearCacheRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ClearCacheRequestDescriptor Fielddata(bool? fielddata = true) => Qs("fielddata", fielddata); - public ClearCacheRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); - public ClearCacheRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ClearCacheRequestDescriptor Query(bool? query = true) => Qs("query", query); - public ClearCacheRequestDescriptor Request(bool? request = true) => Qs("request", request); - public ClearCacheRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - 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/ClearCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs deleted file mode 100644 index 6cbe1f90d2e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs +++ /dev/null @@ -1,31 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ClearCacheResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs deleted file mode 100644 index ddf6fbc5c2d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.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 Elastic.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class DataStreamsStatsRequestParameters : RequestParameters -{ - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } -} - -public sealed partial class DataStreamsStatsRequest : PlainRequest -{ - public DataStreamsStatsRequest() - { - } - - public DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.IndexName? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementDataStreamsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } -} - -public sealed partial class DataStreamsStatsRequestDescriptor : RequestDescriptor -{ - internal DataStreamsStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public DataStreamsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementDataStreamsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public DataStreamsStatsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DataStreamsStatsRequestDescriptor Name(Elastic.Clients.Elasticsearch.IndexName? name) - { - RouteValues.Optional("name", name); - 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/DataStreamsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs deleted file mode 100644 index f8863b1afad..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs +++ /dev/null @@ -1,51 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class DataStreamsStatsResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("backing_indices")] - public int BackingIndices { get; init; } - - [JsonInclude] - [JsonPropertyName("data_stream_count")] - public int DataStreamCount { get; init; } - - [JsonInclude] - [JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } - - [JsonInclude] - [JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("total_store_size_bytes")] - public int TotalStoreSizeBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total_store_sizes")] - public Elastic.Clients.Elasticsearch.ByteSize? TotalStoreSizes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsRequest.g.cs deleted file mode 100644 index 785e3ff0129..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsRequest.g.cs +++ /dev/null @@ -1,143 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class PutSettingsRequestParameters : RequestParameters -{ - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? PreserveExisting { get => Q("preserve_existing"); set => Q("preserve_existing", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -public sealed partial class PutSettingsRequest : PlainRequest -{ - public PutSettingsRequest() - { - } - - public PutSettingsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementPutSettings; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? PreserveExisting { get => Q("preserve_existing"); set => Q("preserve_existing", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -public sealed partial class PutSettingsRequestDescriptor : RequestDescriptor, PutSettingsRequestParameters> -{ - internal PutSettingsRequestDescriptor(Action> configure) => configure.Invoke(this); - public PutSettingsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementPutSettings; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public PutSettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutSettingsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public PutSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public PutSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutSettingsRequestDescriptor PreserveExisting(bool? preserveExisting = true) => Qs("preserve_existing", preserveExisting); - public PutSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public PutSettingsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -public sealed partial class PutSettingsRequestDescriptor : RequestDescriptor -{ - internal PutSettingsRequestDescriptor(Action configure) => configure.Invoke(this); - public PutSettingsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementPutSettings; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public PutSettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutSettingsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public PutSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public PutSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutSettingsRequestDescriptor PreserveExisting(bool? preserveExisting = true) => Qs("preserve_existing", preserveExisting); - public PutSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public PutSettingsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - 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/PutSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsResponse.g.cs deleted file mode 100644 index 8978e4ba271..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsResponse.g.cs +++ /dev/null @@ -1,31 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class PutSettingsResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs deleted file mode 100644 index e9e7298c475..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ /dev/null @@ -1,115 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class ReloadSearchAnalyzersRequestParameters : RequestParameters -{ - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -public sealed partial class ReloadSearchAnalyzersRequest : PlainRequest -{ - public ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementReloadSearchAnalyzers; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -public sealed partial class ReloadSearchAnalyzersRequestDescriptor : RequestDescriptor, ReloadSearchAnalyzersRequestParameters> -{ - internal ReloadSearchAnalyzersRequestDescriptor(Action> configure) => configure.Invoke(this); - public ReloadSearchAnalyzersRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal ReloadSearchAnalyzersRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementReloadSearchAnalyzers; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public ReloadSearchAnalyzersRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ReloadSearchAnalyzersRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ReloadSearchAnalyzersRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ReloadSearchAnalyzersRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -public sealed partial class ReloadSearchAnalyzersRequestDescriptor : RequestDescriptor -{ - internal ReloadSearchAnalyzersRequestDescriptor(Action configure) => configure.Invoke(this); - public ReloadSearchAnalyzersRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal ReloadSearchAnalyzersRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementReloadSearchAnalyzers; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public ReloadSearchAnalyzersRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ReloadSearchAnalyzersRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ReloadSearchAnalyzersRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ReloadSearchAnalyzersRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - 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/ReloadSearchAnalyzersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersResponse.g.cs deleted file mode 100644 index 5b564022c16..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersResponse.g.cs +++ /dev/null @@ -1,35 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ReloadSearchAnalyzersResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("reload_details")] - public IReadOnlyCollection ReloadDetails { get; init; } - - [JsonInclude] - [JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs deleted file mode 100644 index 2516cd8644e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.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 Elastic.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class ResolveIndexRequestParameters : RequestParameters -{ - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } -} - -public sealed partial class ResolveIndexRequest : PlainRequest -{ - public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementResolveIndex; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } -} - -public sealed partial class ResolveIndexRequestDescriptor : RequestDescriptor -{ - internal ResolveIndexRequestDescriptor(Action configure) => configure.Invoke(this); - public ResolveIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) - { - } - - internal ResolveIndexRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementResolveIndex; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ResolveIndexRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ResolveIndexRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) - { - RouteValues.Required("name", name); - 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/ResolveIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs deleted file mode 100644 index 15d90be283b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs +++ /dev/null @@ -1,39 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ResolveIndexResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("aliases")] - public IReadOnlyCollection Aliases { get; init; } - - [JsonInclude] - [JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } - - [JsonInclude] - [JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs deleted file mode 100644 index 632665583b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ /dev/null @@ -1,119 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class SegmentsRequestParameters : RequestParameters -{ - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -public sealed partial class SegmentsRequest : PlainRequest -{ - public SegmentsRequest() - { - } - - public SegmentsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementSegments; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -public sealed partial class SegmentsRequestDescriptor : RequestDescriptor, SegmentsRequestParameters> -{ - internal SegmentsRequestDescriptor(Action> configure) => configure.Invoke(this); - public SegmentsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementSegments; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SegmentsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -public sealed partial class SegmentsRequestDescriptor : RequestDescriptor -{ - internal SegmentsRequestDescriptor(Action configure) => configure.Invoke(this); - public SegmentsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementSegments; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SegmentsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - 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/SegmentsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsResponse.g.cs deleted file mode 100644 index 4557cf59d6c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsResponse.g.cs +++ /dev/null @@ -1,35 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class SegmentsResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("indices")] - public Dictionary Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs deleted file mode 100644 index 66061a4f544..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs +++ /dev/null @@ -1,119 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class ShardStoresRequestParameters : RequestParameters -{ - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public IList? Status { get => Q?>("status"); set => Q("status", value); } -} - -public sealed partial class ShardStoresRequest : PlainRequest -{ - public ShardStoresRequest() - { - } - - public ShardStoresRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementShardStores; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public IList? Status { get => Q?>("status"); set => Q("status", value); } -} - -public sealed partial class ShardStoresRequestDescriptor : RequestDescriptor, ShardStoresRequestParameters> -{ - internal ShardStoresRequestDescriptor(Action> configure) => configure.Invoke(this); - public ShardStoresRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementShardStores; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ShardStoresRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ShardStoresRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ShardStoresRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ShardStoresRequestDescriptor Status(IList? status) => Qs("status", status); - public ShardStoresRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -public sealed partial class ShardStoresRequestDescriptor : RequestDescriptor -{ - internal ShardStoresRequestDescriptor(Action configure) => configure.Invoke(this); - public ShardStoresRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementShardStores; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ShardStoresRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ShardStoresRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ShardStoresRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ShardStoresRequestDescriptor Status(IList? status) => Qs("status", status); - public ShardStoresRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - 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/ShardStoresResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresResponse.g.cs deleted file mode 100644 index 6bb06b13209..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresResponse.g.cs +++ /dev/null @@ -1,31 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ShardStoresResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("indices")] - public Dictionary Indices { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs deleted file mode 100644 index fc420097922..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ /dev/null @@ -1,283 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Requests; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed class ValidateQueryRequestParameters : RequestParameters -{ - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public bool? AllShards { get => Q("all_shards"); set => Q("all_shards", value); } - - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? Explain { get => Q("explain"); set => Q("explain", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - [JsonIgnore] - public bool? Rewrite { get => Q("rewrite"); set => Q("rewrite", value); } - - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } -} - -public sealed partial class ValidateQueryRequest : PlainRequest -{ - public ValidateQueryRequest() - { - } - - public ValidateQueryRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementValidateQuery; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public bool? AllShards { get => Q("all_shards"); set => Q("all_shards", value); } - - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? Explain { get => Q("explain"); set => Q("explain", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - [JsonIgnore] - public bool? Rewrite { get => Q("rewrite"); set => Q("rewrite", value); } - - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } -} - -public sealed partial class ValidateQueryRequestDescriptor : RequestDescriptor, ValidateQueryRequestParameters> -{ - internal ValidateQueryRequestDescriptor(Action> configure) => configure.Invoke(this); - public ValidateQueryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementValidateQuery; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public ValidateQueryRequestDescriptor AllShards(bool? allShards = true) => Qs("all_shards", allShards); - public ValidateQueryRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ValidateQueryRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public ValidateQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public ValidateQueryRequestDescriptor Df(string? df) => Qs("df", df); - public ValidateQueryRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ValidateQueryRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); - public ValidateQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ValidateQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public ValidateQueryRequestDescriptor QueryLuceneSyntax(string? q) => Qs("q", q); - public ValidateQueryRequestDescriptor Rewrite(bool? rewrite = true) => Qs("rewrite", rewrite); - public ValidateQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - public ValidateQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ValidateQueryRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ValidateQueryRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ValidateQueryRequestDescriptor : RequestDescriptor -{ - internal ValidateQueryRequestDescriptor(Action configure) => configure.Invoke(this); - public ValidateQueryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementValidateQuery; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public ValidateQueryRequestDescriptor AllShards(bool? allShards = true) => Qs("all_shards", allShards); - public ValidateQueryRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ValidateQueryRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public ValidateQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public ValidateQueryRequestDescriptor Df(string? df) => Qs("df", df); - public ValidateQueryRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ValidateQueryRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); - public ValidateQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ValidateQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public ValidateQueryRequestDescriptor QueryLuceneSyntax(string? q) => Qs("q", q); - public ValidateQueryRequestDescriptor Rewrite(bool? rewrite = true) => Qs("rewrite", rewrite); - public ValidateQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - public ValidateQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ValidateQueryRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ValidateQueryRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs deleted file mode 100644 index bec78fb557e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs +++ /dev/null @@ -1,39 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ValidateQueryResponse : ElasticsearchResponseBase -{ - [JsonInclude] - [JsonPropertyName("explanations")] - public IReadOnlyCollection? Explanations { get; init; } - - [JsonInclude] - [JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("valid")] - public bool Valid { get; init; } -} \ 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 ec3f06f356e..4c242a6570a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -85,122 +85,6 @@ public Task GetAliasAsync(Action, AliasResponse>(descriptor); } - public AnalyzeResponse Analyze(AnalyzeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task AnalyzeAsync(AnalyzeRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public AnalyzeResponse Analyze() - { - var descriptor = new AnalyzeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public AnalyzeResponse Analyze(Action configureRequest) - { - var descriptor = new AnalyzeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public AnalyzeResponse Analyze(Action> configureRequest) - { - var descriptor = new AnalyzeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, AnalyzeResponse>(descriptor); - } - - public Task AnalyzeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task AnalyzeAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task AnalyzeAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, AnalyzeResponse>(descriptor); - } - - public ClearCacheResponse ClearCache(ClearCacheRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ClearCacheAsync(ClearCacheRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClearCacheResponse ClearCache() - { - var descriptor = new ClearCacheRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClearCacheResponse ClearCache(Action configureRequest) - { - var descriptor = new ClearCacheRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClearCacheResponse ClearCache(Action> configureRequest) - { - var descriptor = new ClearCacheRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ClearCacheResponse>(descriptor); - } - - public Task ClearCacheAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ClearCacheAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ClearCacheAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ClearCacheResponse>(descriptor); - } - public CloneResponse Clone(CloneRequest request) { request.BeforeRequest(); @@ -519,48 +403,6 @@ public Task GetDataStreamAsync(Action(descriptor); } - public DataStreamsStatsResponse DataStreamsStats(DataStreamsStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DataStreamsStatsAsync(DataStreamsStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public DataStreamsStatsResponse DataStreamsStats() - { - var descriptor = new DataStreamsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public DataStreamsStatsResponse DataStreamsStats(Action configureRequest) - { - var descriptor = new DataStreamsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DataStreamsStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new DataStreamsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DataStreamsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DataStreamsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public DeleteAliasResponse DeleteAlias(DeleteAliasRequest request) { request.BeforeRequest(); @@ -1609,64 +1451,6 @@ public Task PutMappingAsync(Elastic.Clients.Elast return DoRequestAsync, PutMappingResponse>(descriptor); } - public PutSettingsResponse PutSettings(PutSettingsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutSettingsAsync(PutSettingsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public PutSettingsResponse PutSettings() - { - var descriptor = new PutSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public PutSettingsResponse PutSettings(Action configureRequest) - { - var descriptor = new PutSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public PutSettingsResponse PutSettings(Action> configureRequest) - { - var descriptor = new PutSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, PutSettingsResponse>(descriptor); - } - - public Task PutSettingsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new PutSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutSettingsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutSettingsResponse>(descriptor); - } - public PutTemplateResponse PutTemplate(PutTemplateRequest request) { request.BeforeRequest(); @@ -1767,106 +1551,6 @@ public Task RefreshAsync(Action, RefreshResponse>(descriptor); } - public ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) - { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) - { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ReloadSearchAnalyzersResponse>(descriptor); - } - - public Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ReloadSearchAnalyzersRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ReloadSearchAnalyzersResponse>(descriptor); - } - - public ResolveIndexResponse ResolveIndex(ResolveIndexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ResolveIndexAsync(ResolveIndexRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.Names name) - { - var descriptor = new ResolveIndexRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) - { - var descriptor = new ResolveIndexRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ResolveIndexAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new ResolveIndexRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ResolveIndexAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ResolveIndexRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public RolloverResponse Rollover(RolloverRequest request) { request.BeforeRequest(); @@ -1909,122 +1593,6 @@ public Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexA return DoRequestAsync(descriptor); } - public SegmentsResponse Segments(SegmentsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SegmentsAsync(SegmentsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SegmentsResponse Segments() - { - var descriptor = new SegmentsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SegmentsResponse Segments(Action configureRequest) - { - var descriptor = new SegmentsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SegmentsResponse Segments(Action> configureRequest) - { - var descriptor = new SegmentsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SegmentsResponse>(descriptor); - } - - public Task SegmentsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SegmentsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SegmentsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SegmentsResponse>(descriptor); - } - - public ShardStoresResponse ShardStores(ShardStoresRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ShardStoresAsync(ShardStoresRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ShardStoresResponse ShardStores() - { - var descriptor = new ShardStoresRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ShardStoresResponse ShardStores(Action configureRequest) - { - var descriptor = new ShardStoresRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ShardStoresResponse ShardStores(Action> configureRequest) - { - var descriptor = new ShardStoresRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ShardStoresResponse>(descriptor); - } - - public Task ShardStoresAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ShardStoresRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ShardStoresAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ShardStoresRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ShardStoresAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ShardStoresRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ShardStoresResponse>(descriptor); - } - public ShrinkResponse Shrink(ShrinkRequest request) { request.BeforeRequest(); @@ -2400,62 +1968,4 @@ public Task GetTemplateAsync(Action descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } - - public ValidateQueryResponse ValidateQuery(ValidateQueryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ValidateQueryAsync(ValidateQueryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ValidateQueryResponse ValidateQuery() - { - var descriptor = new ValidateQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ValidateQueryResponse ValidateQuery(Action configureRequest) - { - var descriptor = new ValidateQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ValidateQueryResponse ValidateQuery(Action> configureRequest) - { - var descriptor = new ValidateQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ValidateQueryResponse>(descriptor); - } - - public Task ValidateQueryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ValidateQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ValidateQueryAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ValidateQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ValidateQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ValidateQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateQueryResponse>(descriptor); - } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs index 2f6951353c3..e9444aa12b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs @@ -500,111 +500,6 @@ public override void Write(Utf8JsonWriter writer, ShardRoutingState value, JsonS } } -[JsonConverter(typeof(ShardStoreAllocationConverter))] -public enum ShardStoreAllocation -{ - [EnumMember(Value = "unused")] - Unused, - [EnumMember(Value = "replica")] - Replica, - [EnumMember(Value = "primary")] - Primary -} - -internal sealed class ShardStoreAllocationConverter : JsonConverter -{ - public override ShardStoreAllocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "unused": - return ShardStoreAllocation.Unused; - case "replica": - return ShardStoreAllocation.Replica; - case "primary": - return ShardStoreAllocation.Primary; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ShardStoreAllocation value, JsonSerializerOptions options) - { - switch (value) - { - case ShardStoreAllocation.Unused: - writer.WriteStringValue("unused"); - return; - case ShardStoreAllocation.Replica: - writer.WriteStringValue("replica"); - return; - case ShardStoreAllocation.Primary: - writer.WriteStringValue("primary"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ShardStoreStatusConverter))] -public enum ShardStoreStatus -{ - [EnumMember(Value = "yellow")] - Yellow, - [EnumMember(Value = "red")] - Red, - [EnumMember(Value = "green")] - Green, - [EnumMember(Value = "all")] - All -} - -internal sealed class ShardStoreStatusConverter : JsonConverter -{ - public override ShardStoreStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yellow": - return ShardStoreStatus.Yellow; - case "red": - return ShardStoreStatus.Red; - case "green": - return ShardStoreStatus.Green; - case "all": - return ShardStoreStatus.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ShardStoreStatus value, JsonSerializerOptions options) - { - switch (value) - { - case ShardStoreStatus.Yellow: - writer.WriteStringValue("yellow"); - return; - case ShardStoreStatus.Red: - writer.WriteStringValue("red"); - return; - case ShardStoreStatus.Green: - writer.WriteStringValue("green"); - return; - case ShardStoreStatus.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } -} - [JsonConverter(typeof(StorageTypeConverter))] public enum StorageType { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs deleted file mode 100644 index 6ca589a150b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs +++ /dev/null @@ -1,49 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class AnalyzeDetail -{ - [JsonInclude] - [JsonPropertyName("analyzer")] - public Elastic.Clients.Elasticsearch.IndexManagement.AnalyzerDetail? Analyzer { get; init; } - - [JsonInclude] - [JsonPropertyName("charfilters")] - public IReadOnlyCollection? Charfilters { get; init; } - - [JsonInclude] - [JsonPropertyName("custom_analyzer")] - public bool CustomAnalyzer { get; init; } - - [JsonInclude] - [JsonPropertyName("tokenfilters")] - public IReadOnlyCollection? Tokenfilters { get; init; } - - [JsonInclude] - [JsonPropertyName("tokenizer")] - public Elastic.Clients.Elasticsearch.IndexManagement.TokenDetail? Tokenizer { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeToken.g.cs deleted file mode 100644 index 2fdb0070d0d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeToken.g.cs +++ /dev/null @@ -1,53 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class AnalyzeToken -{ - [JsonInclude] - [JsonPropertyName("end_offset")] - public long EndOffset { get; init; } - - [JsonInclude] - [JsonPropertyName("position")] - public long Position { get; init; } - - [JsonInclude] - [JsonPropertyName("positionLength")] - public long? Positionlength { get; init; } - - [JsonInclude] - [JsonPropertyName("start_offset")] - public long StartOffset { get; init; } - - [JsonInclude] - [JsonPropertyName("token")] - public string Token { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs deleted file mode 100644 index a45a6b3f54f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs +++ /dev/null @@ -1,37 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class AnalyzerDetail -{ - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("tokens")] - public IReadOnlyCollection Tokens { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CharFilterDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CharFilterDetail.g.cs deleted file mode 100644 index 7ad0b73f45c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CharFilterDetail.g.cs +++ /dev/null @@ -1,37 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class CharFilterDetail -{ - [JsonInclude] - [JsonPropertyName("filtered_text")] - public IReadOnlyCollection FilteredText { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs deleted file mode 100644 index 3e101b434ed..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs +++ /dev/null @@ -1,49 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class DataStreamsStatsItem -{ - [JsonInclude] - [JsonPropertyName("backing_indices")] - public int BackingIndices { get; init; } - - [JsonInclude] - [JsonPropertyName("data_stream")] - public string DataStream { get; init; } - - [JsonInclude] - [JsonPropertyName("maximum_timestamp")] - public long MaximumTimestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("store_size")] - public Elastic.Clients.Elasticsearch.ByteSize? StoreSize { get; init; } - - [JsonInclude] - [JsonPropertyName("store_size_bytes")] - public int StoreSizeBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs deleted file mode 100644 index 849c10eda0a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs +++ /dev/null @@ -1,140 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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; -internal sealed class ExplainAnalyzeTokenConverter : JsonConverter -{ - public override ExplainAnalyzeToken Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - string bytes = default; - long endOffset = default; - bool? keyword = default; - long position = default; - long positionlength = default; - long startOffset = default; - long termfrequency = default; - string token = default; - string type = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "bytes") - { - bytes = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "end_offset") - { - endOffset = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "keyword") - { - keyword = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "position") - { - position = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "positionLength") - { - positionlength = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "start_offset") - { - startOffset = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "termFrequency") - { - termfrequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "token") - { - token = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "type") - { - type = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var value = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, value); - } - } - - return new ExplainAnalyzeToken { Bytes = bytes, EndOffset = endOffset, Keyword = keyword, Position = position, Positionlength = positionlength, StartOffset = startOffset, Termfrequency = termfrequency, Token = token, Type = type, Attributes = additionalProperties }; - } - - public override void Write(Utf8JsonWriter writer, ExplainAnalyzeToken value, JsonSerializerOptions options) - { - throw new NotImplementedException("'ExplainAnalyzeToken' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(ExplainAnalyzeTokenConverter))] -public sealed partial class ExplainAnalyzeToken -{ - public Dictionary Attributes { get; init; } - - public string Bytes { get; init; } - - public long EndOffset { get; init; } - - public bool? Keyword { get; init; } - - public long Position { get; init; } - - public long Positionlength { get; init; } - - public long StartOffset { get; init; } - - public long Termfrequency { get; init; } - - public string Token { get; init; } - - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegment.g.cs deleted file mode 100644 index 58013fbbb38..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegment.g.cs +++ /dev/null @@ -1,33 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class IndexSegment -{ - [JsonInclude] - [JsonPropertyName("shards")] - public Dictionary> Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesShardStores.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesShardStores.g.cs deleted file mode 100644 index ffdcfbb79ad..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesShardStores.g.cs +++ /dev/null @@ -1,33 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class IndicesShardStores -{ - [JsonInclude] - [JsonPropertyName("shards")] - public Dictionary Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs deleted file mode 100644 index 1c464ebf17f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs +++ /dev/null @@ -1,45 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class IndicesValidationExplanation -{ - [JsonInclude] - [JsonPropertyName("error")] - public string? Error { get; init; } - - [JsonInclude] - [JsonPropertyName("explanation")] - public string? Explanation { get; init; } - - [JsonInclude] - [JsonPropertyName("index")] - public string Index { get; init; } - - [JsonInclude] - [JsonPropertyName("valid")] - public bool Valid { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadDetails.g.cs deleted file mode 100644 index ec3f6511d7f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadDetails.g.cs +++ /dev/null @@ -1,41 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ReloadDetails -{ - [JsonInclude] - [JsonPropertyName("index")] - public string Index { get; init; } - - [JsonInclude] - [JsonPropertyName("reloaded_analyzers")] - public IReadOnlyCollection ReloadedAnalyzers { get; init; } - - [JsonInclude] - [JsonPropertyName("reloaded_node_ids")] - public IReadOnlyCollection ReloadedNodeIds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs deleted file mode 100644 index 9cb19db64fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs +++ /dev/null @@ -1,37 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ResolveIndexAliasItem -{ - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs deleted file mode 100644 index 0c1c6b74ccc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs +++ /dev/null @@ -1,41 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ResolveIndexDataStreamsItem -{ - [JsonInclude] - [JsonPropertyName("backing_indices")] - public Elastic.Clients.Elasticsearch.Indices BackingIndices { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp_field")] - public string TimestampField { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs deleted file mode 100644 index b485d67b865..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs +++ /dev/null @@ -1,45 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ResolveIndexItem -{ - [JsonInclude] - [JsonPropertyName("aliases")] - public IReadOnlyCollection? Aliases { get; init; } - - [JsonInclude] - [JsonPropertyName("attributes")] - public IReadOnlyCollection Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("data_stream")] - public string? DataStream { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs deleted file mode 100644 index 962bfb77276..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs +++ /dev/null @@ -1,69 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class Segment -{ - [JsonInclude] - [JsonPropertyName("attributes")] - public Dictionary Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("committed")] - public bool Committed { get; init; } - - [JsonInclude] - [JsonPropertyName("compound")] - public bool Compound { get; init; } - - [JsonInclude] - [JsonPropertyName("deleted_docs")] - public long DeletedDocs { get; init; } - - [JsonInclude] - [JsonPropertyName("generation")] - public int Generation { get; init; } - - [JsonInclude] - [JsonPropertyName("memory_in_bytes")] - public double MemoryInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("num_docs")] - public long NumDocs { get; init; } - - [JsonInclude] - [JsonPropertyName("search")] - public bool Search { get; init; } - - [JsonInclude] - [JsonPropertyName("size_in_bytes")] - public double SizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs deleted file mode 100644 index 15ca7141e50..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs +++ /dev/null @@ -1,41 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ShardSegmentRouting -{ - [JsonInclude] - [JsonPropertyName("node")] - public string Node { get; init; } - - [JsonInclude] - [JsonPropertyName("primary")] - public bool Primary { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public string State { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs deleted file mode 100644 index b476b195875..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs +++ /dev/null @@ -1,61 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ShardStore -{ - [JsonInclude] - [JsonPropertyName("allocation")] - public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreAllocation Allocation { get; init; } - - [JsonInclude] - [JsonPropertyName("allocation_id")] - public string AllocationId { get; init; } - - [JsonInclude] - [JsonPropertyName("attributes")] - public Dictionary Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("legacy_version")] - public long LegacyVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("store_exception")] - public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreException StoreException { get; init; } - - [JsonInclude] - [JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreException.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreException.g.cs deleted file mode 100644 index 35846bacfb5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreException.g.cs +++ /dev/null @@ -1,37 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ShardStoreException -{ - [JsonInclude] - [JsonPropertyName("reason")] - public string Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreWrapper.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreWrapper.g.cs deleted file mode 100644 index 6a7a1d9ec6f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreWrapper.g.cs +++ /dev/null @@ -1,33 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ShardStoreWrapper -{ - [JsonInclude] - [JsonPropertyName("stores")] - public IReadOnlyCollection Stores { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsSegment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsSegment.g.cs deleted file mode 100644 index 3cce8f418a4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsSegment.g.cs +++ /dev/null @@ -1,45 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class ShardsSegment -{ - [JsonInclude] - [JsonPropertyName("num_committed_segments")] - public int NumCommittedSegments { get; init; } - - [JsonInclude] - [JsonPropertyName("num_search_segments")] - public int NumSearchSegments { get; init; } - - [JsonInclude] - [JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.IndexManagement.ShardSegmentRouting Routing { get; init; } - - [JsonInclude] - [JsonPropertyName("segments")] - public Dictionary Segments { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TokenDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TokenDetail.g.cs deleted file mode 100644 index d43889be404..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TokenDetail.g.cs +++ /dev/null @@ -1,37 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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 sealed partial class TokenDetail -{ - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("tokens")] - public IReadOnlyCollection Tokens { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextToAnalyzeConverter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextToAnalyzeConverter.g.cs deleted file mode 100644 index b839dd83a9d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextToAnalyzeConverter.g.cs +++ /dev/null @@ -1,31 +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.Clients.Elasticsearch.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -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; -internal sealed class TextToAnalyzeConverter : IEnumerableSingleOrManyConverter -{ -} \ No newline at end of file