From 8b4f8c29d2e849a68e580aabbe30442c2f42cff9 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Fri, 21 Nov 2025 12:40:32 +0000 Subject: [PATCH] Regenerate client --- .../_Generated/Api/ApiUrlLookup.g.cs | 5 + .../AsyncSearchStatusResponse.Converters.g.cs | 9 + .../AsyncSearchStatusResponse.g.cs | 1 + .../GetAsyncSearchResponse.Converters.g.cs | 9 + .../AsyncSearch/GetAsyncSearchResponse.g.cs | 1 + .../SubmitAsyncSearchResponse.Converters.g.cs | 9 + .../SubmitAsyncSearchResponse.g.cs | 1 + .../_Generated/Api/BulkRequest.g.cs | 21 + .../_Generated/Api/ClearScrollRequest.g.cs | 4 + .../Api/ClosePointInTimeRequest.g.cs | 4 + .../Api/Cluster/AllocationExplainRequest.g.cs | 4 + .../Api/Cluster/ClusterInfoRequest.g.cs | 4 + .../Api/Cluster/ClusterStatsRequest.g.cs | 4 + .../DeleteComponentTemplateRequest.g.cs | 4 + .../DeleteVotingConfigExclusionsRequest.g.cs | 4 + .../ExistsComponentTemplateRequest.g.cs | 7 + .../Cluster/GetComponentTemplateRequest.g.cs | 7 + .../Api/Cluster/PendingTasksRequest.g.cs | 4 + .../PostVotingConfigExclusionsRequest.g.cs | 4 + .../Cluster/PutComponentTemplateRequest.g.cs | 6 + .../_Generated/Api/CountRequest.g.cs | 6 + .../FollowRequest.g.cs | 6 + .../ForgetFollowerRequest.g.cs | 6 + .../PutAutoFollowPatternRequest.g.cs | 4 + .../ResumeFollowRequest.g.cs | 6 + .../_Generated/Api/DeleteScriptRequest.g.cs | 4 + .../Api/Enrich/DeletePolicyRequest.g.cs | 4 + .../Api/Enrich/EnrichStatsRequest.g.cs | 4 + .../Api/Enrich/ExecutePolicyRequest.g.cs | 4 + .../Api/Enrich/GetPolicyRequest.g.cs | 4 + .../Api/Enrich/PutPolicyRequest.g.cs | 6 + .../_Generated/Api/Eql/EqlDeleteRequest.g.cs | 4 + .../_Generated/Api/Eql/EqlGetRequest.g.cs | 4 + .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 22 +- .../Api/Eql/GetEqlStatusRequest.g.cs | 4 + .../Api/Esql/AsyncQueryDeleteRequest.g.cs | 4 + .../Api/Esql/AsyncQueryGetRequest.g.cs | 4 + .../Esql/AsyncQueryRequest.Converters.g.cs | 12 +- .../Api/Esql/AsyncQueryRequest.g.cs | 44 ++ .../Api/Esql/EsqlQueryRequest.Converters.g.cs | 12 +- .../_Generated/Api/Esql/EsqlQueryRequest.g.cs | 44 ++ .../Api/Esql/GetEsqlQueryRequest.g.cs | 4 + .../Api/Esql/ListQueriesRequest.g.cs | 4 + .../_Generated/Api/ExplainRequest.g.cs | 6 + .../Api/Features/GetFeaturesRequest.g.cs | 4 + .../Api/Features/ResetFeaturesRequest.g.cs | 4 + .../_Generated/Api/FieldCapsRequest.g.cs | 30 +- .../_Generated/Api/GetScriptRequest.g.cs | 4 + .../_Generated/Api/Graph/ExploreRequest.g.cs | 6 + .../_Generated/Api/HealthReportRequest.g.cs | 4 + .../DeleteLifecycleRequest.g.cs | 4 + .../MigrateToDataTiersRequest.g.cs | 4 + .../MoveToStepRequest.g.cs | 6 + .../PutLifecycleRequest.g.cs | 4 + .../RemovePolicyRequest.g.cs | 6 + .../RetryRequest.g.cs | 6 + .../StartIlmRequest.g.cs | 4 + .../StopIlmRequest.g.cs | 4 + .../IndexManagement/AnalyzeIndexRequest.g.cs | 6 + .../IndexManagement/ClearCacheRequest.g.cs | 6 + .../IndexManagement/CloneIndexRequest.g.cs | 6 + .../IndexManagement/CloseIndexRequest.g.cs | 6 + .../IndexManagement/CreateIndexRequest.g.cs | 6 + .../DataStreamsStatsRequest.g.cs | 14 +- .../IndexManagement/DeleteAliasRequest.g.cs | 6 + .../DeleteDataLifecycleRequest.g.cs | 4 + .../DeleteDataStreamOptionsRequest.g.cs | 4 + .../DeleteDataStreamRequest.g.cs | 4 + .../IndexManagement/DeleteIndexRequest.g.cs | 6 + .../DeleteIndexTemplateRequest.g.cs | 4 + ...SampleConfigurationRequest.Converters.g.cs | 53 ++ .../DeleteSampleConfigurationRequest.g.cs | 344 +++++++++++ ...ampleConfigurationResponse.Converters.g.cs | 63 +++ .../DeleteSampleConfigurationResponse.g.cs | 50 ++ .../DeleteTemplateRequest.g.cs | 4 + .../Api/IndexManagement/DiskUsageRequest.g.cs | 6 + .../IndexManagement/DownsampleRequest.g.cs | 6 + .../Api/IndexManagement/ExistsRequest.g.cs | 6 + .../ExistsTemplateRequest.g.cs | 7 + .../ExplainDataLifecycleRequest.g.cs | 12 +- .../FieldUsageStatsRequest.g.cs | 6 + .../Api/IndexManagement/FlushRequest.g.cs | 6 + .../IndexManagement/ForcemergeRequest.g.cs | 6 + .../Api/IndexManagement/GetAliasRequest.g.cs | 6 + ...SampleConfigurationRequest.Converters.g.cs | 53 ++ .../GetAllSampleConfigurationRequest.g.cs | 176 ++++++ ...ampleConfigurationResponse.Converters.g.cs | 63 +++ .../GetAllSampleConfigurationResponse.g.cs | 45 ++ .../GetDataLifecycleStatsRequest.g.cs | 4 + .../GetFieldMappingRequest.g.cs | 6 + .../Api/IndexManagement/GetIndexRequest.g.cs | 6 + .../GetIndexTemplateRequest.g.cs | 11 +- .../GetIndicesSettingsRequest.g.cs | 10 + .../IndexManagement/GetMappingRequest.g.cs | 6 + ...SampleConfigurationRequest.Converters.g.cs | 53 ++ .../GetSampleConfigurationRequest.g.cs | 304 ++++++++++ ...ampleConfigurationResponse.Converters.g.cs | 72 +++ .../GetSampleConfigurationResponse.g.cs | 50 ++ .../IndexManagement/GetTemplateRequest.g.cs | 7 + .../IndexManagement/IndicesStatsRequest.g.cs | 46 +- .../MigrateToDataStreamRequest.g.cs | 6 + .../ModifyDataStreamRequest.g.cs | 4 + .../Api/IndexManagement/OpenIndexRequest.g.cs | 6 + .../PromoteDataStreamRequest.g.cs | 6 + .../Api/IndexManagement/PutAliasRequest.g.cs | 6 + .../PutDataLifecycleRequest.g.cs | 4 + .../PutDataStreamOptionsRequest.g.cs | 4 + .../PutIndexTemplateRequest.g.cs | 6 + .../PutIndicesSettingsRequest.g.cs | 6 + .../IndexManagement/PutMappingRequest.g.cs | 6 + ...SampleConfigurationRequest.Converters.g.cs | 99 ++++ .../PutSampleConfigurationRequest.g.cs | 534 ++++++++++++++++++ ...ampleConfigurationResponse.Converters.g.cs | 63 +++ .../PutSampleConfigurationResponse.g.cs | 50 ++ .../IndexManagement/PutTemplateRequest.g.cs | 6 + .../Api/IndexManagement/RecoveryRequest.g.cs | 6 + .../Api/IndexManagement/RefreshRequest.g.cs | 6 + .../ReloadSearchAnalyzersRequest.g.cs | 6 + .../IndexManagement/RemoveBlockRequest.g.cs | 20 +- .../IndexManagement/ResolveIndexRequest.g.cs | 4 + .../Api/IndexManagement/RolloverRequest.g.cs | 6 + .../Api/IndexManagement/SegmentsRequest.g.cs | 6 + .../IndexManagement/ShardStoresRequest.g.cs | 6 + .../IndexManagement/ShrinkIndexRequest.g.cs | 6 + .../SimulateIndexTemplateRequest.g.cs | 6 + .../SimulateTemplateRequest.g.cs | 6 + .../IndexManagement/SplitIndexRequest.g.cs | 6 + .../IndexManagement/UpdateAliasesRequest.g.cs | 6 + .../IndexManagement/ValidateQueryRequest.g.cs | 6 + .../_Generated/Api/IndexRequest.g.cs | 16 +- .../ChatCompletionUnifiedRequest.g.cs | 4 +- .../Api/Inference/CompletionRequest.g.cs | 8 +- .../Api/Inference/DeleteInferenceRequest.g.cs | 10 +- .../Api/Inference/GetInferenceRequest.g.cs | 10 +- .../Api/Inference/PutAlibabacloudRequest.g.cs | 8 + .../Inference/PutAmazonbedrockRequest.g.cs | 8 + .../Inference/PutAmazonsagemakerRequest.g.cs | 8 + .../PutAnthropicRequest.Converters.g.cs | 9 - .../Api/Inference/PutAnthropicRequest.g.cs | 40 -- .../Inference/PutAzureaistudioRequest.g.cs | 8 + .../Api/Inference/PutAzureopenaiRequest.g.cs | 8 + .../Api/Inference/PutCohereRequest.g.cs | 8 + .../PutContextualaiRequest.Converters.g.cs | 9 - .../Api/Inference/PutContextualaiRequest.g.cs | 40 -- .../Api/Inference/PutCustomRequest.g.cs | 8 + .../PutDeepseekRequest.Converters.g.cs | 9 - .../Api/Inference/PutDeepseekRequest.g.cs | 40 -- .../Inference/PutElasticsearchRequest.g.cs | 8 +- .../Inference/PutGoogleaistudioRequest.g.cs | 8 + .../Inference/PutGooglevertexaiRequest.g.cs | 8 + .../Api/Inference/PutHuggingFaceRequest.g.cs | 8 + .../Api/Inference/PutInferenceRequest.g.cs | 10 + .../Api/Inference/PutJinaaiRequest.g.cs | 8 + .../Api/Inference/PutLlamaRequest.g.cs | 8 + .../Api/Inference/PutMistralRequest.g.cs | 8 + .../Api/Inference/PutOpenaiRequest.g.cs | 8 + .../PutOpenshiftAiRequest.Converters.g.cs | 89 +++ .../Api/Inference/PutOpenshiftAiRequest.g.cs | 365 ++++++++++++ .../PutOpenshiftAiResponse.Converters.g.cs | 108 ++++ .../Api/Inference/PutOpenshiftAiResponse.g.cs | 99 ++++ .../Api/Inference/PutVoyageaiRequest.g.cs | 8 + .../PutWatsonxRequest.Converters.g.cs | 9 + .../Api/Inference/PutWatsonxRequest.g.cs | 48 ++ .../Api/Inference/RerankRequest.g.cs | 4 +- .../Api/Inference/SparseEmbeddingRequest.g.cs | 4 +- .../Inference/StreamCompletionRequest.g.cs | 8 +- .../Api/Inference/TextEmbeddingRequest.g.cs | 4 +- .../_Generated/Api/InfoRequest.g.cs | 4 + .../Api/Ingest/DeletePipelineRequest.g.cs | 4 + .../Api/Ingest/GeoIpStatsRequest.g.cs | 4 + .../Api/Ingest/ProcessorGrokRequest.g.cs | 4 + .../Api/Ingest/PutPipelineRequest.g.cs | 14 +- .../PostStartTrialRequest.g.cs | 4 + .../Api/MachineLearning/FlushJobRequest.g.cs | 4 + .../MachineLearning/GetBucketsRequest.g.cs | 6 + .../MachineLearning/GetCategoriesRequest.g.cs | 8 +- .../GetDataFrameAnalyticsRequest.g.cs | 4 + .../GetDatafeedStatsRequest.g.cs | 4 + .../MachineLearning/GetDatafeedsRequest.g.cs | 4 + .../MachineLearning/GetFiltersRequest.g.cs | 4 + .../GetInfluencersRequest.g.cs | 6 + .../Api/MachineLearning/GetJobsRequest.g.cs | 4 + .../GetMemoryStatsRequest.g.cs | 4 + .../MachineLearning/GetRecordsRequest.g.cs | 6 + .../GetTrainedModelsStatsRequest.g.cs | 4 + .../Api/MachineLearning/MlInfoRequest.g.cs | 4 + .../PreviewDataFrameAnalyticsRequest.g.cs | 6 + .../PutDataFrameAnalyticsRequest.g.cs | 6 + .../MachineLearning/PutDatafeedRequest.g.cs | 6 + .../Api/MachineLearning/PutFilterRequest.g.cs | 4 + .../PutJobRequest.Converters.g.cs | 9 - .../Api/MachineLearning/PutJobRequest.g.cs | 96 ++-- .../PutTrainedModelAliasRequest.g.cs | 4 + .../PutTrainedModelRequest.g.cs | 6 + .../PutTrainedModelVocabularyRequest.g.cs | 4 + .../Api/MachineLearning/ResetJobRequest.g.cs | 4 + .../RevertModelSnapshotRequest.g.cs | 4 + .../SetUpgradeModeRequest.g.cs | 4 + .../StartDataFrameAnalyticsRequest.g.cs | 4 + .../StartTrainedModelDeploymentRequest.g.cs | 4 + .../StopDataFrameAnalyticsRequest.g.cs | 4 + .../MachineLearning/StopDatafeedRequest.g.cs | 4 + .../UpdateDatafeedRequest.g.cs | 6 + .../MachineLearning/UpdateFilterRequest.g.cs | 4 + .../Api/MachineLearning/UpdateJobRequest.g.cs | 6 + .../UpdateModelSnapshotRequest.g.cs | 4 + .../UpgradeJobSnapshotRequest.g.cs | 4 + .../_Generated/Api/MultiSearchRequest.g.cs | 4 + ...earRepositoriesMeteringArchiveRequest.g.cs | 4 + .../GetRepositoriesMeteringInfoRequest.g.cs | 4 + .../Api/Nodes/HotThreadsRequest.g.cs | 4 + .../Api/Nodes/NodesInfoRequest.g.cs | 23 +- .../Api/Nodes/NodesStatsRequest.g.cs | 86 ++- .../Api/Nodes/NodesUsageRequest.g.cs | 28 +- .../_Generated/Api/PingRequest.g.cs | 4 + .../_Generated/Api/PutScriptRequest.g.cs | 4 + .../Api/QueryRules/DeleteRuleRequest.g.cs | 4 + .../Api/QueryRules/DeleteRulesetRequest.g.cs | 4 + .../Api/QueryRules/GetRuleRequest.g.cs | 4 + .../Api/QueryRules/GetRulesetRequest.g.cs | 4 + .../Api/QueryRules/ListRulesetsRequest.g.cs | 4 + .../Api/QueryRules/PutRuleRequest.g.cs | 4 + .../Api/QueryRules/PutRulesetRequest.g.cs | 4 + .../Api/QueryRules/TestRequest.g.cs | 4 + .../_Generated/Api/RankEvalRequest.g.cs | 8 +- .../_Generated/Api/Rollup/GetJobsRequest.g.cs | 4 + .../Api/Rollup/GetRollupCapsRequest.g.cs | 4 + .../Api/Rollup/GetRollupIndexCapsRequest.g.cs | 4 + .../Api/Rollup/RollupSearchRequest.g.cs | 6 + .../Api/Rollup/StartJobRequest.g.cs | 4 + .../_Generated/Api/Rollup/StopJobRequest.g.cs | 4 + .../DeleteBehavioralAnalyticsRequest.g.cs | 4 + .../Api/SearchApplication/ListRequest.g.cs | 4 + .../SearchApplication/RenderQueryRequest.g.cs | 4 + .../SearchApplicationSearchRequest.g.cs | 4 + .../CacheStatsRequest.g.cs | 4 + .../ClearCacheRequest.g.cs | 6 + .../Api/SearchableSnapshots/MountRequest.g.cs | 4 + .../Security/BulkUpdateApiKeysRequest.g.cs | 6 + .../ClearCachedPrivilegesRequest.g.cs | 8 +- .../Security/PutUserRequest.Converters.g.cs | 11 +- .../Api/Security/PutUserRequest.g.cs | 61 +- .../Api/Simulate/IngestRequest.g.cs | 6 + .../Snapshot/CleanupRepositoryRequest.g.cs | 4 + .../Api/Snapshot/CloneSnapshotRequest.g.cs | 4 + .../Api/Snapshot/CreateRepositoryRequest.g.cs | 4 + .../Api/Snapshot/CreateSnapshotRequest.g.cs | 4 + .../Api/Snapshot/DeleteRepositoryRequest.g.cs | 4 + .../Api/Snapshot/DeleteSnapshotRequest.g.cs | 8 +- .../RepositoryVerifyIntegrityRequest.g.cs | 4 + .../Api/Snapshot/RestoreRequest.g.cs | 6 + .../Api/Snapshot/SnapshotStatusRequest.g.cs | 4 + .../Api/Snapshot/VerifyRepositoryRequest.g.cs | 4 + .../DeleteLifecycleRequest.g.cs | 4 + .../ExecuteLifecycleRequest.g.cs | 4 + .../ExecuteRetentionRequest.g.cs | 4 + .../GetLifecycleRequest.g.cs | 4 + .../GetStatsRequest.g.cs | 4 + .../PutLifecycleRequest.g.cs | 4 + .../StartSlmRequest.g.cs | 4 + .../StopSlmRequest.g.cs | 4 + .../Api/Sql/DeleteAsyncRequest.g.cs | 4 + .../_Generated/Api/Sql/GetAsyncRequest.g.cs | 4 + .../Api/Sql/GetAsyncStatusRequest.g.cs | 4 + .../_Generated/Api/Sql/QueryRequest.g.cs | 6 + .../_Generated/Api/Sql/TranslateRequest.g.cs | 6 + .../Synonyms/DeleteSynonymRuleRequest.g.cs | 4 + .../Api/Synonyms/GetSynonymRuleRequest.g.cs | 4 + .../Api/Synonyms/GetSynonymsSetsRequest.g.cs | 4 + .../Api/Synonyms/PutSynonymRequest.g.cs | 4 + .../Api/Synonyms/PutSynonymRuleRequest.g.cs | 4 + .../_Generated/Api/Tasks/GetTasksRequest.g.cs | 4 + .../_Generated/Api/Tasks/ListRequest.g.cs | 4 + .../_Generated/Api/TermsEnumRequest.g.cs | 22 +- .../FindFieldStructureRequest.g.cs | 40 +- .../FindMessageStructureRequest.g.cs | 40 +- .../TextStructure/TestGrokPatternRequest.g.cs | 4 + .../GetTransformRequest.g.cs | 4 + .../PreviewTransformRequest.g.cs | 6 + .../PutTransformRequest.g.cs | 6 + .../SetUpgradeModeRequest.g.cs | 4 + .../StopTransformRequest.g.cs | 4 + .../UpdateTransformRequest.g.cs | 6 + .../_Generated/Api/UpdateByQueryRequest.g.cs | 6 + .../Api/Xpack/XpackInfoRequest.g.cs | 7 + .../Api/Xpack/XpackUsageRequest.g.cs | 4 + .../Client/ElasticsearchClient.Indices.g.cs | 400 ++++++++++++- .../Client/ElasticsearchClient.Inference.g.cs | 46 ++ .../Client/ElasticsearchClient.Ml.g.cs | 40 +- .../Client/ElasticsearchClient.Nodes.g.cs | 80 +-- .../Client/ElasticsearchClient.Security.g.cs | 24 +- .../Client/ElasticsearchClient.Snapshot.g.cs | 8 +- .../Client/ElasticsearchClient.g.cs | 24 +- .../GeotileGridAggregation.Converters.g.cs | 6 +- .../Aggregations/GeotileGridAggregation.g.cs | 6 +- .../Types/CommonStatsFlag.Converters.g.cs | 361 ++++++++++++ .../_Generated/Types/CommonStatsFlag.g.cs | 73 +++ .../CompletionSuggestOption.Converters.g.cs | 6 +- .../Core/Search/CompletionSuggestOption.g.cs | 2 +- .../Types/GeohashPrecision.Converters.g.cs | 2 +- .../_Generated/Types/GeohashPrecision.g.cs | 8 +- ...IndexSamplingConfiguration.Converters.g.cs | 72 +++ .../IndexSamplingConfiguration.g.cs | 62 ++ .../SamplingConfiguration.Converters.g.cs | 135 +++++ .../SamplingConfiguration.g.cs | 142 +++++ .../AlibabaCloudTaskType.Converters.g.cs | 14 +- .../Types/Inference/AlibabaCloudTaskType.g.cs | 4 +- .../GoogleModelGardenProvider.Converters.g.cs | 56 ++ .../Inference/GoogleModelGardenProvider.g.cs | 10 +- .../GoogleVertexAIServiceSettings.g.cs | 8 + ...OpenShiftAiServiceSettings.Converters.g.cs | 108 ++++ .../Inference/OpenShiftAiServiceSettings.g.cs | 261 +++++++++ .../OpenShiftAiSimilarityType.Converters.g.cs | 95 ++++ .../Inference/OpenShiftAiSimilarityType.g.cs | 35 ++ .../OpenShiftAiTaskSettings.Converters.g.cs | 72 +++ .../Inference/OpenShiftAiTaskSettings.g.cs | 113 ++++ .../OpenShiftAiTaskType.Converters.g.cs | 109 ++++ .../Types/Inference/OpenShiftAiTaskType.g.cs | 37 ++ .../Types/Inference/RateLimitSetting.g.cs | 10 + .../TaskTypeOpenShiftAi.Converters.g.cs | 109 ++++ .../Types/Inference/TaskTypeOpenShiftAi.g.cs | 37 ++ .../Types/InlineGet.Converters.g.cs | 6 +- .../_Generated/Types/InlineGet.g.cs | 2 +- .../Nodes/NodeStatsMetric.Converters.g.cs | 319 +++++++++++ .../Types/Nodes/NodeStatsMetric.g.cs | 67 +++ .../Nodes/NodesInfoMetric.Converters.g.cs | 249 ++++++++ .../Types/Nodes/NodesInfoMetric.g.cs | 57 ++ .../Nodes/NodesUsageMetric.Converters.g.cs | 95 ++++ .../Types/Nodes/NodesUsageMetric.g.cs | 35 ++ 329 files changed, 7777 insertions(+), 505 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiSimilarityType.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiSimilarityType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskType.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeOpenShiftAi.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeOpenShiftAi.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeStatsMetric.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeStatsMetric.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesInfoMetric.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesInfoMetric.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesUsageMetric.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesUsageMetric.g.cs diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs index 3f5dfcf8e4a..0b6de60eca4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -100,6 +100,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" }); internal static ApiUrls IndexManagementDeleteDataStreamOptions = new ApiUrls(new[] { "_data_stream/{name}/_options" }); internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); + internal static ApiUrls IndexManagementDeleteSampleConfiguration = new ApiUrls(new[] { "{index}/_sample/config" }); internal static ApiUrls IndexManagementDeleteTemplate = new ApiUrls(new[] { "_template/{name}" }); internal static ApiUrls IndexManagementDiskUsage = new ApiUrls(new[] { "{index}/_disk_usage" }); internal static ApiUrls IndexManagementDownsample = new ApiUrls(new[] { "{index}/_downsample/{target_index}" }); @@ -113,6 +114,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementForcemerge = new ApiUrls(new[] { "_forcemerge", "{index}/_forcemerge" }); internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "{index}" }); internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias" }); + internal static ApiUrls IndexManagementGetAllSampleConfiguration = new ApiUrls(new[] { "_sample/config" }); internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" }); internal static ApiUrls IndexManagementGetDataLifecycleStats = new ApiUrls(new[] { "_lifecycle/stats" }); internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" }); @@ -124,6 +126,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" }); internal static ApiUrls IndexManagementGetMigrateReindexStatus = new ApiUrls(new[] { "_migration/reindex/{index}/_status" }); internal static ApiUrls IndexManagementGetSample = new ApiUrls(new[] { "{index}/_sample" }); + internal static ApiUrls IndexManagementGetSampleConfiguration = new ApiUrls(new[] { "{index}/_sample/config" }); internal static ApiUrls IndexManagementGetSampleStats = new ApiUrls(new[] { "{index}/_sample/stats" }); internal static ApiUrls IndexManagementGetSettings = new ApiUrls(new[] { "_settings", "{index}/_settings", "{index}/_settings/{name}", "_settings/{name}" }); internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "_template", "_template/{name}" }); @@ -139,6 +142,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementPutDataStreamSettings = new ApiUrls(new[] { "_data_stream/{name}/_settings" }); internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" }); + internal static ApiUrls IndexManagementPutSampleConfiguration = new ApiUrls(new[] { "{index}/_sample/config" }); internal static ApiUrls IndexManagementPutSettings = new ApiUrls(new[] { "_settings", "{index}/_settings" }); internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" }); internal static ApiUrls IndexManagementRecovery = new ApiUrls(new[] { "_recovery", "{index}/_recovery" }); @@ -183,6 +187,7 @@ internal static class ApiUrlLookup internal static ApiUrls InferencePutLlama = new ApiUrls(new[] { "_inference/{task_type}/{llama_inference_id}" }); internal static ApiUrls InferencePutMistral = new ApiUrls(new[] { "_inference/{task_type}/{mistral_inference_id}" }); internal static ApiUrls InferencePutOpenai = new ApiUrls(new[] { "_inference/{task_type}/{openai_inference_id}" }); + internal static ApiUrls InferencePutOpenshiftAi = new ApiUrls(new[] { "_inference/{task_type}/{openshiftai_inference_id}" }); internal static ApiUrls InferencePutVoyageai = new ApiUrls(new[] { "_inference/{task_type}/{voyageai_inference_id}" }); internal static ApiUrls InferencePutWatsonx = new ApiUrls(new[] { "_inference/{task_type}/{watsonx_inference_id}" }); internal static ApiUrls InferenceRerank = new ApiUrls(new[] { "_inference/rerank/{inference_id}" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.Converters.g.cs index 68a5d01d53a..1662471fed6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.Converters.g.cs @@ -29,6 +29,7 @@ public sealed partial class AsyncSearchStatusResponseConverter : System.Text.Jso private static readonly System.Text.Json.JsonEncodedText PropCompletionStatus = System.Text.Json.JsonEncodedText.Encode("completion_status"); private static readonly System.Text.Json.JsonEncodedText PropCompletionTime = System.Text.Json.JsonEncodedText.Encode("completion_time"); private static readonly System.Text.Json.JsonEncodedText PropCompletionTimeInMillis = System.Text.Json.JsonEncodedText.Encode("completion_time_in_millis"); + private static readonly System.Text.Json.JsonEncodedText PropError = System.Text.Json.JsonEncodedText.Encode("error"); private static readonly System.Text.Json.JsonEncodedText PropExpirationTime = System.Text.Json.JsonEncodedText.Encode("expiration_time"); private static readonly System.Text.Json.JsonEncodedText PropExpirationTimeInMillis = System.Text.Json.JsonEncodedText.Encode("expiration_time_in_millis"); private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("id"); @@ -45,6 +46,7 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRespo LocalJsonValue propCompletionStatus = default; LocalJsonValue propCompletionTime = default; LocalJsonValue propCompletionTimeInMillis = default; + LocalJsonValue propError = default; LocalJsonValue propExpirationTime = default; LocalJsonValue propExpirationTimeInMillis = default; LocalJsonValue propId = default; @@ -75,6 +77,11 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRespo continue; } + if (propError.TryReadProperty(ref reader, options, PropError, null)) + { + continue; + } + if (propExpirationTime.TryReadProperty(ref reader, options, PropExpirationTime, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) { continue; @@ -131,6 +138,7 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRespo CompletionStatus = propCompletionStatus.Value, CompletionTime = propCompletionTime.Value, CompletionTimeInMillis = propCompletionTimeInMillis.Value, + Error = propError.Value, ExpirationTime = propExpirationTime.Value, ExpirationTimeInMillis = propExpirationTimeInMillis.Value, Id = propId.Value, @@ -149,6 +157,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropCompletionStatus, value.CompletionStatus, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropCompletionTime, value.CompletionTime, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); writer.WriteProperty(options, PropCompletionTimeInMillis, value.CompletionTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); + writer.WriteProperty(options, PropError, value.Error, null, null); writer.WriteProperty(options, PropExpirationTime, value.ExpirationTime, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); writer.WriteProperty(options, PropExpirationTimeInMillis, value.ExpirationTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropId, value.Id, null, null); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs index 9610d6a9a60..a463956f8b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs @@ -62,6 +62,7 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J /// public System.DateTimeOffset? CompletionTime { get; set; } public System.DateTimeOffset? CompletionTimeInMillis { get; set; } + public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.Converters.g.cs index 1dc894d73c2..ba22190bddd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.Converters.g.cs @@ -27,6 +27,7 @@ public sealed partial class GetAsyncSearchResponseConverter : System. { private static readonly System.Text.Json.JsonEncodedText PropCompletionTime = System.Text.Json.JsonEncodedText.Encode("completion_time"); private static readonly System.Text.Json.JsonEncodedText PropCompletionTimeInMillis = System.Text.Json.JsonEncodedText.Encode("completion_time_in_millis"); + private static readonly System.Text.Json.JsonEncodedText PropError = System.Text.Json.JsonEncodedText.Encode("error"); private static readonly System.Text.Json.JsonEncodedText PropExpirationTime = System.Text.Json.JsonEncodedText.Encode("expiration_time"); private static readonly System.Text.Json.JsonEncodedText PropExpirationTimeInMillis = System.Text.Json.JsonEncodedText.Encode("expiration_time_in_millis"); private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("id"); @@ -41,6 +42,7 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchResponse reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propCompletionTime = default; LocalJsonValue propCompletionTimeInMillis = default; + LocalJsonValue propError = default; LocalJsonValue propExpirationTime = default; LocalJsonValue propExpirationTimeInMillis = default; LocalJsonValue propId = default; @@ -61,6 +63,11 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchResponse continue; } + if (propError.TryReadProperty(ref reader, options, PropError, null)) + { + continue; + } + if (propExpirationTime.TryReadProperty(ref reader, options, PropExpirationTime, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) { continue; @@ -115,6 +122,7 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchResponse { CompletionTime = propCompletionTime.Value, CompletionTimeInMillis = propCompletionTimeInMillis.Value, + Error = propError.Value, ExpirationTime = propExpirationTime.Value, ExpirationTimeInMillis = propExpirationTimeInMillis.Value, Id = propId.Value, @@ -131,6 +139,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropCompletionTime, value.CompletionTime, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); writer.WriteProperty(options, PropCompletionTimeInMillis, value.CompletionTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); + writer.WriteProperty(options, PropError, value.Error, null, null); writer.WriteProperty(options, PropExpirationTime, value.ExpirationTime, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); writer.WriteProperty(options, PropExpirationTimeInMillis, value.ExpirationTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropId, value.Id, null, null); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs index 9d379a1f20d..836a7ac0f9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs @@ -45,6 +45,7 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// public System.DateTimeOffset? CompletionTime { get; set; } public System.DateTimeOffset? CompletionTimeInMillis { get; set; } + public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.Converters.g.cs index ba5eed86942..e6b5fc37708 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.Converters.g.cs @@ -27,6 +27,7 @@ public sealed partial class SubmitAsyncSearchResponseConverter : Syst { private static readonly System.Text.Json.JsonEncodedText PropCompletionTime = System.Text.Json.JsonEncodedText.Encode("completion_time"); private static readonly System.Text.Json.JsonEncodedText PropCompletionTimeInMillis = System.Text.Json.JsonEncodedText.Encode("completion_time_in_millis"); + private static readonly System.Text.Json.JsonEncodedText PropError = System.Text.Json.JsonEncodedText.Encode("error"); private static readonly System.Text.Json.JsonEncodedText PropExpirationTime = System.Text.Json.JsonEncodedText.Encode("expiration_time"); private static readonly System.Text.Json.JsonEncodedText PropExpirationTimeInMillis = System.Text.Json.JsonEncodedText.Encode("expiration_time_in_millis"); private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("id"); @@ -41,6 +42,7 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRespo reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propCompletionTime = default; LocalJsonValue propCompletionTimeInMillis = default; + LocalJsonValue propError = default; LocalJsonValue propExpirationTime = default; LocalJsonValue propExpirationTimeInMillis = default; LocalJsonValue propId = default; @@ -61,6 +63,11 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRespo continue; } + if (propError.TryReadProperty(ref reader, options, PropError, null)) + { + continue; + } + if (propExpirationTime.TryReadProperty(ref reader, options, PropExpirationTime, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) { continue; @@ -115,6 +122,7 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRespo { CompletionTime = propCompletionTime.Value, CompletionTimeInMillis = propCompletionTimeInMillis.Value, + Error = propError.Value, ExpirationTime = propExpirationTime.Value, ExpirationTimeInMillis = propExpirationTimeInMillis.Value, Id = propId.Value, @@ -131,6 +139,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropCompletionTime, value.CompletionTime, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); writer.WriteProperty(options, PropCompletionTimeInMillis, value.CompletionTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); + writer.WriteProperty(options, PropError, value.Error, null, null); writer.WriteProperty(options, PropExpirationTime, value.ExpirationTime, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); writer.WriteProperty(options, PropExpirationTimeInMillis, value.ExpirationTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropId, value.Id, null, null); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs index 30bbe4819ab..50844509f41 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs @@ -45,6 +45,7 @@ internal SubmitAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J /// public System.DateTimeOffset? CompletionTime { get; set; } public System.DateTimeOffset? CompletionTimeInMillis { get; set; } + public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs index d0da2b9aacf..a4968fa4143 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs @@ -127,6 +127,8 @@ public sealed partial class BulkRequestParameters : Elastic.Transport.RequestPar /// /// /// Bulk index or delete documents. +/// +/// /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// @@ -247,6 +249,11 @@ public sealed partial class BulkRequestParameters : Elastic.Transport.RequestPar /// /// /// +/// Java: Check out co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester +/// +/// +/// +/// /// .NET: Check out BulkAllObservable /// /// @@ -461,6 +468,8 @@ internal BulkRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// /// Bulk index or delete documents. +/// +/// /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// @@ -581,6 +590,11 @@ internal BulkRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// /// +/// Java: Check out co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester +/// +/// +/// +/// /// .NET: Check out BulkAllObservable /// /// @@ -945,6 +959,8 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor RequestConfiguration( /// /// /// Bulk index or delete documents. +/// +/// /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// @@ -1065,6 +1081,11 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor RequestConfiguration( /// /// /// +/// Java: Check out co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester +/// +/// +/// +/// /// .NET: Check out BulkAllObservable /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs index 551db5d0dec..d14afa85909 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class ClearScrollRequestParameters : Elastic.Transport.Req /// /// /// Clear a scrolling search. +/// +/// /// Clear the search context and results for a scrolling search. /// /// @@ -72,6 +74,8 @@ internal ClearScrollRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Clear a scrolling search. +/// +/// /// Clear the search context and results for a scrolling search. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs index 792108d6d2d..3a5c1826f5e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class ClosePointInTimeRequestParameters : Elastic.Transpor /// /// /// Close a point in time. +/// +/// /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// A point in time is automatically closed when the keep_alive period has elapsed. @@ -84,6 +86,8 @@ internal ClosePointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Close a point in time. +/// +/// /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// A point in time is automatically closed when the keep_alive period has elapsed. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs index 1cd840acfe5..74d87454c35 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs @@ -50,6 +50,8 @@ public sealed partial class AllocationExplainRequestParameters : Elastic.Transpo /// /// /// Explain the shard allocations. +/// +/// /// Get explanations for shard allocations in the cluster. /// This API accepts the current_node, index, primary and shard parameters in the request body or in query parameters, but not in both at the same time. /// For unassigned shards, it provides an explanation for why the shard is unassigned. @@ -138,6 +140,8 @@ internal AllocationExplainRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// /// Explain the shard allocations. +/// +/// /// Get explanations for shard allocations in the cluster. /// This API accepts the current_node, index, primary and shard parameters in the request body or in query parameters, but not in both at the same time. /// For unassigned shards, it provides an explanation for why the shard is unassigned. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs index 3e44f1b841e..51ca7257181 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class ClusterInfoRequestParameters : Elastic.Transport.Req /// /// /// Get cluster info. +/// +/// /// Returns basic information about the cluster. /// /// @@ -74,6 +76,8 @@ internal ClusterInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Get cluster info. +/// +/// /// Returns basic information about the cluster. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs index f298c4f22e4..4402f9ddc5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class ClusterStatsRequestParameters : Elastic.Transport.Re /// /// /// Get cluster statistics. +/// +/// /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// /// @@ -105,6 +107,8 @@ internal ClusterStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get cluster statistics. +/// +/// /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs index 802dca9a737..d17945be45d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class DeleteComponentTemplateRequestParameters : Elastic.T /// /// /// Delete component templates. +/// +/// /// Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. /// /// @@ -105,6 +107,8 @@ internal DeleteComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serializat /// /// /// Delete component templates. +/// +/// /// Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs index 69be4c0fcb9..255482874d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs @@ -48,6 +48,8 @@ public sealed partial class DeleteVotingConfigExclusionsRequestParameters : Elas /// /// /// Clear cluster voting config exclusions. +/// +/// /// Remove master-eligible nodes from the voting configuration exclusion list. /// /// @@ -101,6 +103,8 @@ internal DeleteVotingConfigExclusionsRequest(Elastic.Clients.Elasticsearch.Seria /// /// /// Clear cluster voting config exclusions. +/// +/// /// Remove master-eligible nodes from the voting configuration exclusion list. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs index e1f1e3678e0..8e20046a98b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs @@ -31,6 +31,7 @@ public sealed partial class ExistsComponentTemplateRequestParameters : Elastic.T /// Defaults to false, which means information is retrieved from the master node. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -46,6 +47,8 @@ public sealed partial class ExistsComponentTemplateRequestParameters : Elastic.T /// /// /// Check component templates. +/// +/// /// Returns information about whether a particular component template exists. /// /// @@ -93,6 +96,7 @@ internal ExistsComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serializat /// Defaults to false, which means information is retrieved from the master node. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -108,6 +112,8 @@ internal ExistsComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serializat /// /// /// Check component templates. +/// +/// /// Returns information about whether a particular component template exists. /// /// @@ -147,6 +153,7 @@ public Elastic.Clients.Elasticsearch.Cluster.ExistsComponentTemplateRequestDescr return this; } + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] /// /// /// If true, the request retrieves information from the local node only. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs index 5bc384ee08c..de64af018ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs @@ -45,6 +45,7 @@ public sealed partial class GetComponentTemplateRequestParameters : Elastic.Tran /// If false, information is retrieved from the master node. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -66,6 +67,8 @@ public sealed partial class GetComponentTemplateRequestParameters : Elastic.Tran /// /// /// Get component templates. +/// +/// /// Get information about component templates. /// /// @@ -127,6 +130,7 @@ internal GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization /// If false, information is retrieved from the master node. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -148,6 +152,8 @@ internal GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization /// /// /// Get component templates. +/// +/// /// Get information about component templates. /// /// @@ -208,6 +214,7 @@ public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescript return this; } + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] /// /// /// If true, the request retrieves information from the local node only. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs index a2529554eb2..c00f71cff25 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class PendingTasksRequestParameters : Elastic.Transport.Re /// /// /// Get the pending cluster tasks. +/// +/// /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. /// /// @@ -100,6 +102,8 @@ internal PendingTasksRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get the pending cluster tasks. +/// +/// /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs index 60b2f7cff0a..3bd22f7f840 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs @@ -62,6 +62,8 @@ public sealed partial class PostVotingConfigExclusionsRequestParameters : Elasti /// /// /// Update voting configuration exclusions. +/// +/// /// Update the cluster voting config exclusions by node IDs or node names. /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. @@ -148,6 +150,8 @@ internal PostVotingConfigExclusionsRequest(Elastic.Clients.Elasticsearch.Seriali /// /// /// Update voting configuration exclusions. +/// +/// /// Update the cluster voting config exclusions by node IDs or node names. /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs index 494b035e6d0..f2bafdbf058 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs @@ -51,6 +51,8 @@ public sealed partial class PutComponentTemplateRequestParameters : Elastic.Tran /// /// /// Create or update a component template. +/// +/// /// Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. /// /// @@ -190,6 +192,8 @@ internal PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization /// /// /// Create or update a component template. +/// +/// /// Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. /// /// @@ -464,6 +468,8 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript /// /// /// Create or update a component template. +/// +/// /// Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index 99181f041b5..bc86de41c9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -146,6 +146,8 @@ public sealed partial class CountRequestParameters : Elastic.Transport.RequestPa /// /// /// Count search results. +/// +/// /// Get the number of documents matching a query. /// /// @@ -329,6 +331,8 @@ internal CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// /// Count search results. +/// +/// /// Get the number of documents matching a query. /// /// @@ -661,6 +665,8 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor RequestConfiguration /// /// /// Count search results. +/// +/// /// Get the number of documents matching a query. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs index ec7e5c0de96..f00ca38048f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs @@ -46,6 +46,8 @@ public sealed partial class FollowRequestParameters : Elastic.Transport.RequestP /// /// /// Create a follower. +/// +/// /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// @@ -227,6 +229,8 @@ internal FollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// /// Create a follower. +/// +/// /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// @@ -573,6 +577,8 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri /// /// /// Create a follower. +/// +/// /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs index 0333825fb4f..4fa0d279c0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class ForgetFollowerRequestParameters : Elastic.Transport. /// /// /// Forget a follower. +/// +/// /// Remove the cross-cluster replication follower retention leases from the leader. /// /// @@ -103,6 +105,8 @@ internal ForgetFollowerRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Forget a follower. +/// +/// /// Remove the cross-cluster replication follower retention leases from the leader. /// /// @@ -242,6 +246,8 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.ForgetFollowerReque /// /// /// Forget a follower. +/// +/// /// Remove the cross-cluster replication follower retention leases from the leader. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs index aab7d3eec3e..63d9a43a2aa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class PutAutoFollowPatternRequestParameters : Elastic.Tran /// /// /// Create or update auto-follow patterns. +/// +/// /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. @@ -209,6 +211,8 @@ internal PutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serialization /// /// /// Create or update auto-follow patterns. +/// +/// /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs index c92ea623a24..a91fa3e0620 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class ResumeFollowRequestParameters : Elastic.Transport.Re /// /// /// Resume a follower. +/// +/// /// Resume a cross-cluster replication follower index that was paused. /// The follower index could have been paused with the pause follower API. /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. @@ -100,6 +102,8 @@ internal ResumeFollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Resume a follower. +/// +/// /// Resume a cross-cluster replication follower index that was paused. /// The follower index could have been paused with the pause follower API. /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. @@ -266,6 +270,8 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeFollowRequest /// /// /// Resume a follower. +/// +/// /// Resume a cross-cluster replication follower index that was paused. /// The follower index could have been paused with the pause follower API. /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs index f77effddc01..d76b5ae385d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class DeleteScriptRequestParameters : Elastic.Transport.Re /// /// /// Delete a script or search template. +/// +/// /// Deletes a stored script or search template. /// /// @@ -109,6 +111,8 @@ internal DeleteScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Delete a script or search template. +/// +/// /// Deletes a stored script or search template. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs index f4edd54252a..281da499ac9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class DeletePolicyRequestParameters : Elastic.Transport.Re /// /// /// Delete an enrich policy. +/// +/// /// Deletes an existing enrich policy and its enrich index. /// /// @@ -87,6 +89,8 @@ internal DeletePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Delete an enrich policy. +/// +/// /// Deletes an existing enrich policy and its enrich index. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs index 26a0d2d669d..45af2d75c0d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class EnrichStatsRequestParameters : Elastic.Transport.Req /// /// /// Get enrich stats. +/// +/// /// Returns enrich coordinator statistics and information about enrich policies that are currently executing. /// /// @@ -77,6 +79,8 @@ internal EnrichStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Get enrich stats. +/// +/// /// Returns enrich coordinator statistics and information about enrich policies that are currently executing. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs index 75459d21d78..b41afff9355 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class ExecutePolicyRequestParameters : Elastic.Transport.R /// /// /// Run an enrich policy. +/// +/// /// Create the enrich index for an existing enrich policy. /// /// @@ -101,6 +103,8 @@ internal ExecutePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Run an enrich policy. +/// +/// /// Create the enrich index for an existing enrich policy. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs index ae95daef120..f92b3685241 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class GetPolicyRequestParameters : Elastic.Transport.Reque /// /// /// Get an enrich policy. +/// +/// /// Returns information about an enrich policy. /// /// @@ -88,6 +90,8 @@ internal GetPolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Get an enrich policy. +/// +/// /// Returns information about an enrich policy. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs index 76c218766c9..e861394fd8d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class PutPolicyRequestParameters : Elastic.Transport.Reque /// /// /// Create an enrich policy. +/// +/// /// Creates an enrich policy. /// /// @@ -108,6 +110,8 @@ internal PutPolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Create an enrich policy. +/// +/// /// Creates an enrich policy. /// /// @@ -310,6 +314,8 @@ public Elastic.Clients.Elasticsearch.Enrich.PutPolicyRequestDescriptor RequestCo /// /// /// Create an enrich policy. +/// +/// /// Creates an enrich policy. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs index 343504c4034..eb290517ddd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class EqlDeleteRequestParameters : Elastic.Transport.Reque /// /// /// Delete an async EQL search. +/// +/// /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// @@ -77,6 +79,8 @@ internal EqlDeleteRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Delete an async EQL search. +/// +/// /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs index cce053f4805..a8e57ac691a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class EqlGetRequestParameters : Elastic.Transport.RequestP /// /// /// Get async EQL search results. +/// +/// /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// /// @@ -105,6 +107,8 @@ internal EqlGetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// /// Get async EQL search results. +/// +/// /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index a58336f781b..cbaae386d4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -57,6 +57,8 @@ public sealed partial class EqlSearchRequestParameters : Elastic.Transport.Reque /// /// /// Get EQL search results. +/// +/// /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// @@ -96,7 +98,7 @@ internal EqlSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// The name of the index to scope the operation + /// Comma-separated list of index names to scope the operation /// /// public @@ -220,7 +222,7 @@ internal EqlSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// Field containing event timestamp. Default "@timestamp" + /// Field containing event timestamp. /// /// public Elastic.Clients.Elasticsearch.Field? TimestampField { get; set; } @@ -230,6 +232,8 @@ internal EqlSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Get EQL search results. +/// +/// /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// @@ -262,7 +266,7 @@ public EqlSearchRequestDescriptor() /// /// - /// The name of the index to scope the operation + /// Comma-separated list of index names to scope the operation /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices value) @@ -646,7 +650,7 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor TiebreakerFi /// /// - /// Field containing event timestamp. Default "@timestamp" + /// Field containing event timestamp. /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Field? value) @@ -657,7 +661,7 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor TimestampFie /// /// - /// Field containing event timestamp. Default "@timestamp" + /// Field containing event timestamp. /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor TimestampField(System.Linq.Expressions.Expression> value) @@ -726,6 +730,8 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor RequestConfi /// /// /// Get EQL search results. +/// +/// /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// @@ -759,7 +765,7 @@ public EqlSearchRequestDescriptor() /// /// - /// The name of the index to scope the operation + /// Comma-separated list of index names to scope the operation /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices value) @@ -1089,7 +1095,7 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor T /// /// - /// Field containing event timestamp. Default "@timestamp" + /// Field containing event timestamp. /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Field? value) @@ -1100,7 +1106,7 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor T /// /// - /// Field containing event timestamp. Default "@timestamp" + /// Field containing event timestamp. /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor TimestampField(System.Linq.Expressions.Expression> value) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs index 6d96762ff0f..257f94ff86b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetEqlStatusRequestParameters : Elastic.Transport.Re /// /// /// Get the async EQL status. +/// +/// /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// /// @@ -74,6 +76,8 @@ internal GetEqlStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get the async EQL status. +/// +/// /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs index 0f03093aeee..34f6c32e3d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class AsyncQueryDeleteRequestParameters : Elastic.Transpor /// /// /// Delete an async ES|QL query. +/// +/// /// If the query is still running, it is cancelled. /// Otherwise, the stored results are deleted. /// @@ -92,6 +94,8 @@ internal AsyncQueryDeleteRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Delete an async ES|QL query. +/// +/// /// If the query is still running, it is cancelled. /// Otherwise, the stored results are deleted. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs index a18aa09a622..d4904cefd82 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs @@ -62,6 +62,8 @@ public sealed partial class AsyncQueryGetRequestParameters : Elastic.Transport.R /// /// /// Get async ES|QL query results. +/// +/// /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// @@ -142,6 +144,8 @@ internal AsyncQueryGetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Get async ES|QL query results. +/// +/// /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs index d71ae718162..a33c111a7c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs @@ -28,7 +28,7 @@ public sealed partial class AsyncQueryRequestConverter : System.Text.Json.Serial private static readonly System.Text.Json.JsonEncodedText PropColumnar = System.Text.Json.JsonEncodedText.Encode("columnar"); private static readonly System.Text.Json.JsonEncodedText PropFilter = System.Text.Json.JsonEncodedText.Encode("filter"); private static readonly System.Text.Json.JsonEncodedText PropIncludeCcsMetadata = System.Text.Json.JsonEncodedText.Encode("include_ccs_metadata"); - private static readonly System.Text.Json.JsonEncodedText PropIncludeCcsMetadata1 = System.Text.Json.JsonEncodedText.Encode("include_execution_metadata"); + private static readonly System.Text.Json.JsonEncodedText PropIncludeExecutionMetadata = System.Text.Json.JsonEncodedText.Encode("include_execution_metadata"); private static readonly System.Text.Json.JsonEncodedText PropKeepAlive = System.Text.Json.JsonEncodedText.Encode("keep_alive"); private static readonly System.Text.Json.JsonEncodedText PropKeepOnCompletion = System.Text.Json.JsonEncodedText.Encode("keep_on_completion"); private static readonly System.Text.Json.JsonEncodedText PropLocale = System.Text.Json.JsonEncodedText.Encode("locale"); @@ -43,6 +43,7 @@ public override Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest Read(ref Sy LocalJsonValue propColumnar = default; LocalJsonValue propFilter = default; LocalJsonValue propIncludeCcsMetadata = default; + LocalJsonValue propIncludeExecutionMetadata = default; LocalJsonValue propKeepAlive = default; LocalJsonValue propKeepOnCompletion = default; LocalJsonValue propLocale = default; @@ -62,7 +63,12 @@ public override Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest Read(ref Sy continue; } - if (propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o)) || propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata1, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + if (propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propIncludeExecutionMetadata.TryReadProperty(ref reader, options, PropIncludeExecutionMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; } @@ -117,6 +123,7 @@ public override Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest Read(ref Sy Columnar = propColumnar.Value, Filter = propFilter.Value, IncludeCcsMetadata = propIncludeCcsMetadata.Value, + IncludeExecutionMetadata = propIncludeExecutionMetadata.Value, KeepAlive = propKeepAlive.Value, KeepOnCompletion = propKeepOnCompletion.Value, Locale = propLocale.Value, @@ -133,6 +140,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropColumnar, value.Columnar, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropFilter, value.Filter, null, null); writer.WriteProperty(options, PropIncludeCcsMetadata, value.IncludeCcsMetadata, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropIncludeExecutionMetadata, value.IncludeExecutionMetadata, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropKeepAlive, value.KeepAlive, null, null); writer.WriteProperty(options, PropKeepOnCompletion, value.KeepOnCompletion, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropLocale, value.Locale, null, null); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs index 8b71fb92b2d..c2e5e6269b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs @@ -70,6 +70,8 @@ public sealed partial class AsyncQueryRequestParameters : Elastic.Transport.Requ /// /// /// Run an async ES|QL query. +/// +/// /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. /// /// @@ -173,6 +175,16 @@ internal AsyncQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// public bool? IncludeCcsMetadata { get; set; } + /// + /// + /// When set to true, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// This is similar to include_ccs_metadata, but it also returns metadata when the query is not CCS/CPS + /// + /// + public bool? IncludeExecutionMetadata { get; set; } + /// /// /// The period for which the query and its results are stored in the cluster. @@ -234,6 +246,8 @@ internal AsyncQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Run an async ES|QL query. +/// +/// /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. /// /// @@ -372,6 +386,20 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor IncludeCcs return this; } + /// + /// + /// When set to true, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// This is similar to include_ccs_metadata, but it also returns metadata when the query is not CCS/CPS + /// + /// + public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor IncludeExecutionMetadata(bool? value = true) + { + Instance.IncludeExecutionMetadata = value; + return this; + } + /// /// /// The period for which the query and its results are stored in the cluster. @@ -519,6 +547,8 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor RequestCon /// /// /// Run an async ES|QL query. +/// +/// /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. /// /// @@ -646,6 +676,20 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor return this; } + /// + /// + /// When set to true, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// This is similar to include_ccs_metadata, but it also returns metadata when the query is not CCS/CPS + /// + /// + public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor IncludeExecutionMetadata(bool? value = true) + { + Instance.IncludeExecutionMetadata = value; + return this; + } + /// /// /// The period for which the query and its results are stored in the cluster. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.Converters.g.cs index 8bc2741df7d..6b4ffaf41a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.Converters.g.cs @@ -28,7 +28,7 @@ public sealed partial class EsqlQueryRequestConverter : System.Text.Json.Seriali private static readonly System.Text.Json.JsonEncodedText PropColumnar = System.Text.Json.JsonEncodedText.Encode("columnar"); private static readonly System.Text.Json.JsonEncodedText PropFilter = System.Text.Json.JsonEncodedText.Encode("filter"); private static readonly System.Text.Json.JsonEncodedText PropIncludeCcsMetadata = System.Text.Json.JsonEncodedText.Encode("include_ccs_metadata"); - private static readonly System.Text.Json.JsonEncodedText PropIncludeCcsMetadata1 = System.Text.Json.JsonEncodedText.Encode("include_execution_metadata"); + private static readonly System.Text.Json.JsonEncodedText PropIncludeExecutionMetadata = System.Text.Json.JsonEncodedText.Encode("include_execution_metadata"); private static readonly System.Text.Json.JsonEncodedText PropLocale = System.Text.Json.JsonEncodedText.Encode("locale"); private static readonly System.Text.Json.JsonEncodedText PropParams = System.Text.Json.JsonEncodedText.Encode("params"); private static readonly System.Text.Json.JsonEncodedText PropProfile = System.Text.Json.JsonEncodedText.Encode("profile"); @@ -40,6 +40,7 @@ public override Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest Read(ref Sys LocalJsonValue propColumnar = default; LocalJsonValue propFilter = default; LocalJsonValue propIncludeCcsMetadata = default; + LocalJsonValue propIncludeExecutionMetadata = default; LocalJsonValue propLocale = default; LocalJsonValue>?> propParams = default; LocalJsonValue propProfile = default; @@ -56,7 +57,12 @@ public override Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest Read(ref Sys continue; } - if (propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o)) || propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata1, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + if (propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propIncludeExecutionMetadata.TryReadProperty(ref reader, options, PropIncludeExecutionMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; } @@ -96,6 +102,7 @@ public override Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest Read(ref Sys Columnar = propColumnar.Value, Filter = propFilter.Value, IncludeCcsMetadata = propIncludeCcsMetadata.Value, + IncludeExecutionMetadata = propIncludeExecutionMetadata.Value, Locale = propLocale.Value, Params = propParams.Value, Profile = propProfile.Value, @@ -109,6 +116,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropColumnar, value.Columnar, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropFilter, value.Filter, null, null); writer.WriteProperty(options, PropIncludeCcsMetadata, value.IncludeCcsMetadata, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropIncludeExecutionMetadata, value.IncludeExecutionMetadata, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropLocale, value.Locale, null, null); writer.WriteProperty(options, PropParams, value.Params, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection>? v) => w.WriteCollectionValue>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteSingleOrManyCollectionValue(o, v, null))); writer.WriteProperty(options, PropProfile, value.Profile, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs index ef919d88834..4baf6d53281 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -65,6 +65,8 @@ public sealed partial class EsqlQueryRequestParameters : Elastic.Transport.Reque /// /// /// Run an ES|QL query. +/// +/// /// Get search results for an ES|QL (Elasticsearch query language) query. /// /// @@ -159,6 +161,16 @@ internal EsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public bool? IncludeCcsMetadata { get; set; } + + /// + /// + /// When set to true, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// This is similar to include_ccs_metadata, but it also returns metadata when the query is not CCS/CPS + /// + /// + public bool? IncludeExecutionMetadata { get; set; } public string? Locale { get; set; } /// @@ -193,6 +205,8 @@ internal EsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Run an ES|QL query. +/// +/// /// Get search results for an ES|QL (Elasticsearch query language) query. /// /// @@ -323,6 +337,20 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor IncludeCcsM return this; } + /// + /// + /// When set to true, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// This is similar to include_ccs_metadata, but it also returns metadata when the query is not CCS/CPS + /// + /// + public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor IncludeExecutionMetadata(bool? value = true) + { + Instance.IncludeExecutionMetadata = value; + return this; + } + public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Locale(string? value) { Instance.Locale = value; @@ -430,6 +458,8 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor RequestConf /// /// /// Run an ES|QL query. +/// +/// /// Get search results for an ES|QL (Elasticsearch query language) query. /// /// @@ -549,6 +579,20 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor return this; } + /// + /// + /// When set to true, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// This is similar to include_ccs_metadata, but it also returns metadata when the query is not CCS/CPS + /// + /// + public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor IncludeExecutionMetadata(bool? value = true) + { + Instance.IncludeExecutionMetadata = value; + return this; + } + public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Locale(string? value) { Instance.Locale = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryRequest.g.cs index ceac79c6188..ca3e97fc0c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetEsqlQueryRequestParameters : Elastic.Transport.Re /// /// /// Get a specific running ES|QL query information. +/// +/// /// Returns an object extended information about a running ES|QL query. /// /// @@ -74,6 +76,8 @@ internal GetEsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get a specific running ES|QL query information. +/// +/// /// Returns an object extended information about a running ES|QL query. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesRequest.g.cs index 635f38e0483..a97ed16fe3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class ListQueriesRequestParameters : Elastic.Transport.Req /// /// /// Get running ES|QL queries information. +/// +/// /// Returns an object containing IDs and other information about the running ES|QL queries. /// /// @@ -64,6 +66,8 @@ internal ListQueriesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Get running ES|QL queries information. +/// +/// /// Returns an object containing IDs and other information about the running ES|QL queries. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs index 811c45e11fe..8182386d5b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs @@ -124,6 +124,8 @@ public sealed partial class ExplainRequestParameters : Elastic.Transport.Request /// /// /// Explain a document match result. +/// +/// /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// @@ -283,6 +285,8 @@ internal ExplainRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Explain a document match result. +/// +/// /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// @@ -624,6 +628,8 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor RequestConfigurati /// /// /// Explain a document match result. +/// +/// /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs index 25933cc7443..709a8da9b6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class GetFeaturesRequestParameters : Elastic.Transport.Req /// /// /// Get the features. +/// +/// /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. /// You can use this API to determine which feature states to include when taking a snapshot. /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. @@ -87,6 +89,8 @@ internal GetFeaturesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Get the features. +/// +/// /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. /// You can use this API to determine which feature states to include when taking a snapshot. /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs index bc39a39ad2d..df544e9db8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class ResetFeaturesRequestParameters : Elastic.Transport.R /// /// /// Reset the features. +/// +/// /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. /// /// @@ -98,6 +100,8 @@ internal ResetFeaturesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Reset the features. +/// +/// /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs index c984fff8309..0765b33055b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs @@ -46,7 +46,7 @@ public sealed partial class FieldCapsRequestParameters : Elastic.Transport.Reque /// A comma-separated list of filters to apply to the response. /// /// - public string? Filters { get => Q("filters"); set => Q("filters", value); } + public System.Collections.Generic.ICollection? Filters { get => Q?>("filters"); set => Q("filters", value); } /// /// @@ -150,7 +150,7 @@ internal FieldCapsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// A comma-separated list of filters to apply to the response. /// /// - public string? Filters { get => Q("filters"); set => Q("filters", value); } + public System.Collections.Generic.ICollection? Filters { get => Q?>("filters"); set => Q("filters", value); } /// /// @@ -297,12 +297,23 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor ExpandWildcards( /// A comma-separated list of filters to apply to the response. /// /// - public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Filters(string? value) + public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Filters(System.Collections.Generic.ICollection? value) { Instance.Filters = value; return this; } + /// + /// + /// A comma-separated list of filters to apply to the response. + /// + /// + public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Filters(params string[] values) + { + Instance.Filters = [.. values]; + return this; + } + /// /// /// If true, missing or closed indices are not included in the response. @@ -665,12 +676,23 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Expan /// A comma-separated list of filters to apply to the response. /// /// - public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Filters(string? value) + public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Filters(System.Collections.Generic.ICollection? value) { Instance.Filters = value; return this; } + /// + /// + /// A comma-separated list of filters to apply to the response. + /// + /// + public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Filters(params string[] values) + { + Instance.Filters = [.. values]; + return this; + } + /// /// /// If true, missing or closed indices are not included in the response. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs index e5152b61c31..726b98cfc4f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs @@ -38,6 +38,8 @@ public sealed partial class GetScriptRequestParameters : Elastic.Transport.Reque /// /// /// Get a script or search template. +/// +/// /// Retrieves a stored script or search template. /// /// @@ -91,6 +93,8 @@ internal GetScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Get a script or search template. +/// +/// /// Retrieves a stored script or search template. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs index d8f888f508f..08f7f295d68 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class ExploreRequestParameters : Elastic.Transport.Request /// /// /// Explore graph analytics. +/// +/// /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. @@ -137,6 +139,8 @@ internal ExploreRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Explore graph analytics. +/// +/// /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. @@ -412,6 +416,8 @@ public Elastic.Clients.Elasticsearch.Graph.ExploreRequestDescriptor RequestConfi /// /// /// Explore graph analytics. +/// +/// /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs index 991282e8bca..c15c72a056a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs @@ -50,6 +50,8 @@ public sealed partial class HealthReportRequestParameters : Elastic.Transport.Re /// /// /// Get the cluster health. +/// +/// /// Get a report with the health status of an Elasticsearch cluster. /// The report contains a list of indicators that compose Elasticsearch functionality. /// @@ -136,6 +138,8 @@ internal HealthReportRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get the cluster health. +/// +/// /// Get a report with the health status of an Elasticsearch cluster. /// The report contains a list of indicators that compose Elasticsearch functionality. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs index 35338e8d136..c4088d360c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class DeleteLifecycleRequestParameters : Elastic.Transport /// /// /// Delete a lifecycle policy. +/// +/// /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// @@ -101,6 +103,8 @@ internal DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// Delete a lifecycle policy. +/// +/// /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs index 97280a87f47..6b97afbe28c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs @@ -46,6 +46,8 @@ public sealed partial class MigrateToDataTiersRequestParameters : Elastic.Transp /// /// /// Migrate to data tiers routing. +/// +/// /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. @@ -126,6 +128,8 @@ internal MigrateToDataTiersRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// /// Migrate to data tiers routing. +/// +/// /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs index 52804341d85..1a1fd66f01d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class MoveToStepRequestParameters : Elastic.Transport.Requ /// /// /// Move to a lifecycle step. +/// +/// /// Manually move an index into a specific step in the lifecycle policy and run that step. /// /// @@ -119,6 +121,8 @@ internal MoveToStepRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Move to a lifecycle step. +/// +/// /// Manually move an index into a specific step in the lifecycle policy and run that step. /// /// @@ -272,6 +276,8 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.MoveToStepRequestD /// /// /// Move to a lifecycle step. +/// +/// /// Manually move an index into a specific step in the lifecycle policy and run that step. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs index d3cbd38e036..d621d40b71d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class PutLifecycleRequestParameters : Elastic.Transport.Re /// /// /// Create or update a lifecycle policy. +/// +/// /// If the specified policy exists, it is replaced and the policy version is incremented. /// /// @@ -105,6 +107,8 @@ internal PutLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Create or update a lifecycle policy. +/// +/// /// If the specified policy exists, it is replaced and the policy version is incremented. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs index a029ae73e31..16422c1c5bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class RemovePolicyRequestParameters : Elastic.Transport.Re /// /// /// Remove policies from an index. +/// +/// /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// @@ -75,6 +77,8 @@ internal RemovePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Remove policies from an index. +/// +/// /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// @@ -168,6 +172,8 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RemovePolicyReques /// /// /// Remove policies from an index. +/// +/// /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs index 34733028a98..31f51aad783 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class RetryRequestParameters : Elastic.Transport.RequestPa /// /// /// Retry a policy. +/// +/// /// Retry running the lifecycle policy for an index that is in the ERROR step. /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. @@ -76,6 +78,8 @@ internal RetryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// /// Retry a policy. +/// +/// /// Retry running the lifecycle policy for an index that is in the ERROR step. /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. @@ -170,6 +174,8 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RetryRequestDescri /// /// /// Retry a policy. +/// +/// /// Retry running the lifecycle policy for an index that is in the ERROR step. /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs index 1a98c3b398e..3216a660339 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class StartIlmRequestParameters : Elastic.Transport.Reques /// /// /// Start the ILM plugin. +/// +/// /// Start the index lifecycle management plugin if it is currently stopped. /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. @@ -93,6 +95,8 @@ internal StartIlmRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Start the ILM plugin. +/// +/// /// Start the index lifecycle management plugin if it is currently stopped. /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs index 1797bc3230f..dfe4f8335b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class StopIlmRequestParameters : Elastic.Transport.Request /// /// /// Stop the ILM plugin. +/// +/// /// Halt all lifecycle management operations and stop the index lifecycle management plugin. /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. /// @@ -96,6 +98,8 @@ internal StopIlmRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Stop the ILM plugin. +/// +/// /// Halt all lifecycle management operations and stop the index lifecycle management plugin. /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs index 79e6a584a5b..0f6b329e53a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class AnalyzeIndexRequestParameters : Elastic.Transport.Re /// /// /// Get tokens from text analysis. +/// +/// /// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// @@ -149,6 +151,8 @@ internal AnalyzeIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get tokens from text analysis. +/// +/// /// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// @@ -459,6 +463,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.AnalyzeIndexRequestDescript /// /// /// Get tokens from text analysis. +/// +/// /// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index da6dc50b133..43773ae5359 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -82,6 +82,8 @@ public sealed partial class ClearCacheRequestParameters : Elastic.Transport.Requ /// /// /// Clear the cache. +/// +/// /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// @@ -187,6 +189,8 @@ internal ClearCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Clear the cache. +/// +/// /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// @@ -396,6 +400,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor /// /// /// Clear the cache. +/// +/// /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs index 2ebc1ad9705..1efba48c759 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs @@ -53,6 +53,8 @@ public sealed partial class CloneIndexRequestParameters : Elastic.Transport.Requ /// /// /// Clone an index. +/// +/// /// Clone an existing index into a new index. /// Each original primary shard is cloned into a new primary shard in the new index. /// @@ -231,6 +233,8 @@ internal CloneIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Clone an index. +/// +/// /// Clone an existing index into a new index. /// Each original primary shard is cloned into a new primary shard in the new index. /// @@ -595,6 +599,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloneIndexRequestDescriptor /// /// /// Clone an index. +/// +/// /// Clone an existing index into a new index. /// Each original primary shard is cloned into a new primary shard in the new index. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs index cf1a7e53371..f70605d231a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs @@ -77,6 +77,8 @@ public sealed partial class CloseIndexRequestParameters : Elastic.Transport.Requ /// /// /// Close an index. +/// +/// /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. /// It is not possible to index documents or to search for documents in a closed index. /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. @@ -189,6 +191,8 @@ internal CloseIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Close an index. +/// +/// /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. /// It is not possible to index documents or to search for documents in a closed index. /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. @@ -386,6 +390,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor /// /// /// Close an index. +/// +/// /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. /// It is not possible to index documents or to search for documents in a closed index. /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs index 4026ad15f5e..5d5251908ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs @@ -53,6 +53,8 @@ public sealed partial class CreateIndexRequestParameters : Elastic.Transport.Req /// /// /// Create an index. +/// +/// /// You can use the create index API to add a new index to an Elasticsearch cluster. /// When creating an index, you can specify the following: /// @@ -231,6 +233,8 @@ internal CreateIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Create an index. +/// +/// /// You can use the create index API to add a new index to an Elasticsearch cluster. /// When creating an index, you can specify the following: /// @@ -687,6 +691,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CreateIndexRequestDescripto /// /// /// Create an index. +/// +/// /// You can use the create index API to add a new index to an Elasticsearch cluster. /// When creating an index, you can specify the following: /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs index 43741be7d2a..91705a5c3df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs @@ -45,7 +45,7 @@ public sealed partial class DataStreamsStatsRequestParameters : Elastic.Transpor [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamsStatsRequestConverter))] public sealed partial class DataStreamsStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { - public DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.IndexName? name) : base(r => r.Optional("name", name)) + public DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.Indices? name) : base(r => r.Optional("name", name)) { } #if NET7_0_OR_GREATER @@ -79,7 +79,7 @@ internal DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// To target all data streams in a cluster, omit this parameter or use *. /// /// - public Elastic.Clients.Elasticsearch.IndexName? Name { get => P("name"); set => PO("name", value); } + public Elastic.Clients.Elasticsearch.Indices? Name { get => P("name"); set => PO("name", value); } /// /// @@ -108,7 +108,7 @@ public DataStreamsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexMana Instance = instance; } - public DataStreamsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName? name) + public DataStreamsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? name) { Instance = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequest(name); } @@ -128,7 +128,7 @@ public DataStreamsStatsRequestDescriptor() /// To target all data streams in a cluster, omit this parameter or use *. /// /// - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor Name(Elastic.Clients.Elasticsearch.IndexName? value) + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor Name(Elastic.Clients.Elasticsearch.Indices? value) { Instance.Name = value; return this; @@ -232,14 +232,14 @@ public DataStreamsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexMana Instance = instance; } - public DataStreamsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName? name) + public DataStreamsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? name) { Instance = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequest(name); } public DataStreamsStatsRequestDescriptor() { - Instance = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequest(typeof(TDocument)); + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); } public static explicit operator Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequest instance) => new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor(instance); @@ -252,7 +252,7 @@ public DataStreamsStatsRequestDescriptor() /// To target all data streams in a cluster, omit this parameter or use *. /// /// - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor Name(Elastic.Clients.Elasticsearch.IndexName? value) + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor Name(Elastic.Clients.Elasticsearch.Indices? value) { Instance.Name = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs index 8fbeff5b09f..761397643eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class DeleteAliasRequestParameters : Elastic.Transport.Req /// /// /// Delete an alias. +/// +/// /// Removes a data stream or index from an alias. /// /// @@ -118,6 +120,8 @@ internal DeleteAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Delete an alias. +/// +/// /// Removes a data stream or index from an alias. /// /// @@ -247,6 +251,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteAliasRequestDescripto /// /// /// Delete an alias. +/// +/// /// Removes a data stream or index from an alias. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs index 9688c73b9b6..17c76fd324a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs @@ -50,6 +50,8 @@ public sealed partial class DeleteDataLifecycleRequestParameters : Elastic.Trans /// /// /// Delete data stream lifecycles. +/// +/// /// Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle. /// /// @@ -115,6 +117,8 @@ internal DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization. /// /// /// Delete data stream lifecycles. +/// +/// /// Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsRequest.g.cs index 50050a53955..a2e50d9017f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsRequest.g.cs @@ -50,6 +50,8 @@ public sealed partial class DeleteDataStreamOptionsRequestParameters : Elastic.T /// /// /// Delete data stream options. +/// +/// /// Removes the data stream options from a data stream. /// /// @@ -115,6 +117,8 @@ internal DeleteDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.Serializat /// /// /// Delete data stream options. +/// +/// /// Removes the data stream options from a data stream. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs index e9c11b3f5fc..d1ebd2150d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class DeleteDataStreamRequestParameters : Elastic.Transpor /// /// /// Delete data streams. +/// +/// /// Deletes one or more data streams and their backing indices. /// /// @@ -101,6 +103,8 @@ internal DeleteDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Delete data streams. +/// +/// /// Deletes one or more data streams and their backing indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs index 67a5c2ef6cc..ace6337443c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs @@ -69,6 +69,8 @@ public sealed partial class DeleteIndexRequestParameters : Elastic.Transport.Req /// /// /// Delete indices. +/// +/// /// Deleting an index deletes its documents, shards, and metadata. /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// @@ -162,6 +164,8 @@ internal DeleteIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Delete indices. +/// +/// /// Deleting an index deletes its documents, shards, and metadata. /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// @@ -336,6 +340,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescripto /// /// /// Delete indices. +/// +/// /// Deleting an index deletes its documents, shards, and metadata. /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs index 8099ab20ee3..ad6eabefaa8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class DeleteIndexTemplateRequestParameters : Elastic.Trans /// /// /// Delete an index template. +/// +/// /// The provided <index-template> may contain multiple template names separated by a comma. If multiple template /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. @@ -103,6 +105,8 @@ internal DeleteIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization. /// /// /// Delete an index template. +/// +/// /// The provided <index-template> may contain multiple template names separated by a comma. If multiple template /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.Converters.g.cs new file mode 100644 index 00000000000..65ed74e7dd3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.Converters.g.cs @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class DeleteSampleConfigurationRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + public override Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.g.cs new file mode 100644 index 00000000000..1a674e398b5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.g.cs @@ -0,0 +1,344 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class DeleteSampleConfigurationRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Delete sampling configuration. +/// +/// +/// Delete the sampling configuration for the specified index. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DeleteSampleConfigurationRequestConverter))] +public sealed partial class DeleteSampleConfigurationRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } +#if NET7_0_OR_GREATER + public DeleteSampleConfigurationRequest() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal DeleteSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.IndexManagementDeleteSampleConfiguration; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.delete_sample_configuration"; + + /// + /// + /// The name of the index. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Delete sampling configuration. +/// +/// +/// Delete the sampling configuration for the specified index. +/// +/// +public readonly partial struct DeleteSampleConfigurationRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest instance) + { + Instance = instance; + } + + public DeleteSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) + { + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest(index); + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] + public DeleteSampleConfigurationRequestDescriptor() + { + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); + } + + public static explicit operator Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest instance) => new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The name of the index. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + { + Instance.Index = value; + return this; + } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.MasterTimeout = value; + return this; + } + + /// + /// + /// Period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.Timeout = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} + +/// +/// +/// Delete sampling configuration. +/// +/// +/// Delete the sampling configuration for the specified index. +/// +/// +public readonly partial struct DeleteSampleConfigurationRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest instance) + { + Instance = instance; + } + + public DeleteSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) + { + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest(index); + } + + public DeleteSampleConfigurationRequestDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest(typeof(TDocument)); + } + + public static explicit operator Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest instance) => new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The name of the index. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + { + Instance.Index = value; + return this; + } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.MasterTimeout = value; + return this; + } + + /// + /// + /// Period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.Timeout = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest Build(System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.Converters.g.cs new file mode 100644 index 00000000000..b15e5f60913 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.Converters.g.cs @@ -0,0 +1,63 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class DeleteSampleConfigurationResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropAcknowledged = System.Text.Json.JsonEncodedText.Encode("acknowledged"); + + public override Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propAcknowledged = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propAcknowledged.TryReadProperty(ref reader, options, PropAcknowledged, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Acknowledged = propAcknowledged.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropAcknowledged, value.Acknowledged, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.g.cs new file mode 100644 index 00000000000..509b25f5934 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.g.cs @@ -0,0 +1,50 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DeleteSampleConfigurationResponseConverter))] +public sealed partial class DeleteSampleConfigurationResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteSampleConfigurationResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal DeleteSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + bool Acknowledged { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs index 584456a638c..4d5ce065a07 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class DeleteTemplateRequestParameters : Elastic.Transport. /// /// /// Delete a legacy index template. +/// +/// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// @@ -106,6 +108,8 @@ internal DeleteTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Delete a legacy index template. +/// +/// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs index f07d836f6cd..f396cfad4e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs @@ -70,6 +70,8 @@ public sealed partial class DiskUsageRequestParameters : Elastic.Transport.Reque /// /// /// Analyze the index disk usage. +/// +/// /// Analyze the disk usage of each field of an index or data stream. /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. @@ -166,6 +168,8 @@ internal DiskUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Analyze the index disk usage. +/// +/// /// Analyze the disk usage of each field of an index or data stream. /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. @@ -343,6 +347,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor /// /// /// Analyze the index disk usage. +/// +/// /// Analyze the disk usage of each field of an index or data stream. /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs index ecad8e662e5..db00418ce5b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class DownsampleRequestParameters : Elastic.Transport.Requ /// /// /// Downsample an index. +/// +/// /// Downsamples a time series (TSDS) index and reduces its size by keeping the last value or by pre-aggregating metrics: /// /// @@ -119,6 +121,8 @@ internal DownsampleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Downsample an index. +/// +/// /// Downsamples a time series (TSDS) index and reduces its size by keeping the last value or by pre-aggregating metrics: /// /// @@ -258,6 +262,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DownsampleRequestDescriptor /// /// /// Downsample an index. +/// +/// /// Downsamples a time series (TSDS) index and reduces its size by keeping the last value or by pre-aggregating metrics: /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs index 709b329cc44..53415dc5b51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -74,6 +74,8 @@ public sealed partial class ExistsRequestParameters : Elastic.Transport.RequestP /// /// /// Check indices. +/// +/// /// Check if one or more indices, index aliases, or data streams exist. /// /// @@ -163,6 +165,8 @@ internal ExistsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// /// Check indices. +/// +/// /// Check if one or more indices, index aliases, or data streams exist. /// /// @@ -337,6 +341,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor Req /// /// /// Check indices. +/// +/// /// Check if one or more indices, index aliases, or data streams exist. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs index 886289e29e1..4ac1300d047 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs @@ -37,6 +37,7 @@ public sealed partial class ExistsTemplateRequestParameters : Elastic.Transport. /// Indicates whether to get information from the local node only. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -52,6 +53,8 @@ public sealed partial class ExistsTemplateRequestParameters : Elastic.Transport. /// /// /// Check existence of index templates. +/// +/// /// Get information about whether index templates exist. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// @@ -109,6 +112,7 @@ internal ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Indicates whether to get information from the local node only. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -124,6 +128,8 @@ internal ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Check existence of index templates. +/// +/// /// Get information about whether index templates exist. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// @@ -178,6 +184,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsTemplateRequestDescri return this; } + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] /// /// /// Indicates whether to get information from the local node only. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs index 5eb3cf9e1ba..dbbab011f10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class ExplainDataLifecycleRequestParameters : Elastic.Tran /// /// /// Get the status for a data stream lifecycle. +/// +/// /// Get information about an index or data stream's current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution. /// /// @@ -74,7 +76,7 @@ internal ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization /// /// - /// The name of the index to explain + /// Comma-separated list of index names to explain /// /// public @@ -101,6 +103,8 @@ internal ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization /// /// /// Get the status for a data stream lifecycle. +/// +/// /// Get information about an index or data stream's current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution. /// /// @@ -130,7 +134,7 @@ public ExplainDataLifecycleRequestDescriptor() /// /// - /// The name of the index to explain + /// Comma-separated list of index names to explain /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExplainDataLifecycleRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices value) @@ -215,6 +219,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExplainDataLifecycleRequest /// /// /// Get the status for a data stream lifecycle. +/// +/// /// Get information about an index or data stream's current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution. /// /// @@ -243,7 +249,7 @@ public ExplainDataLifecycleRequestDescriptor() /// /// - /// The name of the index to explain + /// Comma-separated list of index names to explain /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExplainDataLifecycleRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices value) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs index 8e8b8032273..8904b6a2c3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs @@ -61,6 +61,8 @@ public sealed partial class FieldUsageStatsRequestParameters : Elastic.Transport /// /// /// Get field usage stats. +/// +/// /// Get field usage information for each shard and field of an index. /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. @@ -143,6 +145,8 @@ internal FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// Get field usage stats. +/// +/// /// Get field usage information for each shard and field of an index. /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. @@ -313,6 +317,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescr /// /// /// Get field usage stats. +/// +/// /// Get field usage information for each shard and field of an index. /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs index d64535712af..8181bf2a3c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -68,6 +68,8 @@ public sealed partial class FlushRequestParameters : Elastic.Transport.RequestPa /// /// /// Flush data streams or indices. +/// +/// /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. @@ -164,6 +166,8 @@ internal FlushRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// /// Flush data streams or indices. +/// +/// /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. @@ -345,6 +349,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor Requ /// /// /// Flush data streams or indices. +/// +/// /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index 27e83d2c336..008c6168858 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -78,6 +78,8 @@ public sealed partial class ForcemergeRequestParameters : Elastic.Transport.Requ /// /// /// Force a merge. +/// +/// /// Perform the force merge operation on the shards of one or more indices. /// For data streams, the API forces a merge on the shards of the stream's backing indices. /// @@ -250,6 +252,8 @@ internal ForcemergeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Force a merge. +/// +/// /// Perform the force merge operation on the shards of one or more indices. /// For data streams, the API forces a merge on the shards of the stream's backing indices. /// @@ -513,6 +517,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor /// /// /// Force a merge. +/// +/// /// Perform the force merge operation on the shards of one or more indices. /// For data streams, the API forces a merge on the shards of the stream's backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index 0c20d7cf1c7..772da23cad4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -61,6 +61,8 @@ public sealed partial class GetAliasRequestParameters : Elastic.Transport.Reques /// /// /// Get aliases. +/// +/// /// Retrieves information for one or more data stream or index aliases. /// /// @@ -156,6 +158,8 @@ internal GetAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Get aliases. +/// +/// /// Retrieves information for one or more data stream or index aliases. /// /// @@ -338,6 +342,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor R /// /// /// Get aliases. +/// +/// /// Retrieves information for one or more data stream or index aliases. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.Converters.g.cs new file mode 100644 index 00000000000..566c49c8986 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.Converters.g.cs @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class GetAllSampleConfigurationRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + public override Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.g.cs new file mode 100644 index 00000000000..6ddcd1ffaea --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.g.cs @@ -0,0 +1,176 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class GetAllSampleConfigurationRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// +/// Get all sampling configurations. +/// +/// +/// Get the sampling configurations for all indices. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.GetAllSampleConfigurationRequestConverter))] +public sealed partial class GetAllSampleConfigurationRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ +#if NET7_0_OR_GREATER + public GetAllSampleConfigurationRequest() + { + } +#endif +#if !NET7_0_OR_GREATER + public GetAllSampleConfigurationRequest() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal GetAllSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.IndexManagementGetAllSampleConfiguration; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.get_all_sample_configuration"; + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// +/// Get all sampling configurations. +/// +/// +/// Get the sampling configurations for all indices. +/// +/// +public readonly partial struct GetAllSampleConfigurationRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetAllSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest instance) + { + Instance = instance; + } + + public GetAllSampleConfigurationRequestDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest instance) => new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.MasterTimeout = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest Build(System.Action? action) + { + if (action is null) + { + return new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor(new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.Converters.g.cs new file mode 100644 index 00000000000..f189b8e0d97 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.Converters.g.cs @@ -0,0 +1,63 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class GetAllSampleConfigurationResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropConfigurations = System.Text.Json.JsonEncodedText.Encode("configurations"); + + public override Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue> propConfigurations = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propConfigurations.TryReadProperty(ref reader, options, PropConfigurations, static System.Collections.Generic.IReadOnlyCollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null)!)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Configurations = propConfigurations.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropConfigurations, value.Configurations, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection v) => w.WriteCollectionValue(o, v, null)); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.g.cs new file mode 100644 index 00000000000..a65a9191195 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.g.cs @@ -0,0 +1,45 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.GetAllSampleConfigurationResponseConverter))] +public sealed partial class GetAllSampleConfigurationResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetAllSampleConfigurationResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal GetAllSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + public +#if NET7_0_OR_GREATER +required +#endif +System.Collections.Generic.IReadOnlyCollection Configurations { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs index 9bdaab59ce3..1f7d9e01868 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetDataLifecycleStatsRequestParameters : Elastic.Tra /// /// /// Get data stream lifecycle stats. +/// +/// /// Get statistics about the data streams that are managed by a data stream lifecycle. /// /// @@ -64,6 +66,8 @@ internal GetDataLifecycleStatsRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// /// Get data stream lifecycle stats. +/// +/// /// Get statistics about the data streams that are managed by a data stream lifecycle. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs index 5b955551d7d..09366ff0a91 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs @@ -60,6 +60,8 @@ public sealed partial class GetFieldMappingRequestParameters : Elastic.Transport /// /// /// Get mapping definitions. +/// +/// /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// @@ -154,6 +156,8 @@ internal GetFieldMappingRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// Get mapping definitions. +/// +/// /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// @@ -341,6 +345,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescr /// /// /// Get mapping definitions. +/// +/// /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs index 607584b2dae..1dfcce66a3b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs @@ -89,6 +89,8 @@ public sealed partial class GetIndexRequestParameters : Elastic.Transport.Reques /// /// /// Get index information. +/// +/// /// Get information about one or more indices. For data streams, the API returns information about the /// stream’s backing indices. /// @@ -195,6 +197,8 @@ internal GetIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Get index information. +/// +/// /// Get information about one or more indices. For data streams, the API returns information about the /// stream’s backing indices. /// @@ -405,6 +409,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor R /// /// /// Get index information. +/// +/// /// Get information about one or more indices. For data streams, the API returns information about the /// stream’s backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs index feb86b26269..e8a35dd6932 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs @@ -44,6 +44,7 @@ public sealed partial class GetIndexTemplateRequestParameters : Elastic.Transpor /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -57,6 +58,8 @@ public sealed partial class GetIndexTemplateRequestParameters : Elastic.Transpor /// /// /// Get index templates. +/// +/// /// Get information about one or more index templates. /// /// @@ -92,7 +95,7 @@ internal GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// - /// Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. + /// Name of index template to retrieve. Wildcard (*) expressions are supported. /// /// public Elastic.Clients.Elasticsearch.Name? Name { get => P("name"); set => PO("name", value); } @@ -116,6 +119,7 @@ internal GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -129,6 +133,8 @@ internal GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Get index templates. +/// +/// /// Get information about one or more index templates. /// /// @@ -157,7 +163,7 @@ public GetIndexTemplateRequestDescriptor() /// /// - /// Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. + /// Name of index template to retrieve. Wildcard (*) expressions are supported. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? value) @@ -188,6 +194,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexTemplateRequestDesc return this; } + [System.Obsolete("Deprecated in '9.0.0'. This parameter has no effect, is now deprecated, and will be removed in a future version.")] /// /// /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs index 318976042b4..f822d868101 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs @@ -72,6 +72,7 @@ public sealed partial class GetIndicesSettingsRequestParameters : Elastic.Transp /// false, information is retrieved from the master node. /// /// + [System.Obsolete("Deprecated in '9.1.0'. This parameter is a no-op and settings are always retrieved locally.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -87,6 +88,8 @@ public sealed partial class GetIndicesSettingsRequestParameters : Elastic.Transp /// /// /// Get index settings. +/// +/// /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// @@ -192,6 +195,7 @@ internal GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// false, information is retrieved from the master node. /// /// + [System.Obsolete("Deprecated in '9.1.0'. This parameter is a no-op and settings are always retrieved locally.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -207,6 +211,8 @@ internal GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// /// Get index settings. +/// +/// /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// @@ -342,6 +348,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe return this; } + [System.Obsolete("Deprecated in '9.1.0'. This parameter is a no-op and settings are always retrieved locally.")] /// /// /// If true, the request retrieves information from the local node only. If @@ -426,6 +433,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe /// /// /// Get index settings. +/// +/// /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// @@ -561,6 +570,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe return this; } + [System.Obsolete("Deprecated in '9.1.0'. This parameter is a no-op and settings are always retrieved locally.")] /// /// /// If true, the request retrieves information from the local node only. If diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs index 2371b399d01..176baab93e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -69,6 +69,8 @@ public sealed partial class GetMappingRequestParameters : Elastic.Transport.Requ /// /// /// Get mapping definitions. +/// +/// /// For data streams, the API retrieves mappings for the stream’s backing indices. /// /// @@ -155,6 +157,8 @@ internal GetMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get mapping definitions. +/// +/// /// For data streams, the API retrieves mappings for the stream’s backing indices. /// /// @@ -326,6 +330,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor /// /// /// Get mapping definitions. +/// +/// /// For data streams, the API retrieves mappings for the stream’s backing indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.Converters.g.cs new file mode 100644 index 00000000000..5fb5531c3f1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.Converters.g.cs @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class GetSampleConfigurationRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + public override Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.g.cs new file mode 100644 index 00000000000..2aa30de148b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.g.cs @@ -0,0 +1,304 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class GetSampleConfigurationRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// +/// Get sampling configuration. +/// +/// +/// Get the sampling configuration for the specified index. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.GetSampleConfigurationRequestConverter))] +public sealed partial class GetSampleConfigurationRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } +#if NET7_0_OR_GREATER + public GetSampleConfigurationRequest() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal GetSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.IndexManagementGetSampleConfiguration; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.get_sample_configuration"; + + /// + /// + /// The name of the index. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// +/// Get sampling configuration. +/// +/// +/// Get the sampling configuration for the specified index. +/// +/// +public readonly partial struct GetSampleConfigurationRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest instance) + { + Instance = instance; + } + + public GetSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) + { + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest(index); + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] + public GetSampleConfigurationRequestDescriptor() + { + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); + } + + public static explicit operator Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest instance) => new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The name of the index. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + { + Instance.Index = value; + return this; + } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.MasterTimeout = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} + +/// +/// +/// Get sampling configuration. +/// +/// +/// Get the sampling configuration for the specified index. +/// +/// +public readonly partial struct GetSampleConfigurationRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest instance) + { + Instance = instance; + } + + public GetSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) + { + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest(index); + } + + public GetSampleConfigurationRequestDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest(typeof(TDocument)); + } + + public static explicit operator Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest instance) => new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The name of the index. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + { + Instance.Index = value; + return this; + } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.MasterTimeout = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest Build(System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.Converters.g.cs new file mode 100644 index 00000000000..f4b5d78773f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.Converters.g.cs @@ -0,0 +1,72 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class GetSampleConfigurationResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropConfiguration = System.Text.Json.JsonEncodedText.Encode("configuration"); + private static readonly System.Text.Json.JsonEncodedText PropIndex = System.Text.Json.JsonEncodedText.Encode("index"); + + public override Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propConfiguration = default; + LocalJsonValue propIndex = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propConfiguration.TryReadProperty(ref reader, options, PropConfiguration, null)) + { + continue; + } + + if (propIndex.TryReadProperty(ref reader, options, PropIndex, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Configuration = propConfiguration.Value, + Index = propIndex.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropConfiguration, value.Configuration, null, null); + writer.WriteProperty(options, PropIndex, value.Index, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.g.cs new file mode 100644 index 00000000000..747bbc30b4c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.g.cs @@ -0,0 +1,50 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.GetSampleConfigurationResponseConverter))] +public sealed partial class GetSampleConfigurationResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetSampleConfigurationResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal GetSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + public +#if NET7_0_OR_GREATER +required +#endif +Elastic.Clients.Elasticsearch.IndexManagement.SamplingConfiguration? Configuration { get; set; } + public +#if NET7_0_OR_GREATER +required +#endif +string Index { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs index 354efda3041..57fd0d51162 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs @@ -37,6 +37,7 @@ public sealed partial class GetTemplateRequestParameters : Elastic.Transport.Req /// If true, the request retrieves information from the local node only. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter is a no-op and templates are always retrieved locally.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -51,6 +52,8 @@ public sealed partial class GetTemplateRequestParameters : Elastic.Transport.Req /// /// /// Get legacy index templates. +/// +/// /// Get information about one or more index templates. /// /// @@ -108,6 +111,7 @@ internal GetTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// If true, the request retrieves information from the local node only. /// /// + [System.Obsolete("Deprecated in '9.0.0'. This parameter is a no-op and templates are always retrieved locally.")] public bool? Local { get => Q("local"); set => Q("local", value); } /// @@ -122,6 +126,8 @@ internal GetTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Get legacy index templates. +/// +/// /// Get information about one or more index templates. /// /// @@ -175,6 +181,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetTemplateRequestDescripto return this; } + [System.Obsolete("Deprecated in '9.0.0'. This parameter is a no-op and templates are always retrieved locally.")] /// /// /// If true, the request retrieves information from the local node only. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs index 9667b47d0db..8eb1150a376 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs @@ -94,6 +94,8 @@ public sealed partial class IndicesStatsRequestParameters : Elastic.Transport.Re /// /// /// Get index statistics. +/// +/// /// For data streams, the API retrieves statistics for the stream's backing indices. /// /// @@ -112,7 +114,7 @@ public sealed partial class IndicesStatsRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndicesStatsRequestConverter))] public sealed partial class IndicesStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { - public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) + public IndicesStatsRequest(System.Collections.Generic.ICollection? metric) : base(r => r.Optional("metric", metric)) { } @@ -120,7 +122,7 @@ public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas { } - public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("index", indices).Optional("metric", metric)) + public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric) : base(r => r.Optional("index", indices).Optional("metric", metric)) { } #if NET7_0_OR_GREATER @@ -159,7 +161,7 @@ internal IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Limit the information returned the specific metrics. /// /// - public Elastic.Clients.Elasticsearch.Metrics? Metric { get => P("metric"); set => PO("metric", value); } + public System.Collections.Generic.ICollection? Metric { get => P?>("metric"); set => PO("metric", value); } /// /// @@ -230,6 +232,8 @@ internal IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get index statistics. +/// +/// /// For data streams, the API retrieves statistics for the stream's backing indices. /// /// @@ -255,7 +259,7 @@ public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManageme Instance = instance; } - public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) + public IndicesStatsRequestDescriptor(System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequest(metric); } @@ -265,7 +269,7 @@ public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indi Instance = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequest(indices); } - public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric) + public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequest(indices, metric); } @@ -294,12 +298,23 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript /// Limit the information returned the specific metrics. /// /// - public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? value) + public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(System.Collections.Generic.ICollection? value) { Instance.Metric = value; return this; } + /// + /// + /// Limit the information returned the specific metrics. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(params Elastic.Clients.Elasticsearch.CommonStatsFlag[] values) + { + Instance.Metric = [.. values]; + return this; + } + /// /// /// Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. @@ -517,6 +532,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript /// /// /// Get index statistics. +/// +/// /// For data streams, the API retrieves statistics for the stream's backing indices. /// /// @@ -542,7 +559,7 @@ public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManageme Instance = instance; } - public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) + public IndicesStatsRequestDescriptor(System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequest(metric); } @@ -552,7 +569,7 @@ public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indi Instance = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequest(indices); } - public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric) + public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequest(indices, metric); } @@ -581,12 +598,23 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript /// Limit the information returned the specific metrics. /// /// - public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? value) + public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(System.Collections.Generic.ICollection? value) { Instance.Metric = value; return this; } + /// + /// + /// Limit the information returned the specific metrics. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(params Elastic.Clients.Elasticsearch.CommonStatsFlag[] values) + { + Instance.Metric = [.. values]; + return this; + } + /// /// /// Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs index f66f46357dd..90b9820a643 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class MigrateToDataStreamRequestParameters : Elastic.Trans /// /// /// Convert an index alias to a data stream. +/// +/// /// Converts an index alias to a data stream. /// You must have a matching index template that is data stream enabled. /// The alias must meet the following criteria: @@ -110,6 +112,8 @@ internal MigrateToDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization. /// /// /// Convert an index alias to a data stream. +/// +/// /// Converts an index alias to a data stream. /// You must have a matching index template that is data stream enabled. /// The alias must meet the following criteria: @@ -233,6 +237,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.MigrateToDataStreamRequestD /// /// /// Convert an index alias to a data stream. +/// +/// /// Converts an index alias to a data stream. /// You must have a matching index template that is data stream enabled. /// The alias must meet the following criteria: diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs index 614ea781a3e..878f423d5af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class ModifyDataStreamRequestParameters : Elastic.Transpor /// /// /// Update data streams. +/// +/// /// Performs one or more data stream modification actions in a single atomic operation. /// /// @@ -81,6 +83,8 @@ internal ModifyDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Update data streams. +/// +/// /// Performs one or more data stream modification actions in a single atomic operation. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs index 1b2791739ed..c0ac05501e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs @@ -77,6 +77,8 @@ public sealed partial class OpenIndexRequestParameters : Elastic.Transport.Reque /// /// /// Open a closed index. +/// +/// /// For data streams, the API opens any closed backing indices. /// /// @@ -200,6 +202,8 @@ internal OpenIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Open a closed index. +/// +/// /// For data streams, the API opens any closed backing indices. /// /// @@ -408,6 +412,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor /// /// /// Open a closed index. +/// +/// /// For data streams, the API opens any closed backing indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs index 38db9bfba37..e313568a9d0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class PromoteDataStreamRequestParameters : Elastic.Transpo /// /// /// Promote a data stream. +/// +/// /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. /// /// @@ -98,6 +100,8 @@ internal PromoteDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// /// Promote a data stream. +/// +/// /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. /// /// @@ -212,6 +216,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PromoteDataStreamRequestDes /// /// /// Promote a data stream. +/// +/// /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs index 0a94f277e91..5c080e01edd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class PutAliasRequestParameters : Elastic.Transport.Reques /// /// /// Create or update an alias. +/// +/// /// Adds a data stream or index to an alias. /// /// @@ -163,6 +165,8 @@ internal PutAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Create or update an alias. +/// +/// /// Adds a data stream or index to an alias. /// /// @@ -379,6 +383,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutAliasRequestDescriptor R /// /// /// Create or update an alias. +/// +/// /// Adds a data stream or index to an alias. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs index ded1340e63a..ea34dc4046a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -54,6 +54,8 @@ public sealed partial class PutDataLifecycleRequestParameters : Elastic.Transpor /// /// /// Update data stream lifecycles. +/// +/// /// Update the data stream lifecycle of the specified data streams. /// /// @@ -149,6 +151,8 @@ internal PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Update data stream lifecycles. +/// +/// /// Update the data stream lifecycle of the specified data streams. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsRequest.g.cs index 5cf573e694d..0f4d74d45f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsRequest.g.cs @@ -54,6 +54,8 @@ public sealed partial class PutDataStreamOptionsRequestParameters : Elastic.Tran /// /// /// Update data stream options. +/// +/// /// Update the data stream options of the specified data streams. /// /// @@ -132,6 +134,8 @@ internal PutDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.Serialization /// /// /// Update data stream options. +/// +/// /// Update the data stream options of the specified data streams. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs index 43366d6bd30..95653d2bd35 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs @@ -51,6 +51,8 @@ public sealed partial class PutIndexTemplateRequestParameters : Elastic.Transpor /// /// /// Create or update an index template. +/// +/// /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// /// @@ -238,6 +240,8 @@ internal PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Create or update an index template. +/// +/// /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// /// @@ -648,6 +652,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDesc /// /// /// Create or update an index template. +/// +/// /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs index c71dc48b3c5..93a3ecfa98f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs @@ -97,6 +97,8 @@ public sealed partial class PutIndicesSettingsRequestParameters : Elastic.Transp /// /// /// Update index settings. +/// +/// /// Changes dynamic index settings in real time. /// For data streams, index setting changes are applied to all backing indices by default. /// @@ -288,6 +290,8 @@ internal PutIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// /// Update index settings. +/// +/// /// Changes dynamic index settings in real time. /// For data streams, index setting changes are applied to all backing indices by default. /// @@ -578,6 +582,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDe /// /// /// Update index settings. +/// +/// /// Changes dynamic index settings in real time. /// For data streams, index setting changes are applied to all backing indices by default. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index eba653fe2cc..4747005ae30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -76,6 +76,8 @@ public sealed partial class PutMappingRequestParameters : Elastic.Transport.Requ /// /// /// Update field mappings. +/// +/// /// Add new fields to an existing data stream or index. /// You can use the update mapping API to: /// @@ -306,6 +308,8 @@ internal PutMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Update field mappings. +/// +/// /// Add new fields to an existing data stream or index. /// You can use the update mapping API to: /// @@ -940,6 +944,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor /// /// /// Update field mappings. +/// +/// /// Add new fields to an existing data stream or index. /// You can use the update mapping API to: /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.Converters.g.cs new file mode 100644 index 00000000000..0ccd51b791f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.Converters.g.cs @@ -0,0 +1,99 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class PutSampleConfigurationRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropIf = System.Text.Json.JsonEncodedText.Encode("if"); + private static readonly System.Text.Json.JsonEncodedText PropMaxSamples = System.Text.Json.JsonEncodedText.Encode("max_samples"); + private static readonly System.Text.Json.JsonEncodedText PropMaxSize = System.Text.Json.JsonEncodedText.Encode("max_size"); + private static readonly System.Text.Json.JsonEncodedText PropRate = System.Text.Json.JsonEncodedText.Encode("rate"); + private static readonly System.Text.Json.JsonEncodedText PropTimeToLive = System.Text.Json.JsonEncodedText.Encode("time_to_live"); + + public override Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propIf = default; + LocalJsonValue propMaxSamples = default; + LocalJsonValue propMaxSize = default; + LocalJsonValue propRate = default; + LocalJsonValue propTimeToLive = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propIf.TryReadProperty(ref reader, options, PropIf, null)) + { + continue; + } + + if (propMaxSamples.TryReadProperty(ref reader, options, PropMaxSamples, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propMaxSize.TryReadProperty(ref reader, options, PropMaxSize, null)) + { + continue; + } + + if (propRate.TryReadProperty(ref reader, options, PropRate, null)) + { + continue; + } + + if (propTimeToLive.TryReadProperty(ref reader, options, PropTimeToLive, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + If = propIf.Value, + MaxSamples = propMaxSamples.Value, + MaxSize = propMaxSize.Value, + Rate = propRate.Value, + TimeToLive = propTimeToLive.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropIf, value.If, null, null); + writer.WriteProperty(options, PropMaxSamples, value.MaxSamples, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropMaxSize, value.MaxSize, null, null); + writer.WriteProperty(options, PropRate, value.Rate, null, null); + writer.WriteProperty(options, PropTimeToLive, value.TimeToLive, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.g.cs new file mode 100644 index 00000000000..06ba8f86d29 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.g.cs @@ -0,0 +1,534 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class PutSampleConfigurationRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Create or update sampling configuration. +/// +/// +/// Create or update the sampling configuration for the specified index. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.PutSampleConfigurationRequestConverter))] +public sealed partial class PutSampleConfigurationRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + [System.Obsolete("The request contains additional required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")] + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexName index, double rate) : base(r => r.Required("index", index)) + { + Rate = rate; + } +#if NET7_0_OR_GREATER + public PutSampleConfigurationRequest() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.IndexManagementPutSampleConfiguration; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "indices.put_sample_configuration"; + + /// + /// + /// The name of the index or data stream. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// An optional condition script that sampled documents must satisfy. + /// + /// + public string? If { get; set; } + + /// + /// + /// The maximum number of documents to sample. Must be greater than 0 and less than or equal to 10,000. + /// + /// + public int? MaxSamples { get; set; } + + /// + /// + /// The maximum total size of sampled documents. Must be greater than 0 and less than or equal to 5GB. + /// + /// + public Elastic.Clients.Elasticsearch.ByteSize? MaxSize { get; set; } + + /// + /// + /// The fraction of documents to sample. Must be greater than 0 and less than or equal to 1. + /// Can be specified as a number or a string. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + double Rate { get; set; } + + /// + /// + /// The duration for which the sampled documents should be retained. + /// Must be greater than 0 and less than or equal to 30 days. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? TimeToLive { get; set; } +} + +/// +/// +/// Create or update sampling configuration. +/// +/// +/// Create or update the sampling configuration for the specified index. +/// +/// +public readonly partial struct PutSampleConfigurationRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest instance) + { + Instance = instance; + } + + public PutSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) + { +#pragma warning disable CS0618 + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest(index); +#pragma warning restore CS0618 + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] + public PutSampleConfigurationRequestDescriptor() + { + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); + } + + public static explicit operator Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest instance) => new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The name of the index or data stream. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + { + Instance.Index = value; + return this; + } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.MasterTimeout = value; + return this; + } + + /// + /// + /// Period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.Timeout = value; + return this; + } + + /// + /// + /// An optional condition script that sampled documents must satisfy. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor If(string? value) + { + Instance.If = value; + return this; + } + + /// + /// + /// The maximum number of documents to sample. Must be greater than 0 and less than or equal to 10,000. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor MaxSamples(int? value) + { + Instance.MaxSamples = value; + return this; + } + + /// + /// + /// The maximum total size of sampled documents. Must be greater than 0 and less than or equal to 5GB. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor MaxSize(Elastic.Clients.Elasticsearch.ByteSize? value) + { + Instance.MaxSize = value; + return this; + } + + /// + /// + /// The maximum total size of sampled documents. Must be greater than 0 and less than or equal to 5GB. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor MaxSize(System.Func action) + { + Instance.MaxSize = Elastic.Clients.Elasticsearch.ByteSizeFactory.Build(action); + return this; + } + + /// + /// + /// The fraction of documents to sample. Must be greater than 0 and less than or equal to 1. + /// Can be specified as a number or a string. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Rate(double value) + { + Instance.Rate = value; + return this; + } + + /// + /// + /// The duration for which the sampled documents should be retained. + /// Must be greater than 0 and less than or equal to 30 days. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor TimeToLive(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.TimeToLive = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} + +/// +/// +/// Create or update sampling configuration. +/// +/// +/// Create or update the sampling configuration for the specified index. +/// +/// +public readonly partial struct PutSampleConfigurationRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest instance) + { + Instance = instance; + } + + public PutSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) + { +#pragma warning disable CS0618 + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest(index); +#pragma warning restore CS0618 + } + + public PutSampleConfigurationRequestDescriptor() + { +#pragma warning disable CS0618 + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest(typeof(TDocument)); +#pragma warning restore CS0618 + } + + public static explicit operator Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest instance) => new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The name of the index or data stream. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + { + Instance.Index = value; + return this; + } + + /// + /// + /// Period to wait for a connection to the master node. If no response is + /// received before the timeout expires, the request fails and returns an + /// error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.MasterTimeout = value; + return this; + } + + /// + /// + /// Period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.Timeout = value; + return this; + } + + /// + /// + /// An optional condition script that sampled documents must satisfy. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor If(string? value) + { + Instance.If = value; + return this; + } + + /// + /// + /// The maximum number of documents to sample. Must be greater than 0 and less than or equal to 10,000. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor MaxSamples(int? value) + { + Instance.MaxSamples = value; + return this; + } + + /// + /// + /// The maximum total size of sampled documents. Must be greater than 0 and less than or equal to 5GB. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor MaxSize(Elastic.Clients.Elasticsearch.ByteSize? value) + { + Instance.MaxSize = value; + return this; + } + + /// + /// + /// The maximum total size of sampled documents. Must be greater than 0 and less than or equal to 5GB. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor MaxSize(System.Func action) + { + Instance.MaxSize = Elastic.Clients.Elasticsearch.ByteSizeFactory.Build(action); + return this; + } + + /// + /// + /// The fraction of documents to sample. Must be greater than 0 and less than or equal to 1. + /// Can be specified as a number or a string. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Rate(double value) + { + Instance.Rate = value; + return this; + } + + /// + /// + /// The duration for which the sampled documents should be retained. + /// Must be greater than 0 and less than or equal to 30 days. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor TimeToLive(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.TimeToLive = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest Build(System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.Converters.g.cs new file mode 100644 index 00000000000..7187ab759e8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.Converters.g.cs @@ -0,0 +1,63 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class PutSampleConfigurationResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropAcknowledged = System.Text.Json.JsonEncodedText.Encode("acknowledged"); + + public override Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propAcknowledged = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propAcknowledged.TryReadProperty(ref reader, options, PropAcknowledged, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Acknowledged = propAcknowledged.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropAcknowledged, value.Acknowledged, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.g.cs new file mode 100644 index 00000000000..c5b06bce879 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.g.cs @@ -0,0 +1,50 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.PutSampleConfigurationResponseConverter))] +public sealed partial class PutSampleConfigurationResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutSampleConfigurationResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal PutSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + bool Acknowledged { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs index 013b8b963fb..c8f48ff8a95 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs @@ -51,6 +51,8 @@ public sealed partial class PutTemplateRequestParameters : Elastic.Transport.Req /// /// /// Create or update a legacy index template. +/// +/// /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -192,6 +194,8 @@ internal PutTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Create or update a legacy index template. +/// +/// /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -584,6 +588,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutTemplateRequestDescripto /// /// /// Create or update a legacy index template. +/// +/// /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs index d5503790c94..f0de04eabce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -67,6 +67,8 @@ public sealed partial class RecoveryRequestParameters : Elastic.Transport.Reques /// /// /// Get index recovery information. +/// +/// /// Get information about ongoing and completed shard recoveries for one or more indices. /// For data streams, the API returns information for the stream's backing indices. /// @@ -202,6 +204,8 @@ internal RecoveryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Get index recovery information. +/// +/// /// Get information about ongoing and completed shard recoveries for one or more indices. /// For data streams, the API returns information for the stream's backing indices. /// @@ -422,6 +426,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor R /// /// /// Get index recovery information. +/// +/// /// Get information about ongoing and completed shard recoveries for one or more indices. /// For data streams, the API returns information for the stream's backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs index 2bc8e5caba2..cd8fd52819f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -53,6 +53,8 @@ public sealed partial class RefreshRequestParameters : Elastic.Transport.Request /// /// /// Refresh an index. +/// +/// /// A refresh makes recent operations performed on one or more indices available for search. /// For data streams, the API runs the refresh operation on the stream’s backing indices. /// @@ -142,6 +144,8 @@ internal RefreshRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Refresh an index. +/// +/// /// A refresh makes recent operations performed on one or more indices available for search. /// For data streams, the API runs the refresh operation on the stream’s backing indices. /// @@ -308,6 +312,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor Re /// /// /// Refresh an index. +/// +/// /// A refresh makes recent operations performed on one or more indices available for search. /// For data streams, the API runs the refresh operation on the stream’s backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs index 449d6a4c358..5c31a4815ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs @@ -57,6 +57,8 @@ public sealed partial class ReloadSearchAnalyzersRequestParameters : Elastic.Tra /// /// /// Reload search analyzers. +/// +/// /// Reload an index's search analyzers and their resources. /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. /// @@ -144,6 +146,8 @@ internal ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// /// Reload search analyzers. +/// +/// /// Reload an index's search analyzers and their resources. /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. /// @@ -306,6 +310,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersReques /// /// /// Reload search analyzers. +/// +/// /// Reload an index's search analyzers and their resources. /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs index 0e004111f23..757a38934f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs @@ -82,7 +82,7 @@ public sealed partial class RemoveBlockRequestParameters : Elastic.Transport.Req public sealed partial class RemoveBlockRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public RemoveBlockRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block) : base(r => r.Required("index", index).Required("block", block)) + public RemoveBlockRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block) : base(r => r.Required("index", indices).Required("block", block)) { } #if NET7_0_OR_GREATER @@ -127,7 +127,7 @@ internal RemoveBlockRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons #if NET7_0_OR_GREATER required #endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -192,9 +192,9 @@ public RemoveBlockRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagemen Instance = instance; } - public RemoveBlockRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block) + public RemoveBlockRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block) { - Instance = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequest(index, block); + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequest(indices, block); } [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] @@ -225,9 +225,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescripto /// You can update this setting in the elasticsearch.yml file or by using the cluster update settings API. /// /// - public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices value) { - Instance.Index = value; + Instance.Indices = value; return this; } @@ -377,9 +377,9 @@ public RemoveBlockRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagemen Instance = instance; } - public RemoveBlockRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block) + public RemoveBlockRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block) { - Instance = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequest(index, block); + Instance = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequest(indices, block); } [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] @@ -410,9 +410,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescripto /// You can update this setting in the elasticsearch.yml file or by using the cluster update settings API. /// /// - public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices value) { - Instance.Index = value; + Instance.Indices = value; return this; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index eda46da629e..820f8710401 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -61,6 +61,8 @@ public sealed partial class ResolveIndexRequestParameters : Elastic.Transport.Re /// /// /// Resolve indices. +/// +/// /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// @@ -139,6 +141,8 @@ internal ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Resolve indices. +/// +/// /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs index 4e97309c992..00bb05921f7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs @@ -68,6 +68,8 @@ public sealed partial class RolloverRequestParameters : Elastic.Transport.Reques /// /// /// Roll over to a new index. +/// +/// /// TIP: We recommend using the index lifecycle rollover action to automate rollovers. However, Serverless does not support Index Lifecycle Management (ILM), so don't use this approach in the Serverless context. /// /// @@ -248,6 +250,8 @@ internal RolloverRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Roll over to a new index. +/// +/// /// TIP: We recommend using the index lifecycle rollover action to automate rollovers. However, Serverless does not support Index Lifecycle Management (ILM), so don't use this approach in the Serverless context. /// /// @@ -707,6 +711,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RolloverRequestDescriptor R /// /// /// Roll over to a new index. +/// +/// /// TIP: We recommend using the index lifecycle rollover action to automate rollovers. However, Serverless does not support Index Lifecycle Management (ILM), so don't use this approach in the Serverless context. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index b4ea95db96c..dc8f4786e55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -53,6 +53,8 @@ public sealed partial class SegmentsRequestParameters : Elastic.Transport.Reques /// /// /// Get index segments. +/// +/// /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// @@ -124,6 +126,8 @@ internal SegmentsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Get index segments. +/// +/// /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// @@ -272,6 +276,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor R /// /// /// Get index segments. +/// +/// /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs index 1ac5615e8d0..e8d369a353e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs @@ -60,6 +60,8 @@ public sealed partial class ShardStoresRequestParameters : Elastic.Transport.Req /// /// /// Get index shard stores. +/// +/// /// Get store information about replica shards in one or more indices. /// For data streams, the API retrieves store information for the stream's backing indices. /// @@ -164,6 +166,8 @@ internal ShardStoresRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Get index shard stores. +/// +/// /// Get store information about replica shards in one or more indices. /// For data streams, the API retrieves store information for the stream's backing indices. /// @@ -359,6 +363,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescripto /// /// /// Get index shard stores. +/// +/// /// Get store information about replica shards in one or more indices. /// For data streams, the API retrieves store information for the stream's backing indices. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs index b959b20aad8..9422906efeb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs @@ -53,6 +53,8 @@ public sealed partial class ShrinkIndexRequestParameters : Elastic.Transport.Req /// /// /// Shrink an index. +/// +/// /// Shrink an index into a new index with fewer primary shards. /// /// @@ -230,6 +232,8 @@ internal ShrinkIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Shrink an index. +/// +/// /// Shrink an index into a new index with fewer primary shards. /// /// @@ -598,6 +602,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShrinkIndexRequestDescripto /// /// /// Shrink an index. +/// +/// /// Shrink an index into a new index with fewer primary shards. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs index 1b92d2c41de..a04b0fe8e93 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs @@ -57,6 +57,8 @@ public sealed partial class SimulateIndexTemplateRequestParameters : Elastic.Tra /// /// /// Simulate an index. +/// +/// /// Get the index configuration that would be applied to the specified index from an existing index template. /// /// @@ -130,6 +132,8 @@ internal SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// /// Simulate an index. +/// +/// /// Get the index configuration that would be applied to the specified index from an existing index template. /// /// @@ -284,6 +288,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateReques /// /// /// Simulate an index. +/// +/// /// Get the index configuration that would be applied to the specified index from an existing index template. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs index 222f7a650b1..fa4cf1285cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs @@ -57,6 +57,8 @@ public sealed partial class SimulateTemplateRequestParameters : Elastic.Transpor /// /// /// Simulate an index template. +/// +/// /// Get the index configuration that would be applied by a particular index template. /// /// @@ -214,6 +216,8 @@ internal SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Simulate an index template. +/// +/// /// Get the index configuration that would be applied by a particular index template. /// /// @@ -598,6 +602,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SimulateTemplateRequestDesc /// /// /// Simulate an index template. +/// +/// /// Get the index configuration that would be applied by a particular index template. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs index 25213ebde78..62efd6d657b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs @@ -53,6 +53,8 @@ public sealed partial class SplitIndexRequestParameters : Elastic.Transport.Requ /// /// /// Split an index. +/// +/// /// Split an index into a new index with more primary shards. /// /// @@ -228,6 +230,8 @@ internal SplitIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Split an index. +/// +/// /// Split an index into a new index with more primary shards. /// /// @@ -589,6 +593,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SplitIndexRequestDescriptor /// /// /// Split an index. +/// +/// /// Split an index into a new index with more primary shards. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs index 2d0b66f0c2c..f8a538c350c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class UpdateAliasesRequestParameters : Elastic.Transport.R /// /// /// Create or update an alias. +/// +/// /// Adds a data stream or index to an alias. /// /// @@ -102,6 +104,8 @@ internal UpdateAliasesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Create or update an alias. +/// +/// /// Adds a data stream or index to an alias. /// /// @@ -262,6 +266,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.UpdateAliasesRequestDescrip /// /// /// Create or update an alias. +/// +/// /// Adds a data stream or index to an alias. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs index 3a7a9af5709..45e1203b7fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs @@ -118,6 +118,8 @@ public sealed partial class ValidateQueryRequestParameters : Elastic.Transport.R /// /// /// Validate a query. +/// +/// /// Validates a query without running it. /// /// @@ -260,6 +262,8 @@ internal ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Validate a query. +/// +/// /// Validates a query without running it. /// /// @@ -541,6 +545,8 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip /// /// /// Validate a query. +/// +/// /// Validates a query without running it. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs index f2ab3b11689..a85d89f70a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs @@ -295,13 +295,15 @@ public sealed partial class IndexRequestParameters : Elastic.Transport.RequestPa /// "id": "elkbee" /// } /// } -/// +/// +/// /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). -/// +/// +/// /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. -/// +/// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.IndexRequestConverterFactory))] public partial class IndexRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest @@ -639,13 +641,15 @@ internal IndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// "id": "elkbee" /// } /// } -/// +/// +/// /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). -/// +/// +/// /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. -/// +/// /// public readonly partial struct IndexRequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs index cc688829a40..d11c65b58f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs @@ -35,7 +35,7 @@ public sealed partial class ChatCompletionUnifiedRequestParameters : Elastic.Tra /// /// -/// Perform chat completion inference on the service +/// Perform chat completion inference on the service. /// /// /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. @@ -107,7 +107,7 @@ internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// -/// Perform chat completion inference on the service +/// Perform chat completion inference on the service. /// /// /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs index c4dbde46a14..60a38ebd153 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs @@ -35,7 +35,9 @@ public sealed partial class CompletionRequestParameters : Elastic.Transport.Requ /// /// -/// Perform completion inference on the service +/// Perform completion inference on the service. +/// +/// /// Get responses for completion tasks. /// This API works only with the completion task type. /// @@ -119,7 +121,9 @@ internal CompletionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// -/// Perform completion inference on the service +/// Perform completion inference on the service. +/// +/// /// Get responses for completion tasks. /// This API works only with the completion task type. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs index d17339c3aa5..b22ca98cde9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class DeleteInferenceRequestParameters : Elastic.Transport /// /// -/// Delete an inference endpoint +/// Delete an inference endpoint. +/// +/// +/// This API requires the manage_inference cluster privilege (the built-in inference_admin role grants this privilege). /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.DeleteInferenceRequestConverter))] @@ -111,7 +114,10 @@ internal DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// -/// Delete an inference endpoint +/// Delete an inference endpoint. +/// +/// +/// This API requires the manage_inference cluster privilege (the built-in inference_admin role grants this privilege). /// /// public readonly partial struct DeleteInferenceRequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs index 6a67f4c1f60..70477d07126 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs @@ -29,7 +29,10 @@ public sealed partial class GetInferenceRequestParameters : Elastic.Transport.Re /// /// -/// Get an inference endpoint +/// Get an inference endpoint. +/// +/// +/// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.GetInferenceRequestConverter))] @@ -83,7 +86,10 @@ internal GetInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// -/// Get an inference endpoint +/// Get an inference endpoint. +/// +/// +/// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). /// /// public readonly partial struct GetInferenceRequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs index 70e9935eb6e..5cc9f7e7087 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs @@ -106,6 +106,8 @@ internal PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -207,6 +209,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -218,6 +222,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor ChunkingSettings() @@ -229,6 +235,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs index 8f96bd72106..e3f33369664 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs @@ -110,6 +110,8 @@ internal PutAmazonbedrockRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -215,6 +217,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -226,6 +230,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor ChunkingSettings() @@ -237,6 +243,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerRequest.g.cs index db3fa1f85fc..fef88cc60f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerRequest.g.cs @@ -106,6 +106,8 @@ internal PutAmazonsagemakerRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -208,6 +210,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescript /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -219,6 +223,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescript /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescriptor ChunkingSettings() @@ -230,6 +236,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescript /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.Converters.g.cs index 861bb7dbe3c..07d7cfb8e57 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.Converters.g.cs @@ -25,7 +25,6 @@ namespace Elastic.Clients.Elasticsearch.Inference.Json; public sealed partial class PutAnthropicRequestConverter : System.Text.Json.Serialization.JsonConverter { - private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"); private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"); private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"); private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings"); @@ -33,16 +32,10 @@ public sealed partial class PutAnthropicRequestConverter : System.Text.Json.Seri public override Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propChunkingSettings = default; LocalJsonValue propServiceSettings = default; LocalJsonValue propTaskSettings = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { - if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null)) - { - continue; - } - if (reader.ValueTextEquals(PropService)) { reader.SafeSkip(); @@ -71,7 +64,6 @@ public override Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequest Read reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { - ChunkingSettings = propChunkingSettings.Value, ServiceSettings = propServiceSettings.Value, TaskSettings = propTaskSettings.Value }; @@ -80,7 +72,6 @@ public override Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequest Read public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequest value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); - writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null); writer.WriteProperty(options, PropService, value.Service, null, null); writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, null); writer.WriteProperty(options, PropTaskSettings, value.TaskSettings, null, null); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs index 0658c9b7e9b..0680eeb94e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs @@ -104,13 +104,6 @@ internal PutAnthropicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } - /// /// /// The type of service supported for the specified task type. In this case, anthropic. @@ -206,39 +199,6 @@ public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor Tim return this; } - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) - { - Instance.ChunkingSettings = value; - return this; - } - - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor ChunkingSettings() - { - Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null); - return this; - } - - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor ChunkingSettings(System.Action? action) - { - Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action); - return this; - } - /// /// /// Settings used to install the inference model. These settings are specific to the anthropic service. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs index 3ffc9d28eb1..eeb8182cbca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs @@ -106,6 +106,8 @@ internal PutAzureaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -207,6 +209,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -218,6 +222,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor ChunkingSettings() @@ -229,6 +235,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs index 7c11fa62a2b..312ea50eb1f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs @@ -125,6 +125,8 @@ internal PutAzureopenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -245,6 +247,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor T /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -256,6 +260,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor C /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings() @@ -267,6 +273,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor C /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs index 648ab748d9a..6e4b443be93 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs @@ -106,6 +106,8 @@ internal PutCohereRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank or completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -208,6 +210,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutCohereRequestDescriptor Timeou /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank or completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutCohereRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -219,6 +223,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutCohereRequestDescriptor Chunki /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank or completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutCohereRequestDescriptor ChunkingSettings() @@ -230,6 +236,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutCohereRequestDescriptor Chunki /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank or completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutCohereRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.Converters.g.cs index bfb420b3408..7a1d6c2886d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.Converters.g.cs @@ -25,7 +25,6 @@ namespace Elastic.Clients.Elasticsearch.Inference.Json; public sealed partial class PutContextualaiRequestConverter : System.Text.Json.Serialization.JsonConverter { - private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"); private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"); private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"); private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings"); @@ -33,16 +32,10 @@ public sealed partial class PutContextualaiRequestConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propChunkingSettings = default; LocalJsonValue propServiceSettings = default; LocalJsonValue propTaskSettings = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { - if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null)) - { - continue; - } - if (reader.ValueTextEquals(PropService)) { reader.SafeSkip(); @@ -71,7 +64,6 @@ public override Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest R reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { - ChunkingSettings = propChunkingSettings.Value, ServiceSettings = propServiceSettings.Value, TaskSettings = propTaskSettings.Value }; @@ -80,7 +72,6 @@ public override Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest R public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); - writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null); writer.WriteProperty(options, PropService, value.Service, null, null); writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, null); writer.WriteProperty(options, PropTaskSettings, value.TaskSettings, null, null); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs index 052f5bd67ce..43b94f13513 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs @@ -106,13 +106,6 @@ internal PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } - /// /// /// The type of service supported for the specified task type. In this case, contextualai. @@ -210,39 +203,6 @@ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor return this; } - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) - { - Instance.ChunkingSettings = value; - return this; - } - - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ChunkingSettings() - { - Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null); - return this; - } - - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ChunkingSettings(System.Action? action) - { - Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action); - return this; - } - /// /// /// Settings used to install the inference model. These settings are specific to the contextualai service. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomRequest.g.cs index e4aa68e8f09..d8b1b5147f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomRequest.g.cs @@ -158,6 +158,8 @@ internal PutCustomRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -314,6 +316,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutCustomRequestDescriptor TaskTy /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutCustomRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -325,6 +329,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutCustomRequestDescriptor Chunki /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutCustomRequestDescriptor ChunkingSettings() @@ -336,6 +342,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutCustomRequestDescriptor Chunki /// /// /// The chunking configuration object. + /// Applies only to the sparse_embedding or text_embedding task types. + /// Not applicable to the rerank or completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutCustomRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.Converters.g.cs index d78c59abd0f..9016c9c58e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.Converters.g.cs @@ -25,22 +25,15 @@ namespace Elastic.Clients.Elasticsearch.Inference.Json; public sealed partial class PutDeepseekRequestConverter : System.Text.Json.Serialization.JsonConverter { - private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"); private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"); private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"); public override Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propChunkingSettings = default; LocalJsonValue propServiceSettings = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { - if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null)) - { - continue; - } - if (reader.ValueTextEquals(PropService)) { reader.SafeSkip(); @@ -64,7 +57,6 @@ public override Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequest Read( reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { - ChunkingSettings = propChunkingSettings.Value, ServiceSettings = propServiceSettings.Value }; } @@ -72,7 +64,6 @@ public override Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequest Read( public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequest value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); - writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null); writer.WriteProperty(options, PropService, value.Service, null, null); writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, null); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.g.cs index e788fb2c593..0be8e54c44c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.g.cs @@ -103,13 +103,6 @@ internal PutDeepseekRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } - /// /// /// The type of service supported for the specified task type. In this case, deepseek. @@ -197,39 +190,6 @@ public Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequestDescriptor Time return this; } - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) - { - Instance.ChunkingSettings = value; - return this; - } - - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequestDescriptor ChunkingSettings() - { - Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null); - return this; - } - - /// - /// - /// The chunking configuration object. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequestDescriptor ChunkingSettings(System.Action? action) - { - Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action); - return this; - } - /// /// /// Settings used to install the inference model. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs index cbb12b6dc77..12d4547f696 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs @@ -125,7 +125,7 @@ internal PutElasticsearchRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// The chunking configuration object. /// Applies only to the sparse_embedding and text_embedding task types. - /// Not applicable to the rerank, completion, or chat_completion task types. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -246,7 +246,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutElasticsearchRequestDescriptor /// /// The chunking configuration object. /// Applies only to the sparse_embedding and text_embedding task types. - /// Not applicable to the rerank, completion, or chat_completion task types. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutElasticsearchRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -259,7 +259,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutElasticsearchRequestDescriptor /// /// The chunking configuration object. /// Applies only to the sparse_embedding and text_embedding task types. - /// Not applicable to the rerank, completion, or chat_completion task types. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutElasticsearchRequestDescriptor ChunkingSettings() @@ -272,7 +272,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutElasticsearchRequestDescriptor /// /// The chunking configuration object. /// Applies only to the sparse_embedding and text_embedding task types. - /// Not applicable to the rerank, completion, or chat_completion task types. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutElasticsearchRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs index 23ce5d24593..9a3c292781c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs @@ -106,6 +106,8 @@ internal PutGoogleaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -199,6 +201,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutGoogleaistudioRequestDescripto /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutGoogleaistudioRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -210,6 +214,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutGoogleaistudioRequestDescripto /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutGoogleaistudioRequestDescriptor ChunkingSettings() @@ -221,6 +227,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutGoogleaistudioRequestDescripto /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutGoogleaistudioRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs index 310dc04a8fa..1a4a88b4c63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs @@ -106,6 +106,8 @@ internal PutGooglevertexaiRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -207,6 +209,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiRequestDescripto /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -218,6 +222,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiRequestDescripto /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiRequestDescriptor ChunkingSettings() @@ -229,6 +235,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiRequestDescripto /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs index cf24d8bbe1b..4713d720d82 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs @@ -196,6 +196,8 @@ internal PutHuggingFaceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -387,6 +389,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequestDescriptor T /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -398,6 +402,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequestDescriptor C /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequestDescriptor ChunkingSettings() @@ -409,6 +415,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequestDescriptor C /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs index 444f0e6cf1f..0a9f7f885a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs @@ -138,6 +138,11 @@ public sealed partial class PutInferenceRequestParameters : Elastic.Transport.Re /// /// /// +/// OpenShift AI (chat_completion, completion, rerank, text_embedding) +/// +/// +/// +/// /// VoyageAI (rerank, text_embedding) /// /// @@ -329,6 +334,11 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// +/// OpenShift AI (chat_completion, completion, rerank, text_embedding) +/// +/// +/// +/// /// VoyageAI (rerank, text_embedding) /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs index 1e2048e0fa8..369431ffd17 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs @@ -110,6 +110,8 @@ internal PutJinaaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -215,6 +217,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutJinaaiRequestDescriptor Timeou /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutJinaaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -226,6 +230,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutJinaaiRequestDescriptor Chunki /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutJinaaiRequestDescriptor ChunkingSettings() @@ -237,6 +243,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutJinaaiRequestDescriptor Chunki /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutJinaaiRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaRequest.g.cs index eb3a50a3915..a2648b6ed24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaRequest.g.cs @@ -106,6 +106,8 @@ internal PutLlamaRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -199,6 +201,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutLlamaRequestDescriptor Timeout /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutLlamaRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -210,6 +214,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutLlamaRequestDescriptor Chunkin /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutLlamaRequestDescriptor ChunkingSettings() @@ -221,6 +227,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutLlamaRequestDescriptor Chunkin /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutLlamaRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs index d1edc67507f..e9ae7a6d0ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs @@ -106,6 +106,8 @@ internal PutMistralRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -199,6 +201,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutMistralRequestDescriptor Timeo /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutMistralRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -210,6 +214,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutMistralRequestDescriptor Chunk /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutMistralRequestDescriptor ChunkingSettings() @@ -221,6 +227,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutMistralRequestDescriptor Chunk /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutMistralRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs index a8180d2e531..00d6032e39b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs @@ -107,6 +107,8 @@ internal PutOpenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -209,6 +211,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequestDescriptor Timeou /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -220,6 +224,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequestDescriptor Chunki /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequestDescriptor ChunkingSettings() @@ -231,6 +237,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequestDescriptor Chunki /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.Converters.g.cs new file mode 100644 index 00000000000..89b846faa3c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.Converters.g.cs @@ -0,0 +1,89 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference.Json; + +public sealed partial class PutOpenshiftAiRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"); + private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"); + private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"); + private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings"); + + public override Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propChunkingSettings = default; + LocalJsonValue propServiceSettings = default; + LocalJsonValue propTaskSettings = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null)) + { + continue; + } + + if (reader.ValueTextEquals(PropService)) + { + reader.SafeSkip(); + continue; + } + + if (propServiceSettings.TryReadProperty(ref reader, options, PropServiceSettings, null)) + { + continue; + } + + if (propTaskSettings.TryReadProperty(ref reader, options, PropTaskSettings, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + ChunkingSettings = propChunkingSettings.Value, + ServiceSettings = propServiceSettings.Value, + TaskSettings = propTaskSettings.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null); + writer.WriteProperty(options, PropService, value.Service, null, null); + writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, null); + writer.WriteProperty(options, PropTaskSettings, value.TaskSettings, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.g.cs new file mode 100644 index 00000000000..a11c58734d2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.g.cs @@ -0,0 +1,365 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutOpenshiftAiRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// Specifies the amount of time to wait for the inference endpoint to be created. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Create an OpenShift AI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the openshift_ai service. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.PutOpenshiftAiRequestConverter))] +public sealed partial class PutOpenshiftAiRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + [System.Obsolete("The request contains additional required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")] + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType taskType, Elastic.Clients.Elasticsearch.Id openshiftaiInferenceId) : base(r => r.Required("task_type", taskType).Required("openshiftai_inference_id", openshiftaiInferenceId)) + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType taskType, Elastic.Clients.Elasticsearch.Id openshiftaiInferenceId, Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings serviceSettings) : base(r => r.Required("task_type", taskType).Required("openshiftai_inference_id", openshiftaiInferenceId)) + { + ServiceSettings = serviceSettings; + } +#if NET7_0_OR_GREATER + public PutOpenshiftAiRequest() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.InferencePutOpenshiftAi; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_openshift_ai"; + + /// + /// + /// The unique identifier of the inference endpoint. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.Id OpenshiftaiInferenceId { get => P("openshiftai_inference_id"); set => PR("openshiftai_inference_id", value); } + + /// + /// + /// The type of the inference task that the model will perform. + /// NOTE: The chat_completion task type only supports streaming and only through the _stream API. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + + /// + /// + /// Specifies the amount of time to wait for the inference endpoint to be created. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, openshift_ai. + /// + /// + public string Service => "openshift_ai"; + + /// + /// + /// Settings used to install the inference model. These settings are specific to the openshift_ai service. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// Applies only to the rerank task type. + /// Not applicable to the text_embedding, completion, or chat_completion task types. + /// These settings are specific to the task type you specified. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an OpenShift AI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the openshift_ai service. +/// +/// +public readonly partial struct PutOpenshiftAiRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutOpenshiftAiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest instance) + { + Instance = instance; + } + + public PutOpenshiftAiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType taskType, Elastic.Clients.Elasticsearch.Id openshiftaiInferenceId) + { +#pragma warning disable CS0618 + Instance = new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest(taskType, openshiftaiInferenceId); +#pragma warning restore CS0618 + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] + public PutOpenshiftAiRequestDescriptor() + { + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest instance) => new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The unique identifier of the inference endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor OpenshiftaiInferenceId(Elastic.Clients.Elasticsearch.Id value) + { + Instance.OpenshiftaiInferenceId = value; + return this; + } + + /// + /// + /// The type of the inference task that the model will perform. + /// NOTE: The chat_completion task type only supports streaming and only through the _stream API. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType value) + { + Instance.TaskType = value; + return this; + } + + /// + /// + /// Specifies the amount of time to wait for the inference endpoint to be created. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.Timeout = value; + return this; + } + + /// + /// + /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) + { + Instance.ChunkingSettings = value; + return this; + } + + /// + /// + /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor ChunkingSettings() + { + Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null); + return this; + } + + /// + /// + /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor ChunkingSettings(System.Action? action) + { + Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action); + return this; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the openshift_ai service. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings value) + { + Instance.ServiceSettings = value; + return this; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the openshift_ai service. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor ServiceSettings(System.Action action) + { + Instance.ServiceSettings = Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor.Build(action); + return this; + } + + /// + /// + /// Settings to configure the inference task. + /// Applies only to the rerank task type. + /// Not applicable to the text_embedding, completion, or chat_completion task types. + /// These settings are specific to the task type you specified. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings? value) + { + Instance.TaskSettings = value; + return this; + } + + /// + /// + /// Settings to configure the inference task. + /// Applies only to the rerank task type. + /// Not applicable to the text_embedding, completion, or chat_completion task types. + /// These settings are specific to the task type you specified. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor TaskSettings() + { + Instance.TaskSettings = Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettingsDescriptor.Build(null); + return this; + } + + /// + /// + /// Settings to configure the inference task. + /// Applies only to the rerank task type. + /// Not applicable to the text_embedding, completion, or chat_completion task types. + /// These settings are specific to the task type you specified. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor TaskSettings(System.Action? action) + { + Instance.TaskSettings = Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettingsDescriptor.Build(action); + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor(new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.Converters.g.cs new file mode 100644 index 00000000000..4aa56c11ca6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.Converters.g.cs @@ -0,0 +1,108 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference.Json; + +public sealed partial class PutOpenshiftAiResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"); + private static readonly System.Text.Json.JsonEncodedText PropInferenceId = System.Text.Json.JsonEncodedText.Encode("inference_id"); + private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"); + private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"); + private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings"); + private static readonly System.Text.Json.JsonEncodedText PropTaskType = System.Text.Json.JsonEncodedText.Encode("task_type"); + + public override Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propChunkingSettings = default; + LocalJsonValue propInferenceId = default; + LocalJsonValue propService = default; + LocalJsonValue propServiceSettings = default; + LocalJsonValue propTaskSettings = default; + LocalJsonValue propTaskType = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null)) + { + continue; + } + + if (propInferenceId.TryReadProperty(ref reader, options, PropInferenceId, null)) + { + continue; + } + + if (propService.TryReadProperty(ref reader, options, PropService, null)) + { + continue; + } + + if (propServiceSettings.TryReadProperty(ref reader, options, PropServiceSettings, static object (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))!)) + { + continue; + } + + if (propTaskSettings.TryReadProperty(ref reader, options, PropTaskSettings, static object? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))) + { + continue; + } + + if (propTaskType.TryReadProperty(ref reader, options, PropTaskType, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + ChunkingSettings = propChunkingSettings.Value, + InferenceId = propInferenceId.Value, + Service = propService.Value, + ServiceSettings = propServiceSettings.Value, + TaskSettings = propTaskSettings.Value, + TaskType = propTaskType.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null); + writer.WriteProperty(options, PropInferenceId, value.InferenceId, null, null); + writer.WriteProperty(options, PropService, value.Service, null, null); + writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))); + writer.WriteProperty(options, PropTaskSettings, value.TaskSettings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object? v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))); + writer.WriteProperty(options, PropTaskType, value.TaskType, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.g.cs new file mode 100644 index 00000000000..4f96d43db9f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.g.cs @@ -0,0 +1,99 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.PutOpenshiftAiResponseConverter))] +public sealed partial class PutOpenshiftAiResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutOpenshiftAiResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal PutOpenshiftAiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// The chunking configuration object. + /// Applies only to the sparse_embedding and text_embedding task types. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The inference Id + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + string InferenceId { get; set; } + + /// + /// + /// The service type + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + string Service { get; set; } + + /// + /// + /// Settings specific to the service + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + object ServiceSettings { get; set; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + public object? TaskSettings { get; set; } + + /// + /// + /// The task type + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi TaskType { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiRequest.g.cs index dc91bd8adce..ce106297ba4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiRequest.g.cs @@ -109,6 +109,8 @@ internal PutVoyageaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -213,6 +215,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequestDescriptor Time /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -224,6 +228,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequestDescriptor Chun /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequestDescriptor ChunkingSettings() @@ -235,6 +241,8 @@ public Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequestDescriptor Chun /// /// /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank task type. /// /// public Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequestDescriptor ChunkingSettings(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.Converters.g.cs index b0b373e7887..813d5561d23 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.Converters.g.cs @@ -25,15 +25,22 @@ namespace Elastic.Clients.Elasticsearch.Inference.Json; public sealed partial class PutWatsonxRequestConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"); private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"); private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"); public override Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propChunkingSettings = default; LocalJsonValue propServiceSettings = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { + if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null)) + { + continue; + } + if (reader.ValueTextEquals(PropService)) { reader.SafeSkip(); @@ -57,6 +64,7 @@ public override Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequest Read(r reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { + ChunkingSettings = propChunkingSettings.Value, ServiceSettings = propServiceSettings.Value }; } @@ -64,6 +72,7 @@ public override Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequest Read(r public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequest value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); + writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null); writer.WriteProperty(options, PropService, value.Service, null, null); writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, null); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs index 0ebd1e98e7f..ccd25f309c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs @@ -105,6 +105,15 @@ internal PutWatsonxRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + /// + /// + /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + /// /// /// The type of service supported for the specified task type. In this case, watsonxai. @@ -193,6 +202,45 @@ public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor Timeo return this; } + /// + /// + /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) + { + Instance.ChunkingSettings = value; + return this; + } + + /// + /// + /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor ChunkingSettings() + { + Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null); + return this; + } + + /// + /// + /// The chunking configuration object. + /// Applies only to the text_embedding task type. + /// Not applicable to the completion or chat_completion task types. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor ChunkingSettings(System.Action? action) + { + Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action); + return this; + } + /// /// /// Settings used to install the inference model. These settings are specific to the watsonxai service. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs index 801b5dd3186..b45139a8b03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs @@ -35,7 +35,7 @@ public sealed partial class RerankRequestParameters : Elastic.Transport.RequestP /// /// -/// Perform reranking inference on the service +/// Perform reranking inference on the service. /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.RerankRequestConverter))] @@ -137,7 +137,7 @@ internal RerankRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// -/// Perform reranking inference on the service +/// Perform reranking inference on the service. /// /// public readonly partial struct RerankRequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs index 8f5cf155e3e..11f0188e579 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs @@ -35,7 +35,7 @@ public sealed partial class SparseEmbeddingRequestParameters : Elastic.Transport /// /// -/// Perform sparse embedding inference on the service +/// Perform sparse embedding inference on the service. /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.SparseEmbeddingRequestConverter))] @@ -111,7 +111,7 @@ internal SparseEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// -/// Perform sparse embedding inference on the service +/// Perform sparse embedding inference on the service. /// /// public readonly partial struct SparseEmbeddingRequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs index 3a7fd2941f1..f3e996124d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs @@ -35,7 +35,9 @@ public sealed partial class StreamCompletionRequestParameters : Elastic.Transpor /// /// -/// Perform streaming completion inference on the service +/// Perform streaming completion inference on the service. +/// +/// /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. /// This API works only with the completion task type. /// @@ -122,7 +124,9 @@ internal StreamCompletionRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// -/// Perform streaming completion inference on the service +/// Perform streaming completion inference on the service. +/// +/// /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. /// This API works only with the completion task type. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs index 50076b5db29..690eff1fcea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs @@ -35,7 +35,7 @@ public sealed partial class TextEmbeddingRequestParameters : Elastic.Transport.R /// /// -/// Perform text embedding inference on the service +/// Perform text embedding inference on the service. /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.TextEmbeddingRequestConverter))] @@ -146,7 +146,7 @@ internal TextEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// -/// Perform text embedding inference on the service +/// Perform text embedding inference on the service. /// /// public readonly partial struct TextEmbeddingRequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs index be8a273f69e..bcee8c2c6db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class InfoRequestParameters : Elastic.Transport.RequestPar /// /// /// Get cluster info. +/// +/// /// Get basic build, version, and cluster information. /// ::: In Serverless, this API is retained for backward compatibility only. Some response fields, such as the version number, should be ignored. /// @@ -65,6 +67,8 @@ internal InfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// /// Get cluster info. +/// +/// /// Get basic build, version, and cluster information. /// ::: In Serverless, this API is retained for backward compatibility only. Some response fields, such as the version number, should be ignored. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs index 2a2e1e26ae4..17311938f72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class DeletePipelineRequestParameters : Elastic.Transport. /// /// /// Delete pipelines. +/// +/// /// Delete one or more ingest pipelines. /// /// @@ -106,6 +108,8 @@ internal DeletePipelineRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Delete pipelines. +/// +/// /// Delete one or more ingest pipelines. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs index 70d1a139ec5..c923d557365 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GeoIpStatsRequestParameters : Elastic.Transport.Requ /// /// /// Get GeoIP statistics. +/// +/// /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// /// @@ -64,6 +66,8 @@ internal GeoIpStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get GeoIP statistics. +/// +/// /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs index 23ec1170f4c..901aba959c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class ProcessorGrokRequestParameters : Elastic.Transport.R /// /// /// Run a grok processor. +/// +/// /// Extract structured fields out of a single text field within a document. /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. @@ -66,6 +68,8 @@ internal ProcessorGrokRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Run a grok processor. +/// +/// /// Extract structured fields out of a single text field within a document. /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs index cc65dfd2f28..02db9f9fe5e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs @@ -30,7 +30,7 @@ public sealed partial class PutPipelineRequestParameters : Elastic.Transport.Req /// Required version for optimistic concurrency control for pipeline updates /// /// - public long? IfVersion { get => Q("if_version"); set => Q("if_version", value); } + public int? IfVersion { get => Q("if_version"); set => Q("if_version", value); } /// /// @@ -50,6 +50,8 @@ public sealed partial class PutPipelineRequestParameters : Elastic.Transport.Req /// /// /// Create or update a pipeline. +/// +/// /// Changes made using this API take effect immediately. /// /// @@ -95,7 +97,7 @@ internal PutPipelineRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Required version for optimistic concurrency control for pipeline updates /// /// - public long? IfVersion { get => Q("if_version"); set => Q("if_version", value); } + public int? IfVersion { get => Q("if_version"); set => Q("if_version", value); } /// /// @@ -165,6 +167,8 @@ internal PutPipelineRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Create or update a pipeline. +/// +/// /// Changes made using this API take effect immediately. /// /// @@ -208,7 +212,7 @@ public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor Id(Elas /// Required version for optimistic concurrency control for pipeline updates /// /// - public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor IfVersion(long? value) + public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor IfVersion(int? value) { Instance.IfVersion = value; return this; @@ -487,6 +491,8 @@ public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor Request /// /// /// Create or update a pipeline. +/// +/// /// Changes made using this API take effect immediately. /// /// @@ -530,7 +536,7 @@ public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor /// - public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor IfVersion(long? value) + public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor IfVersion(int? value) { Instance.IfVersion = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs index 01198988b09..f78cbad21d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs @@ -50,6 +50,8 @@ public sealed partial class PostStartTrialRequestParameters : Elastic.Transport. /// /// /// Start a trial. +/// +/// /// Start a 30-day trial, which gives access to all subscription features. /// /// @@ -112,6 +114,8 @@ internal PostStartTrialRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Start a trial. +/// +/// /// Start a 30-day trial, which gives access to all subscription features. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs index 5ca5c200f91..8504d9d5da4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class FlushJobRequestParameters : Elastic.Transport.Reques /// /// /// Force buffered data to be processed. +/// +/// /// The flush jobs API is only applicable when sending data for analysis using /// the post data API. Depending on the content of the buffer, then it might /// additionally calculate new results. Both flush and close operations are @@ -116,6 +118,8 @@ internal FlushJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Force buffered data to be processed. +/// +/// /// The flush jobs API is only applicable when sending data for analysis using /// the post data API. Depending on the content of the buffer, then it might /// additionally calculate new results. Both flush and close operations are diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs index 08fafdc802b..3f3aff49755 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class GetBucketsRequestParameters : Elastic.Transport.Requ /// /// /// Get anomaly detection job results for buckets. +/// +/// /// The API presents a chronological view of the records, grouped by bucket. /// /// @@ -164,6 +166,8 @@ internal GetBucketsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get anomaly detection job results for buckets. +/// +/// /// The API presents a chronological view of the records, grouped by bucket. /// /// @@ -401,6 +405,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetBucketsRequestDescriptor /// /// /// Get anomaly detection job results for buckets. +/// +/// /// The API presents a chronological view of the records, grouped by bucket. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs index 86ae0e25116..49a056cf5f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs @@ -56,7 +56,7 @@ public sealed partial class GetCategoriesRequestParameters : Elastic.Transport.R public sealed partial class GetCategoriesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public GetCategoriesRequest(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId) : base(r => r.Required("job_id", jobId).Optional("category_id", categoryId)) + public GetCategoriesRequest(Elastic.Clients.Elasticsearch.Id jobId, long? categoryId) : base(r => r.Required("job_id", jobId).Optional("category_id", categoryId)) { } @@ -92,7 +92,7 @@ internal GetCategoriesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// the specified partition. /// /// - public string? CategoryId { get => P("category_id"); set => PO("category_id", value); } + public long? CategoryId { get => P("category_id"); set => PO("category_id", value); } /// /// @@ -150,7 +150,7 @@ public GetCategoriesRequestDescriptor(Elastic.Clients.Elasticsearch.MachineLearn Instance = instance; } - public GetCategoriesRequestDescriptor(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId) + public GetCategoriesRequestDescriptor(Elastic.Clients.Elasticsearch.Id jobId, long? categoryId) { Instance = new Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequest(jobId, categoryId); } @@ -178,7 +178,7 @@ public GetCategoriesRequestDescriptor() /// the specified partition. /// /// - public Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequestDescriptor CategoryId(string? value) + public Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequestDescriptor CategoryId(long? value) { Instance.CategoryId = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs index 8b620d5f66c..d70c5786702 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs @@ -83,6 +83,8 @@ public sealed partial class GetDataFrameAnalyticsRequestParameters : Elastic.Tra /// /// /// Get data frame analytics job configuration info. +/// +/// /// You can get information for multiple data frame analytics jobs in a single /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. @@ -185,6 +187,8 @@ internal GetDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// /// Get data frame analytics job configuration info. +/// +/// /// You can get information for multiple data frame analytics jobs in a single /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs index c7046e7391d..ccdcbeda9df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs @@ -59,6 +59,8 @@ public sealed partial class GetDatafeedStatsRequestParameters : Elastic.Transpor /// /// /// Get datafeed stats. +/// +/// /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -140,6 +142,8 @@ internal GetDatafeedStatsRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Get datafeed stats. +/// +/// /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs index 4d4800218f0..51176f00564 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs @@ -68,6 +68,8 @@ public sealed partial class GetDatafeedsRequestParameters : Elastic.Transport.Re /// /// /// Get datafeeds configuration info. +/// +/// /// You can get information for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get information for all datafeeds by using _all, by specifying * as the @@ -157,6 +159,8 @@ internal GetDatafeedsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get datafeeds configuration info. +/// +/// /// You can get information for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get information for all datafeeds by using _all, by specifying * as the diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs index 6ce941cafe0..4dd84e62a3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class GetFiltersRequestParameters : Elastic.Transport.Requ /// /// /// Get filters. +/// +/// /// You can get a single filter or all filters. /// /// @@ -101,6 +103,8 @@ internal GetFiltersRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get filters. +/// +/// /// You can get a single filter or all filters. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs index 0b7e83864da..c68e49368c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs @@ -91,6 +91,8 @@ public sealed partial class GetInfluencersRequestParameters : Elastic.Transport. /// /// /// Get anomaly detection job results for influencers. +/// +/// /// Influencers are the entities that have contributed to, or are to blame for, /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. @@ -207,6 +209,8 @@ internal GetInfluencersRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Get anomaly detection job results for influencers. +/// +/// /// Influencers are the entities that have contributed to, or are to blame for, /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. @@ -443,6 +447,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetInfluencersRequestDescri /// /// /// Get anomaly detection job results for influencers. +/// +/// /// Influencers are the entities that have contributed to, or are to blame for, /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs index 76bef127a37..7792ff8de38 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs @@ -68,6 +68,8 @@ public sealed partial class GetJobsRequestParameters : Elastic.Transport.Request /// /// /// Get anomaly detection jobs configuration info. +/// +/// /// You can get information for multiple anomaly detection jobs in a single API /// request by using a group name, a comma-separated list of jobs, or a wildcard /// expression. You can get information for all anomaly detection jobs by using @@ -156,6 +158,8 @@ internal GetJobsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Get anomaly detection jobs configuration info. +/// +/// /// You can get information for multiple anomaly detection jobs in a single API /// request by using a group name, a comma-separated list of jobs, or a wildcard /// expression. You can get information for all anomaly detection jobs by using diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs index c1e4c1c3ec0..47b185286d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class GetMemoryStatsRequestParameters : Elastic.Transport. /// /// /// Get machine learning memory usage info. +/// +/// /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// @@ -107,6 +109,8 @@ internal GetMemoryStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Get machine learning memory usage info. +/// +/// /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs index 5a745c01963..43900641b23 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class GetRecordsRequestParameters : Elastic.Transport.Requ /// /// /// Get anomaly records for an anomaly detection job. +/// +/// /// Records contain the detailed analytical results. They describe the anomalous /// activity that has been identified in the input data based on the detector /// configuration. @@ -153,6 +155,8 @@ internal GetRecordsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get anomaly records for an anomaly detection job. +/// +/// /// Records contain the detailed analytical results. They describe the anomalous /// activity that has been identified in the input data based on the detector /// configuration. @@ -371,6 +375,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetRecordsRequestDescriptor /// /// /// Get anomaly records for an anomaly detection job. +/// +/// /// Records contain the detailed analytical results. They describe the anomalous /// activity that has been identified in the input data based on the detector /// configuration. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs index 90d33f24bfa..a9c762e1d25 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs @@ -71,6 +71,8 @@ public sealed partial class GetTrainedModelsStatsRequestParameters : Elastic.Tra /// /// /// Get trained models usage info. +/// +/// /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// @@ -159,6 +161,8 @@ internal GetTrainedModelsStatsRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// /// Get trained models usage info. +/// +/// /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs index 70f48c66eac..847f460e055 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class MlInfoRequestParameters : Elastic.Transport.RequestP /// /// /// Get machine learning information. +/// +/// /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not @@ -70,6 +72,8 @@ internal MlInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// /// Get machine learning information. +/// +/// /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs index 4aa8c4d44e0..dae0c0a3067 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class PreviewDataFrameAnalyticsRequestParameters : Elastic /// /// /// Preview features used by data frame analytics. +/// +/// /// Preview the extracted features used by a data frame analytics config. /// /// @@ -83,6 +85,8 @@ internal PreviewDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializ /// /// /// Preview features used by data frame analytics. +/// +/// /// Preview the extracted features used by a data frame analytics config. /// /// @@ -218,6 +222,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PreviewDataFrameAnalyticsRe /// /// /// Preview features used by data frame analytics. +/// +/// /// Preview the extracted features used by a data frame analytics config. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs index 80c21b0df7b..ace92af8a30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class PutDataFrameAnalyticsRequestParameters : Elastic.Tra /// /// /// Create a data frame analytics job. +/// +/// /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// By default, the query used in the source configuration is {"match_all": {}}. @@ -207,6 +209,8 @@ internal PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// /// Create a data frame analytics job. +/// +/// /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// By default, the query used in the source configuration is {"match_all": {}}. @@ -651,6 +655,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDataFrameAnalyticsReques /// /// /// Create a data frame analytics job. +/// +/// /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// By default, the query used in the source configuration is {"match_all": {}}. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index 66247b89418..1a03d2b1666 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -60,6 +60,8 @@ public sealed partial class PutDatafeedRequestParameters : Elastic.Transport.Req /// /// /// Create a datafeed. +/// +/// /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). @@ -262,6 +264,8 @@ internal PutDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Create a datafeed. +/// +/// /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). @@ -870,6 +874,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescripto /// /// /// Create a datafeed. +/// +/// /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs index 51447d91cff..7b4d01f6e2c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class PutFilterRequestParameters : Elastic.Transport.Reque /// /// /// Create a filter. +/// +/// /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// @@ -90,6 +92,8 @@ internal PutFilterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Create a filter. +/// +/// /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.Converters.g.cs index 4948f97ff5b..b204f771b6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.Converters.g.cs @@ -35,7 +35,6 @@ public sealed partial class PutJobRequestConverter : System.Text.Json.Serializat private static readonly System.Text.Json.JsonEncodedText PropDatafeedConfig = System.Text.Json.JsonEncodedText.Encode("datafeed_config"); private static readonly System.Text.Json.JsonEncodedText PropDescription = System.Text.Json.JsonEncodedText.Encode("description"); private static readonly System.Text.Json.JsonEncodedText PropGroups = System.Text.Json.JsonEncodedText.Encode("groups"); - private static readonly System.Text.Json.JsonEncodedText PropJobId = System.Text.Json.JsonEncodedText.Encode("job_id"); private static readonly System.Text.Json.JsonEncodedText PropModelPlotConfig = System.Text.Json.JsonEncodedText.Encode("model_plot_config"); private static readonly System.Text.Json.JsonEncodedText PropModelSnapshotRetentionDays = System.Text.Json.JsonEncodedText.Encode("model_snapshot_retention_days"); private static readonly System.Text.Json.JsonEncodedText PropRenormalizationWindowDays = System.Text.Json.JsonEncodedText.Encode("renormalization_window_days"); @@ -55,7 +54,6 @@ public override Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest Read LocalJsonValue propDatafeedConfig = default; LocalJsonValue propDescription = default; LocalJsonValue?> propGroups = default; - LocalJsonValue propJobId = default; LocalJsonValue propModelPlotConfig = default; LocalJsonValue propModelSnapshotRetentionDays = default; LocalJsonValue propRenormalizationWindowDays = default; @@ -113,11 +111,6 @@ public override Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest Read continue; } - if (propJobId.TryReadProperty(ref reader, options, PropJobId, null)) - { - continue; - } - if (propModelPlotConfig.TryReadProperty(ref reader, options, PropModelPlotConfig, null)) { continue; @@ -165,7 +158,6 @@ public override Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest Read DatafeedConfig = propDatafeedConfig.Value, Description = propDescription.Value, Groups = propGroups.Value, - JobId = propJobId.Value, ModelPlotConfig = propModelPlotConfig.Value, ModelSnapshotRetentionDays = propModelSnapshotRetentionDays.Value, RenormalizationWindowDays = propRenormalizationWindowDays.Value, @@ -187,7 +179,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropDatafeedConfig, value.DatafeedConfig, null, null); writer.WriteProperty(options, PropDescription, value.Description, null, null); writer.WriteProperty(options, PropGroups, value.Groups, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteCollectionValue(o, v, null)); - writer.WriteProperty(options, PropJobId, value.JobId, null, null); writer.WriteProperty(options, PropModelPlotConfig, value.ModelPlotConfig, null, null); writer.WriteProperty(options, PropModelSnapshotRetentionDays, value.ModelSnapshotRetentionDays, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropRenormalizationWindowDays, value.RenormalizationWindowDays, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs index f1df73ec206..14d14e74f30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs @@ -69,8 +69,14 @@ public sealed partial class PutJobRequestParameters : Elastic.Transport.RequestP [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.PutJobRequestConverter))] public sealed partial class PutJobRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { + [System.Obsolete("The request contains additional required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")] [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public PutJobRequest(Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfig analysisConfig, Elastic.Clients.Elasticsearch.MachineLearning.DataDescription dataDescription) + public PutJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutJobRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfig analysisConfig, Elastic.Clients.Elasticsearch.MachineLearning.DataDescription dataDescription) : base(r => r.Required("job_id", jobId)) { AnalysisConfig = analysisConfig; DataDescription = dataDescription; @@ -79,12 +85,6 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfi public PutJobRequest() { } -#endif -#if !NET7_0_OR_GREATER - [System.Obsolete("The request contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")] - public PutJobRequest() - { - } #endif [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) @@ -100,6 +100,17 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct internal override string OperationName => "ml.put_job"; + /// + /// + /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + /// /// /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the @@ -209,13 +220,6 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// public System.Collections.Generic.ICollection? Groups { get; set; } - /// - /// - /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. - /// - /// - public Elastic.Clients.Elasticsearch.Id? JobId { get; set; } - /// /// /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. @@ -271,14 +275,33 @@ public PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.MachineLearning.Put Instance = instance; } + public PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id jobId) + { +#pragma warning disable CS0618 + Instance = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest(jobId); +#pragma warning restore CS0618 + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] public PutJobRequestDescriptor() { - Instance = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); } public static explicit operator Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest instance) => new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest(Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor descriptor) => descriptor.Instance; + /// + /// + /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. + /// + /// + public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id value) + { + Instance.JobId = value; + return this; + } + /// /// /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the @@ -569,17 +592,6 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor Gro return this; } - /// - /// - /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. - /// - /// - public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? value) - { - Instance.JobId = value; - return this; - } - /// /// /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. @@ -738,14 +750,33 @@ public PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.MachineLearning.Put Instance = instance; } + public PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id jobId) + { +#pragma warning disable CS0618 + Instance = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest(jobId); +#pragma warning restore CS0618 + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] public PutJobRequestDescriptor() { - Instance = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); } public static explicit operator Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest instance) => new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequest(Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor descriptor) => descriptor.Instance; + /// + /// + /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. + /// + /// + public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id value) + { + Instance.JobId = value; + return this; + } + /// /// /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the @@ -1003,17 +1034,6 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor - /// - /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. - /// - /// - public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? value) - { - Instance.JobId = value; - return this; - } - /// /// /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs index 8c2b8b262e2..807f0fd80ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs @@ -38,6 +38,8 @@ public sealed partial class PutTrainedModelAliasRequestParameters : Elastic.Tran /// /// /// Create or update a trained model alias. +/// +/// /// A trained model alias is a logical name used to reference a single trained /// model. /// You can use aliases instead of trained model identifiers to make it easier to @@ -117,6 +119,8 @@ internal PutTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Serialization /// /// /// Create or update a trained model alias. +/// +/// /// A trained model alias is a logical name used to reference a single trained /// model. /// You can use aliases instead of trained model identifiers to make it easier to diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs index c60a1276d5a..a1130b5fd62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs @@ -46,6 +46,8 @@ public sealed partial class PutTrainedModelRequestParameters : Elastic.Transport /// /// /// Create a trained model. +/// +/// /// Enable you to supply a trained model that is not created by data frame analytics. /// /// @@ -198,6 +200,8 @@ internal PutTrainedModelRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// Create a trained model. +/// +/// /// Enable you to supply a trained model that is not created by data frame analytics. /// /// @@ -534,6 +538,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelRequestDescr /// /// /// Create a trained model. +/// +/// /// Enable you to supply a trained model that is not created by data frame analytics. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs index 5fb54b6104c..d8518d4bcc8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class PutTrainedModelVocabularyRequestParameters : Elastic /// /// /// Create a trained model vocabulary. +/// +/// /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// @@ -107,6 +109,8 @@ internal PutTrainedModelVocabularyRequest(Elastic.Clients.Elasticsearch.Serializ /// /// /// Create a trained model vocabulary. +/// +/// /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs index 54f515d4b04..764aefca755 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs @@ -46,6 +46,8 @@ public sealed partial class ResetJobRequestParameters : Elastic.Transport.Reques /// /// /// Reset an anomaly detection job. +/// +/// /// All model state and results are deleted. The job is ready to start over as if /// it had just been created. /// It is not currently possible to reset multiple jobs using wildcards or a @@ -110,6 +112,8 @@ internal ResetJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Reset an anomaly detection job. +/// +/// /// All model state and results are deleted. The job is ready to start over as if /// it had just been created. /// It is not currently possible to reset multiple jobs using wildcards or a diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs index 342467009ba..c7d71544c20 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class RevertModelSnapshotRequestParameters : Elastic.Trans /// /// /// Revert to a snapshot. +/// +/// /// The machine learning features react quickly to anomalous input, learning new /// behaviors in data. Highly anomalous input increases the variance in the /// models whilst the system learns whether this is a new step-change in behavior @@ -100,6 +102,8 @@ internal RevertModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization. /// /// /// Revert to a snapshot. +/// +/// /// The machine learning features react quickly to anomalous input, learning new /// behaviors in data. Highly anomalous input increases the variance in the /// models whilst the system learns whether this is a new step-change in behavior diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs index 8f68484cc7b..cbe73863e10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class SetUpgradeModeRequestParameters : Elastic.Transport. /// /// /// Set upgrade_mode for ML indices. +/// +/// /// Sets a cluster wide upgrade_mode setting that prepares machine learning /// indices for an upgrade. /// When upgrading your cluster, in some circumstances you must restart your @@ -106,6 +108,8 @@ internal SetUpgradeModeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Set upgrade_mode for ML indices. +/// +/// /// Sets a cluster wide upgrade_mode setting that prepares machine learning /// indices for an upgrade. /// When upgrading your cluster, in some circumstances you must restart your diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs index 154de16c8bc..c8dbf9eba65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class StartDataFrameAnalyticsRequestParameters : Elastic.T /// /// /// Start a data frame analytics job. +/// +/// /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// If the destination index does not exist, it is created automatically the @@ -101,6 +103,8 @@ internal StartDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializat /// /// /// Start a data frame analytics job. +/// +/// /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// If the destination index does not exist, it is created automatically the diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs index 2b31f51ed33..76528ab6f13 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs @@ -98,6 +98,8 @@ public sealed partial class StartTrainedModelDeploymentRequestParameters : Elast /// /// /// Start a trained model deployment. +/// +/// /// It allocates the model to every machine learning node. /// /// @@ -220,6 +222,8 @@ internal StartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Serial /// /// /// Start a trained model deployment. +/// +/// /// It allocates the model to every machine learning node. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs index c84b7806a06..480384ce74c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs @@ -75,6 +75,8 @@ public sealed partial class StopDataFrameAnalyticsRequestParameters : Elastic.Tr /// /// /// Stop data frame analytics jobs. +/// +/// /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// @@ -168,6 +170,8 @@ internal StopDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializati /// /// /// Stop data frame analytics jobs. +/// +/// /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs index 7009f15d81b..4c8e65eda5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class StopDatafeedRequestParameters : Elastic.Transport.Re /// /// /// Stop datafeeds. +/// +/// /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// @@ -98,6 +100,8 @@ internal StopDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Stop datafeeds. +/// +/// /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs index 32bba650f0e..a3dd50deb24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs @@ -60,6 +60,8 @@ public sealed partial class UpdateDatafeedRequestParameters : Elastic.Transport. /// /// /// Update a datafeed. +/// +/// /// You must stop and start the datafeed for the changes to be applied. /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, @@ -251,6 +253,8 @@ internal UpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Update a datafeed. +/// +/// /// You must stop and start the datafeed for the changes to be applied. /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, @@ -837,6 +841,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri /// /// /// Update a datafeed. +/// +/// /// You must stop and start the datafeed for the changes to be applied. /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs index 166c1d93a69..1b75ca43b02 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class UpdateFilterRequestParameters : Elastic.Transport.Re /// /// /// Update a filter. +/// +/// /// Updates the description of a filter, adds items, or removes items from the list. /// /// @@ -95,6 +97,8 @@ internal UpdateFilterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Update a filter. +/// +/// /// Updates the description of a filter, adds items, or removes items from the list. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs index 78a32f06cce..50b0e37c0ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class UpdateJobRequestParameters : Elastic.Transport.Reque /// /// /// Update an anomaly detection job. +/// +/// /// Updates certain properties of an anomaly detection job. /// /// @@ -189,6 +191,8 @@ internal UpdateJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Update an anomaly detection job. +/// +/// /// Updates certain properties of an anomaly detection job. /// /// @@ -601,6 +605,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateJobRequestDescriptor /// /// /// Update an anomaly detection job. +/// +/// /// Updates certain properties of an anomaly detection job. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs index c36011aec05..f0f6e8092f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class UpdateModelSnapshotRequestParameters : Elastic.Trans /// /// /// Update a snapshot. +/// +/// /// Updates certain properties of a snapshot. /// /// @@ -101,6 +103,8 @@ internal UpdateModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization. /// /// /// Update a snapshot. +/// +/// /// Updates certain properties of a snapshot. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs index 7ad980d694a..b61be987e99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs @@ -44,6 +44,8 @@ public sealed partial class UpgradeJobSnapshotRequestParameters : Elastic.Transp /// /// /// Upgrade a snapshot. +/// +/// /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous @@ -122,6 +124,8 @@ internal UpgradeJobSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// /// Upgrade a snapshot. +/// +/// /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs index 67914d72d2c..7f35b706558 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs @@ -51,6 +51,7 @@ public sealed partial class MultiSearchRequestParameters : Elastic.Transport.Req /// If true, concrete, expanded or aliased indices are ignored when frozen. /// /// + [System.Obsolete("Deprecated in '7.16.0'. This parameter is deprecated because frozen indices have been deprecated.")] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// @@ -223,6 +224,7 @@ internal MultiSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// If true, concrete, expanded or aliased indices are ignored when frozen. /// /// + [System.Obsolete("Deprecated in '7.16.0'. This parameter is deprecated because frozen indices have been deprecated.")] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// @@ -403,6 +405,7 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor ExpandWildcard return this; } + [System.Obsolete("Deprecated in '7.16.0'. This parameter is deprecated because frozen indices have been deprecated.")] /// /// /// If true, concrete, expanded or aliased indices are ignored when frozen. @@ -685,6 +688,7 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor Exp return this; } + [System.Obsolete("Deprecated in '7.16.0'. This parameter is deprecated because frozen indices have been deprecated.")] /// /// /// If true, concrete, expanded or aliased indices are ignored when frozen. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs index 35d8b2c62b5..98ea21f8505 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class ClearRepositoriesMeteringArchiveRequestParameters : /// /// /// Clear the archived repositories metering. +/// +/// /// Clear the archived repositories metering information in the cluster. /// /// @@ -85,6 +87,8 @@ internal ClearRepositoriesMeteringArchiveRequest(Elastic.Clients.Elasticsearch.S /// /// /// Clear the archived repositories metering. +/// +/// /// Clear the archived repositories metering information in the cluster. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs index af4c1d1c0be..8d9b5061340 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetRepositoriesMeteringInfoRequestParameters : Elast /// /// /// Get cluster repositories metering. +/// +/// /// Get repositories metering information for a cluster. /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. @@ -76,6 +78,8 @@ internal GetRepositoriesMeteringInfoRequest(Elastic.Clients.Elasticsearch.Serial /// /// /// Get cluster repositories metering. +/// +/// /// Get repositories metering information for a cluster. /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs index 9a92d361d37..81b657047c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs @@ -80,6 +80,8 @@ public sealed partial class HotThreadsRequestParameters : Elastic.Transport.Requ /// /// /// Get the hot threads for nodes. +/// +/// /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// @@ -176,6 +178,8 @@ internal HotThreadsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get the hot threads for nodes. +/// +/// /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs index bf87ec6f461..74c0e9e46e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs @@ -55,11 +55,11 @@ public NodesInfoRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r { } - public NodesInfoRequest(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) + public NodesInfoRequest(System.Collections.Generic.ICollection? metric) : base(r => r.Optional("metric", metric)) { } - public NodesInfoRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) + public NodesInfoRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) { } #if NET7_0_OR_GREATER @@ -91,7 +91,7 @@ internal NodesInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. /// /// - public Elastic.Clients.Elasticsearch.Metrics? Metric { get => P("metric"); set => PO("metric", value); } + public System.Collections.Generic.ICollection? Metric { get => P?>("metric"); set => PO("metric", value); } /// /// @@ -138,12 +138,12 @@ public NodesInfoRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId) Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequest(nodeId); } - public NodesInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) + public NodesInfoRequestDescriptor(System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequest(metric); } - public NodesInfoRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) + public NodesInfoRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequest(nodeId, metric); } @@ -161,12 +161,23 @@ public NodesInfoRequestDescriptor() /// Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. /// /// - public Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? value) + public Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor Metric(System.Collections.Generic.ICollection? value) { Instance.Metric = value; return this; } + /// + /// + /// Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. + /// + /// + public Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor Metric(params Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric[] values) + { + Instance.Metric = [.. values]; + return this; + } + /// /// /// Comma-separated list of node IDs or names used to limit returned information. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs index c227d18b1b4..c5920c053ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs @@ -92,6 +92,8 @@ public sealed partial class NodesStatsRequestParameters : Elastic.Transport.Requ /// /// /// Get node statistics. +/// +/// /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// @@ -103,19 +105,19 @@ public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r { } - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) + public NodesStatsRequest(System.Collections.Generic.ICollection? metric) : base(r => r.Optional("metric", metric)) { } - public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) + public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) { } - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) : base(r => r.Optional("metric", metric).Optional("index_metric", indexMetric)) + public NodesStatsRequest(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric) : base(r => r.Optional("metric", metric).Optional("index_metric", indexMetric)) { } - public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric).Optional("index_metric", indexMetric)) + public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric).Optional("index_metric", indexMetric)) { } #if NET7_0_OR_GREATER @@ -147,14 +149,14 @@ internal NodesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. /// /// - public Elastic.Clients.Elasticsearch.Metrics? IndexMetric { get => P("index_metric"); set => PO("index_metric", value); } + public System.Collections.Generic.ICollection? IndexMetric { get => P?>("index_metric"); set => PO("index_metric", value); } /// /// /// Limit the information returned to the specified metrics /// /// - public Elastic.Clients.Elasticsearch.Metrics? Metric { get => P("metric"); set => PO("metric", value); } + public System.Collections.Generic.ICollection? Metric { get => P?>("metric"); set => PO("metric", value); } /// /// @@ -230,6 +232,8 @@ internal NodesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get node statistics. +/// +/// /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// @@ -249,22 +253,22 @@ public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(nodeId); } - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) + public NodesStatsRequestDescriptor(System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(metric); } - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) + public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(nodeId, metric); } - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) + public NodesStatsRequestDescriptor(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(metric, indexMetric); } - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) + public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(nodeId, metric, indexMetric); } @@ -282,23 +286,45 @@ public NodesStatsRequestDescriptor() /// Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. /// /// - public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IndexMetric(Elastic.Clients.Elasticsearch.Metrics? value) + public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IndexMetric(System.Collections.Generic.ICollection? value) { Instance.IndexMetric = value; return this; } + /// + /// + /// Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. + /// + /// + public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IndexMetric(params Elastic.Clients.Elasticsearch.CommonStatsFlag[] values) + { + Instance.IndexMetric = [.. values]; + return this; + } + /// /// /// Limit the information returned to the specified metrics /// /// - public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? value) + public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Metric(System.Collections.Generic.ICollection? value) { Instance.Metric = value; return this; } + /// + /// + /// Limit the information returned to the specified metrics + /// + /// + public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Metric(params Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric[] values) + { + Instance.Metric = [.. values]; + return this; + } + /// /// /// Comma-separated list of node IDs or names used to limit returned information. @@ -512,6 +538,8 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor RequestCo /// /// /// Get node statistics. +/// +/// /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// @@ -531,22 +559,22 @@ public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(nodeId); } - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) + public NodesStatsRequestDescriptor(System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(metric); } - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) + public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(nodeId, metric); } - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) + public NodesStatsRequestDescriptor(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(metric, indexMetric); } - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) + public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequest(nodeId, metric, indexMetric); } @@ -564,23 +592,45 @@ public NodesStatsRequestDescriptor() /// Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. /// /// - public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IndexMetric(Elastic.Clients.Elasticsearch.Metrics? value) + public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IndexMetric(System.Collections.Generic.ICollection? value) { Instance.IndexMetric = value; return this; } + /// + /// + /// Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. + /// + /// + public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IndexMetric(params Elastic.Clients.Elasticsearch.CommonStatsFlag[] values) + { + Instance.IndexMetric = [.. values]; + return this; + } + /// /// /// Limit the information returned to the specified metrics /// /// - public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? value) + public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Metric(System.Collections.Generic.ICollection? value) { Instance.Metric = value; return this; } + /// + /// + /// Limit the information returned to the specified metrics + /// + /// + public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Metric(params Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric[] values) + { + Instance.Metric = [.. values]; + return this; + } + /// /// /// Comma-separated list of node IDs or names used to limit returned information. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs index fde97d2d20b..36122e8d2f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs @@ -46,11 +46,11 @@ public NodesUsageRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r { } - public NodesUsageRequest(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) + public NodesUsageRequest(System.Collections.Generic.ICollection? metric) : base(r => r.Optional("metric", metric)) { } - public NodesUsageRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) + public NodesUsageRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) { } #if NET7_0_OR_GREATER @@ -80,10 +80,10 @@ internal NodesUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Limits the information returned to the specific metrics. - /// A comma-separated list of the following options: _all, rest_actions. + /// A comma-separated list of the following options: _all, rest_actions, aggregations. /// /// - public Elastic.Clients.Elasticsearch.Metrics? Metric { get => P("metric"); set => PO("metric", value); } + public System.Collections.Generic.ICollection? Metric { get => P?>("metric"); set => PO("metric", value); } /// /// @@ -121,12 +121,12 @@ public NodesUsageRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequest(nodeId); } - public NodesUsageRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) + public NodesUsageRequestDescriptor(System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequest(metric); } - public NodesUsageRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) + public NodesUsageRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) { Instance = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequest(nodeId, metric); } @@ -142,15 +142,27 @@ public NodesUsageRequestDescriptor() /// /// /// Limits the information returned to the specific metrics. - /// A comma-separated list of the following options: _all, rest_actions. + /// A comma-separated list of the following options: _all, rest_actions, aggregations. /// /// - public Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? value) + public Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor Metric(System.Collections.Generic.ICollection? value) { Instance.Metric = value; return this; } + /// + /// + /// Limits the information returned to the specific metrics. + /// A comma-separated list of the following options: _all, rest_actions, aggregations. + /// + /// + public Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor Metric(params Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric[] values) + { + Instance.Metric = [.. values]; + return this; + } + /// /// /// A comma-separated list of node IDs or names to limit the returned information; use _local to return information from the node you're connecting to, leave empty to get information from all nodes diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs index 1094f4c225b..56f937493df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class PingRequestParameters : Elastic.Transport.RequestPar /// /// /// Ping the cluster. +/// +/// /// Get information about whether the cluster is running. /// /// @@ -64,6 +66,8 @@ internal PingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// /// Ping the cluster. +/// +/// /// Get information about whether the cluster is running. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs index 1b62eb4bdc3..a5fcdb6f759 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class PutScriptRequestParameters : Elastic.Transport.Reque /// /// /// Create or update a script or search template. +/// +/// /// Creates or updates a stored script or search template. /// /// @@ -148,6 +150,8 @@ internal PutScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Create or update a script or search template. +/// +/// /// Creates or updates a stored script or search template. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs index bcdb9da95e9..925460b617b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class DeleteRuleRequestParameters : Elastic.Transport.Requ /// /// /// Delete a query rule. +/// +/// /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// @@ -86,6 +88,8 @@ internal DeleteRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Delete a query rule. +/// +/// /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs index 986e86a4b35..3f35be0b440 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class DeleteRulesetRequestParameters : Elastic.Transport.R /// /// /// Delete a query ruleset. +/// +/// /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// @@ -75,6 +77,8 @@ internal DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Delete a query ruleset. +/// +/// /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs index 4bdde7b0c86..6c42e514f5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetRuleRequestParameters : Elastic.Transport.Request /// /// /// Get a query rule. +/// +/// /// Get details about a query rule within a query ruleset. /// /// @@ -85,6 +87,8 @@ internal GetRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Get a query rule. +/// +/// /// Get details about a query rule within a query ruleset. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs index 058fe67f522..4057e04385b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetRulesetRequestParameters : Elastic.Transport.Requ /// /// /// Get a query ruleset. +/// +/// /// Get details about a query ruleset. /// /// @@ -74,6 +76,8 @@ internal GetRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get a query ruleset. +/// +/// /// Get details about a query ruleset. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs index 662eed6d2b1..7b98bd91922 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class ListRulesetsRequestParameters : Elastic.Transport.Re /// /// /// Get all query rulesets. +/// +/// /// Get summarized information about the query rulesets. /// /// @@ -91,6 +93,8 @@ internal ListRulesetsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get all query rulesets. +/// +/// /// Get summarized information about the query rulesets. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs index 85dd304bbfd..a1e64545ab9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class PutRuleRequestParameters : Elastic.Transport.Request /// /// /// Create or update a query rule. +/// +/// /// Create or update a query rule within a query ruleset. /// /// @@ -136,6 +138,8 @@ internal PutRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Create or update a query rule. +/// +/// /// Create or update a query rule within a query ruleset. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs index c824b7e2723..a4e91c1e07d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class PutRulesetRequestParameters : Elastic.Transport.Requ /// /// /// Create or update a query ruleset. +/// +/// /// There is a limit of 100 rules per ruleset. /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. /// @@ -93,6 +95,8 @@ internal PutRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Create or update a query ruleset. +/// +/// /// There is a limit of 100 rules per ruleset. /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs index 16d1b44af74..f4117e6fbaf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class TestRequestParameters : Elastic.Transport.RequestPar /// /// /// Test a query ruleset. +/// +/// /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// @@ -93,6 +95,8 @@ internal TestRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// /// Test a query ruleset. +/// +/// /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs index bcf2d348ee6..353bb75829a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs @@ -51,7 +51,7 @@ public sealed partial class RankEvalRequestParameters : Elastic.Transport.Reques /// Search operation type /// /// - public string? SearchType { get => Q("search_type"); set => Q("search_type", value); } + public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } } /// @@ -142,7 +142,7 @@ internal RankEvalRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Search operation type /// /// - public string? SearchType { get => Q("search_type"); set => Q("search_type", value); } + public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// /// @@ -258,7 +258,7 @@ public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor IgnoreUnavailable /// Search operation type /// /// - public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor SearchType(string? value) + public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? value) { Instance.SearchType = value; return this; @@ -499,7 +499,7 @@ public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor Ignore /// Search operation type /// /// - public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor SearchType(string? value) + public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? value) { Instance.SearchType = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs index 531a517478d..a4bb262a603 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetJobsRequestParameters : Elastic.Transport.Request /// /// /// Get rollup job information. +/// +/// /// Get the configuration, stats, and status of rollup jobs. /// /// @@ -80,6 +82,8 @@ internal GetJobsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Get rollup job information. +/// +/// /// Get the configuration, stats, and status of rollup jobs. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs index 81ab495c36f..6a9bc95684c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetRollupCapsRequestParameters : Elastic.Transport.R /// /// /// Get the rollup job capabilities. +/// +/// /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// /// @@ -92,6 +94,8 @@ internal GetRollupCapsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Get the rollup job capabilities. +/// +/// /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs index 301fe102abb..ec67ff104ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetRollupIndexCapsRequestParameters : Elastic.Transp /// /// /// Get the rollup index capabilities. +/// +/// /// Get the rollup capabilities of all jobs inside of a rollup index. /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: /// @@ -88,6 +90,8 @@ internal GetRollupIndexCapsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// /// Get the rollup index capabilities. +/// +/// /// Get the rollup capabilities of all jobs inside of a rollup index. /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs index b4789387cda..258a748d3b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class RollupSearchRequestParameters : Elastic.Transport.Re /// /// /// Search rolled-up data. +/// +/// /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// @@ -157,6 +159,8 @@ internal RollupSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Search rolled-up data. +/// +/// /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// @@ -415,6 +419,8 @@ public Elastic.Clients.Elasticsearch.Rollup.RollupSearchRequestDescriptor Reques /// /// /// Search rolled-up data. +/// +/// /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs index 9d8737ec1f1..39b8aacc727 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class StartJobRequestParameters : Elastic.Transport.Reques /// /// /// Start rollup jobs. +/// +/// /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// @@ -75,6 +77,8 @@ internal StartJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Start rollup jobs. +/// +/// /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs index 4fa1f704c42..c4941da3cf2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class StopJobRequestParameters : Elastic.Transport.Request /// /// /// Stop rollup jobs. +/// +/// /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// @@ -121,6 +123,8 @@ internal StopJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Stop rollup jobs. +/// +/// /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs index 5c8087173a3..efc146abb57 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class DeleteBehavioralAnalyticsRequestParameters : Elastic /// /// /// Delete a behavioral analytics collection. +/// +/// /// The associated data stream is also deleted. /// /// @@ -74,6 +76,8 @@ internal DeleteBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializ /// /// /// Delete a behavioral analytics collection. +/// +/// /// The associated data stream is also deleted. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs index 11569eecae8..0395ba3a2c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs @@ -50,6 +50,8 @@ public sealed partial class ListRequestParameters : Elastic.Transport.RequestPar /// /// /// Get search applications. +/// +/// /// Get information about search applications. /// /// @@ -105,6 +107,8 @@ internal ListRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// /// Get search applications. +/// +/// /// Get information about search applications. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs index cd150905c53..b7d14f7f46c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class RenderQueryRequestParameters : Elastic.Transport.Req /// /// /// Render a search application query. +/// +/// /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. @@ -80,6 +82,8 @@ internal RenderQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Render a search application query. +/// +/// /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs index 71b451cdca0..1b402775a62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class SearchApplicationSearchRequestParameters : Elastic.T /// /// /// Run a search application search. +/// +/// /// Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. /// Unspecified template parameters are assigned their default values if applicable. /// @@ -95,6 +97,8 @@ internal SearchApplicationSearchRequest(Elastic.Clients.Elasticsearch.Serializat /// /// /// Run a search application search. +/// +/// /// Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. /// Unspecified template parameters are assigned their default values if applicable. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs index 615621db4fd..14b1acd6321 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs @@ -31,6 +31,8 @@ public sealed partial class CacheStatsRequestParameters : Elastic.Transport.Requ /// /// /// Get cache statistics. +/// +/// /// Get statistics about the shared cache for partially mounted indices. /// /// @@ -76,6 +78,8 @@ internal CacheStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get cache statistics. +/// +/// /// Get statistics about the shared cache for partially mounted indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs index 7b86a84cc03..8dfd5241224 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs @@ -50,6 +50,8 @@ public sealed partial class ClearCacheRequestParameters : Elastic.Transport.Requ /// /// /// Clear the cache. +/// +/// /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// @@ -116,6 +118,8 @@ internal ClearCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Clear the cache. +/// +/// /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// @@ -257,6 +261,8 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescri /// /// /// Clear the cache. +/// +/// /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs index 0222c20b1b1..0ec6465646e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs @@ -52,6 +52,8 @@ public sealed partial class MountRequestParameters : Elastic.Transport.RequestPa /// /// /// Mount a snapshot. +/// +/// /// Mount a snapshot as a searchable snapshot index. /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. @@ -172,6 +174,8 @@ internal MountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// /// Mount a snapshot. +/// +/// /// Mount a snapshot as a searchable snapshot index. /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs index 08602cb18e6..7e2413e77e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class BulkUpdateApiKeysRequestParameters : Elastic.Transpo /// /// /// Bulk update API keys. +/// +/// /// Update the attributes for multiple API keys. /// /// @@ -132,6 +134,8 @@ internal BulkUpdateApiKeysRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// /// Bulk update API keys. +/// +/// /// Update the attributes for multiple API keys. /// /// @@ -444,6 +448,8 @@ public Elastic.Clients.Elasticsearch.Security.BulkUpdateApiKeysRequestDescriptor /// /// /// Bulk update API keys. +/// +/// /// Update the attributes for multiple API keys. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs index 710afcac6eb..652fe694c78 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs @@ -40,7 +40,7 @@ public sealed partial class ClearCachedPrivilegesRequestParameters : Elastic.Tra public sealed partial class ClearCachedPrivilegesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Name application) : base(r => r.Required("application", application)) + public ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Names application) : base(r => r.Required("application", application)) { } #if NET7_0_OR_GREATER @@ -73,7 +73,7 @@ internal ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Serializatio #if NET7_0_OR_GREATER required #endif - Elastic.Clients.Elasticsearch.Name Application { get => P("application"); set => PR("application", value); } + Elastic.Clients.Elasticsearch.Names Application { get => P("application"); set => PR("application", value); } } /// @@ -95,7 +95,7 @@ public ClearCachedPrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Secu Instance = instance; } - public ClearCachedPrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Name application) + public ClearCachedPrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Names application) { Instance = new Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequest(application); } @@ -116,7 +116,7 @@ public ClearCachedPrivilegesRequestDescriptor() /// It does not support other wildcard patterns. /// /// - public Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Name value) + public Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Names value) { Instance.Application = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.Converters.g.cs index be806a1cd28..73777a3c8cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.Converters.g.cs @@ -32,7 +32,6 @@ public sealed partial class PutUserRequestConverter : System.Text.Json.Serializa private static readonly System.Text.Json.JsonEncodedText PropPassword = System.Text.Json.JsonEncodedText.Encode("password"); private static readonly System.Text.Json.JsonEncodedText PropPasswordHash = System.Text.Json.JsonEncodedText.Encode("password_hash"); private static readonly System.Text.Json.JsonEncodedText PropRoles = System.Text.Json.JsonEncodedText.Encode("roles"); - private static readonly System.Text.Json.JsonEncodedText PropUsername = System.Text.Json.JsonEncodedText.Encode("username"); public override Elastic.Clients.Elasticsearch.Security.PutUserRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { @@ -44,7 +43,6 @@ public override Elastic.Clients.Elasticsearch.Security.PutUserRequest Read(ref S LocalJsonValue propPassword = default; LocalJsonValue propPasswordHash = default; LocalJsonValue?> propRoles = default; - LocalJsonValue propUsername = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { if (propEmail.TryReadProperty(ref reader, options, PropEmail, null)) @@ -82,11 +80,6 @@ public override Elastic.Clients.Elasticsearch.Security.PutUserRequest Read(ref S continue; } - if (propUsername.TryReadProperty(ref reader, options, PropUsername, null)) - { - continue; - } - if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) { reader.SafeSkip(); @@ -105,8 +98,7 @@ public override Elastic.Clients.Elasticsearch.Security.PutUserRequest Read(ref S Metadata = propMetadata.Value, Password = propPassword.Value, PasswordHash = propPasswordHash.Value, - Roles = propRoles.Value, - Username = propUsername.Value + Roles = propRoles.Value }; } @@ -120,7 +112,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropPassword, value.Password, null, null); writer.WriteProperty(options, PropPasswordHash, value.PasswordHash, null, null); writer.WriteProperty(options, PropRoles, value.Roles, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteCollectionValue(o, v, null)); - writer.WriteProperty(options, PropUsername, value.Username, null, null); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs index c9269ea7d76..19f224e952e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs @@ -47,12 +47,11 @@ public sealed partial class PutUserRequestParameters : Elastic.Transport.Request [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.PutUserRequestConverter))] public sealed partial class PutUserRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER - public PutUserRequest() + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) { } -#endif -#if !NET7_0_OR_GREATER +#if NET7_0_OR_GREATER public PutUserRequest() { } @@ -71,6 +70,22 @@ internal PutUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc internal override string OperationName => "security.put_user"; + /// + /// + /// An identifier for the user. + /// + /// + /// NOTE: Usernames must be at least 1 and no more than 507 characters. + /// They can contain alphanumeric characters (a-z, A-Z, 0-9), spaces, punctuation, and printable symbols in the Basic Latin (ASCII) block. + /// Leading or trailing whitespace is not allowed. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.Username Username { get => P("username"); set => PR("username", value); } + /// /// /// Valid values are true, false, and wait_for. @@ -136,7 +151,6 @@ internal PutUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// public System.Collections.Generic.ICollection? Roles { get; set; } - public Elastic.Clients.Elasticsearch.Username? Username { get; set; } } /// @@ -159,14 +173,36 @@ public PutUserRequestDescriptor(Elastic.Clients.Elasticsearch.Security.PutUserRe Instance = instance; } + public PutUserRequestDescriptor(Elastic.Clients.Elasticsearch.Username username) + { + Instance = new Elastic.Clients.Elasticsearch.Security.PutUserRequest(username); + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] public PutUserRequestDescriptor() { - Instance = new Elastic.Clients.Elasticsearch.Security.PutUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); } public static explicit operator Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(Elastic.Clients.Elasticsearch.Security.PutUserRequest instance) => new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.Security.PutUserRequest(Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor descriptor) => descriptor.Instance; + /// + /// + /// An identifier for the user. + /// + /// + /// NOTE: Usernames must be at least 1 and no more than 507 characters. + /// They can contain alphanumeric characters (a-z, A-Z, 0-9), spaces, punctuation, and printable symbols in the Basic Latin (ASCII) block. + /// Leading or trailing whitespace is not allowed. + /// + /// + public Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username value) + { + Instance.Username = value; + return this; + } + /// /// /// Valid values are true, false, and wait_for. @@ -307,20 +343,9 @@ public Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor Roles(par return this; } - public Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? value) - { - Instance.Username = value; - return this; - } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] - internal static Elastic.Clients.Elasticsearch.Security.PutUserRequest Build(System.Action? action) + internal static Elastic.Clients.Elasticsearch.Security.PutUserRequest Build(System.Action action) { - if (action is null) - { - return new Elastic.Clients.Elasticsearch.Security.PutUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); - } - var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(new Elastic.Clients.Elasticsearch.Security.PutUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); action.Invoke(builder); return builder.Instance; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs index d01a6546fc5..1efcf294c90 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class IngestRequestParameters : Elastic.Transport.RequestP /// /// /// Simulate data ingestion. +/// +/// /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. /// /// @@ -180,6 +182,8 @@ internal IngestRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// /// Simulate data ingestion. +/// +/// /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. /// /// @@ -625,6 +629,8 @@ public Elastic.Clients.Elasticsearch.Simulate.IngestRequestDescriptor RequestCon /// /// /// Simulate data ingestion. +/// +/// /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs index e66d8da26d1..1cb13feeef6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class CleanupRepositoryRequestParameters : Elastic.Transpo /// /// /// Clean up the snapshot repository. +/// +/// /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// @@ -109,6 +111,8 @@ internal CleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// /// Clean up the snapshot repository. +/// +/// /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs index ad917fda58d..52a71f6d54b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs @@ -38,6 +38,8 @@ public sealed partial class CloneSnapshotRequestParameters : Elastic.Transport.R /// /// /// Clone a snapshot. +/// +/// /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// @@ -132,6 +134,8 @@ internal CloneSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Clone a snapshot. +/// +/// /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs index 4d511b2ca45..2439eef70fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs @@ -56,6 +56,8 @@ public sealed partial class CreateRepositoryRequestParameters : Elastic.Transpor /// /// /// Create or update a snapshot repository. +/// +/// /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. /// To register a snapshot repository, the cluster's global metadata must be writeable. /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. @@ -145,6 +147,8 @@ internal CreateRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Create or update a snapshot repository. +/// +/// /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. /// To register a snapshot repository, the cluster's global metadata must be writeable. /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs index 4f3adc76699..af03d250632 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class CreateSnapshotRequestParameters : Elastic.Transport. /// /// /// Create a snapshot. +/// +/// /// Take a snapshot of a cluster or of data streams and indices. /// /// @@ -195,6 +197,8 @@ internal CreateSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Create a snapshot. +/// +/// /// Take a snapshot of a cluster or of data streams and indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs index 82d9ccb2a7a..b81ba2d81cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class DeleteRepositoryRequestParameters : Elastic.Transpor /// /// /// Delete snapshot repositories. +/// +/// /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// @@ -111,6 +113,8 @@ internal DeleteRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Delete snapshot repositories. +/// +/// /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs index e425c1d3cd1..d42860e6291 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs @@ -52,7 +52,7 @@ public sealed partial class DeleteSnapshotRequestParameters : Elastic.Transport. public sealed partial class DeleteSnapshotRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) + public DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) { } #if NET7_0_OR_GREATER @@ -95,7 +95,7 @@ internal DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC #if NET7_0_OR_GREATER required #endif - Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } + Elastic.Clients.Elasticsearch.Names Snapshot { get => P("snapshot"); set => PR("snapshot", value); } /// /// @@ -130,7 +130,7 @@ public DeleteSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Snapshot.De Instance = instance; } - public DeleteSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) + public DeleteSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) { Instance = new Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequest(repository, snapshot); } @@ -161,7 +161,7 @@ public Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor Re /// It also accepts wildcards (*). /// /// - public Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Name value) + public Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Names value) { Instance.Snapshot = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs index 97a8586eb6d..7c2db45fd2b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs @@ -90,6 +90,8 @@ public sealed partial class RepositoryVerifyIntegrityRequestParameters : Elastic /// /// /// Verify the repository integrity. +/// +/// /// Verify the integrity of the contents of a snapshot repository. /// /// @@ -259,6 +261,8 @@ internal RepositoryVerifyIntegrityRequest(Elastic.Clients.Elasticsearch.Serializ /// /// /// Verify the repository integrity. +/// +/// /// Verify the integrity of the contents of a snapshot repository. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs index 48b85c08ad8..672eb47d525 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs @@ -50,6 +50,8 @@ public sealed partial class RestoreRequestParameters : Elastic.Transport.Request /// /// /// Restore a snapshot. +/// +/// /// Restore a snapshot of a cluster or data streams and indices. /// /// @@ -294,6 +296,8 @@ internal RestoreRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Restore a snapshot. +/// +/// /// Restore a snapshot of a cluster or data streams and indices. /// /// @@ -713,6 +717,8 @@ public Elastic.Clients.Elasticsearch.Snapshot.RestoreRequestDescriptor RequestCo /// /// /// Restore a snapshot. +/// +/// /// Restore a snapshot of a cluster or data streams and indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs index 1845544a963..4408b13b513 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs @@ -46,6 +46,8 @@ public sealed partial class SnapshotStatusRequestParameters : Elastic.Transport. /// /// /// Get the snapshot status. +/// +/// /// Get a detailed description of the current state for each shard participating in the snapshot. /// /// @@ -146,6 +148,8 @@ internal SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Get the snapshot status. +/// +/// /// Get a detailed description of the current state for each shard participating in the snapshot. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs index 8d03c11213e..f4673062045 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class VerifyRepositoryRequestParameters : Elastic.Transpor /// /// /// Verify a snapshot repository. +/// +/// /// Check for common misconfigurations in a snapshot repository. /// /// @@ -109,6 +111,8 @@ internal VerifyRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Verify a snapshot repository. +/// +/// /// Check for common misconfigurations in a snapshot repository. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs index 4886a147e8d..c5796e4abed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class DeleteLifecycleRequestParameters : Elastic.Transport /// /// /// Delete a policy. +/// +/// /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// @@ -106,6 +108,8 @@ internal DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// Delete a policy. +/// +/// /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs index 81e688235fc..90066f21590 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class ExecuteLifecycleRequestParameters : Elastic.Transpor /// /// /// Run a policy. +/// +/// /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// @@ -106,6 +108,8 @@ internal ExecuteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Run a policy. +/// +/// /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs index 9463ef8d4c3..201d52a7747 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class ExecuteRetentionRequestParameters : Elastic.Transpor /// /// /// Run a retention policy. +/// +/// /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// @@ -96,6 +98,8 @@ internal ExecuteRetentionRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Run a retention policy. +/// +/// /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs index 3784f950a86..ec43c59f4a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class GetLifecycleRequestParameters : Elastic.Transport.Re /// /// /// Get policy information. +/// +/// /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// @@ -105,6 +107,8 @@ internal GetLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get policy information. +/// +/// /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs index bc183f84d1a..c384beaf59d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class GetStatsRequestParameters : Elastic.Transport.Reques /// /// /// Get snapshot lifecycle management statistics. +/// +/// /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// @@ -91,6 +93,8 @@ internal GetStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Get snapshot lifecycle management statistics. +/// +/// /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs index 71efec7f4af..bb384c6279d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class PutLifecycleRequestParameters : Elastic.Transport.Re /// /// /// Create or update a policy. +/// +/// /// Create or update a snapshot lifecycle policy. /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. @@ -146,6 +148,8 @@ internal PutLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Create or update a policy. +/// +/// /// Create or update a snapshot lifecycle policy. /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs index c20eabdf7e4..ad5c6f61ea8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class StartSlmRequestParameters : Elastic.Transport.Reques /// /// /// Start snapshot lifecycle management. +/// +/// /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// @@ -100,6 +102,8 @@ internal StartSlmRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Start snapshot lifecycle management. +/// +/// /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs index ede1c710fa0..ec922db0bb2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class StopSlmRequestParameters : Elastic.Transport.Request /// /// /// Stop snapshot lifecycle management. +/// +/// /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. /// Stopping SLM does not stop any snapshots that are in progress. @@ -106,6 +108,8 @@ internal StopSlmRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// Stop snapshot lifecycle management. +/// +/// /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. /// Stopping SLM does not stop any snapshots that are in progress. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs index 942f06837fc..46085731c8d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class DeleteAsyncRequestParameters : Elastic.Transport.Req /// /// /// Delete an async SQL search. +/// +/// /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// @@ -90,6 +92,8 @@ internal DeleteAsyncRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// Delete an async SQL search. +/// +/// /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs index 5c7ab67655b..b02f99e96dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs @@ -62,6 +62,8 @@ public sealed partial class GetAsyncRequestParameters : Elastic.Transport.Reques /// /// /// Get async SQL search results. +/// +/// /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// @@ -142,6 +144,8 @@ internal GetAsyncRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Get async SQL search results. +/// +/// /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs index b5531c9a19e..7f1cea9089d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetAsyncStatusRequestParameters : Elastic.Transport. /// /// /// Get the async SQL search status. +/// +/// /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// @@ -74,6 +76,8 @@ internal GetAsyncStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Get the async SQL search status. +/// +/// /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs index c1608f4d143..c39eff7c809 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs @@ -38,6 +38,8 @@ public sealed partial class QueryRequestParameters : Elastic.Transport.RequestPa /// /// /// Get SQL search results. +/// +/// /// Run an SQL request. /// /// @@ -215,6 +217,8 @@ internal QueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// /// Get SQL search results. +/// +/// /// Run an SQL request. /// /// @@ -621,6 +625,8 @@ public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor RequestConfigura /// /// /// Get SQL search results. +/// +/// /// Run an SQL request. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs index 543a9212f0c..fc9eb6b55eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class TranslateRequestParameters : Elastic.Transport.Reque /// /// /// Translate SQL into Elasticsearch queries. +/// +/// /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// @@ -103,6 +105,8 @@ internal TranslateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Translate SQL into Elasticsearch queries. +/// +/// /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// @@ -245,6 +249,8 @@ public Elastic.Clients.Elasticsearch.Sql.TranslateRequestDescriptor RequestConfi /// /// /// Translate SQL into Elasticsearch queries. +/// +/// /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs index 5df8810c838..050e69f78ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class DeleteSynonymRuleRequestParameters : Elastic.Transpo /// /// /// Delete a synonym rule. +/// +/// /// Delete a synonym rule from a synonym set. /// /// @@ -100,6 +102,8 @@ internal DeleteSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// /// Delete a synonym rule. +/// +/// /// Delete a synonym rule from a synonym set. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs index 77bca08663f..3ddfa875772 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs @@ -30,6 +30,8 @@ public sealed partial class GetSynonymRuleRequestParameters : Elastic.Transport. /// /// /// Get a synonym rule. +/// +/// /// Get a synonym rule from a synonym set. /// /// @@ -85,6 +87,8 @@ internal GetSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Get a synonym rule. +/// +/// /// Get a synonym rule from a synonym set. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs index b8c5dedeb97..b9072fb2f07 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class GetSynonymsSetsRequestParameters : Elastic.Transport /// /// /// Get all synonym sets. +/// +/// /// Get a summary of all defined synonym sets. /// /// @@ -91,6 +93,8 @@ internal GetSynonymsSetsRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// Get all synonym sets. +/// +/// /// Get a summary of all defined synonym sets. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs index af77d2cd0b8..7688dc9f5e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class PutSynonymRequestParameters : Elastic.Transport.Requ /// /// /// Create or update a synonym set. +/// +/// /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// @@ -115,6 +117,8 @@ internal PutSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Create or update a synonym set. +/// +/// /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs index 356bbfdb0ae..e1fbcd05156 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class PutSynonymRuleRequestParameters : Elastic.Transport. /// /// /// Create or update a synonym rule. +/// +/// /// Create or update a synonym rule in a synonym set. /// /// @@ -124,6 +126,8 @@ internal PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Create or update a synonym rule. +/// +/// /// Create or update a synonym rule in a synonym set. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs index 64b68f34426..c59630058ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs @@ -44,6 +44,8 @@ public sealed partial class GetTasksRequestParameters : Elastic.Transport.Reques /// /// /// Get task information. +/// +/// /// Get information about a task currently running in the cluster. /// /// @@ -110,6 +112,8 @@ internal GetTasksRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// Get task information. +/// +/// /// Get information about a task currently running in the cluster. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs index c12d292bcd5..cf3b1c3780d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs @@ -85,6 +85,8 @@ public sealed partial class ListRequestParameters : Elastic.Transport.RequestPar /// /// /// Get all tasks. +/// +/// /// Get information about the tasks currently running on one or more nodes in the cluster. /// /// @@ -236,6 +238,8 @@ internal ListRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// /// Get all tasks. +/// +/// /// Get information about the tasks currently running on one or more nodes in the cluster. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs index 7c8899cc54c..311e7fafd6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs @@ -45,12 +45,12 @@ public sealed partial class TermsEnumRequest : Elastic.Clients.Elasticsearch.Req { [System.Obsolete("The request contains additional required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")] [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public TermsEnumRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + public TermsEnumRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public TermsEnumRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Field field) : base(r => r.Required("index", index)) + public TermsEnumRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field) : base(r => r.Required("index", indices)) { Field = field; } @@ -84,7 +84,7 @@ internal TermsEnumRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr #if NET7_0_OR_GREATER required #endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -170,10 +170,10 @@ public TermsEnumRequestDescriptor(Elastic.Clients.Elasticsearch.TermsEnumRequest Instance = instance; } - public TermsEnumRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) + public TermsEnumRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) { #pragma warning disable CS0618 - Instance = new Elastic.Clients.Elasticsearch.TermsEnumRequest(index); + Instance = new Elastic.Clients.Elasticsearch.TermsEnumRequest(indices); #pragma warning restore CS0618 } @@ -193,9 +193,9 @@ public TermsEnumRequestDescriptor() /// To search all data streams or indices, omit this parameter or use * or _all. /// /// - public Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + public Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices value) { - Instance.Index = value; + Instance.Indices = value; return this; } @@ -390,10 +390,10 @@ public TermsEnumRequestDescriptor(Elastic.Clients.Elasticsearch.TermsEnumRequest Instance = instance; } - public TermsEnumRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) + public TermsEnumRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) { #pragma warning disable CS0618 - Instance = new Elastic.Clients.Elasticsearch.TermsEnumRequest(index); + Instance = new Elastic.Clients.Elasticsearch.TermsEnumRequest(indices); #pragma warning restore CS0618 } @@ -414,9 +414,9 @@ public TermsEnumRequestDescriptor() /// To search all data streams or indices, omit this parameter or use * or _all. /// /// - public Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value) + public Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices value) { - Instance.Index = value; + Instance.Indices = value; return this; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs index 1b89f297d44..6f53691712d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs @@ -32,7 +32,7 @@ public sealed partial class FindFieldStructureRequestParameters : Elastic.Transp /// If the text does not have a header row, columns are named "column1", "column2", "column3", for example. /// /// - public string? ColumnNames { get => Q("column_names"); set => Q("column_names", value); } + public System.Collections.Generic.ICollection? ColumnNames { get => Q?>("column_names"); set => Q("column_names", value); } /// /// @@ -276,6 +276,8 @@ public sealed partial class FindFieldStructureRequestParameters : Elastic.Transp /// /// /// Find the structure of a text field. +/// +/// /// Find the structure of a text field in an Elasticsearch index. /// /// @@ -350,7 +352,7 @@ internal FindFieldStructureRequest(Elastic.Clients.Elasticsearch.Serialization.J /// If the text does not have a header row, columns are named "column1", "column2", "column3", for example. /// /// - public string? ColumnNames { get => Q("column_names"); set => Q("column_names", value); } + public System.Collections.Generic.ICollection? ColumnNames { get => Q?>("column_names"); set => Q("column_names", value); } /// /// @@ -594,6 +596,8 @@ internal FindFieldStructureRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// /// Find the structure of a text field. +/// +/// /// Find the structure of a text field in an Elasticsearch index. /// /// @@ -659,12 +663,25 @@ public FindFieldStructureRequestDescriptor() /// If the text does not have a header row, columns are named "column1", "column2", "column3", for example. /// /// - public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDescriptor ColumnNames(string? value) + public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDescriptor ColumnNames(System.Collections.Generic.ICollection? value) { Instance.ColumnNames = value; return this; } + /// + /// + /// If format is set to delimited, you can specify the column names in a comma-separated list. + /// If this parameter is not specified, the structure finder uses the column names from the header row of the text. + /// If the text does not have a header row, columns are named "column1", "column2", "column3", for example. + /// + /// + public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDescriptor ColumnNames(params string[] values) + { + Instance.ColumnNames = [.. values]; + return this; + } + /// /// /// If you have set format to delimited, you can specify the character used to delimit the values in each row. @@ -1048,6 +1065,8 @@ public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDesc /// /// /// Find the structure of a text field. +/// +/// /// Find the structure of a text field in an Elasticsearch index. /// /// @@ -1113,12 +1132,25 @@ public FindFieldStructureRequestDescriptor() /// If the text does not have a header row, columns are named "column1", "column2", "column3", for example. /// /// - public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDescriptor ColumnNames(string? value) + public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDescriptor ColumnNames(System.Collections.Generic.ICollection? value) { Instance.ColumnNames = value; return this; } + /// + /// + /// If format is set to delimited, you can specify the column names in a comma-separated list. + /// If this parameter is not specified, the structure finder uses the column names from the header row of the text. + /// If the text does not have a header row, columns are named "column1", "column2", "column3", for example. + /// + /// + public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDescriptor ColumnNames(params string[] values) + { + Instance.ColumnNames = [.. values]; + return this; + } + /// /// /// If you have set format to delimited, you can specify the character used to delimit the values in each row. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs index d2766137056..3019cb98729 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs @@ -32,7 +32,7 @@ public sealed partial class FindMessageStructureRequestParameters : Elastic.Tran /// If the text does not have a header role, columns are named "column1", "column2", "column3", for example. /// /// - public string? ColumnNames { get => Q("column_names"); set => Q("column_names", value); } + public System.Collections.Generic.ICollection? ColumnNames { get => Q?>("column_names"); set => Q("column_names", value); } /// /// @@ -253,6 +253,8 @@ public sealed partial class FindMessageStructureRequestParameters : Elastic.Tran /// /// /// Find the structure of text messages. +/// +/// /// Find the structure of a list of text messages. /// The messages must contain data that is suitable to be ingested into Elasticsearch. /// @@ -330,7 +332,7 @@ internal FindMessageStructureRequest(Elastic.Clients.Elasticsearch.Serialization /// If the text does not have a header role, columns are named "column1", "column2", "column3", for example. /// /// - public string? ColumnNames { get => Q("column_names"); set => Q("column_names", value); } + public System.Collections.Generic.ICollection? ColumnNames { get => Q?>("column_names"); set => Q("column_names", value); } /// /// @@ -562,6 +564,8 @@ internal FindMessageStructureRequest(Elastic.Clients.Elasticsearch.Serialization /// /// /// Find the structure of text messages. +/// +/// /// Find the structure of a list of text messages. /// The messages must contain data that is suitable to be ingested into Elasticsearch. /// @@ -624,12 +628,25 @@ public FindMessageStructureRequestDescriptor() /// If the text does not have a header role, columns are named "column1", "column2", "column3", for example. /// /// - public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDescriptor ColumnNames(string? value) + public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDescriptor ColumnNames(System.Collections.Generic.ICollection? value) { Instance.ColumnNames = value; return this; } + /// + /// + /// If the format is delimited, you can specify the column names in a comma-separated list. + /// If this parameter is not specified, the structure finder uses the column names from the header row of the text. + /// If the text does not have a header role, columns are named "column1", "column2", "column3", for example. + /// + /// + public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDescriptor ColumnNames(params string[] values) + { + Instance.ColumnNames = [.. values]; + return this; + } + /// /// /// If you the format is delimited, you can specify the character used to delimit the values in each row. @@ -984,6 +1001,8 @@ public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDe /// /// /// Find the structure of text messages. +/// +/// /// Find the structure of a list of text messages. /// The messages must contain data that is suitable to be ingested into Elasticsearch. /// @@ -1046,12 +1065,25 @@ public FindMessageStructureRequestDescriptor() /// If the text does not have a header role, columns are named "column1", "column2", "column3", for example. /// /// - public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDescriptor ColumnNames(string? value) + public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDescriptor ColumnNames(System.Collections.Generic.ICollection? value) { Instance.ColumnNames = value; return this; } + /// + /// + /// If the format is delimited, you can specify the column names in a comma-separated list. + /// If this parameter is not specified, the structure finder uses the column names from the header row of the text. + /// If the text does not have a header role, columns are named "column1", "column2", "column3", for example. + /// + /// + public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDescriptor ColumnNames(params string[] values) + { + Instance.ColumnNames = [.. values]; + return this; + } + /// /// /// If you the format is delimited, you can specify the character used to delimit the values in each row. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs index a661460bf01..5d404ee7c79 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs @@ -38,6 +38,8 @@ public sealed partial class TestGrokPatternRequestParameters : Elastic.Transport /// /// /// Test a Grok pattern. +/// +/// /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// @@ -111,6 +113,8 @@ internal TestGrokPatternRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// Test a Grok pattern. +/// +/// /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs index 3fbe68f6d43..f5a3dad4cea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs @@ -80,6 +80,8 @@ public sealed partial class GetTransformRequestParameters : Elastic.Transport.Re /// /// /// Get transforms. +/// +/// /// Get configuration information for transforms. /// /// @@ -178,6 +180,8 @@ internal GetTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Get transforms. +/// +/// /// Get configuration information for transforms. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs index fd8af11db34..cc884b93105 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class PreviewTransformRequestParameters : Elastic.Transpor /// /// /// Preview a transform. +/// +/// /// Generates a preview of the results that you will get when you create a transform with the same configuration. /// /// @@ -165,6 +167,8 @@ internal PreviewTransformRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// /// Preview a transform. +/// +/// /// Generates a preview of the results that you will get when you create a transform with the same configuration. /// /// @@ -560,6 +564,8 @@ public Elastic.Clients.Elasticsearch.TransformManagement.PreviewTransformRequest /// /// /// Preview a transform. +/// +/// /// Generates a preview of the results that you will get when you create a transform with the same configuration. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs index 9a620670199..9b4b5560ae0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs @@ -47,6 +47,8 @@ public sealed partial class PutTransformRequestParameters : Elastic.Transport.Re /// /// /// Create a transform. +/// +/// /// Creates a transform. /// /// @@ -224,6 +226,8 @@ internal PutTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// Create a transform. +/// +/// /// Creates a transform. /// /// @@ -682,6 +686,8 @@ public Elastic.Clients.Elasticsearch.TransformManagement.PutTransformRequestDesc /// /// /// Create a transform. +/// +/// /// Creates a transform. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeRequest.g.cs index c8a72e56d21..2fbfed3aa6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeRequest.g.cs @@ -45,6 +45,8 @@ public sealed partial class SetUpgradeModeRequestParameters : Elastic.Transport. /// /// /// Set upgrade_mode for transform indices. +/// +/// /// Sets a cluster wide upgrade_mode setting that prepares transform /// indices for an upgrade. /// When upgrading your cluster, in some circumstances you must restart your @@ -106,6 +108,8 @@ internal SetUpgradeModeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// Set upgrade_mode for transform indices. +/// +/// /// Sets a cluster wide upgrade_mode setting that prepares transform /// indices for an upgrade. /// When upgrading your cluster, in some circumstances you must restart your diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs index dddbbf707c5..57fd96633ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs @@ -77,6 +77,8 @@ public sealed partial class StopTransformRequestParameters : Elastic.Transport.R /// /// /// Stop transforms. +/// +/// /// Stops one or more transforms. /// /// @@ -170,6 +172,8 @@ internal StopTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Stop transforms. +/// +/// /// Stops one or more transforms. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs index 27010c9fee5..b6dd793882d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs @@ -46,6 +46,8 @@ public sealed partial class UpdateTransformRequestParameters : Elastic.Transport /// /// /// Update a transform. +/// +/// /// Updates certain properties of a transform. /// /// @@ -174,6 +176,8 @@ internal UpdateTransformRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// /// Update a transform. +/// +/// /// Updates certain properties of a transform. /// /// @@ -543,6 +547,8 @@ public Elastic.Clients.Elasticsearch.TransformManagement.UpdateTransformRequestD /// /// /// Update a transform. +/// +/// /// Updates certain properties of a transform. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 90fe7a349de..0c53e9358b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -263,6 +263,8 @@ public sealed partial class UpdateByQueryRequestParameters : Elastic.Transport.R /// /// /// Update documents. +/// +/// /// Updates documents that match the specified query. /// If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes. /// @@ -740,6 +742,8 @@ internal UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// Update documents. +/// +/// /// Updates documents that match the specified query. /// If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes. /// @@ -1513,6 +1517,8 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor RequestConfi /// /// /// Update documents. +/// +/// /// Updates documents that match the specified query. /// If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs index afa7fd23ac6..04280d00049 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -30,6 +30,7 @@ public sealed partial class XpackInfoRequestParameters : Elastic.Transport.Reque /// If this param is used it must be set to true /// /// + [System.Obsolete("Deprecated in '8.0.0'. Supported for backwards compatibility with 7.x")] public bool? AcceptEnterprise { get => Q("accept_enterprise"); set => Q("accept_enterprise", value); } /// @@ -44,6 +45,8 @@ public sealed partial class XpackInfoRequestParameters : Elastic.Transport.Reque /// /// /// Get information. +/// +/// /// The information provided by the API includes: /// /// @@ -96,6 +99,7 @@ internal XpackInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// If this param is used it must be set to true /// /// + [System.Obsolete("Deprecated in '8.0.0'. Supported for backwards compatibility with 7.x")] public bool? AcceptEnterprise { get => Q("accept_enterprise"); set => Q("accept_enterprise", value); } /// @@ -110,6 +114,8 @@ internal XpackInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// Get information. +/// +/// /// The information provided by the API includes: /// /// @@ -148,6 +154,7 @@ public XpackInfoRequestDescriptor() public static explicit operator Elastic.Clients.Elasticsearch.Xpack.XpackInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Xpack.XpackInfoRequest instance) => new Elastic.Clients.Elasticsearch.Xpack.XpackInfoRequestDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.Xpack.XpackInfoRequest(Elastic.Clients.Elasticsearch.Xpack.XpackInfoRequestDescriptor descriptor) => descriptor.Instance; + [System.Obsolete("Deprecated in '8.0.0'. Supported for backwards compatibility with 7.x")] /// /// /// If this param is used it must be set to true diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs index 7b99bbcfb73..46717fdbfaa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs @@ -38,6 +38,8 @@ public sealed partial class XpackUsageRequestParameters : Elastic.Transport.Requ /// /// /// Get usage information. +/// +/// /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// @@ -82,6 +84,8 @@ internal XpackUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Get usage information. +/// +/// /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// 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 5dabfb4e25f..301b11c6159 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -793,7 +793,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRes return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.IndexName? name) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.Indices? name) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor(name); var request = builder.Instance; @@ -801,7 +801,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRes return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.IndexName? name, System.Action action) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.Indices? name, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor(name); action.Invoke(builder); @@ -827,7 +827,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRes return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.IndexName? name, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.Indices? name, System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor(name); action.Invoke(builder); @@ -859,7 +859,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRes return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.IndexName? name, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.Indices? name, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor(name); var request = builder.Instance; @@ -867,7 +867,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRes return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.IndexName? name, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.Indices? name, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor(name); action.Invoke(builder); @@ -893,7 +893,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRes return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.IndexName? name, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.Indices? name, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor(name); action.Invoke(builder); @@ -1248,6 +1248,104 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexTemplate return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse DeleteSampleConfiguration(Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse DeleteSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(index); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse DeleteSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse DeleteSampleConfiguration() + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse DeleteSampleConfiguration(System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationResponse DeleteSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index, System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task DeleteSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task DeleteSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(index); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task DeleteSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task DeleteSampleConfigurationAsync(System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task DeleteSampleConfigurationAsync(System.Action> action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task DeleteSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.IndexManagement.DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.IndexManagement.DeleteTemplateRequest request) { request.BeforeRequest(); @@ -2560,6 +2658,52 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetAliasResponse Ge return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationResponse GetAllSampleConfiguration(Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationResponse GetAllSampleConfiguration() + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationResponse GetAllSampleConfiguration(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task GetAllSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetAllSampleConfigurationAsync(System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetAllSampleConfigurationAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.IndexManagement.GetDataLifecycleRequest request) { request.BeforeRequest(); @@ -3498,6 +3642,104 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetSampleResponse G return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse GetSampleConfiguration(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse GetSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(index); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse GetSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse GetSampleConfiguration() + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse GetSampleConfiguration(System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationResponse GetSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index, System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task GetSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(index); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetSampleConfigurationAsync(System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetSampleConfigurationAsync(System.Action> action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.IndexManagement.GetSampleStatsResponse GetSampleStats(Elastic.Clients.Elasticsearch.IndexManagement.GetSampleStatsRequest request) { request.BeforeRequest(); @@ -4788,6 +5030,104 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.PutMappingResponse return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse PutSampleConfiguration(Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse PutSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(index); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse PutSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse PutSampleConfiguration() + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse PutSampleConfiguration(System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationResponse PutSampleConfiguration(Elastic.Clients.Elasticsearch.IndexName index, System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task PutSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(index); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutSampleConfigurationAsync(System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutSampleConfigurationAsync(System.Action> action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutSampleConfigurationAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor(index); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequest request) { request.BeforeRequest(); @@ -5326,26 +5666,26 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockResponse return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockResponse RemoveBlock(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockResponse RemoveBlock(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block) { - var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(index, block); + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(indices, block); var request = builder.Instance; request.BeforeRequest(); return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockResponse RemoveBlock(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Action action) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockResponse RemoveBlock(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Action action) { - var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(index, block); + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(indices, block); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockResponse RemoveBlock(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockResponse RemoveBlock(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Action> action) { - var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(index, block); + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(indices, block); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); @@ -5358,26 +5698,26 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockResponse return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task RemoveBlockAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task RemoveBlockAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(index, block); + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(indices, block); var request = builder.Instance; request.BeforeRequest(); return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task RemoveBlockAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task RemoveBlockAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Action action, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(index, block); + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(indices, block); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task RemoveBlockAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task RemoveBlockAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions block, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(index, block); + var builder = new Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor(indices, block); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); @@ -6237,7 +6577,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(System.Collections.Generic.ICollection? metric) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(metric); var request = builder.Instance; @@ -6245,7 +6585,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(System.Collections.Generic.ICollection? metric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(metric); action.Invoke(builder); @@ -6271,7 +6611,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(indices, metric); var request = builder.Instance; @@ -6279,7 +6619,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(indices, metric); action.Invoke(builder); @@ -6305,7 +6645,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(System.Collections.Generic.ICollection? metric, System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(metric); action.Invoke(builder); @@ -6323,7 +6663,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric, System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(indices, metric); action.Invoke(builder); @@ -6355,7 +6695,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(metric); var request = builder.Instance; @@ -6363,7 +6703,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(metric); action.Invoke(builder); @@ -6389,7 +6729,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(indices, metric); var request = builder.Instance; @@ -6397,7 +6737,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(indices, metric); action.Invoke(builder); @@ -6423,7 +6763,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(metric); action.Invoke(builder); @@ -6441,7 +6781,7 @@ public virtual Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRespons return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, System.Collections.Generic.ICollection? metric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor(indices, metric); action.Invoke(builder); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs index 2856496bf39..8cc26acfaaa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -1408,6 +1408,52 @@ public virtual Elastic.Clients.Elasticsearch.Inference.PutOpenaiResponse PutOpen return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiResponse PutOpenshiftAi(Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiResponse PutOpenshiftAi(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType taskType, Elastic.Clients.Elasticsearch.Id openshiftaiInferenceId) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor(taskType, openshiftaiInferenceId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiResponse PutOpenshiftAi(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType taskType, Elastic.Clients.Elasticsearch.Id openshiftaiInferenceId, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor(taskType, openshiftaiInferenceId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task PutOpenshiftAiAsync(Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutOpenshiftAiAsync(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType taskType, Elastic.Clients.Elasticsearch.Id openshiftaiInferenceId, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor(taskType, openshiftaiInferenceId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutOpenshiftAiAsync(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType taskType, Elastic.Clients.Elasticsearch.Id openshiftaiInferenceId, System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor(taskType, openshiftaiInferenceId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.Inference.PutVoyageaiResponse PutVoyageai(Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequest 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 49a3b76ea97..7fbe28eedb7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -1354,7 +1354,7 @@ public virtual Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRespon return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId) + public virtual Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch.Id jobId, long? categoryId) { var builder = new Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequestDescriptor(jobId, categoryId); var request = builder.Instance; @@ -1362,7 +1362,7 @@ public virtual Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRespon return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId, System.Action action) + public virtual Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch.Id jobId, long? categoryId, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequestDescriptor(jobId, categoryId); action.Invoke(builder); @@ -1394,7 +1394,7 @@ public virtual Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRespon return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Id jobId, long? categoryId, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequestDescriptor(jobId, categoryId); var request = builder.Instance; @@ -1402,7 +1402,7 @@ public virtual Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRespon return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Id jobId, long? categoryId, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequestDescriptor(jobId, categoryId); action.Invoke(builder); @@ -3170,18 +3170,26 @@ public virtual Elastic.Clients.Elasticsearch.MachineLearning.PutJobResponse PutJ return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.MachineLearning.PutJobResponse PutJob(System.Action action) + public virtual Elastic.Clients.Elasticsearch.MachineLearning.PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id jobId) { - var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(); + var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(jobId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.MachineLearning.PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id jobId, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(jobId); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.MachineLearning.PutJobResponse PutJob(System.Action> action) + public virtual Elastic.Clients.Elasticsearch.MachineLearning.PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id jobId, System.Action> action) { - var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(); + var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(jobId); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); @@ -3194,18 +3202,26 @@ public virtual Elastic.Clients.Elasticsearch.MachineLearning.PutJobResponse PutJ return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task PutJobAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task PutJobAsync(Elastic.Clients.Elasticsearch.Id jobId, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(jobId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutJobAsync(Elastic.Clients.Elasticsearch.Id jobId, System.Action action, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(); + var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(jobId); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task PutJobAsync(System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task PutJobAsync(Elastic.Clients.Elasticsearch.Id jobId, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(); + var builder = new Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor(jobId); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs index f0071f3430c..7a037bb1e9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -250,7 +250,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elasti return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elastic.Clients.Elasticsearch.Metrics? metric) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(System.Collections.Generic.ICollection? metric) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor(metric); var request = builder.Instance; @@ -258,7 +258,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elasti return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(System.Collections.Generic.ICollection? metric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor(metric); action.Invoke(builder); @@ -267,7 +267,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elasti return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor(nodeId, metric); var request = builder.Instance; @@ -275,7 +275,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elasti return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor(nodeId, metric); action.Invoke(builder); @@ -324,7 +324,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elasti return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task InfoAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task InfoAsync(System.Collections.Generic.ICollection? metric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor(metric); var request = builder.Instance; @@ -332,7 +332,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elasti return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task InfoAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task InfoAsync(System.Collections.Generic.ICollection? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor(metric); action.Invoke(builder); @@ -341,7 +341,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elasti return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor(nodeId, metric); var request = builder.Instance; @@ -349,7 +349,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesInfoResponse Info(Elasti return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor(nodeId, metric); action.Invoke(builder); @@ -478,7 +478,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(System.Collections.Generic.ICollection? metric) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric); var request = builder.Instance; @@ -486,7 +486,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(System.Collections.Generic.ICollection? metric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric); action.Invoke(builder); @@ -495,7 +495,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric); var request = builder.Instance; @@ -503,7 +503,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric); action.Invoke(builder); @@ -512,7 +512,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric, indexMetric); var request = builder.Instance; @@ -520,7 +520,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric, indexMetric); action.Invoke(builder); @@ -529,7 +529,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric, indexMetric); var request = builder.Instance; @@ -537,7 +537,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric, indexMetric); action.Invoke(builder); @@ -572,7 +572,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(System.Collections.Generic.ICollection? metric, System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric); action.Invoke(builder); @@ -581,7 +581,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric); action.Invoke(builder); @@ -590,7 +590,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric, indexMetric); action.Invoke(builder); @@ -599,7 +599,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric, indexMetric); action.Invoke(builder); @@ -648,7 +648,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric); var request = builder.Instance; @@ -656,7 +656,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric); action.Invoke(builder); @@ -665,7 +665,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric); var request = builder.Instance; @@ -673,7 +673,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric); action.Invoke(builder); @@ -682,7 +682,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric, indexMetric); var request = builder.Instance; @@ -690,7 +690,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric, indexMetric); action.Invoke(builder); @@ -699,7 +699,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric, indexMetric); var request = builder.Instance; @@ -707,7 +707,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric, indexMetric); action.Invoke(builder); @@ -742,7 +742,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric); action.Invoke(builder); @@ -751,7 +751,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric); action.Invoke(builder); @@ -760,7 +760,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(metric, indexMetric); action.Invoke(builder); @@ -769,7 +769,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesStatsResponse Stats(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Collections.Generic.ICollection? indexMetric, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor(nodeId, metric, indexMetric); action.Invoke(builder); @@ -818,7 +818,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.Metrics? metric) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(System.Collections.Generic.ICollection? metric) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor(metric); var request = builder.Instance; @@ -826,7 +826,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(System.Collections.Generic.ICollection? metric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor(metric); action.Invoke(builder); @@ -835,7 +835,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor(nodeId, metric); var request = builder.Instance; @@ -843,7 +843,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elas return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor(nodeId, metric); action.Invoke(builder); @@ -892,7 +892,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elas return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task UsageAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task UsageAsync(System.Collections.Generic.ICollection? metric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor(metric); var request = builder.Instance; @@ -900,7 +900,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elas return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task UsageAsync(Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task UsageAsync(System.Collections.Generic.ICollection? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor(metric); action.Invoke(builder); @@ -909,7 +909,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elas return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor(nodeId, metric); var request = builder.Instance; @@ -917,7 +917,7 @@ public virtual Elastic.Clients.Elasticsearch.Nodes.NodesUsageResponse Usage(Elas return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, System.Collections.Generic.ICollection? metric, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor(nodeId, metric); action.Invoke(builder); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs index 18b45fa2f1d..0dbb692e7a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs @@ -372,7 +372,7 @@ public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRespo return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application) + public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Names application) { var builder = new Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequestDescriptor(application); var request = builder.Instance; @@ -380,7 +380,7 @@ public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRespo return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Names application, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequestDescriptor(application); action.Invoke(builder); @@ -395,7 +395,7 @@ public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRespo return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Names application, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequestDescriptor(application); var request = builder.Instance; @@ -403,7 +403,7 @@ public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRespo return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Names application, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequestDescriptor(application); action.Invoke(builder); @@ -2650,17 +2650,17 @@ public virtual Elastic.Clients.Elasticsearch.Security.PutUserResponse PutUser(El return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Security.PutUserResponse PutUser() + public virtual Elastic.Clients.Elasticsearch.Security.PutUserResponse PutUser(Elastic.Clients.Elasticsearch.Username username) { - var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(); + var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(username); var request = builder.Instance; request.BeforeRequest(); return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Security.PutUserResponse PutUser(System.Action action) + public virtual Elastic.Clients.Elasticsearch.Security.PutUserResponse PutUser(Elastic.Clients.Elasticsearch.Username username, System.Action action) { - var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(); + var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(username); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); @@ -2673,17 +2673,17 @@ public virtual Elastic.Clients.Elasticsearch.Security.PutUserResponse PutUser(Sy return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task PutUserAsync(System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task PutUserAsync(Elastic.Clients.Elasticsearch.Username username, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(); + var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(username); var request = builder.Instance; request.BeforeRequest(); return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task PutUserAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task PutUserAsync(Elastic.Clients.Elasticsearch.Username username, System.Action action, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(); + var builder = new Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor(username); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs index a06ae7228a5..b69d45e914b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs @@ -228,7 +228,7 @@ public virtual Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotResponse Del return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) + public virtual Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) { var builder = new Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor(repository, snapshot); var request = builder.Instance; @@ -236,7 +236,7 @@ public virtual Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotResponse Del return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, System.Action action) + public virtual Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor(repository, snapshot); action.Invoke(builder); @@ -251,7 +251,7 @@ public virtual Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotResponse Del return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor(repository, snapshot); var request = builder.Instance; @@ -259,7 +259,7 @@ public virtual Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotResponse Del return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor(repository, snapshot); action.Invoke(builder); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index 89cb5e09f45..e6ae08de7af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -4248,17 +4248,17 @@ public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(Elastic return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index) + public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.Indices indices) { - var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(index); + var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(indices); var request = builder.Instance; request.BeforeRequest(); return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, System.Action action) + public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.Indices indices, System.Action action) { - var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(index); + var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(indices); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); @@ -4282,9 +4282,9 @@ public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(request); } - public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, System.Action> action) + public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.Indices indices, System.Action> action) { - var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(index); + var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(indices); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); @@ -4297,17 +4297,17 @@ public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(request, cancellationToken); } - public virtual System.Threading.Tasks.Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task TermsEnumAsync(Elastic.Clients.Elasticsearch.Indices indices, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(index); + var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(indices); var request = builder.Instance; request.BeforeRequest(); return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task TermsEnumAsync(Elastic.Clients.Elasticsearch.Indices indices, System.Action action, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(index); + var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(indices); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); @@ -4331,9 +4331,9 @@ public virtual Elastic.Clients.Elasticsearch.TermsEnumResponse TermsEnum(request, cancellationToken); } - public virtual System.Threading.Tasks.Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task TermsEnumAsync(Elastic.Clients.Elasticsearch.Indices indices, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { - var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(index); + var builder = new Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor(indices); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.Converters.g.cs index 474c7169c48..722f10d7c5e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.Converters.g.cs @@ -36,7 +36,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregatio reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propBounds = default; LocalJsonValue propField = default; - LocalJsonValue propPrecision = default; + LocalJsonValue propPrecision = default; LocalJsonValue propShardSize = default; LocalJsonValue propSize = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -51,7 +51,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregatio continue; } - if (propPrecision.TryReadProperty(ref reader, options, PropPrecision, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + if (propPrecision.TryReadProperty(ref reader, options, PropPrecision, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; } @@ -91,7 +91,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropBounds, value.Bounds, null, null); writer.WriteProperty(options, PropField, value.Field, null, null); - writer.WriteProperty(options, PropPrecision, value.Precision, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropPrecision, value.Precision, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropShardSize, value.ShardSize, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropSize, value.Size, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs index ddd884eeb53..2a2793e723b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs @@ -63,7 +63,7 @@ internal GeotileGridAggregation(Elastic.Clients.Elasticsearch.Serialization.Json /// Values outside of the range [0,29] will be rejected. /// /// - public long? Precision { get; set; } + public int? Precision { get; set; } /// /// @@ -152,7 +152,7 @@ public Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregationDescript /// Values outside of the range [0,29] will be rejected. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregationDescriptor Precision(long? value) + public Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregationDescriptor Precision(int? value) { Instance.Precision = value; return this; @@ -266,7 +266,7 @@ public Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregationDescript /// Values outside of the range [0,29] will be rejected. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregationDescriptor Precision(long? value) + public Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregationDescriptor Precision(int? value) { Instance.Precision = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.Converters.g.cs new file mode 100644 index 00000000000..d7820f43838 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.Converters.g.cs @@ -0,0 +1,361 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class CommonStatsFlagConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberAll = System.Text.Json.JsonEncodedText.Encode("_all"); + private static readonly System.Text.Json.JsonEncodedText MemberBulk = System.Text.Json.JsonEncodedText.Encode("bulk"); + private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"); + private static readonly System.Text.Json.JsonEncodedText MemberDenseVector = System.Text.Json.JsonEncodedText.Encode("dense_vector"); + private static readonly System.Text.Json.JsonEncodedText MemberDocs = System.Text.Json.JsonEncodedText.Encode("docs"); + private static readonly System.Text.Json.JsonEncodedText MemberFielddata = System.Text.Json.JsonEncodedText.Encode("fielddata"); + private static readonly System.Text.Json.JsonEncodedText MemberFlush = System.Text.Json.JsonEncodedText.Encode("flush"); + private static readonly System.Text.Json.JsonEncodedText MemberGet = System.Text.Json.JsonEncodedText.Encode("get"); + private static readonly System.Text.Json.JsonEncodedText MemberIndexing = System.Text.Json.JsonEncodedText.Encode("indexing"); + private static readonly System.Text.Json.JsonEncodedText MemberMappings = System.Text.Json.JsonEncodedText.Encode("mappings"); + private static readonly System.Text.Json.JsonEncodedText MemberMerge = System.Text.Json.JsonEncodedText.Encode("merge"); + private static readonly System.Text.Json.JsonEncodedText MemberQueryCache = System.Text.Json.JsonEncodedText.Encode("query_cache"); + private static readonly System.Text.Json.JsonEncodedText MemberRecovery = System.Text.Json.JsonEncodedText.Encode("recovery"); + private static readonly System.Text.Json.JsonEncodedText MemberRefresh = System.Text.Json.JsonEncodedText.Encode("refresh"); + private static readonly System.Text.Json.JsonEncodedText MemberRequestCache = System.Text.Json.JsonEncodedText.Encode("request_cache"); + private static readonly System.Text.Json.JsonEncodedText MemberSearch = System.Text.Json.JsonEncodedText.Encode("search"); + private static readonly System.Text.Json.JsonEncodedText MemberSegments = System.Text.Json.JsonEncodedText.Encode("segments"); + private static readonly System.Text.Json.JsonEncodedText MemberShardStats = System.Text.Json.JsonEncodedText.Encode("shard_stats"); + private static readonly System.Text.Json.JsonEncodedText MemberSparseVector = System.Text.Json.JsonEncodedText.Encode("sparse_vector"); + private static readonly System.Text.Json.JsonEncodedText MemberStore = System.Text.Json.JsonEncodedText.Encode("store"); + private static readonly System.Text.Json.JsonEncodedText MemberTranslog = System.Text.Json.JsonEncodedText.Encode("translog"); + private static readonly System.Text.Json.JsonEncodedText MemberWarmer = System.Text.Json.JsonEncodedText.Encode("warmer"); + + public override Elastic.Clients.Elasticsearch.CommonStatsFlag Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberAll)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.All; + } + + if (reader.ValueTextEquals(MemberBulk)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Bulk; + } + + if (reader.ValueTextEquals(MemberCompletion)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Completion; + } + + if (reader.ValueTextEquals(MemberDenseVector)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.DenseVector; + } + + if (reader.ValueTextEquals(MemberDocs)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Docs; + } + + if (reader.ValueTextEquals(MemberFielddata)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Fielddata; + } + + if (reader.ValueTextEquals(MemberFlush)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Flush; + } + + if (reader.ValueTextEquals(MemberGet)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Get; + } + + if (reader.ValueTextEquals(MemberIndexing)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Indexing; + } + + if (reader.ValueTextEquals(MemberMappings)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Mappings; + } + + if (reader.ValueTextEquals(MemberMerge)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Merge; + } + + if (reader.ValueTextEquals(MemberQueryCache)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.QueryCache; + } + + if (reader.ValueTextEquals(MemberRecovery)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Recovery; + } + + if (reader.ValueTextEquals(MemberRefresh)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Refresh; + } + + if (reader.ValueTextEquals(MemberRequestCache)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.RequestCache; + } + + if (reader.ValueTextEquals(MemberSearch)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Search; + } + + if (reader.ValueTextEquals(MemberSegments)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Segments; + } + + if (reader.ValueTextEquals(MemberShardStats)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.ShardStats; + } + + if (reader.ValueTextEquals(MemberSparseVector)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.SparseVector; + } + + if (reader.ValueTextEquals(MemberStore)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Store; + } + + if (reader.ValueTextEquals(MemberTranslog)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Translog; + } + + if (reader.ValueTextEquals(MemberWarmer)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Warmer; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberAll.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.All; + } + + if (string.Equals(value, MemberBulk.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Bulk; + } + + if (string.Equals(value, MemberCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Completion; + } + + if (string.Equals(value, MemberDenseVector.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.DenseVector; + } + + if (string.Equals(value, MemberDocs.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Docs; + } + + if (string.Equals(value, MemberFielddata.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Fielddata; + } + + if (string.Equals(value, MemberFlush.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Flush; + } + + if (string.Equals(value, MemberGet.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Get; + } + + if (string.Equals(value, MemberIndexing.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Indexing; + } + + if (string.Equals(value, MemberMappings.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Mappings; + } + + if (string.Equals(value, MemberMerge.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Merge; + } + + if (string.Equals(value, MemberQueryCache.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.QueryCache; + } + + if (string.Equals(value, MemberRecovery.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Recovery; + } + + if (string.Equals(value, MemberRefresh.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Refresh; + } + + if (string.Equals(value, MemberRequestCache.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.RequestCache; + } + + if (string.Equals(value, MemberSearch.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Search; + } + + if (string.Equals(value, MemberSegments.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Segments; + } + + if (string.Equals(value, MemberShardStats.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.ShardStats; + } + + if (string.Equals(value, MemberSparseVector.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.SparseVector; + } + + if (string.Equals(value, MemberStore.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Store; + } + + if (string.Equals(value, MemberTranslog.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Translog; + } + + if (string.Equals(value, MemberWarmer.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.CommonStatsFlag.Warmer; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.CommonStatsFlag)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.CommonStatsFlag value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.CommonStatsFlag.All: + writer.WriteStringValue(MemberAll); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Bulk: + writer.WriteStringValue(MemberBulk); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Completion: + writer.WriteStringValue(MemberCompletion); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.DenseVector: + writer.WriteStringValue(MemberDenseVector); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Docs: + writer.WriteStringValue(MemberDocs); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Fielddata: + writer.WriteStringValue(MemberFielddata); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Flush: + writer.WriteStringValue(MemberFlush); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Get: + writer.WriteStringValue(MemberGet); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Indexing: + writer.WriteStringValue(MemberIndexing); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Mappings: + writer.WriteStringValue(MemberMappings); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Merge: + writer.WriteStringValue(MemberMerge); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.QueryCache: + writer.WriteStringValue(MemberQueryCache); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Recovery: + writer.WriteStringValue(MemberRecovery); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Refresh: + writer.WriteStringValue(MemberRefresh); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.RequestCache: + writer.WriteStringValue(MemberRequestCache); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Search: + writer.WriteStringValue(MemberSearch); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Segments: + writer.WriteStringValue(MemberSegments); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.ShardStats: + writer.WriteStringValue(MemberShardStats); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.SparseVector: + writer.WriteStringValue(MemberSparseVector); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Store: + writer.WriteStringValue(MemberStore); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Translog: + writer.WriteStringValue(MemberTranslog); + break; + case Elastic.Clients.Elasticsearch.CommonStatsFlag.Warmer: + writer.WriteStringValue(MemberWarmer); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.CommonStatsFlag)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.CommonStatsFlag ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.CommonStatsFlag value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.g.cs new file mode 100644 index 00000000000..c5490176150 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.g.cs @@ -0,0 +1,73 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.CommonStatsFlagConverter))] +public enum CommonStatsFlag +{ + [System.Runtime.Serialization.EnumMember(Value = "_all")] + All, + [System.Runtime.Serialization.EnumMember(Value = "bulk")] + Bulk, + [System.Runtime.Serialization.EnumMember(Value = "completion")] + Completion, + [System.Runtime.Serialization.EnumMember(Value = "dense_vector")] + DenseVector, + [System.Runtime.Serialization.EnumMember(Value = "docs")] + Docs, + [System.Runtime.Serialization.EnumMember(Value = "fielddata")] + Fielddata, + [System.Runtime.Serialization.EnumMember(Value = "flush")] + Flush, + [System.Runtime.Serialization.EnumMember(Value = "get")] + Get, + [System.Runtime.Serialization.EnumMember(Value = "indexing")] + Indexing, + [System.Runtime.Serialization.EnumMember(Value = "mappings")] + Mappings, + [System.Runtime.Serialization.EnumMember(Value = "merge")] + Merge, + [System.Runtime.Serialization.EnumMember(Value = "query_cache")] + QueryCache, + [System.Runtime.Serialization.EnumMember(Value = "recovery")] + Recovery, + [System.Runtime.Serialization.EnumMember(Value = "refresh")] + Refresh, + [System.Runtime.Serialization.EnumMember(Value = "request_cache")] + RequestCache, + [System.Runtime.Serialization.EnumMember(Value = "search")] + Search, + [System.Runtime.Serialization.EnumMember(Value = "segments")] + Segments, + [System.Runtime.Serialization.EnumMember(Value = "shard_stats")] + ShardStats, + [System.Runtime.Serialization.EnumMember(Value = "sparse_vector")] + SparseVector, + [System.Runtime.Serialization.EnumMember(Value = "store")] + Store, + [System.Runtime.Serialization.EnumMember(Value = "translog")] + Translog, + [System.Runtime.Serialization.EnumMember(Value = "warmer")] + Warmer +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggestOption.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggestOption.Converters.g.cs index d7bd318c4f6..1458af3b35a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggestOption.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggestOption.Converters.g.cs @@ -44,7 +44,7 @@ public override Elastic.Clients.Elasticsearch.Core.Search.CompletionSuggestOptio LocalJsonValue?> propFields = default; LocalJsonValue propId = default; LocalJsonValue propIndex = default; - LocalJsonValue propRouting = default; + LocalJsonValue?> propRouting = default; LocalJsonValue propScore = default; LocalJsonValue propScore0 = default; LocalJsonValue propSource = default; @@ -76,7 +76,7 @@ public override Elastic.Clients.Elasticsearch.Core.Search.CompletionSuggestOptio continue; } - if (propRouting.TryReadProperty(ref reader, options, PropRouting, null)) + if (propRouting.TryReadProperty(ref reader, options, PropRouting, static System.Collections.Generic.ICollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null))) { continue; } @@ -134,7 +134,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropFields, value.Fields, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary? v) => w.WriteDictionaryValue(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))); writer.WriteProperty(options, PropId, value.Id, null, null); writer.WriteProperty(options, PropIndex, value.Index, null, null); - writer.WriteProperty(options, PropRouting, value.Routing, null, null); + writer.WriteProperty(options, PropRouting, value.Routing, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteSingleOrManyCollectionValue(o, v, null)); writer.WriteProperty(options, PropScore, value.Score, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, double? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropScore0, value.Score0, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, double? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropSource, value.Source, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, TDocument? v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggestOption.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggestOption.g.cs index 37b81c42bef..2405178ce73 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggestOption.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggestOption.g.cs @@ -53,7 +53,7 @@ internal CompletionSuggestOption(Elastic.Clients.Elasticsearch.Serialization.Jso public System.Collections.Generic.IReadOnlyDictionary? Fields { get; set; } public string? Id { get; set; } public string? Index { get; set; } - public string? Routing { get; set; } + public System.Collections.Generic.ICollection? Routing { get; set; } public double? Score { get; set; } public double? Score0 { get; set; } public TDocument? Source { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeohashPrecision.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeohashPrecision.Converters.g.cs index 78feb6304ea..2482a1aa6ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeohashPrecision.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeohashPrecision.Converters.g.cs @@ -30,7 +30,7 @@ public override Elastic.Clients.Elasticsearch.GeohashPrecision Read(ref System.T var selector = static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.ByTokenType(ref r, o, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.Number, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.String); return selector(ref reader, options) switch { - Elastic.Clients.Elasticsearch.UnionTag.T1 => new Elastic.Clients.Elasticsearch.GeohashPrecision(reader.ReadValue(options, null)), + Elastic.Clients.Elasticsearch.UnionTag.T1 => new Elastic.Clients.Elasticsearch.GeohashPrecision(reader.ReadValue(options, null)), Elastic.Clients.Elasticsearch.UnionTag.T2 => new Elastic.Clients.Elasticsearch.GeohashPrecision(reader.ReadValue(options, null)), _ => throw new System.InvalidOperationException($"Failed to select a union variant for type '{nameof(Elastic.Clients.Elasticsearch.GeohashPrecision)}") }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeohashPrecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeohashPrecision.g.cs index ee54b9edfb8..ef158927e36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeohashPrecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeohashPrecision.g.cs @@ -29,9 +29,9 @@ namespace Elastic.Clients.Elasticsearch; /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.GeohashPrecisionConverter))] -public sealed partial class GeohashPrecision : Elastic.Clients.Elasticsearch.Union +public sealed partial class GeohashPrecision : Elastic.Clients.Elasticsearch.Union { - public GeohashPrecision(long value) : base(value) + public GeohashPrecision(int value) : base(value) { } @@ -39,13 +39,13 @@ public GeohashPrecision(string value) : base(value) { } - public static implicit operator Elastic.Clients.Elasticsearch.GeohashPrecision(long value) => new Elastic.Clients.Elasticsearch.GeohashPrecision(value); + public static implicit operator Elastic.Clients.Elasticsearch.GeohashPrecision(int value) => new Elastic.Clients.Elasticsearch.GeohashPrecision(value); public static implicit operator Elastic.Clients.Elasticsearch.GeohashPrecision(string value) => new Elastic.Clients.Elasticsearch.GeohashPrecision(value); } public readonly partial struct GeohashPrecisionFactory { - public Elastic.Clients.Elasticsearch.GeohashPrecision GeohashLength(long value) + public Elastic.Clients.Elasticsearch.GeohashPrecision GeohashLength(int value) { return new Elastic.Clients.Elasticsearch.GeohashPrecision(value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.Converters.g.cs new file mode 100644 index 00000000000..b339ab1f540 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.Converters.g.cs @@ -0,0 +1,72 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class IndexSamplingConfigurationConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropConfiguration = System.Text.Json.JsonEncodedText.Encode("configuration"); + private static readonly System.Text.Json.JsonEncodedText PropIndex = System.Text.Json.JsonEncodedText.Encode("index"); + + public override Elastic.Clients.Elasticsearch.IndexManagement.IndexSamplingConfiguration Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propConfiguration = default; + LocalJsonValue propIndex = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propConfiguration.TryReadProperty(ref reader, options, PropConfiguration, null)) + { + continue; + } + + if (propIndex.TryReadProperty(ref reader, options, PropIndex, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.IndexSamplingConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Configuration = propConfiguration.Value, + Index = propIndex.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.IndexSamplingConfiguration value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropConfiguration, value.Configuration, null, null); + writer.WriteProperty(options, PropIndex, value.Index, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.g.cs new file mode 100644 index 00000000000..6b906b2e240 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.g.cs @@ -0,0 +1,62 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexSamplingConfigurationConverter))] +public sealed partial class IndexSamplingConfiguration +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public IndexSamplingConfiguration(Elastic.Clients.Elasticsearch.IndexManagement.SamplingConfiguration configuration, string index) + { + Configuration = configuration; + Index = index; + } +#if NET7_0_OR_GREATER + public IndexSamplingConfiguration() + { + } +#endif +#if !NET7_0_OR_GREATER + [System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")] + public IndexSamplingConfiguration() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal IndexSamplingConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + public +#if NET7_0_OR_GREATER + required +#endif + Elastic.Clients.Elasticsearch.IndexManagement.SamplingConfiguration Configuration { get; set; } + public +#if NET7_0_OR_GREATER + required +#endif + string Index { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.Converters.g.cs new file mode 100644 index 00000000000..fc5eee6486f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.Converters.g.cs @@ -0,0 +1,135 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class SamplingConfigurationConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropCreationTime = System.Text.Json.JsonEncodedText.Encode("creation_time"); + private static readonly System.Text.Json.JsonEncodedText PropCreationTimeInMillis = System.Text.Json.JsonEncodedText.Encode("creation_time_in_millis"); + private static readonly System.Text.Json.JsonEncodedText PropIf = System.Text.Json.JsonEncodedText.Encode("if"); + private static readonly System.Text.Json.JsonEncodedText PropMaxSamples = System.Text.Json.JsonEncodedText.Encode("max_samples"); + private static readonly System.Text.Json.JsonEncodedText PropMaxSize = System.Text.Json.JsonEncodedText.Encode("max_size"); + private static readonly System.Text.Json.JsonEncodedText PropMaxSizeInBytes = System.Text.Json.JsonEncodedText.Encode("max_size_in_bytes"); + private static readonly System.Text.Json.JsonEncodedText PropRate = System.Text.Json.JsonEncodedText.Encode("rate"); + private static readonly System.Text.Json.JsonEncodedText PropTimeToLive = System.Text.Json.JsonEncodedText.Encode("time_to_live"); + private static readonly System.Text.Json.JsonEncodedText PropTimeToLiveInMillis = System.Text.Json.JsonEncodedText.Encode("time_to_live_in_millis"); + + public override Elastic.Clients.Elasticsearch.IndexManagement.SamplingConfiguration Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propCreationTime = default; + LocalJsonValue propCreationTimeInMillis = default; + LocalJsonValue propIf = default; + LocalJsonValue propMaxSamples = default; + LocalJsonValue propMaxSize = default; + LocalJsonValue propMaxSizeInBytes = default; + LocalJsonValue propRate = default; + LocalJsonValue propTimeToLive = default; + LocalJsonValue propTimeToLiveInMillis = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propCreationTime.TryReadProperty(ref reader, options, PropCreationTime, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) + { + continue; + } + + if (propCreationTimeInMillis.TryReadProperty(ref reader, options, PropCreationTimeInMillis, null)) + { + continue; + } + + if (propIf.TryReadProperty(ref reader, options, PropIf, null)) + { + continue; + } + + if (propMaxSamples.TryReadProperty(ref reader, options, PropMaxSamples, null)) + { + continue; + } + + if (propMaxSize.TryReadProperty(ref reader, options, PropMaxSize, null)) + { + continue; + } + + if (propMaxSizeInBytes.TryReadProperty(ref reader, options, PropMaxSizeInBytes, null)) + { + continue; + } + + if (propRate.TryReadProperty(ref reader, options, PropRate, null)) + { + continue; + } + + if (propTimeToLive.TryReadProperty(ref reader, options, PropTimeToLive, null)) + { + continue; + } + + if (propTimeToLiveInMillis.TryReadProperty(ref reader, options, PropTimeToLiveInMillis, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.IndexManagement.SamplingConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + CreationTime = propCreationTime.Value, + CreationTimeInMillis = propCreationTimeInMillis.Value, + If = propIf.Value, + MaxSamples = propMaxSamples.Value, + MaxSize = propMaxSize.Value, + MaxSizeInBytes = propMaxSizeInBytes.Value, + Rate = propRate.Value, + TimeToLive = propTimeToLive.Value, + TimeToLiveInMillis = propTimeToLiveInMillis.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.SamplingConfiguration value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropCreationTime, value.CreationTime, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); + writer.WriteProperty(options, PropCreationTimeInMillis, value.CreationTimeInMillis, null, null); + writer.WriteProperty(options, PropIf, value.If, null, null); + writer.WriteProperty(options, PropMaxSamples, value.MaxSamples, null, null); + writer.WriteProperty(options, PropMaxSize, value.MaxSize, null, null); + writer.WriteProperty(options, PropMaxSizeInBytes, value.MaxSizeInBytes, null, null); + writer.WriteProperty(options, PropRate, value.Rate, null, null); + writer.WriteProperty(options, PropTimeToLive, value.TimeToLive, null, null); + writer.WriteProperty(options, PropTimeToLiveInMillis, value.TimeToLiveInMillis, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.g.cs new file mode 100644 index 00000000000..de50535950d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.g.cs @@ -0,0 +1,142 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +/// +/// +/// Sampling configuration as returned by the API. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SamplingConfigurationConverter))] +public sealed partial class SamplingConfiguration +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SamplingConfiguration(long creationTimeInMillis, int maxSamples, long maxSizeInBytes, double rate, long timeToLiveInMillis) + { + CreationTimeInMillis = creationTimeInMillis; + MaxSamples = maxSamples; + MaxSizeInBytes = maxSizeInBytes; + Rate = rate; + TimeToLiveInMillis = timeToLiveInMillis; + } +#if NET7_0_OR_GREATER + public SamplingConfiguration() + { + } +#endif +#if !NET7_0_OR_GREATER + [System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")] + public SamplingConfiguration() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal SamplingConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// The time when the sampling configuration was created. + /// + /// + public System.DateTimeOffset? CreationTime { get; set; } + + /// + /// + /// The time when the sampling configuration was created, in milliseconds since epoch. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + long CreationTimeInMillis { get; set; } + + /// + /// + /// An optional condition script that sampled documents must satisfy. + /// + /// + public string? If { get; set; } + + /// + /// + /// The maximum number of documents to sample. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + int MaxSamples { get; set; } + + /// + /// + /// The maximum total size of sampled documents. + /// + /// + public Elastic.Clients.Elasticsearch.ByteSize? MaxSize { get; set; } + + /// + /// + /// The maximum total size of sampled documents in bytes. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + long MaxSizeInBytes { get; set; } + + /// + /// + /// The fraction of documents to sample between 0 and 1. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + double Rate { get; set; } + + /// + /// + /// The duration for which the sampled documents should be retained. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? TimeToLive { get; set; } + + /// + /// + /// The duration for which the sampled documents should be retained, in milliseconds. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + long TimeToLiveInMillis { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskType.Converters.g.cs index 32296faf85e..e356e6086d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskType.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskType.Converters.g.cs @@ -27,7 +27,7 @@ public sealed partial class AlibabaCloudTaskTypeConverter : System.Text.Json.Ser { private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"); private static readonly System.Text.Json.JsonEncodedText MemberRerank = System.Text.Json.JsonEncodedText.Encode("rerank"); - private static readonly System.Text.Json.JsonEncodedText MemberSpaceEmbedding = System.Text.Json.JsonEncodedText.Encode("space_embedding"); + private static readonly System.Text.Json.JsonEncodedText MemberSparseEmbedding = System.Text.Json.JsonEncodedText.Encode("sparse_embedding"); private static readonly System.Text.Json.JsonEncodedText MemberTextEmbedding = System.Text.Json.JsonEncodedText.Encode("text_embedding"); public override Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) @@ -42,9 +42,9 @@ public override Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType Rea return Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.Rerank; } - if (reader.ValueTextEquals(MemberSpaceEmbedding)) + if (reader.ValueTextEquals(MemberSparseEmbedding)) { - return Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.SpaceEmbedding; + return Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.SparseEmbedding; } if (reader.ValueTextEquals(MemberTextEmbedding)) @@ -63,9 +63,9 @@ public override Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType Rea return Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.Rerank; } - if (string.Equals(value, MemberSpaceEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) + if (string.Equals(value, MemberSparseEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) { - return Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.SpaceEmbedding; + return Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.SparseEmbedding; } if (string.Equals(value, MemberTextEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) @@ -86,8 +86,8 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien case Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.Rerank: writer.WriteStringValue(MemberRerank); break; - case Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.SpaceEmbedding: - writer.WriteStringValue(MemberSpaceEmbedding); + case Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.SparseEmbedding: + writer.WriteStringValue(MemberSparseEmbedding); break; case Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType.TextEmbedding: writer.WriteStringValue(MemberTextEmbedding); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskType.g.cs index a70ff054998..b0e5797f565 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskType.g.cs @@ -30,8 +30,8 @@ public enum AlibabaCloudTaskType Completion, [System.Runtime.Serialization.EnumMember(Value = "rerank")] Rerank, - [System.Runtime.Serialization.EnumMember(Value = "space_embedding")] - SpaceEmbedding, + [System.Runtime.Serialization.EnumMember(Value = "sparse_embedding")] + SparseEmbedding, [System.Runtime.Serialization.EnumMember(Value = "text_embedding")] TextEmbedding } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleModelGardenProvider.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleModelGardenProvider.Converters.g.cs index ef1594d4dbb..0d625549b7a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleModelGardenProvider.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleModelGardenProvider.Converters.g.cs @@ -25,11 +25,20 @@ namespace Elastic.Clients.Elasticsearch.Inference.Json; public sealed partial class GoogleModelGardenProviderConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText MemberAi21 = System.Text.Json.JsonEncodedText.Encode("ai21"); private static readonly System.Text.Json.JsonEncodedText MemberAnthropic = System.Text.Json.JsonEncodedText.Encode("anthropic"); private static readonly System.Text.Json.JsonEncodedText MemberGoogle = System.Text.Json.JsonEncodedText.Encode("google"); + private static readonly System.Text.Json.JsonEncodedText MemberHuggingFace = System.Text.Json.JsonEncodedText.Encode("hugging_face"); + private static readonly System.Text.Json.JsonEncodedText MemberMeta = System.Text.Json.JsonEncodedText.Encode("meta"); + private static readonly System.Text.Json.JsonEncodedText MemberMistral = System.Text.Json.JsonEncodedText.Encode("mistral"); public override Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { + if (reader.ValueTextEquals(MemberAi21)) + { + return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Ai21; + } + if (reader.ValueTextEquals(MemberAnthropic)) { return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Anthropic; @@ -40,7 +49,27 @@ public override Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvide return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Google; } + if (reader.ValueTextEquals(MemberHuggingFace)) + { + return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.HuggingFace; + } + + if (reader.ValueTextEquals(MemberMeta)) + { + return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Meta; + } + + if (reader.ValueTextEquals(MemberMistral)) + { + return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Mistral; + } + var value = reader.GetString()!; + if (string.Equals(value, MemberAi21.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Ai21; + } + if (string.Equals(value, MemberAnthropic.Value, System.StringComparison.OrdinalIgnoreCase)) { return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Anthropic; @@ -51,6 +80,21 @@ public override Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvide return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Google; } + if (string.Equals(value, MemberHuggingFace.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.HuggingFace; + } + + if (string.Equals(value, MemberMeta.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Meta; + } + + if (string.Equals(value, MemberMistral.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Mistral; + } + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider)}'."); } @@ -58,12 +102,24 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien { switch (value) { + case Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Ai21: + writer.WriteStringValue(MemberAi21); + break; case Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Anthropic: writer.WriteStringValue(MemberAnthropic); break; case Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Google: writer.WriteStringValue(MemberGoogle); break; + case Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.HuggingFace: + writer.WriteStringValue(MemberHuggingFace); + break; + case Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Meta: + writer.WriteStringValue(MemberMeta); + break; + case Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider.Mistral: + writer.WriteStringValue(MemberMistral); + break; default: throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.GoogleModelGardenProvider)}'."); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleModelGardenProvider.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleModelGardenProvider.g.cs index aaf61cbda99..4c51a3e327e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleModelGardenProvider.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleModelGardenProvider.g.cs @@ -26,8 +26,16 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.GoogleModelGardenProviderConverter))] public enum GoogleModelGardenProvider { + [System.Runtime.Serialization.EnumMember(Value = "ai21")] + Ai21, [System.Runtime.Serialization.EnumMember(Value = "anthropic")] Anthropic, [System.Runtime.Serialization.EnumMember(Value = "google")] - Google + Google, + [System.Runtime.Serialization.EnumMember(Value = "hugging_face")] + HuggingFace, + [System.Runtime.Serialization.EnumMember(Value = "meta")] + Meta, + [System.Runtime.Serialization.EnumMember(Value = "mistral")] + Mistral } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs index 7200ce8f605..fd485fe1934 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs @@ -133,6 +133,8 @@ internal GoogleVertexAIServiceSettings(Elastic.Clients.Elasticsearch.Serializati /// If url is not provided, streaming_url is also used for non-streaming completion requests. /// If provider is not provided or set to google (Google Vertex AI), do not set streaming_url (or url). /// At least one of streaming_url or url must be provided for Google Model Garden endpoint usage. + /// Certain providers require separate URLs for streaming and non-streaming operations (e.g., Anthropic, Mistral, AI21). Others support both operation types through a single URL (e.g., Meta, Hugging Face). + /// Information on constructing the URL for various providers can be found in the Google Model Garden documentation for the model, or on the endpoint’s Sample request page. The request examples also illustrate the proper formatting for the streaming_url. /// /// public string? StreamingUrl { get; set; } @@ -144,6 +146,8 @@ internal GoogleVertexAIServiceSettings(Elastic.Clients.Elasticsearch.Serializati /// If streaming_url is not provided, url is also used for streaming completion and chat_completion. /// If provider is not provided or set to google (Google Vertex AI), do not set url (or streaming_url). /// At least one of url or streaming_url must be provided for Google Model Garden endpoint usage. + /// Certain providers require separate URLs for streaming and non-streaming operations (e.g., Anthropic, Mistral, AI21). Others support both operation types through a single URL (e.g., Meta, Hugging Face). + /// Information on constructing the URL for various providers can be found in the Google Model Garden documentation for the model, or on the endpoint’s Sample request page. The request examples also illustrate the proper formatting for the url. /// /// public string? Url { get; set; } @@ -301,6 +305,8 @@ public Elastic.Clients.Elasticsearch.Inference.GoogleVertexAiServiceSettingsDesc /// If url is not provided, streaming_url is also used for non-streaming completion requests. /// If provider is not provided or set to google (Google Vertex AI), do not set streaming_url (or url). /// At least one of streaming_url or url must be provided for Google Model Garden endpoint usage. + /// Certain providers require separate URLs for streaming and non-streaming operations (e.g., Anthropic, Mistral, AI21). Others support both operation types through a single URL (e.g., Meta, Hugging Face). + /// Information on constructing the URL for various providers can be found in the Google Model Garden documentation for the model, or on the endpoint’s Sample request page. The request examples also illustrate the proper formatting for the streaming_url. /// /// public Elastic.Clients.Elasticsearch.Inference.GoogleVertexAiServiceSettingsDescriptor StreamingUrl(string? value) @@ -316,6 +322,8 @@ public Elastic.Clients.Elasticsearch.Inference.GoogleVertexAiServiceSettingsDesc /// If streaming_url is not provided, url is also used for streaming completion and chat_completion. /// If provider is not provided or set to google (Google Vertex AI), do not set url (or streaming_url). /// At least one of url or streaming_url must be provided for Google Model Garden endpoint usage. + /// Certain providers require separate URLs for streaming and non-streaming operations (e.g., Anthropic, Mistral, AI21). Others support both operation types through a single URL (e.g., Meta, Hugging Face). + /// Information on constructing the URL for various providers can be found in the Google Model Garden documentation for the model, or on the endpoint’s Sample request page. The request examples also illustrate the proper formatting for the url. /// /// public Elastic.Clients.Elasticsearch.Inference.GoogleVertexAiServiceSettingsDescriptor Url(string? value) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.Converters.g.cs new file mode 100644 index 00000000000..2e93ee57024 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.Converters.g.cs @@ -0,0 +1,108 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference.Json; + +public sealed partial class OpenShiftAiServiceSettingsConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropApiKey = System.Text.Json.JsonEncodedText.Encode("api_key"); + private static readonly System.Text.Json.JsonEncodedText PropMaxInputTokens = System.Text.Json.JsonEncodedText.Encode("max_input_tokens"); + private static readonly System.Text.Json.JsonEncodedText PropModelId = System.Text.Json.JsonEncodedText.Encode("model_id"); + private static readonly System.Text.Json.JsonEncodedText PropRateLimit = System.Text.Json.JsonEncodedText.Encode("rate_limit"); + private static readonly System.Text.Json.JsonEncodedText PropSimilarity = System.Text.Json.JsonEncodedText.Encode("similarity"); + private static readonly System.Text.Json.JsonEncodedText PropUrl = System.Text.Json.JsonEncodedText.Encode("url"); + + public override Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propApiKey = default; + LocalJsonValue propMaxInputTokens = default; + LocalJsonValue propModelId = default; + LocalJsonValue propRateLimit = default; + LocalJsonValue propSimilarity = default; + LocalJsonValue propUrl = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propApiKey.TryReadProperty(ref reader, options, PropApiKey, null)) + { + continue; + } + + if (propMaxInputTokens.TryReadProperty(ref reader, options, PropMaxInputTokens, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propModelId.TryReadProperty(ref reader, options, PropModelId, null)) + { + continue; + } + + if (propRateLimit.TryReadProperty(ref reader, options, PropRateLimit, null)) + { + continue; + } + + if (propSimilarity.TryReadProperty(ref reader, options, PropSimilarity, static Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propUrl.TryReadProperty(ref reader, options, PropUrl, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + ApiKey = propApiKey.Value, + MaxInputTokens = propMaxInputTokens.Value, + ModelId = propModelId.Value, + RateLimit = propRateLimit.Value, + Similarity = propSimilarity.Value, + Url = propUrl.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropApiKey, value.ApiKey, null, null); + writer.WriteProperty(options, PropMaxInputTokens, value.MaxInputTokens, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropModelId, value.ModelId, null, null); + writer.WriteProperty(options, PropRateLimit, value.RateLimit, null, null); + writer.WriteProperty(options, PropSimilarity, value.Similarity, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropUrl, value.Url, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.g.cs new file mode 100644 index 00000000000..8a953f59b72 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.g.cs @@ -0,0 +1,261 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.OpenShiftAiServiceSettingsConverter))] +public sealed partial class OpenShiftAiServiceSettings +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public OpenShiftAiServiceSettings(string apiKey, string url) + { + ApiKey = apiKey; + Url = url; + } +#if NET7_0_OR_GREATER + public OpenShiftAiServiceSettings() + { + } +#endif +#if !NET7_0_OR_GREATER + [System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")] + public OpenShiftAiServiceSettings() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal OpenShiftAiServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// A valid API key for your OpenShift AI endpoint. + /// Can be found in Token authentication section of model related information. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + string ApiKey { get; set; } + + /// + /// + /// For a text_embedding task, the maximum number of tokens per input before chunking occurs. + /// + /// + public int? MaxInputTokens { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the hosted model's documentation for the name if needed. + /// Service has been tested and confirmed to be working with the following models: + /// + /// + /// + /// + /// For text_embedding task - gritlm-7b. + /// + /// + /// + /// + /// For completion and chat_completion tasks - llama-31-8b-instruct. + /// + /// + /// + /// + /// For rerank task - bge-reranker-v2-m3. + /// + /// + /// + /// + public string? ModelId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the OpenShift AI API. + /// By default, the openshift_ai service sets the number of requests allowed per minute to 3000. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// For a text_embedding task, the similarity measure. One of cosine, dot_product, l2_norm. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType? Similarity { get; set; } + + /// + /// + /// The URL of the OpenShift AI hosted model endpoint. + /// + /// + public +#if NET7_0_OR_GREATER + required +#endif + string Url { get; set; } +} + +public readonly partial struct OpenShiftAiServiceSettingsDescriptor +{ + internal Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public OpenShiftAiServiceSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings instance) + { + Instance = instance; + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public OpenShiftAiServiceSettingsDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings instance) => new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// A valid API key for your OpenShift AI endpoint. + /// Can be found in Token authentication section of model related information. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor ApiKey(string value) + { + Instance.ApiKey = value; + return this; + } + + /// + /// + /// For a text_embedding task, the maximum number of tokens per input before chunking occurs. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor MaxInputTokens(int? value) + { + Instance.MaxInputTokens = value; + return this; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the hosted model's documentation for the name if needed. + /// Service has been tested and confirmed to be working with the following models: + /// + /// + /// + /// + /// For text_embedding task - gritlm-7b. + /// + /// + /// + /// + /// For completion and chat_completion tasks - llama-31-8b-instruct. + /// + /// + /// + /// + /// For rerank task - bge-reranker-v2-m3. + /// + /// + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor ModelId(string? value) + { + Instance.ModelId = value; + return this; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the OpenShift AI API. + /// By default, the openshift_ai service sets the number of requests allowed per minute to 3000. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? value) + { + Instance.RateLimit = value; + return this; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the OpenShift AI API. + /// By default, the openshift_ai service sets the number of requests allowed per minute to 3000. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor RateLimit() + { + Instance.RateLimit = Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor.Build(null); + return this; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the OpenShift AI API. + /// By default, the openshift_ai service sets the number of requests allowed per minute to 3000. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor RateLimit(System.Action? action) + { + Instance.RateLimit = Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor.Build(action); + return this; + } + + /// + /// + /// For a text_embedding task, the similarity measure. One of cosine, dot_product, l2_norm. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType? value) + { + Instance.Similarity = value; + return this; + } + + /// + /// + /// The URL of the OpenShift AI hosted model endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor Url(string value) + { + Instance.Url = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor(new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiSimilarityType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiSimilarityType.Converters.g.cs new file mode 100644 index 00000000000..f04eef8362c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiSimilarityType.Converters.g.cs @@ -0,0 +1,95 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference.Json; + +public sealed partial class OpenShiftAiSimilarityTypeConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberCosine = System.Text.Json.JsonEncodedText.Encode("cosine"); + private static readonly System.Text.Json.JsonEncodedText MemberDotProduct = System.Text.Json.JsonEncodedText.Encode("dot_product"); + private static readonly System.Text.Json.JsonEncodedText MemberL2Norm = System.Text.Json.JsonEncodedText.Encode("l2_norm"); + + public override Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberCosine)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.Cosine; + } + + if (reader.ValueTextEquals(MemberDotProduct)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.DotProduct; + } + + if (reader.ValueTextEquals(MemberL2Norm)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.L2Norm; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberCosine.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.Cosine; + } + + if (string.Equals(value, MemberDotProduct.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.DotProduct; + } + + if (string.Equals(value, MemberL2Norm.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.L2Norm; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.Cosine: + writer.WriteStringValue(MemberCosine); + break; + case Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.DotProduct: + writer.WriteStringValue(MemberDotProduct); + break; + case Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType.L2Norm: + writer.WriteStringValue(MemberL2Norm); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiSimilarityType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiSimilarityType.g.cs new file mode 100644 index 00000000000..403d8eb4a36 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiSimilarityType.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.OpenShiftAiSimilarityTypeConverter))] +public enum OpenShiftAiSimilarityType +{ + [System.Runtime.Serialization.EnumMember(Value = "cosine")] + Cosine, + [System.Runtime.Serialization.EnumMember(Value = "dot_product")] + DotProduct, + [System.Runtime.Serialization.EnumMember(Value = "l2_norm")] + L2Norm +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.Converters.g.cs new file mode 100644 index 00000000000..5f1d7da6928 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.Converters.g.cs @@ -0,0 +1,72 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference.Json; + +public sealed partial class OpenShiftAiTaskSettingsConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropReturnDocuments = System.Text.Json.JsonEncodedText.Encode("return_documents"); + private static readonly System.Text.Json.JsonEncodedText PropTopN = System.Text.Json.JsonEncodedText.Encode("top_n"); + + public override Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propReturnDocuments = default; + LocalJsonValue propTopN = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propReturnDocuments.TryReadProperty(ref reader, options, PropReturnDocuments, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propTopN.TryReadProperty(ref reader, options, PropTopN, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + ReturnDocuments = propReturnDocuments.Value, + TopN = propTopN.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropReturnDocuments, value.ReturnDocuments, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropTopN, value.TopN, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.g.cs new file mode 100644 index 00000000000..477e274690d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.g.cs @@ -0,0 +1,113 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.OpenShiftAiTaskSettingsConverter))] +public sealed partial class OpenShiftAiTaskSettings +{ +#if NET7_0_OR_GREATER + public OpenShiftAiTaskSettings() + { + } +#endif +#if !NET7_0_OR_GREATER + public OpenShiftAiTaskSettings() + { + } +#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal OpenShiftAiTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// For a rerank task, whether to return the source documents in the response. + /// + /// + public bool? ReturnDocuments { get; set; } + + /// + /// + /// For a rerank task, the number of most relevant documents to return. + /// + /// + public int? TopN { get; set; } +} + +public readonly partial struct OpenShiftAiTaskSettingsDescriptor +{ + internal Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public OpenShiftAiTaskSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings instance) + { + Instance = instance; + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public OpenShiftAiTaskSettingsDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings instance) => new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettingsDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettingsDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// For a rerank task, whether to return the source documents in the response. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettingsDescriptor ReturnDocuments(bool? value = true) + { + Instance.ReturnDocuments = value; + return this; + } + + /// + /// + /// For a rerank task, the number of most relevant documents to return. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettingsDescriptor TopN(int? value) + { + Instance.TopN = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings Build(System.Action? action) + { + if (action is null) + { + return new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + var builder = new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettingsDescriptor(new Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskType.Converters.g.cs new file mode 100644 index 00000000000..b6ff4303576 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskType.Converters.g.cs @@ -0,0 +1,109 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference.Json; + +public sealed partial class OpenShiftAiTaskTypeConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberChatCompletion = System.Text.Json.JsonEncodedText.Encode("chat_completion"); + private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"); + private static readonly System.Text.Json.JsonEncodedText MemberRerank = System.Text.Json.JsonEncodedText.Encode("rerank"); + private static readonly System.Text.Json.JsonEncodedText MemberTextEmbedding = System.Text.Json.JsonEncodedText.Encode("text_embedding"); + + public override Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberChatCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.ChatCompletion; + } + + if (reader.ValueTextEquals(MemberCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.Completion; + } + + if (reader.ValueTextEquals(MemberRerank)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.Rerank; + } + + if (reader.ValueTextEquals(MemberTextEmbedding)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.TextEmbedding; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberChatCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.ChatCompletion; + } + + if (string.Equals(value, MemberCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.Completion; + } + + if (string.Equals(value, MemberRerank.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.Rerank; + } + + if (string.Equals(value, MemberTextEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.TextEmbedding; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.ChatCompletion: + writer.WriteStringValue(MemberChatCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.Completion: + writer.WriteStringValue(MemberCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.Rerank: + writer.WriteStringValue(MemberRerank); + break; + case Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType.TextEmbedding: + writer.WriteStringValue(MemberTextEmbedding); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskType.g.cs new file mode 100644 index 00000000000..b5b2e373c99 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskType.g.cs @@ -0,0 +1,37 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.OpenShiftAiTaskTypeConverter))] +public enum OpenShiftAiTaskType +{ + [System.Runtime.Serialization.EnumMember(Value = "chat_completion")] + ChatCompletion, + [System.Runtime.Serialization.EnumMember(Value = "completion")] + Completion, + [System.Runtime.Serialization.EnumMember(Value = "rerank")] + Rerank, + [System.Runtime.Serialization.EnumMember(Value = "text_embedding")] + TextEmbedding +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs index 8fb48fa0060..329bf8dd655 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs @@ -135,6 +135,11 @@ internal RateLimitSetting(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// + /// openshift_ai service: 3000 + /// + /// + /// + /// /// voyageai service: 2000 /// /// @@ -260,6 +265,11 @@ public RateLimitSettingDescriptor() /// /// /// + /// openshift_ai service: 3000 + /// + /// + /// + /// /// voyageai service: 2000 /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeOpenShiftAi.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeOpenShiftAi.Converters.g.cs new file mode 100644 index 00000000000..c28d3570325 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeOpenShiftAi.Converters.g.cs @@ -0,0 +1,109 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference.Json; + +public sealed partial class TaskTypeOpenShiftAiConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberChatCompletion = System.Text.Json.JsonEncodedText.Encode("chat_completion"); + private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"); + private static readonly System.Text.Json.JsonEncodedText MemberRerank = System.Text.Json.JsonEncodedText.Encode("rerank"); + private static readonly System.Text.Json.JsonEncodedText MemberTextEmbedding = System.Text.Json.JsonEncodedText.Encode("text_embedding"); + + public override Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberChatCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.ChatCompletion; + } + + if (reader.ValueTextEquals(MemberCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.Completion; + } + + if (reader.ValueTextEquals(MemberRerank)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.Rerank; + } + + if (reader.ValueTextEquals(MemberTextEmbedding)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.TextEmbedding; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberChatCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.ChatCompletion; + } + + if (string.Equals(value, MemberCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.Completion; + } + + if (string.Equals(value, MemberRerank.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.Rerank; + } + + if (string.Equals(value, MemberTextEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.TextEmbedding; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.ChatCompletion: + writer.WriteStringValue(MemberChatCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.Completion: + writer.WriteStringValue(MemberCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.Rerank: + writer.WriteStringValue(MemberRerank); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi.TextEmbedding: + writer.WriteStringValue(MemberTextEmbedding); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeOpenShiftAi.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeOpenShiftAi.g.cs new file mode 100644 index 00000000000..14bbe13c6db --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeOpenShiftAi.g.cs @@ -0,0 +1,37 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.TaskTypeOpenShiftAiConverter))] +public enum TaskTypeOpenShiftAi +{ + [System.Runtime.Serialization.EnumMember(Value = "chat_completion")] + ChatCompletion, + [System.Runtime.Serialization.EnumMember(Value = "completion")] + Completion, + [System.Runtime.Serialization.EnumMember(Value = "rerank")] + Rerank, + [System.Runtime.Serialization.EnumMember(Value = "text_embedding")] + TextEmbedding +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.Converters.g.cs index c8ef53c37de..677b06158db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.Converters.g.cs @@ -39,7 +39,7 @@ public override Elastic.Clients.Elasticsearch.InlineGet Read(ref Syst LocalJsonValue propFound = default; System.Collections.Generic.Dictionary? propMetadata = default; LocalJsonValue propPrimaryTerm = default; - LocalJsonValue propRouting = default; + LocalJsonValue?> propRouting = default; LocalJsonValue propSeqNo = default; LocalJsonValue propSource = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -59,7 +59,7 @@ public override Elastic.Clients.Elasticsearch.InlineGet Read(ref Syst continue; } - if (propRouting.TryReadProperty(ref reader, options, PropRouting, null)) + if (propRouting.TryReadProperty(ref reader, options, PropRouting, static System.Collections.Generic.ICollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null))) { continue; } @@ -98,7 +98,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropFields, value.Fields, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary? v) => w.WriteDictionaryValue(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))); writer.WriteProperty(options, PropFound, value.Found, null, null); writer.WriteProperty(options, PropPrimaryTerm, value.PrimaryTerm, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); - writer.WriteProperty(options, PropRouting, value.Routing, null, null); + writer.WriteProperty(options, PropRouting, value.Routing, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteSingleOrManyCollectionValue(o, v, null)); writer.WriteProperty(options, PropSeqNo, value.SeqNo, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropSource, value.Source, null, null); if (value.Metadata is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.g.cs index cf7e7ae88dd..a44597b43df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.g.cs @@ -62,7 +62,7 @@ internal InlineGet(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// public System.Collections.Generic.IReadOnlyDictionary? Metadata { get; set; } public long? PrimaryTerm { get; set; } - public string? Routing { get; set; } + public System.Collections.Generic.ICollection? Routing { get; set; } public long? SeqNo { get; set; } public TDocument? Source { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeStatsMetric.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeStatsMetric.Converters.g.cs new file mode 100644 index 00000000000..36c39b3dd8d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeStatsMetric.Converters.g.cs @@ -0,0 +1,319 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes.Json; + +public sealed partial class NodeStatsMetricConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberAll = System.Text.Json.JsonEncodedText.Encode("_all"); + private static readonly System.Text.Json.JsonEncodedText MemberNone = System.Text.Json.JsonEncodedText.Encode("_none"); + private static readonly System.Text.Json.JsonEncodedText MemberAdaptiveSelection = System.Text.Json.JsonEncodedText.Encode("adaptive_selection"); + private static readonly System.Text.Json.JsonEncodedText MemberAllocations = System.Text.Json.JsonEncodedText.Encode("allocations"); + private static readonly System.Text.Json.JsonEncodedText MemberBreaker = System.Text.Json.JsonEncodedText.Encode("breaker"); + private static readonly System.Text.Json.JsonEncodedText MemberDiscovery = System.Text.Json.JsonEncodedText.Encode("discovery"); + private static readonly System.Text.Json.JsonEncodedText MemberFs = System.Text.Json.JsonEncodedText.Encode("fs"); + private static readonly System.Text.Json.JsonEncodedText MemberHttp = System.Text.Json.JsonEncodedText.Encode("http"); + private static readonly System.Text.Json.JsonEncodedText MemberIndexingPressure = System.Text.Json.JsonEncodedText.Encode("indexing_pressure"); + private static readonly System.Text.Json.JsonEncodedText MemberIndices = System.Text.Json.JsonEncodedText.Encode("indices"); + private static readonly System.Text.Json.JsonEncodedText MemberIngest = System.Text.Json.JsonEncodedText.Encode("ingest"); + private static readonly System.Text.Json.JsonEncodedText MemberJvm = System.Text.Json.JsonEncodedText.Encode("jvm"); + private static readonly System.Text.Json.JsonEncodedText MemberOs = System.Text.Json.JsonEncodedText.Encode("os"); + private static readonly System.Text.Json.JsonEncodedText MemberProcess = System.Text.Json.JsonEncodedText.Encode("process"); + private static readonly System.Text.Json.JsonEncodedText MemberRepositories = System.Text.Json.JsonEncodedText.Encode("repositories"); + private static readonly System.Text.Json.JsonEncodedText MemberScript = System.Text.Json.JsonEncodedText.Encode("script"); + private static readonly System.Text.Json.JsonEncodedText MemberScriptCache = System.Text.Json.JsonEncodedText.Encode("script_cache"); + private static readonly System.Text.Json.JsonEncodedText MemberThreadPool = System.Text.Json.JsonEncodedText.Encode("thread_pool"); + private static readonly System.Text.Json.JsonEncodedText MemberTransport = System.Text.Json.JsonEncodedText.Encode("transport"); + + public override Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberAll)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.All; + } + + if (reader.ValueTextEquals(MemberNone)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.None; + } + + if (reader.ValueTextEquals(MemberAdaptiveSelection)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.AdaptiveSelection; + } + + if (reader.ValueTextEquals(MemberAllocations)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Allocations; + } + + if (reader.ValueTextEquals(MemberBreaker)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Breaker; + } + + if (reader.ValueTextEquals(MemberDiscovery)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Discovery; + } + + if (reader.ValueTextEquals(MemberFs)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Fs; + } + + if (reader.ValueTextEquals(MemberHttp)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Http; + } + + if (reader.ValueTextEquals(MemberIndexingPressure)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.IndexingPressure; + } + + if (reader.ValueTextEquals(MemberIndices)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Indices; + } + + if (reader.ValueTextEquals(MemberIngest)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Ingest; + } + + if (reader.ValueTextEquals(MemberJvm)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Jvm; + } + + if (reader.ValueTextEquals(MemberOs)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Os; + } + + if (reader.ValueTextEquals(MemberProcess)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Process; + } + + if (reader.ValueTextEquals(MemberRepositories)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Repositories; + } + + if (reader.ValueTextEquals(MemberScript)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Script; + } + + if (reader.ValueTextEquals(MemberScriptCache)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.ScriptCache; + } + + if (reader.ValueTextEquals(MemberThreadPool)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.ThreadPool; + } + + if (reader.ValueTextEquals(MemberTransport)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Transport; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberAll.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.All; + } + + if (string.Equals(value, MemberNone.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.None; + } + + if (string.Equals(value, MemberAdaptiveSelection.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.AdaptiveSelection; + } + + if (string.Equals(value, MemberAllocations.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Allocations; + } + + if (string.Equals(value, MemberBreaker.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Breaker; + } + + if (string.Equals(value, MemberDiscovery.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Discovery; + } + + if (string.Equals(value, MemberFs.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Fs; + } + + if (string.Equals(value, MemberHttp.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Http; + } + + if (string.Equals(value, MemberIndexingPressure.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.IndexingPressure; + } + + if (string.Equals(value, MemberIndices.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Indices; + } + + if (string.Equals(value, MemberIngest.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Ingest; + } + + if (string.Equals(value, MemberJvm.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Jvm; + } + + if (string.Equals(value, MemberOs.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Os; + } + + if (string.Equals(value, MemberProcess.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Process; + } + + if (string.Equals(value, MemberRepositories.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Repositories; + } + + if (string.Equals(value, MemberScript.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Script; + } + + if (string.Equals(value, MemberScriptCache.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.ScriptCache; + } + + if (string.Equals(value, MemberThreadPool.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.ThreadPool; + } + + if (string.Equals(value, MemberTransport.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Transport; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.All: + writer.WriteStringValue(MemberAll); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.None: + writer.WriteStringValue(MemberNone); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.AdaptiveSelection: + writer.WriteStringValue(MemberAdaptiveSelection); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Allocations: + writer.WriteStringValue(MemberAllocations); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Breaker: + writer.WriteStringValue(MemberBreaker); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Discovery: + writer.WriteStringValue(MemberDiscovery); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Fs: + writer.WriteStringValue(MemberFs); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Http: + writer.WriteStringValue(MemberHttp); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.IndexingPressure: + writer.WriteStringValue(MemberIndexingPressure); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Indices: + writer.WriteStringValue(MemberIndices); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Ingest: + writer.WriteStringValue(MemberIngest); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Jvm: + writer.WriteStringValue(MemberJvm); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Os: + writer.WriteStringValue(MemberOs); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Process: + writer.WriteStringValue(MemberProcess); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Repositories: + writer.WriteStringValue(MemberRepositories); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Script: + writer.WriteStringValue(MemberScript); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.ScriptCache: + writer.WriteStringValue(MemberScriptCache); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.ThreadPool: + writer.WriteStringValue(MemberThreadPool); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric.Transport: + writer.WriteStringValue(MemberTransport); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Nodes.NodeStatsMetric value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeStatsMetric.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeStatsMetric.g.cs new file mode 100644 index 00000000000..ef77cc18a9a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeStatsMetric.g.cs @@ -0,0 +1,67 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeStatsMetricConverter))] +public enum NodeStatsMetric +{ + [System.Runtime.Serialization.EnumMember(Value = "_all")] + All, + [System.Runtime.Serialization.EnumMember(Value = "_none")] + None, + [System.Runtime.Serialization.EnumMember(Value = "adaptive_selection")] + AdaptiveSelection, + [System.Runtime.Serialization.EnumMember(Value = "allocations")] + Allocations, + [System.Runtime.Serialization.EnumMember(Value = "breaker")] + Breaker, + [System.Runtime.Serialization.EnumMember(Value = "discovery")] + Discovery, + [System.Runtime.Serialization.EnumMember(Value = "fs")] + Fs, + [System.Runtime.Serialization.EnumMember(Value = "http")] + Http, + [System.Runtime.Serialization.EnumMember(Value = "indexing_pressure")] + IndexingPressure, + [System.Runtime.Serialization.EnumMember(Value = "indices")] + Indices, + [System.Runtime.Serialization.EnumMember(Value = "ingest")] + Ingest, + [System.Runtime.Serialization.EnumMember(Value = "jvm")] + Jvm, + [System.Runtime.Serialization.EnumMember(Value = "os")] + Os, + [System.Runtime.Serialization.EnumMember(Value = "process")] + Process, + [System.Runtime.Serialization.EnumMember(Value = "repositories")] + Repositories, + [System.Runtime.Serialization.EnumMember(Value = "script")] + Script, + [System.Runtime.Serialization.EnumMember(Value = "script_cache")] + ScriptCache, + [System.Runtime.Serialization.EnumMember(Value = "thread_pool")] + ThreadPool, + [System.Runtime.Serialization.EnumMember(Value = "transport")] + Transport +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesInfoMetric.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesInfoMetric.Converters.g.cs new file mode 100644 index 00000000000..84d60affa38 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesInfoMetric.Converters.g.cs @@ -0,0 +1,249 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes.Json; + +public sealed partial class NodesInfoMetricConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberAll = System.Text.Json.JsonEncodedText.Encode("_all"); + private static readonly System.Text.Json.JsonEncodedText MemberNone = System.Text.Json.JsonEncodedText.Encode("_none"); + private static readonly System.Text.Json.JsonEncodedText MemberAggregations = System.Text.Json.JsonEncodedText.Encode("aggregations"); + private static readonly System.Text.Json.JsonEncodedText MemberHttp = System.Text.Json.JsonEncodedText.Encode("http"); + private static readonly System.Text.Json.JsonEncodedText MemberIndices = System.Text.Json.JsonEncodedText.Encode("indices"); + private static readonly System.Text.Json.JsonEncodedText MemberIngest = System.Text.Json.JsonEncodedText.Encode("ingest"); + private static readonly System.Text.Json.JsonEncodedText MemberJvm = System.Text.Json.JsonEncodedText.Encode("jvm"); + private static readonly System.Text.Json.JsonEncodedText MemberOs = System.Text.Json.JsonEncodedText.Encode("os"); + private static readonly System.Text.Json.JsonEncodedText MemberPlugins = System.Text.Json.JsonEncodedText.Encode("plugins"); + private static readonly System.Text.Json.JsonEncodedText MemberProcess = System.Text.Json.JsonEncodedText.Encode("process"); + private static readonly System.Text.Json.JsonEncodedText MemberRemoteClusterServer = System.Text.Json.JsonEncodedText.Encode("remote_cluster_server"); + private static readonly System.Text.Json.JsonEncodedText MemberSettings = System.Text.Json.JsonEncodedText.Encode("settings"); + private static readonly System.Text.Json.JsonEncodedText MemberThreadPool = System.Text.Json.JsonEncodedText.Encode("thread_pool"); + private static readonly System.Text.Json.JsonEncodedText MemberTransport = System.Text.Json.JsonEncodedText.Encode("transport"); + + public override Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberAll)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.All; + } + + if (reader.ValueTextEquals(MemberNone)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.None; + } + + if (reader.ValueTextEquals(MemberAggregations)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Aggregations; + } + + if (reader.ValueTextEquals(MemberHttp)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Http; + } + + if (reader.ValueTextEquals(MemberIndices)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Indices; + } + + if (reader.ValueTextEquals(MemberIngest)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Ingest; + } + + if (reader.ValueTextEquals(MemberJvm)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Jvm; + } + + if (reader.ValueTextEquals(MemberOs)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Os; + } + + if (reader.ValueTextEquals(MemberPlugins)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Plugins; + } + + if (reader.ValueTextEquals(MemberProcess)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Process; + } + + if (reader.ValueTextEquals(MemberRemoteClusterServer)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.RemoteClusterServer; + } + + if (reader.ValueTextEquals(MemberSettings)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Settings; + } + + if (reader.ValueTextEquals(MemberThreadPool)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.ThreadPool; + } + + if (reader.ValueTextEquals(MemberTransport)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Transport; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberAll.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.All; + } + + if (string.Equals(value, MemberNone.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.None; + } + + if (string.Equals(value, MemberAggregations.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Aggregations; + } + + if (string.Equals(value, MemberHttp.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Http; + } + + if (string.Equals(value, MemberIndices.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Indices; + } + + if (string.Equals(value, MemberIngest.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Ingest; + } + + if (string.Equals(value, MemberJvm.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Jvm; + } + + if (string.Equals(value, MemberOs.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Os; + } + + if (string.Equals(value, MemberPlugins.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Plugins; + } + + if (string.Equals(value, MemberProcess.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Process; + } + + if (string.Equals(value, MemberRemoteClusterServer.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.RemoteClusterServer; + } + + if (string.Equals(value, MemberSettings.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Settings; + } + + if (string.Equals(value, MemberThreadPool.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.ThreadPool; + } + + if (string.Equals(value, MemberTransport.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Transport; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.All: + writer.WriteStringValue(MemberAll); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.None: + writer.WriteStringValue(MemberNone); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Aggregations: + writer.WriteStringValue(MemberAggregations); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Http: + writer.WriteStringValue(MemberHttp); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Indices: + writer.WriteStringValue(MemberIndices); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Ingest: + writer.WriteStringValue(MemberIngest); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Jvm: + writer.WriteStringValue(MemberJvm); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Os: + writer.WriteStringValue(MemberOs); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Plugins: + writer.WriteStringValue(MemberPlugins); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Process: + writer.WriteStringValue(MemberProcess); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.RemoteClusterServer: + writer.WriteStringValue(MemberRemoteClusterServer); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Settings: + writer.WriteStringValue(MemberSettings); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.ThreadPool: + writer.WriteStringValue(MemberThreadPool); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric.Transport: + writer.WriteStringValue(MemberTransport); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Nodes.NodesInfoMetric value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesInfoMetric.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesInfoMetric.g.cs new file mode 100644 index 00000000000..3d6da3ea9d0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesInfoMetric.g.cs @@ -0,0 +1,57 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodesInfoMetricConverter))] +public enum NodesInfoMetric +{ + [System.Runtime.Serialization.EnumMember(Value = "_all")] + All, + [System.Runtime.Serialization.EnumMember(Value = "_none")] + None, + [System.Runtime.Serialization.EnumMember(Value = "aggregations")] + Aggregations, + [System.Runtime.Serialization.EnumMember(Value = "http")] + Http, + [System.Runtime.Serialization.EnumMember(Value = "indices")] + Indices, + [System.Runtime.Serialization.EnumMember(Value = "ingest")] + Ingest, + [System.Runtime.Serialization.EnumMember(Value = "jvm")] + Jvm, + [System.Runtime.Serialization.EnumMember(Value = "os")] + Os, + [System.Runtime.Serialization.EnumMember(Value = "plugins")] + Plugins, + [System.Runtime.Serialization.EnumMember(Value = "process")] + Process, + [System.Runtime.Serialization.EnumMember(Value = "remote_cluster_server")] + RemoteClusterServer, + [System.Runtime.Serialization.EnumMember(Value = "settings")] + Settings, + [System.Runtime.Serialization.EnumMember(Value = "thread_pool")] + ThreadPool, + [System.Runtime.Serialization.EnumMember(Value = "transport")] + Transport +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesUsageMetric.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesUsageMetric.Converters.g.cs new file mode 100644 index 00000000000..a7406beae0a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesUsageMetric.Converters.g.cs @@ -0,0 +1,95 @@ +// 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. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes.Json; + +public sealed partial class NodesUsageMetricConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberAll = System.Text.Json.JsonEncodedText.Encode("_all"); + private static readonly System.Text.Json.JsonEncodedText MemberAggregations = System.Text.Json.JsonEncodedText.Encode("aggregations"); + private static readonly System.Text.Json.JsonEncodedText MemberRestActions = System.Text.Json.JsonEncodedText.Encode("rest_actions"); + + public override Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberAll)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.All; + } + + if (reader.ValueTextEquals(MemberAggregations)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.Aggregations; + } + + if (reader.ValueTextEquals(MemberRestActions)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.RestActions; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberAll.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.All; + } + + if (string.Equals(value, MemberAggregations.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.Aggregations; + } + + if (string.Equals(value, MemberRestActions.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.RestActions; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.All: + writer.WriteStringValue(MemberAll); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.Aggregations: + writer.WriteStringValue(MemberAggregations); + break; + case Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric.RestActions: + writer.WriteStringValue(MemberRestActions); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Nodes.NodesUsageMetric value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesUsageMetric.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesUsageMetric.g.cs new file mode 100644 index 00000000000..c2bd3a4e5a7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodesUsageMetric.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodesUsageMetricConverter))] +public enum NodesUsageMetric +{ + [System.Runtime.Serialization.EnumMember(Value = "_all")] + All, + [System.Runtime.Serialization.EnumMember(Value = "aggregations")] + Aggregations, + [System.Runtime.Serialization.EnumMember(Value = "rest_actions")] + RestActions +} \ No newline at end of file