diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs index 1c794db1597..a780a3984bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs @@ -78,7 +78,6 @@ internal static class ApiUrlsLookups internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "/{index}/_source/{id}" }); internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "/{index}/_explain/{id}" }); internal static ApiUrls FeaturesGetFeatures = new ApiUrls(new[] { "/_features" }); - internal static ApiUrls FeaturesResetFeatures = new ApiUrls(new[] { "/_features/_reset" }); internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "/_field_caps", "/{index}/_field_caps" }); internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "/{index}/_doc/{id}" }); internal static ApiUrls GraphExplore = new ApiUrls(new[] { "/{index}/_graph/explore" }); @@ -107,13 +106,11 @@ internal static class ApiUrlsLookups internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "/_index_template/{name}" }); internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "/{index}" }); internal static ApiUrls IndexManagementDeleteTemplate = new ApiUrls(new[] { "/_template/{name}" }); - internal static ApiUrls IndexManagementDiskUsage = new ApiUrls(new[] { "/{index}/_disk_usage" }); internal static ApiUrls IndexManagementExistsAlias = new ApiUrls(new[] { "/_alias/{name}", "/{index}/_alias/{name}" }); internal static ApiUrls IndexManagementExistsIndexTemplate = new ApiUrls(new[] { "/_index_template/{name}" }); internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "/{index}" }); internal static ApiUrls IndexManagementExistsTemplate = new ApiUrls(new[] { "/_template/{name}" }); internal static ApiUrls IndexManagementGetFieldMapping = new ApiUrls(new[] { "/_mapping/field/{fields}", "/{index}/_mapping/field/{fields}" }); - internal static ApiUrls IndexManagementFieldUsageStats = new ApiUrls(new[] { "/{index}/_field_usage_stats" }); internal static ApiUrls IndexManagementFlush = new ApiUrls(new[] { "/_flush", "/{index}/_flush" }); internal static ApiUrls IndexManagementForcemerge = new ApiUrls(new[] { "/_forcemerge", "/{index}/_forcemerge" }); internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "/{index}" }); @@ -150,7 +147,6 @@ internal static class ApiUrlsLookups internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "/_ingest/processor/grok" }); internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "/_ingest/pipeline/{id}" }); internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "/_ingest/pipeline/_simulate", "/_ingest/pipeline/{id}/_simulate" }); - internal static ApiUrls NoNamespaceKnnSearch = new ApiUrls(new[] { "/{index}/_knn_search" }); internal static ApiUrls LicenseDelete = new ApiUrls(new[] { "/_license" }); internal static ApiUrls LicenseGet = new ApiUrls(new[] { "/_license" }); internal static ApiUrls LicenseGetBasicStatus = new ApiUrls(new[] { "/_license/basic_status" }); @@ -188,7 +184,6 @@ internal static class ApiUrlsLookups internal static ApiUrls MachineLearningGetOverallBuckets = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/results/overall_buckets" }); internal static ApiUrls MachineLearningGetRecords = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/results/records" }); internal static ApiUrls MachineLearningGetTrainedModelsStats = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/_stats", "/_ml/trained_models/_stats" }); - internal static ApiUrls MachineLearningInferTrainedModelDeployment = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/deployment/_infer" }); internal static ApiUrls MachineLearningInfo = new ApiUrls(new[] { "/_ml/info" }); internal static ApiUrls MachineLearningOpenJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_open" }); internal static ApiUrls MachineLearningPostCalendarEvents = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/events" }); @@ -202,16 +197,13 @@ internal static class ApiUrlsLookups internal static ApiUrls MachineLearningPutJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}" }); internal static ApiUrls MachineLearningPutTrainedModelAlias = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/model_aliases/{model_alias}" }); internal static ApiUrls MachineLearningPutTrainedModel = new ApiUrls(new[] { "/_ml/trained_models/{model_id}" }); - internal static ApiUrls MachineLearningPutTrainedModelVocabulary = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/vocabulary" }); internal static ApiUrls MachineLearningResetJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_reset" }); internal static ApiUrls MachineLearningRevertModelSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert" }); internal static ApiUrls MachineLearningSetUpgradeMode = new ApiUrls(new[] { "/_ml/set_upgrade_mode" }); internal static ApiUrls MachineLearningStartDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_start" }); internal static ApiUrls MachineLearningStartDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_start" }); - internal static ApiUrls MachineLearningStartTrainedModelDeployment = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/deployment/_start" }); internal static ApiUrls MachineLearningStopDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_stop" }); internal static ApiUrls MachineLearningStopDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_stop" }); - internal static ApiUrls MachineLearningStopTrainedModelDeployment = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/deployment/_stop" }); internal static ApiUrls MachineLearningUpdateDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_update" }); internal static ApiUrls MachineLearningUpdateDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_update" }); internal static ApiUrls MachineLearningUpdateFilter = new ApiUrls(new[] { "/_ml/filters/{filter_id}/_update" }); @@ -234,10 +226,7 @@ internal static class ApiUrlsLookups internal static ApiUrls NoNamespaceGetScriptContext = new ApiUrls(new[] { "/_script_context" }); internal static ApiUrls NoNamespaceGetScriptLanguages = new ApiUrls(new[] { "/_script_language" }); internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "/_scripts/{id}" }); - internal static ApiUrls NoNamespaceScriptsPainlessExecute = new ApiUrls(new[] { "/_scripts/painless/_execute" }); internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "/_search/scroll" }); - internal static ApiUrls SearchableSnapshotsCacheStats = new ApiUrls(new[] { "/_searchable_snapshots/cache/stats", "/_searchable_snapshots/{node_id}/cache/stats" }); - internal static ApiUrls SearchableSnapshotsClearCache = new ApiUrls(new[] { "/_searchable_snapshots/cache/clear", "/{index}/_searchable_snapshots/cache/clear" }); internal static ApiUrls SearchableSnapshotsMount = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}/_mount" }); internal static ApiUrls SearchableSnapshotsStats = new ApiUrls(new[] { "/_searchable_snapshots/stats", "/{index}/_searchable_snapshots/stats" }); internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "/_search", "/{index}/_search" }); @@ -300,9 +289,6 @@ internal static class ApiUrlsLookups internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "/_sql/async/status/{id}" }); internal static ApiUrls SqlQuery = new ApiUrls(new[] { "/_sql" }); internal static ApiUrls SecurityCertificates = new ApiUrls(new[] { "/_ssl/certificates" }); - internal static ApiUrls TasksGet = new ApiUrls(new[] { "/_tasks/{task_id}" }); - internal static ApiUrls TasksCancel = new ApiUrls(new[] { "/_tasks/_cancel", "/_tasks/{task_id}/_cancel" }); - internal static ApiUrls TasksList = new ApiUrls(new[] { "/_tasks" }); internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "/{index}/_terms_enum" }); internal static ApiUrls TransformManagementDeleteTransform = new ApiUrls(new[] { "/_transform/{transform_id}" }); internal static ApiUrls TransformManagementGetTransform = new ApiUrls(new[] { "/_transform/{transform_id}", "/_transform" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesResetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesResetFeaturesRequest.g.cs deleted file mode 100644 index 7fdc742eb59..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesResetFeaturesRequest.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.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Features -{ - public class FeaturesResetFeaturesRequestParameters : RequestParameters - { - } - - public partial class FeaturesResetFeaturesRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.FeaturesResetFeatures; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class FeaturesResetFeaturesRequestDescriptor : RequestDescriptorBase - { - internal FeaturesResetFeaturesRequestDescriptor(Action configure) => configure.Invoke(this); - public FeaturesResetFeaturesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.FeaturesResetFeatures; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesResetFeaturesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesResetFeaturesResponse.g.cs deleted file mode 100644 index 8aba9ad6f5f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesResetFeaturesResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Features -{ - public partial class FeaturesResetFeaturesResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("features")] - public IReadOnlyCollection Features { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs deleted file mode 100644 index 4a0846f0b27..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs +++ /dev/null @@ -1,158 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement -{ - public class DiskUsageRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? Flush { get => Q("flush"); set => Q("flush", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.TimeUnit? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.TimeUnit? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? RunExpensiveTasks { get => Q("run_expensive_tasks"); set => Q("run_expensive_tasks", value); } - - [JsonIgnore] - public string? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - } - - public partial class DiskUsageRequest : PlainRequestBase - { - public DiskUsageRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementDiskUsage; - 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 Elastic.Clients.Elasticsearch.ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? Flush { get => Q("flush"); set => Q("flush", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.TimeUnit? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.TimeUnit? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? RunExpensiveTasks { get => Q("run_expensive_tasks"); set => Q("run_expensive_tasks", value); } - - [JsonIgnore] - public string? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - } - - public sealed partial class DiskUsageRequestDescriptor : RequestDescriptorBase, DiskUsageRequestParameters> - { - internal DiskUsageRequestDescriptor(Action> configure) => configure.Invoke(this); - public DiskUsageRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public DiskUsageRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal DiskUsageRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementDiskUsage; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public DiskUsageRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public DiskUsageRequestDescriptor ExpandWildcards(Elastic.Clients.Elasticsearch.ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DiskUsageRequestDescriptor Flush(bool? flush = true) => Qs("flush", flush); - public DiskUsageRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public DiskUsageRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.TimeUnit? masterTimeout) => Qs("master_timeout", masterTimeout); - public DiskUsageRequestDescriptor RunExpensiveTasks(bool? runExpensiveTasks = true) => Qs("run_expensive_tasks", runExpensiveTasks); - public DiskUsageRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.TimeUnit? timeout) => Qs("timeout", timeout); - public DiskUsageRequestDescriptor WaitForActiveShards(string? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public DiskUsageRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class DiskUsageRequestDescriptor : RequestDescriptorBase - { - internal DiskUsageRequestDescriptor(Action configure) => configure.Invoke(this); - public DiskUsageRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal DiskUsageRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementDiskUsage; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public DiskUsageRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public DiskUsageRequestDescriptor ExpandWildcards(Elastic.Clients.Elasticsearch.ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DiskUsageRequestDescriptor Flush(bool? flush = true) => Qs("flush", flush); - public DiskUsageRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public DiskUsageRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.TimeUnit? masterTimeout) => Qs("master_timeout", masterTimeout); - public DiskUsageRequestDescriptor RunExpensiveTasks(bool? runExpensiveTasks = true) => Qs("run_expensive_tasks", runExpensiveTasks); - public DiskUsageRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.TimeUnit? timeout) => Qs("timeout", timeout); - public DiskUsageRequestDescriptor WaitForActiveShards(string? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public DiskUsageRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageResponse.g.cs deleted file mode 100644 index f5f6b5e82ff..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement -{ - public partial class DiskUsageResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs deleted file mode 100644 index 4b685a61ac5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ /dev/null @@ -1,146 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement -{ - public class FieldUsageStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.ExpandWildcards? 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 Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - } - - public partial class FieldUsageStatsRequest : PlainRequestBase - { - public FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementFieldUsageStats; - 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 Elastic.Clients.Elasticsearch.ExpandWildcards? 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 Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - } - - public sealed partial class FieldUsageStatsRequestDescriptor : RequestDescriptorBase, FieldUsageStatsRequestParameters> - { - internal FieldUsageStatsRequestDescriptor(Action> configure) => configure.Invoke(this); - public FieldUsageStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal FieldUsageStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementFieldUsageStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public FieldUsageStatsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FieldUsageStatsRequestDescriptor ExpandWildcards(Elastic.Clients.Elasticsearch.ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public FieldUsageStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); - public FieldUsageStatsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public FieldUsageStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); - public FieldUsageStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); - public FieldUsageStatsRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public FieldUsageStatsRequestDescriptor 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 FieldUsageStatsRequestDescriptor : RequestDescriptorBase - { - internal FieldUsageStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public FieldUsageStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal FieldUsageStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementFieldUsageStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public FieldUsageStatsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FieldUsageStatsRequestDescriptor ExpandWildcards(Elastic.Clients.Elasticsearch.ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public FieldUsageStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); - public FieldUsageStatsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public FieldUsageStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); - public FieldUsageStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); - public FieldUsageStatsRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public FieldUsageStatsRequestDescriptor 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/FieldUsageStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsResponse.g.cs deleted file mode 100644 index 8bc8b395f2f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement -{ - public partial class FieldUsageStatsResponse : 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/KnnSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/KnnSearchRequest.g.cs deleted file mode 100644 index ccf53652829..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/KnnSearchRequest.g.cs +++ /dev/null @@ -1,362 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public class KnnSearchRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - } - - public partial class KnnSearchRequest : PlainRequestBase - { - public KnnSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceKnnSearch; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - [JsonInclude] - [JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.SourceConfig? Source { get; set; } - - [JsonInclude] - [JsonPropertyName("docvalue_fields")] - public IEnumerable? DocvalueFields { get; set; } - - [JsonInclude] - [JsonPropertyName("stored_fields")] - public Elastic.Clients.Elasticsearch.Fields? StoredFields { get; set; } - - [JsonInclude] - [JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Fields? Fields { get; set; } - - [JsonInclude] - [JsonPropertyName("knn")] - public Elastic.Clients.Elasticsearch.Query Knn { get; set; } - } - - public sealed partial class KnnSearchRequestDescriptor : RequestDescriptorBase, KnnSearchRequestParameters> - { - internal KnnSearchRequestDescriptor(Action> configure) => configure.Invoke(this); - public KnnSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal KnnSearchRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceKnnSearch; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public KnnSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); - public KnnSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private IEnumerable? DocvalueFieldsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Query KnnValue { get; set; } - - private QueryDescriptor KnnDescriptor { get; set; } - - private Action> KnnDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.SourceConfig? SourceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Fields? FieldsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } - - public KnnSearchRequestDescriptor DocvalueFields(IEnumerable? docvalueFields) - { - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public KnnSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Query knn) - { - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnValue = knn; - return Self; - } - - public KnnSearchRequestDescriptor Knn(QueryDescriptor descriptor) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptor = descriptor; - return Self; - } - - public KnnSearchRequestDescriptor Knn(Action> configure) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptorAction = configure; - return Self; - } - - public KnnSearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - public KnnSearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - public KnnSearchRequestDescriptor Fields(Expression> fields) - { - FieldsValue = fields; - return Self; - } - - public KnnSearchRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public KnnSearchRequestDescriptor StoredFields(Expression> storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (KnnDescriptor is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnDescriptor, options); - } - else if (KnnDescriptorAction is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, new QueryDescriptor(KnnDescriptorAction), options); - } - else - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnValue, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class KnnSearchRequestDescriptor : RequestDescriptorBase - { - internal KnnSearchRequestDescriptor(Action configure) => configure.Invoke(this); - public KnnSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal KnnSearchRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceKnnSearch; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public KnnSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); - public KnnSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private IEnumerable? DocvalueFieldsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Query KnnValue { get; set; } - - private QueryDescriptor KnnDescriptor { get; set; } - - private Action KnnDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.SourceConfig? SourceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Fields? FieldsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } - - public KnnSearchRequestDescriptor DocvalueFields(IEnumerable? docvalueFields) - { - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public KnnSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Query knn) - { - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnValue = knn; - return Self; - } - - public KnnSearchRequestDescriptor Knn(QueryDescriptor descriptor) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptor = descriptor; - return Self; - } - - public KnnSearchRequestDescriptor Knn(Action configure) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptorAction = configure; - return Self; - } - - public KnnSearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - public KnnSearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - public KnnSearchRequestDescriptor Fields(Expression> fields) - { - FieldsValue = fields; - return Self; - } - - public KnnSearchRequestDescriptor Fields(Expression> fields) - { - FieldsValue = fields; - return Self; - } - - public KnnSearchRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public KnnSearchRequestDescriptor StoredFields(Expression> storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public KnnSearchRequestDescriptor StoredFields(Expression> storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (KnnDescriptor is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnDescriptor, options); - } - else if (KnnDescriptorAction is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, new QueryDescriptor(KnnDescriptorAction), options); - } - else - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnValue, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/KnnSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/KnnSearchResponse.g.cs deleted file mode 100644 index 97e4d94471c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/KnnSearchResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public partial class KnnSearchResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("fields")] - public Dictionary? Fields { get; init; } - - [JsonInclude] - [JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.HitsMetadata Hits { get; init; } - - [JsonInclude] - [JsonPropertyName("max_score")] - public double? MaxScore { get; init; } - - [JsonInclude] - [JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - - [JsonInclude] - [JsonPropertyName("took")] - public long Took { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInferTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInferTrainedModelDeploymentRequest.g.cs deleted file mode 100644 index 52d8ffdbe28..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInferTrainedModelDeploymentRequest.g.cs +++ /dev/null @@ -1,88 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public class MlInferTrainedModelDeploymentRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public partial class MlInferTrainedModelDeploymentRequest : PlainRequestBase - { - public MlInferTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningInferTrainedModelDeployment; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("docs")] - public IEnumerable> Docs { get; set; } - } - - public sealed partial class MlInferTrainedModelDeploymentRequestDescriptor : RequestDescriptorBase - { - internal MlInferTrainedModelDeploymentRequestDescriptor(Action configure) => configure.Invoke(this); - public MlInferTrainedModelDeploymentRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal MlInferTrainedModelDeploymentRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningInferTrainedModelDeployment; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlInferTrainedModelDeploymentRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); - public MlInferTrainedModelDeploymentRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - private IEnumerable> DocsValue { get; set; } - - public MlInferTrainedModelDeploymentRequestDescriptor Docs(IEnumerable> docs) - { - DocsValue = docs; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInferTrainedModelDeploymentResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInferTrainedModelDeploymentResponse.g.cs deleted file mode 100644 index 5db306b3459..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInferTrainedModelDeploymentResponse.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class MlInferTrainedModelDeploymentResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("entities")] - public IReadOnlyCollection? Entities { get; init; } - - [JsonInclude] - [JsonPropertyName("is_truncated")] - public bool? IsTruncated { get; init; } - - [JsonInclude] - [JsonPropertyName("predicted_value")] - public IReadOnlyCollection? PredictedValue { get; init; } - - [JsonInclude] - [JsonPropertyName("predicted_value_sequence")] - public string? PredictedValueSequence { get; init; } - - [JsonInclude] - [JsonPropertyName("prediction_probability")] - public double? PredictionProbability { get; init; } - - [JsonInclude] - [JsonPropertyName("top_classes")] - public IReadOnlyCollection TopClasses { get; init; } - - [JsonInclude] - [JsonPropertyName("warning")] - public string? Warning { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelVocabularyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelVocabularyRequest.g.cs deleted file mode 100644 index 447d7b27f8a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelVocabularyRequest.g.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public class MlPutTrainedModelVocabularyRequestParameters : RequestParameters - { - } - - public partial class MlPutTrainedModelVocabularyRequest : PlainRequestBase - { - public MlPutTrainedModelVocabularyRequest(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutTrainedModelVocabulary; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("vocabulary")] - public IEnumerable Vocabulary { get; set; } - } - - public sealed partial class MlPutTrainedModelVocabularyRequestDescriptor : RequestDescriptorBase - { - internal MlPutTrainedModelVocabularyRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutTrainedModelVocabularyRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal MlPutTrainedModelVocabularyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutTrainedModelVocabulary; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutTrainedModelVocabularyRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - private IEnumerable VocabularyValue { get; set; } - - public MlPutTrainedModelVocabularyRequestDescriptor Vocabulary(IEnumerable vocabulary) - { - VocabularyValue = vocabulary; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelVocabularyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelVocabularyResponse.g.cs deleted file mode 100644 index d54a21c7bbb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelVocabularyResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class MlPutTrainedModelVocabularyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartTrainedModelDeploymentRequest.g.cs deleted file mode 100644 index 0b2fe45ae93..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartTrainedModelDeploymentRequest.g.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public class MlStartTrainedModelDeploymentRequestParameters : RequestParameters - { - [JsonIgnore] - public int? InferenceThreads { get => Q("inference_threads"); set => Q("inference_threads", value); } - - [JsonIgnore] - public int? ModelThreads { get => Q("model_threads"); set => Q("model_threads", value); } - - [JsonIgnore] - public int? QueueCapacity { get => Q("queue_capacity"); set => Q("queue_capacity", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Ml.DeploymentState? WaitFor { get => Q("wait_for"); set => Q("wait_for", value); } - } - - public partial class MlStartTrainedModelDeploymentRequest : PlainRequestBase - { - public MlStartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStartTrainedModelDeployment; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public int? InferenceThreads { get => Q("inference_threads"); set => Q("inference_threads", value); } - - [JsonIgnore] - public int? ModelThreads { get => Q("model_threads"); set => Q("model_threads", value); } - - [JsonIgnore] - public int? QueueCapacity { get => Q("queue_capacity"); set => Q("queue_capacity", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Ml.DeploymentState? WaitFor { get => Q("wait_for"); set => Q("wait_for", value); } - } - - public sealed partial class MlStartTrainedModelDeploymentRequestDescriptor : RequestDescriptorBase - { - internal MlStartTrainedModelDeploymentRequestDescriptor(Action configure) => configure.Invoke(this); - public MlStartTrainedModelDeploymentRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal MlStartTrainedModelDeploymentRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStartTrainedModelDeployment; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlStartTrainedModelDeploymentRequestDescriptor InferenceThreads(int? inferenceThreads) => Qs("inference_threads", inferenceThreads); - public MlStartTrainedModelDeploymentRequestDescriptor ModelThreads(int? modelThreads) => Qs("model_threads", modelThreads); - public MlStartTrainedModelDeploymentRequestDescriptor QueueCapacity(int? queueCapacity) => Qs("queue_capacity", queueCapacity); - public MlStartTrainedModelDeploymentRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); - public MlStartTrainedModelDeploymentRequestDescriptor WaitFor(Elastic.Clients.Elasticsearch.Ml.DeploymentState? waitFor) => Qs("wait_for", waitFor); - public MlStartTrainedModelDeploymentRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartTrainedModelDeploymentResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartTrainedModelDeploymentResponse.g.cs deleted file mode 100644 index 346d98ac2b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartTrainedModelDeploymentResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class MlStartTrainedModelDeploymentResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("allocation")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelAllocation Allocation { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopTrainedModelDeploymentRequest.g.cs deleted file mode 100644 index 08a7435ff3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopTrainedModelDeploymentRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public class MlStopTrainedModelDeploymentRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - } - - public partial class MlStopTrainedModelDeploymentRequest : PlainRequestBase - { - public MlStopTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStopTrainedModelDeployment; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - } - - public sealed partial class MlStopTrainedModelDeploymentRequestDescriptor : RequestDescriptorBase - { - internal MlStopTrainedModelDeploymentRequestDescriptor(Action configure) => configure.Invoke(this); - public MlStopTrainedModelDeploymentRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal MlStopTrainedModelDeploymentRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStopTrainedModelDeployment; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlStopTrainedModelDeploymentRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlStopTrainedModelDeploymentRequestDescriptor Force(bool? force = true) => Qs("force", force); - public MlStopTrainedModelDeploymentRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopTrainedModelDeploymentResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopTrainedModelDeploymentResponse.g.cs deleted file mode 100644 index 78fc60e3c75..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopTrainedModelDeploymentResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class MlStopTrainedModelDeploymentResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("stopped")] - public bool Stopped { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs deleted file mode 100644 index d553c513518..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public class ScriptsPainlessExecuteRequestParameters : RequestParameters - { - } - - public partial class ScriptsPainlessExecuteRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceScriptsPainlessExecute; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("context")] - public string? Context { get; set; } - - [JsonInclude] - [JsonPropertyName("context_setup")] - public Elastic.Clients.Elasticsearch.PainlessContextSetup? ContextSetup { get; set; } - - [JsonInclude] - [JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.InlineScript? Script { get; set; } - } - - public sealed partial class ScriptsPainlessExecuteRequestDescriptor : RequestDescriptorBase, ScriptsPainlessExecuteRequestParameters> - { - internal ScriptsPainlessExecuteRequestDescriptor(Action> configure) => configure.Invoke(this); - public ScriptsPainlessExecuteRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceScriptsPainlessExecute; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.PainlessContextSetup? ContextSetupValue { get; set; } - - private PainlessContextSetupDescriptor ContextSetupDescriptor { get; set; } - - private Action> ContextSetupDescriptorAction { get; set; } - - private string? ContextValue { get; set; } - - private Elastic.Clients.Elasticsearch.InlineScript? ScriptValue { get; set; } - - private InlineScriptDescriptor ScriptDescriptor { get; set; } - - private Action ScriptDescriptorAction { get; set; } - - public ScriptsPainlessExecuteRequestDescriptor ContextSetup(Elastic.Clients.Elasticsearch.PainlessContextSetup? contextSetup) - { - ContextSetupDescriptor = null; - ContextSetupDescriptorAction = null; - ContextSetupValue = contextSetup; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor ContextSetup(PainlessContextSetupDescriptor descriptor) - { - ContextSetupValue = null; - ContextSetupDescriptorAction = null; - ContextSetupDescriptor = descriptor; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor ContextSetup(Action> configure) - { - ContextSetupValue = null; - ContextSetupDescriptorAction = null; - ContextSetupDescriptorAction = configure; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor Context(string? context) - { - ContextValue = context; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor Script(Elastic.Clients.Elasticsearch.InlineScript? script) - { - ScriptDescriptor = null; - ScriptDescriptorAction = null; - ScriptValue = script; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor Script(InlineScriptDescriptor descriptor) - { - ScriptValue = null; - ScriptDescriptorAction = null; - ScriptDescriptor = descriptor; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor Script(Action configure) - { - ScriptValue = null; - ScriptDescriptorAction = null; - ScriptDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ContextSetupDescriptor is not null) - { - writer.WritePropertyName("context_setup"); - JsonSerializer.Serialize(writer, ContextSetupDescriptor, options); - } - else if (ContextSetupDescriptorAction is not null) - { - writer.WritePropertyName("context_setup"); - JsonSerializer.Serialize(writer, new PainlessContextSetupDescriptor(ContextSetupDescriptorAction), options); - } - else if (ContextSetupValue is not null) - { - writer.WritePropertyName("context_setup"); - JsonSerializer.Serialize(writer, ContextSetupValue, options); - } - - if (!string.IsNullOrEmpty(ContextValue)) - { - writer.WritePropertyName("context"); - writer.WriteStringValue(ContextValue); - } - - if (ScriptDescriptor is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptDescriptor, options); - } - else if (ScriptDescriptorAction is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, new InlineScriptDescriptor(ScriptDescriptorAction), options); - } - else if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class ScriptsPainlessExecuteRequestDescriptor : RequestDescriptorBase - { - internal ScriptsPainlessExecuteRequestDescriptor(Action configure) => configure.Invoke(this); - public ScriptsPainlessExecuteRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceScriptsPainlessExecute; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.PainlessContextSetup? ContextSetupValue { get; set; } - - private PainlessContextSetupDescriptor ContextSetupDescriptor { get; set; } - - private Action ContextSetupDescriptorAction { get; set; } - - private string? ContextValue { get; set; } - - private Elastic.Clients.Elasticsearch.InlineScript? ScriptValue { get; set; } - - private InlineScriptDescriptor ScriptDescriptor { get; set; } - - private Action ScriptDescriptorAction { get; set; } - - public ScriptsPainlessExecuteRequestDescriptor ContextSetup(Elastic.Clients.Elasticsearch.PainlessContextSetup? contextSetup) - { - ContextSetupDescriptor = null; - ContextSetupDescriptorAction = null; - ContextSetupValue = contextSetup; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor ContextSetup(PainlessContextSetupDescriptor descriptor) - { - ContextSetupValue = null; - ContextSetupDescriptorAction = null; - ContextSetupDescriptor = descriptor; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor ContextSetup(Action configure) - { - ContextSetupValue = null; - ContextSetupDescriptorAction = null; - ContextSetupDescriptorAction = configure; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor Context(string? context) - { - ContextValue = context; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor Script(Elastic.Clients.Elasticsearch.InlineScript? script) - { - ScriptDescriptor = null; - ScriptDescriptorAction = null; - ScriptValue = script; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor Script(InlineScriptDescriptor descriptor) - { - ScriptValue = null; - ScriptDescriptorAction = null; - ScriptDescriptor = descriptor; - return Self; - } - - public ScriptsPainlessExecuteRequestDescriptor Script(Action configure) - { - ScriptValue = null; - ScriptDescriptorAction = null; - ScriptDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ContextSetupDescriptor is not null) - { - writer.WritePropertyName("context_setup"); - JsonSerializer.Serialize(writer, ContextSetupDescriptor, options); - } - else if (ContextSetupDescriptorAction is not null) - { - writer.WritePropertyName("context_setup"); - JsonSerializer.Serialize(writer, new PainlessContextSetupDescriptor(ContextSetupDescriptorAction), options); - } - else if (ContextSetupValue is not null) - { - writer.WritePropertyName("context_setup"); - JsonSerializer.Serialize(writer, ContextSetupValue, options); - } - - if (!string.IsNullOrEmpty(ContextValue)) - { - writer.WritePropertyName("context"); - writer.WriteStringValue(ContextValue); - } - - if (ScriptDescriptor is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptDescriptor, options); - } - else if (ScriptDescriptorAction is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, new InlineScriptDescriptor(ScriptDescriptorAction), options); - } - else if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteResponse.g.cs deleted file mode 100644 index 0083bd0ceea..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public partial class ScriptsPainlessExecuteResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("result")] - public TResult Result { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsCacheStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsCacheStatsRequest.g.cs deleted file mode 100644 index 1b0e1185c8f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsCacheStatsRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public class SearchableSnapshotsCacheStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public partial class SearchableSnapshotsCacheStatsRequest : PlainRequestBase - { - public SearchableSnapshotsCacheStatsRequest() - { - } - - public SearchableSnapshotsCacheStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id) : base(r => r.Optional("node_id", node_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsCacheStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class SearchableSnapshotsCacheStatsRequestDescriptor : RequestDescriptorBase - { - internal SearchableSnapshotsCacheStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public SearchableSnapshotsCacheStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsCacheStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SearchableSnapshotsCacheStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); - public SearchableSnapshotsCacheStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsCacheStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsCacheStatsResponse.g.cs deleted file mode 100644 index f295e20c9fc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsCacheStatsResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public partial class SearchableSnapshotsCacheStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsClearCacheRequest.g.cs deleted file mode 100644 index 80eaf89c8d5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsClearCacheRequest.g.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public class SearchableSnapshotsClearCacheRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - } - - public partial class SearchableSnapshotsClearCacheRequest : PlainRequestBase - { - public SearchableSnapshotsClearCacheRequest() - { - } - - public SearchableSnapshotsClearCacheRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsClearCache; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - } - - public sealed partial class SearchableSnapshotsClearCacheRequestDescriptor : RequestDescriptorBase, SearchableSnapshotsClearCacheRequestParameters> - { - internal SearchableSnapshotsClearCacheRequestDescriptor(Action> configure) => configure.Invoke(this); - public SearchableSnapshotsClearCacheRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsClearCache; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public SearchableSnapshotsClearCacheRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SearchableSnapshotsClearCacheRequestDescriptor ExpandWildcards(Elastic.Clients.Elasticsearch.ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SearchableSnapshotsClearCacheRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SearchableSnapshotsClearCacheRequestDescriptor 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 SearchableSnapshotsClearCacheRequestDescriptor : RequestDescriptorBase - { - internal SearchableSnapshotsClearCacheRequestDescriptor(Action configure) => configure.Invoke(this); - public SearchableSnapshotsClearCacheRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsClearCache; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public SearchableSnapshotsClearCacheRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SearchableSnapshotsClearCacheRequestDescriptor ExpandWildcards(Elastic.Clients.Elasticsearch.ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SearchableSnapshotsClearCacheRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SearchableSnapshotsClearCacheRequestDescriptor 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/SearchableSnapshots/SearchableSnapshotsClearCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsClearCacheResponse.g.cs deleted file mode 100644 index 0693befc249..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsClearCacheResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public partial class SearchableSnapshotsClearCacheResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs deleted file mode 100644 index 3d48bbf173b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public class GetTasksRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public partial class GetTasksRequest : PlainRequestBase - { - public GetTasksRequest(Elastic.Clients.Elasticsearch.Id task_id) : base(r => r.Required("task_id", task_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TasksGet; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class GetTasksRequestDescriptor : RequestDescriptorBase - { - internal GetTasksRequestDescriptor(Action configure) => configure.Invoke(this); - public GetTasksRequestDescriptor(Elastic.Clients.Elasticsearch.Id task_id) : base(r => r.Required("task_id", task_id)) - { - } - - internal GetTasksRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TasksGet; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public GetTasksRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); - public GetTasksRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public GetTasksRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Id task_id) - { - RouteValues.Required("task_id", task_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksResponse.g.cs deleted file mode 100644 index 00f6fa852c5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksResponse.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.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public partial class GetTasksResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("completed")] - public bool Completed { get; init; } - - [JsonInclude] - [JsonPropertyName("response")] - public Elastic.Clients.Elasticsearch.Tasks.TaskStatus? Response { get; init; } - - [JsonInclude] - [JsonPropertyName("task")] - public Elastic.Clients.Elasticsearch.Tasks.TaskInfo Task { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksCancelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksCancelRequest.g.cs deleted file mode 100644 index c1490200ad1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksCancelRequest.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public class TasksCancelRequestParameters : RequestParameters - { - [JsonIgnore] - public IEnumerable? Actions { get => Q?>("actions"); set => Q("actions", value); } - - [JsonIgnore] - public IEnumerable? Nodes { get => Q?>("nodes"); set => Q("nodes", value); } - - [JsonIgnore] - public string? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public partial class TasksCancelRequest : PlainRequestBase - { - public TasksCancelRequest() - { - } - - public TasksCancelRequest(Elastic.Clients.Elasticsearch.TaskId? task_id) : base(r => r.Optional("task_id", task_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TasksCancel; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public IEnumerable? Actions { get => Q?>("actions"); set => Q("actions", value); } - - [JsonIgnore] - public IEnumerable? Nodes { get => Q?>("nodes"); set => Q("nodes", value); } - - [JsonIgnore] - public string? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class TasksCancelRequestDescriptor : RequestDescriptorBase - { - internal TasksCancelRequestDescriptor(Action configure) => configure.Invoke(this); - public TasksCancelRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TasksCancel; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public TasksCancelRequestDescriptor Actions(IEnumerable? actions) => Qs("actions", actions); - public TasksCancelRequestDescriptor Nodes(IEnumerable? nodes) => Qs("nodes", nodes); - public TasksCancelRequestDescriptor ParentTaskId(string? parentTaskId) => Qs("parent_task_id", parentTaskId); - public TasksCancelRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public TasksCancelRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.TaskId? task_id) - { - RouteValues.Optional("task_id", task_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksCancelResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksCancelResponse.g.cs deleted file mode 100644 index b21b079f5cd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksCancelResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public partial class TasksCancelResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("node_failures")] - public IReadOnlyCollection? NodeFailures { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary? Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("task_failures")] - public IReadOnlyCollection? TaskFailures { get; init; } - - [JsonInclude] - [JsonPropertyName("tasks")] - public Elastic.Clients.Elasticsearch.Tasks.TaskInfos? Tasks { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksListRequest.g.cs deleted file mode 100644 index bdc239e424d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksListRequest.g.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public class TasksListRequestParameters : RequestParameters - { - [JsonIgnore] - public IEnumerable? Actions { get => Q?>("actions"); set => Q("actions", value); } - - [JsonIgnore] - public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Tasks.GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } - - [JsonIgnore] - public IEnumerable? NodeId { get => Q?>("node_id"); set => Q("node_id", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Id? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public partial class TasksListRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.TasksList; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public IEnumerable? Actions { get => Q?>("actions"); set => Q("actions", value); } - - [JsonIgnore] - public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Tasks.GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } - - [JsonIgnore] - public IEnumerable? NodeId { get => Q?>("node_id"); set => Q("node_id", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Id? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Time? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class TasksListRequestDescriptor : RequestDescriptorBase - { - internal TasksListRequestDescriptor(Action configure) => configure.Invoke(this); - public TasksListRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TasksList; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public TasksListRequestDescriptor Actions(IEnumerable? actions) => Qs("actions", actions); - public TasksListRequestDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); - public TasksListRequestDescriptor GroupBy(Elastic.Clients.Elasticsearch.Tasks.GroupBy? groupBy) => Qs("group_by", groupBy); - public TasksListRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Time? masterTimeout) => Qs("master_timeout", masterTimeout); - public TasksListRequestDescriptor NodeId(IEnumerable? nodeId) => Qs("node_id", nodeId); - public TasksListRequestDescriptor ParentTaskId(Elastic.Clients.Elasticsearch.Id? parentTaskId) => Qs("parent_task_id", parentTaskId); - public TasksListRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Time? timeout) => Qs("timeout", timeout); - public TasksListRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - 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/Tasks/TasksListResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksListResponse.g.cs deleted file mode 100644 index 04e69e431ec..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/TasksListResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public partial class TasksListResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("node_failures")] - public IReadOnlyCollection? NodeFailures { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary? Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("task_failures")] - public IReadOnlyCollection? TaskFailures { get; init; } - - [JsonInclude] - [JsonPropertyName("tasks")] - public Elastic.Clients.Elasticsearch.Tasks.TaskInfos? Tasks { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs index f23e0efaa24..0c0d13b6579 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs @@ -55,33 +55,5 @@ public Task GetFeaturesAsync(Action(descriptor); } - - public FeaturesResetFeaturesResponse ResetFeatures(FeaturesResetFeaturesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ResetFeaturesAsync(FeaturesResetFeaturesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public FeaturesResetFeaturesResponse ResetFeatures(Action configureRequest = null) - { - var descriptor = new FeaturesResetFeaturesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ResetFeaturesAsync(Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new FeaturesResetFeaturesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } } } \ 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 e38294a104d..93e48ac87a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -420,34 +420,6 @@ public Task DeleteTemplateAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor); } - public DiskUsageResponse DiskUsage(DiskUsageRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DiskUsageAsync(DiskUsageRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null) - { - var descriptor = new DiskUsageRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DiskUsageAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new DiskUsageRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public ExistsAliasResponse ExistsAlias(ExistsAliasRequest request) { request.BeforeRequest(); @@ -588,34 +560,6 @@ public Task GetFieldMappingAsync(Elastic.Clients.Elasticse return DoRequestAsync(descriptor); } - public FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task FieldUsageStatsAsync(FieldUsageStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest = null) - { - var descriptor = new FieldUsageStatsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new FieldUsageStatsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public FlushResponse Flush(FlushRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs index 74b9ff16502..39acd73e5fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -784,34 +784,6 @@ public Task GetTrainedModelsStatsAsync(Action(descriptor); } - public MlInferTrainedModelDeploymentResponse InferTrainedModelDeployment(MlInferTrainedModelDeploymentRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task InferTrainedModelDeploymentAsync(MlInferTrainedModelDeploymentRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlInferTrainedModelDeploymentResponse InferTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest = null) - { - var descriptor = new MlInferTrainedModelDeploymentRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task InferTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new MlInferTrainedModelDeploymentRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public MlInfoResponse Info(MlInfoRequest request) { request.BeforeRequest(); @@ -1176,34 +1148,6 @@ public Task PutTrainedModelAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor); } - public MlPutTrainedModelVocabularyResponse PutTrainedModelVocabulary(MlPutTrainedModelVocabularyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutTrainedModelVocabularyAsync(MlPutTrainedModelVocabularyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutTrainedModelVocabularyResponse PutTrainedModelVocabulary(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest = null) - { - var descriptor = new MlPutTrainedModelVocabularyRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutTrainedModelVocabularyAsync(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutTrainedModelVocabularyRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public MlResetJobResponse ResetJob(MlResetJobRequest request) { request.BeforeRequest(); @@ -1344,34 +1288,6 @@ public Task StartDataFrameAnalyticsAsync(Elas return DoRequestAsync(descriptor); } - public MlStartTrainedModelDeploymentResponse StartTrainedModelDeployment(MlStartTrainedModelDeploymentRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StartTrainedModelDeploymentAsync(MlStartTrainedModelDeploymentRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlStartTrainedModelDeploymentResponse StartTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest = null) - { - var descriptor = new MlStartTrainedModelDeploymentRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StartTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new MlStartTrainedModelDeploymentRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public MlStopDatafeedResponse StopDatafeed(MlStopDatafeedRequest request) { request.BeforeRequest(); @@ -1428,34 +1344,6 @@ public Task StopDataFrameAnalyticsAsync(Elasti return DoRequestAsync(descriptor); } - public MlStopTrainedModelDeploymentResponse StopTrainedModelDeployment(MlStopTrainedModelDeploymentRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StopTrainedModelDeploymentAsync(MlStopTrainedModelDeploymentRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlStopTrainedModelDeploymentResponse StopTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest = null) - { - var descriptor = new MlStopTrainedModelDeploymentRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StopTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new MlStopTrainedModelDeploymentRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public MlUpdateDatafeedResponse UpdateDatafeed(MlUpdateDatafeedRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs index 83785282b7e..1388d27e9c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs @@ -28,62 +28,6 @@ internal SearchableSnapshotsNamespace(ElasticsearchClient client) : base(client) { } - public SearchableSnapshotsCacheStatsResponse CacheStats(SearchableSnapshotsCacheStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task CacheStatsAsync(SearchableSnapshotsCacheStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SearchableSnapshotsCacheStatsResponse CacheStats(Action configureRequest = null) - { - var descriptor = new SearchableSnapshotsCacheStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task CacheStatsAsync(Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new SearchableSnapshotsCacheStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SearchableSnapshotsClearCacheResponse ClearCache(SearchableSnapshotsClearCacheRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ClearCacheAsync(SearchableSnapshotsClearCacheRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SearchableSnapshotsClearCacheResponse ClearCache(Action configureRequest = null) - { - var descriptor = new SearchableSnapshotsClearCacheRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ClearCacheAsync(Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new SearchableSnapshotsClearCacheRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public SearchableSnapshotsMountResponse Mount(SearchableSnapshotsMountRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs deleted file mode 100644 index 58714d942a4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.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 System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public class TasksNamespace : NamespacedClientProxy - { - internal TasksNamespace(ElasticsearchClient client) : base(client) - { - } - - public GetTasksResponse Get(GetTasksRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetAsync(GetTasksRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest = null) - { - var descriptor = new GetTasksRequestDescriptor(task_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetAsync(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new GetTasksRequestDescriptor(task_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public TasksCancelResponse Cancel(TasksCancelRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task CancelAsync(TasksCancelRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TasksCancelResponse Cancel(Action configureRequest = null) - { - var descriptor = new TasksCancelRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task CancelAsync(Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new TasksCancelRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public TasksListResponse List(TasksListRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ListAsync(TasksListRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TasksListResponse List(Action configureRequest = null) - { - var descriptor = new TasksListRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ListAsync(Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new TasksListRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index 493cadfff20..43b05938810 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -38,7 +38,6 @@ using Elastic.Clients.Elasticsearch.Snapshot; using Elastic.Clients.Elasticsearch.Sql; using Elastic.Clients.Elasticsearch.Ssl; -using Elastic.Clients.Elasticsearch.Tasks; using Elastic.Clients.Elasticsearch.TransformManagement; using Elastic.Clients.Elasticsearch.Xpack; using System; @@ -96,8 +95,6 @@ public partial class ElasticsearchClient public SslNamespace Ssl { get; private set; } - public TasksNamespace Tasks { get; private set; } - public TransformManagementNamespace TransformManagement { get; private set; } public XpackNamespace Xpack { get; private set; } @@ -127,7 +124,6 @@ private partial void SetupNamespaces() Snapshot = new SnapshotNamespace(this); Sql = new SqlNamespace(this); Ssl = new SslNamespace(this); - Tasks = new TasksNamespace(this); TransformManagement = new TransformManagementNamespace(this); Xpack = new XpackNamespace(this); } @@ -580,34 +576,6 @@ public Task InfoAsync(Action configureReque return DoRequestAsync(descriptor); } - public KnnSearchResponse KnnSearch(KnnSearchRequest request) - { - request.BeforeRequest(); - return DoRequest>(request); - } - - public Task> KnnSearchAsync(KnnSearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync>(request, cancellationToken); - } - - public KnnSearchResponse KnnSearch(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest = null) - { - var descriptor = new KnnSearchRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, KnnSearchResponse>(descriptor); - } - - public Task> KnnSearchAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new KnnSearchRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, KnnSearchResponse>(descriptor); - } - public OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) { request.BeforeRequest(); @@ -876,34 +844,6 @@ public Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, return DoRequestAsync(descriptor); } - public ScriptsPainlessExecuteResponse ScriptsPainlessExecute(ScriptsPainlessExecuteRequest request) - { - request.BeforeRequest(); - return DoRequest>(request); - } - - public Task> ScriptsPainlessExecuteAsync(ScriptsPainlessExecuteRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync>(request, cancellationToken); - } - - public ScriptsPainlessExecuteResponse ScriptsPainlessExecute(Action configureRequest = null) - { - var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest>(descriptor); - } - - public Task> ScriptsPainlessExecuteAsync(Action configureRequest = null, CancellationToken cancellationToken = default) - { - var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync>(descriptor); - } - public ScrollResponse Scroll(ScrollRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ml.g.cs index 5052e86b009..b21d0b5557c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ml.g.cs @@ -290,55 +290,6 @@ public override void Write(Utf8JsonWriter writer, DataframeState value, JsonSeri } } - [JsonConverter(typeof(DeploymentStateConverter))] - public enum DeploymentState - { - [EnumMember(Value = "starting")] - Starting, - [EnumMember(Value = "started")] - Started, - [EnumMember(Value = "fully_allocated")] - FullyAllocated - } - - internal sealed class DeploymentStateConverter : JsonConverter - { - public override DeploymentState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "starting": - return DeploymentState.Starting; - case "started": - return DeploymentState.Started; - case "fully_allocated": - return DeploymentState.FullyAllocated; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DeploymentState value, JsonSerializerOptions options) - { - switch (value) - { - case DeploymentState.Starting: - writer.WriteStringValue("starting"); - return; - case DeploymentState.Started: - writer.WriteStringValue("started"); - return; - case DeploymentState.FullyAllocated: - writer.WriteStringValue("fully_allocated"); - return; - } - - writer.WriteNullValue(); - } - } - [JsonConverter(typeof(ExcludeFrequentConverter))] public enum ExcludeFrequent { @@ -549,69 +500,6 @@ public override void Write(Utf8JsonWriter writer, MemoryStatus value, JsonSerial } } - [JsonConverter(typeof(RoutingStateConverter))] - public enum RoutingState - { - [EnumMember(Value = "stopping")] - Stopping, - [EnumMember(Value = "stopped")] - Stopped, - [EnumMember(Value = "starting")] - Starting, - [EnumMember(Value = "started")] - Started, - [EnumMember(Value = "failed")] - Failed - } - - internal sealed class RoutingStateConverter : JsonConverter - { - public override RoutingState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return RoutingState.Stopping; - case "stopped": - return RoutingState.Stopped; - case "starting": - return RoutingState.Starting; - case "started": - return RoutingState.Started; - case "failed": - return RoutingState.Failed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, RoutingState value, JsonSerializerOptions options) - { - switch (value) - { - case RoutingState.Stopping: - writer.WriteStringValue("stopping"); - return; - case RoutingState.Stopped: - writer.WriteStringValue("stopped"); - return; - case RoutingState.Starting: - writer.WriteStringValue("starting"); - return; - case RoutingState.Started: - writer.WriteStringValue("started"); - return; - case RoutingState.Failed: - writer.WriteStringValue("failed"); - return; - } - - writer.WriteNullValue(); - } - } - [JsonConverter(typeof(RuleActionConverter))] public enum RuleAction { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Tasks.g.cs deleted file mode 100644 index 74f632943cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Tasks.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - [JsonConverter(typeof(GroupByConverter))] - public enum GroupBy - { - [EnumMember(Value = "parents")] - Parents, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "nodes")] - Nodes - } - - internal sealed class GroupByConverter : JsonConverter - { - public override GroupBy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "parents": - return GroupBy.Parents; - case "none": - return GroupBy.None; - case "nodes": - return GroupBy.Nodes; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GroupBy value, JsonSerializerOptions options) - { - switch (value) - { - case GroupBy.Parents: - writer.WriteStringValue("parents"); - return; - case GroupBy.None: - writer.WriteStringValue("none"); - return; - case GroupBy.Nodes: - writer.WriteStringValue("nodes"); - return; - } - - writer.WriteNullValue(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/PredictedValue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/PredictedValue.g.cs deleted file mode 100644 index 6069254f5ff..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/PredictedValue.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.Transport; -using System; -using System.Collections.Generic; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class PredictedValue : Union - { - public PredictedValue(string? item) : base(item) - { - } - - public PredictedValue(double? item) : base(item) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TopClassEntry.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TopClassEntry.g.cs deleted file mode 100644 index 130ba5fc5da..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TopClassEntry.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class TopClassEntry - { - [JsonInclude] - [JsonPropertyName("class_name")] - public string ClassName { get; init; } - - [JsonInclude] - [JsonPropertyName("class_probability")] - public double ClassProbability { get; init; } - - [JsonInclude] - [JsonPropertyName("class_score")] - public double ClassScore { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocation.g.cs deleted file mode 100644 index 8fb0e5f79e8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocation.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class TrainedModelAllocation - { - [JsonInclude] - [JsonPropertyName("allocation_state")] - public Elastic.Clients.Elasticsearch.Ml.DeploymentState AllocationState { get; init; } - - [JsonInclude] - [JsonPropertyName("routing_table")] - public Dictionary RoutingTable { get; init; } - - [JsonInclude] - [JsonPropertyName("start_time")] - public string StartTime { get; init; } - - [JsonInclude] - [JsonPropertyName("task_parameters")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelAllocationTaskParameters TaskParameters { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocationRoutingTable.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocationRoutingTable.g.cs deleted file mode 100644 index f3f563ab541..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocationRoutingTable.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class TrainedModelAllocationRoutingTable - { - [JsonInclude] - [JsonPropertyName("reason")] - public string Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("routing_state")] - public Elastic.Clients.Elasticsearch.Ml.RoutingState RoutingState { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocationTaskParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocationTaskParameters.g.cs deleted file mode 100644 index b9f611d688e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAllocationTaskParameters.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class TrainedModelAllocationTaskParameters - { - [JsonInclude] - [JsonPropertyName("model_bytes")] - public int ModelBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("model_id")] - public string ModelId { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelEntities.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelEntities.g.cs deleted file mode 100644 index 9124486900d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelEntities.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class TrainedModelEntities - { - [JsonInclude] - [JsonPropertyName("class_name")] - public string ClassName { get; init; } - - [JsonInclude] - [JsonPropertyName("class_probability")] - public double ClassProbability { get; init; } - - [JsonInclude] - [JsonPropertyName("end_pos")] - public int EndPos { get; init; } - - [JsonInclude] - [JsonPropertyName("entity")] - public string Entity { get; init; } - - [JsonInclude] - [JsonPropertyName("start_pos")] - public int StartPos { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PainlessContextSetup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/PainlessContextSetup.g.cs deleted file mode 100644 index 419161a258b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PainlessContextSetup.g.cs +++ /dev/null @@ -1,197 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public partial class PainlessContextSetup - { - [JsonInclude] - [JsonPropertyName("document")] - public object Document { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer Query { get; set; } - } - - public sealed partial class PainlessContextSetupDescriptor : DescriptorBase> - { - internal PainlessContextSetupDescriptor(Action> configure) => configure.Invoke(this); - public PainlessContextSetupDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private object DocumentValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - public PainlessContextSetupDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public PainlessContextSetupDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public PainlessContextSetupDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptorAction = configure; - return Self; - } - - public PainlessContextSetupDescriptor Document(object document) - { - DocumentValue = document; - return Self; - } - - public PainlessContextSetupDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - 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 - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class PainlessContextSetupDescriptor : DescriptorBase - { - internal PainlessContextSetupDescriptor(Action configure) => configure.Invoke(this); - public PainlessContextSetupDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private object DocumentValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - public PainlessContextSetupDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public PainlessContextSetupDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public PainlessContextSetupDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptorAction = configure; - return Self; - } - - public PainlessContextSetupDescriptor Document(object document) - { - DocumentValue = document; - return Self; - } - - public PainlessContextSetupDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - 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 - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Query.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Query.g.cs deleted file mode 100644 index bbc19ec314f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Query.g.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public partial class Query - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("k")] - public long k { get; set; } - - [JsonInclude] - [JsonPropertyName("num_candidates")] - public long NumCandidates { get; set; } - - [JsonInclude] - [JsonPropertyName("query_vector")] - public IEnumerable QueryVector { get; set; } - } - - public sealed partial class QueryDescriptor : DescriptorBase> - { - internal QueryDescriptor(Action> configure) => configure.Invoke(this); - public QueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private long kValue { get; set; } - - private long NumCandidatesValue { get; set; } - - private IEnumerable QueryVectorValue { get; set; } - - public QueryDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public QueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public QueryDescriptor k(long k) - { - kValue = k; - return Self; - } - - public QueryDescriptor NumCandidates(long numCandidates) - { - NumCandidatesValue = numCandidates; - return Self; - } - - public QueryDescriptor QueryVector(IEnumerable queryVector) - { - QueryVectorValue = queryVector; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue); - writer.WritePropertyName("num_candidates"); - writer.WriteNumberValue(NumCandidatesValue); - writer.WritePropertyName("query_vector"); - JsonSerializer.Serialize(writer, QueryVectorValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class QueryDescriptor : DescriptorBase - { - internal QueryDescriptor(Action configure) => configure.Invoke(this); - public QueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private long kValue { get; set; } - - private long NumCandidatesValue { get; set; } - - private IEnumerable QueryVectorValue { get; set; } - - public QueryDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public QueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public QueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public QueryDescriptor k(long k) - { - kValue = k; - return Self; - } - - public QueryDescriptor NumCandidates(long numCandidates) - { - NumCandidatesValue = numCandidates; - return Self; - } - - public QueryDescriptor QueryVector(IEnumerable queryVector) - { - QueryVectorValue = queryVector; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue); - writer.WritePropertyName("num_candidates"); - writer.WriteNumberValue(NumCandidatesValue); - writer.WritePropertyName("query_vector"); - JsonSerializer.Serialize(writer, QueryVectorValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Node.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Node.g.cs deleted file mode 100644 index 04ff83ee7a4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Node.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public partial class Node - { - [JsonInclude] - [JsonPropertyName("shared_cache")] - public Elastic.Clients.Elasticsearch.SearchableSnapshots.Shared SharedCache { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Shared.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Shared.g.cs deleted file mode 100644 index a5b06524802..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Shared.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public partial class Shared - { - [JsonInclude] - [JsonPropertyName("bytes_read_in_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize BytesReadInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("bytes_written_in_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize BytesWrittenInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("evictions")] - public long Evictions { get; init; } - - [JsonInclude] - [JsonPropertyName("num_regions")] - public int NumRegions { get; init; } - - [JsonInclude] - [JsonPropertyName("reads")] - public long Reads { get; init; } - - [JsonInclude] - [JsonPropertyName("region_size_in_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize RegionSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("size_in_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize SizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("writes")] - public long Writes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TaskFailure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TaskFailure.g.cs deleted file mode 100644 index ce667a3f384..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TaskFailure.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public partial class TaskFailure - { - [JsonInclude] - [JsonPropertyName("node_id")] - public string NodeId { get; init; } - - [JsonInclude] - [JsonPropertyName("reason")] - public Elastic.Clients.Elasticsearch.ErrorCause Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public string Status { get; init; } - - [JsonInclude] - [JsonPropertyName("task_id")] - public long TaskId { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/NodeTasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/NodeTasks.g.cs deleted file mode 100644 index 81262f68fab..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/NodeTasks.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public partial class NodeTasks - { - [JsonInclude] - [JsonPropertyName("attributes")] - public Dictionary? Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("host")] - public string? Host { get; init; } - - [JsonInclude] - [JsonPropertyName("ip")] - public string? Ip { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string? Name { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("tasks")] - public Dictionary Tasks { 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/Tasks/ParentTaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs deleted file mode 100644 index 02a11422901..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public partial class ParentTaskInfo : TaskInfo - { - [JsonInclude] - [JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfos.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfos.g.cs deleted file mode 100644 index 0e1bb0b9d1d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfos.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.Transport; -using System; -using System.Collections.Generic; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Tasks -{ - public partial class TaskInfos : Union?, Dictionary?> - { - public TaskInfos(IReadOnlyCollection? item) : base(item) - { - } - - public TaskInfos(Dictionary? item) : base(item) - { - } - } -} \ No newline at end of file