From de1f0aa815b40f852741b570a25d5e39dde5940d Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Wed, 17 Dec 2025 12:48:27 +0000 Subject: [PATCH] Regenerate client --- .../_Generated/Api/ApiUrlLookup.g.cs | 3 + .../AsyncSearch/AsyncSearchStatusRequest.g.cs | 15 +- .../AsyncSearchStatusResponse.g.cs | 30 +- .../AsyncSearch/DeleteAsyncSearchRequest.g.cs | 15 +- .../DeleteAsyncSearchResponse.g.cs | 6 +- .../AsyncSearch/GetAsyncSearchRequest.g.cs | 15 +- .../AsyncSearch/GetAsyncSearchResponse.g.cs | 30 +- .../SubmitAsyncSearchRequest.Converters.g.cs | 9 + .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 69 +++- .../SubmitAsyncSearchResponse.g.cs | 30 +- .../_Generated/Api/BulkRequest.g.cs | 19 +- .../_Generated/Api/BulkResponse.g.cs | 18 +- .../_Generated/Api/CapabilitiesRequest.g.cs | 13 +- .../_Generated/Api/CapabilitiesResponse.g.cs | 18 +- .../_Generated/Api/ClearScrollRequest.g.cs | 13 +- .../_Generated/Api/ClearScrollResponse.g.cs | 12 +- .../Api/ClosePointInTimeRequest.g.cs | 21 +- .../Api/ClosePointInTimeResponse.g.cs | 12 +- .../Api/Cluster/AllocationExplainRequest.g.cs | 13 +- .../Cluster/AllocationExplainResponse.g.cs | 24 +- .../Api/Cluster/ClusterInfoRequest.g.cs | 15 +- .../Api/Cluster/ClusterInfoResponse.g.cs | 6 +- .../Api/Cluster/ClusterStatsRequest.g.cs | 14 +- .../Api/Cluster/ClusterStatsResponse.g.cs | 48 +-- .../DeleteComponentTemplateRequest.g.cs | 15 +- .../DeleteComponentTemplateResponse.g.cs | 6 +- .../DeleteVotingConfigExclusionsRequest.g.cs | 13 +- .../ExistsComponentTemplateRequest.g.cs | 15 +- .../Cluster/GetClusterSettingsRequest.g.cs | 13 +- .../Cluster/GetClusterSettingsResponse.g.cs | 12 +- .../Cluster/GetComponentTemplateRequest.g.cs | 14 +- .../Cluster/GetComponentTemplateResponse.g.cs | 6 +- .../_Generated/Api/Cluster/HealthRequest.g.cs | 19 +- .../Api/Cluster/HealthResponse.g.cs | 96 +---- .../Api/Cluster/PendingTasksRequest.g.cs | 13 +- .../Api/Cluster/PendingTasksResponse.g.cs | 6 +- .../PostVotingConfigExclusionsRequest.g.cs | 13 +- .../Cluster/PutClusterSettingsRequest.g.cs | 13 +- .../Cluster/PutClusterSettingsResponse.g.cs | 18 +- .../Cluster/PutComponentTemplateRequest.g.cs | 26 +- .../Cluster/PutComponentTemplateResponse.g.cs | 6 +- .../Api/CountRequest.Converters.g.cs | 9 + .../_Generated/Api/CountRequest.g.cs | 69 +++- .../_Generated/Api/CountResponse.g.cs | 12 +- .../_Generated/Api/CreateRequest.g.cs | 27 +- .../_Generated/Api/CreateResponse.g.cs | 30 +- .../CcrStatsRequest.g.cs | 13 +- .../CcrStatsResponse.g.cs | 12 +- .../DeleteAutoFollowPatternRequest.g.cs | 15 +- .../DeleteAutoFollowPatternResponse.g.cs | 6 +- .../FollowInfoRequest.g.cs | 20 +- .../FollowInfoResponse.g.cs | 6 +- .../FollowRequest.g.cs | 32 +- .../FollowResponse.g.cs | 18 +- .../FollowStatsRequest.g.cs | 20 +- .../FollowStatsResponse.g.cs | 6 +- .../ForgetFollowerRequest.g.cs | 20 +- .../ForgetFollowerResponse.g.cs | 6 +- .../GetAutoFollowPatternRequest.g.cs | 14 +- .../GetAutoFollowPatternResponse.g.cs | 6 +- .../PauseAutoFollowPatternRequest.g.cs | 15 +- .../PauseAutoFollowPatternResponse.g.cs | 6 +- .../PauseFollowRequest.g.cs | 20 +- .../PauseFollowResponse.g.cs | 6 +- .../PutAutoFollowPatternRequest.g.cs | 21 +- .../PutAutoFollowPatternResponse.g.cs | 6 +- .../ResumeAutoFollowPatternRequest.g.cs | 15 +- .../ResumeAutoFollowPatternResponse.g.cs | 6 +- .../ResumeFollowRequest.g.cs | 20 +- .../ResumeFollowResponse.g.cs | 6 +- .../UnfollowRequest.g.cs | 20 +- .../UnfollowResponse.g.cs | 6 +- .../ListDanglingIndicesRequest.g.cs | 13 +- .../ListDanglingIndicesResponse.g.cs | 6 +- .../_Generated/Api/DeleteByQueryRequest.g.cs | 20 +- .../Api/DeleteByQueryRethrottleRequest.g.cs | 15 +- .../_Generated/Api/DeleteRequest.g.cs | 26 +- .../_Generated/Api/DeleteResponse.g.cs | 30 +- .../_Generated/Api/DeleteScriptRequest.g.cs | 15 +- .../_Generated/Api/DeleteScriptResponse.g.cs | 6 +- .../Api/Enrich/DeletePolicyRequest.g.cs | 15 +- .../Api/Enrich/DeletePolicyResponse.g.cs | 6 +- .../Api/Enrich/EnrichStatsRequest.g.cs | 13 +- .../Api/Enrich/EnrichStatsResponse.g.cs | 12 +- .../Api/Enrich/ExecutePolicyRequest.g.cs | 15 +- .../Api/Enrich/GetPolicyRequest.g.cs | 14 +- .../Api/Enrich/GetPolicyResponse.g.cs | 6 +- .../Api/Enrich/PutPolicyRequest.g.cs | 20 +- .../Api/Enrich/PutPolicyResponse.g.cs | 6 +- .../_Generated/Api/Eql/EqlDeleteRequest.g.cs | 15 +- .../_Generated/Api/Eql/EqlDeleteResponse.g.cs | 6 +- .../_Generated/Api/Eql/EqlGetRequest.g.cs | 15 +- .../_Generated/Api/Eql/EqlGetResponse.g.cs | 6 +- .../Api/Eql/EqlSearchRequest.Converters.g.cs | 9 + .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 76 +++- .../_Generated/Api/Eql/EqlSearchResponse.g.cs | 6 +- .../Api/Eql/GetEqlStatusRequest.g.cs | 15 +- .../Api/Eql/GetEqlStatusResponse.g.cs | 18 +- .../Api/Esql/AsyncQueryDeleteRequest.g.cs | 15 +- .../Api/Esql/AsyncQueryDeleteResponse.g.cs | 6 +- .../Api/Esql/AsyncQueryGetRequest.g.cs | 15 +- .../Api/Esql/AsyncQueryRequest.g.cs | 26 +- .../Api/Esql/AsyncQueryStopRequest.g.cs | 15 +- .../_Generated/Api/Esql/EsqlQueryRequest.g.cs | 26 +- .../Api/Esql/GetEsqlQueryRequest.g.cs | 15 +- .../Api/Esql/GetEsqlQueryResponse.g.cs | 42 +- .../Api/Esql/ListQueriesRequest.g.cs | 13 +- .../Api/Esql/ListQueriesResponse.g.cs | 6 +- .../_Generated/Api/ExistsRequest.g.cs | 26 +- .../_Generated/Api/ExistsSourceRequest.g.cs | 26 +- .../_Generated/Api/ExplainRequest.g.cs | 26 +- .../_Generated/Api/ExplainResponse.g.cs | 18 +- .../Api/Features/GetFeaturesRequest.g.cs | 13 +- .../Api/Features/GetFeaturesResponse.g.cs | 6 +- .../Api/Features/ResetFeaturesRequest.g.cs | 13 +- .../Api/Features/ResetFeaturesResponse.g.cs | 6 +- .../Api/FieldCapsRequest.Converters.g.cs | 9 + .../_Generated/Api/FieldCapsRequest.g.cs | 69 +++- .../_Generated/Api/FieldCapsResponse.g.cs | 12 +- .../_Generated/Api/GetRequest.g.cs | 26 +- .../_Generated/Api/GetResponse.g.cs | 18 +- .../Api/GetScriptContextRequest.g.cs | 13 +- .../Api/GetScriptContextResponse.g.cs | 6 +- .../Api/GetScriptLanguagesRequest.g.cs | 13 +- .../Api/GetScriptLanguagesResponse.g.cs | 12 +- .../_Generated/Api/GetScriptRequest.g.cs | 15 +- .../_Generated/Api/GetScriptResponse.g.cs | 12 +- .../_Generated/Api/GetSourceRequest.g.cs | 26 +- .../_Generated/Api/GetSourceResponse.g.cs | 6 +- .../_Generated/Api/Graph/ExploreRequest.g.cs | 20 +- .../_Generated/Api/Graph/ExploreResponse.g.cs | 30 +- .../_Generated/Api/HealthReportRequest.g.cs | 14 +- .../_Generated/Api/HealthReportResponse.g.cs | 12 +- .../DeleteLifecycleRequest.g.cs | 15 +- .../DeleteLifecycleResponse.g.cs | 6 +- .../GetIlmStatusRequest.g.cs | 13 +- .../GetIlmStatusResponse.g.cs | 6 +- .../GetLifecycleRequest.g.cs | 14 +- .../GetLifecycleResponse.g.cs | 6 +- .../MigrateToDataTiersRequest.g.cs | 13 +- .../MigrateToDataTiersResponse.g.cs | 42 +- .../MoveToStepRequest.g.cs | 32 +- .../MoveToStepResponse.g.cs | 6 +- .../PutLifecycleRequest.g.cs | 15 +- .../PutLifecycleResponse.g.cs | 6 +- .../RemovePolicyRequest.g.cs | 20 +- .../RemovePolicyResponse.g.cs | 12 +- .../RetryRequest.g.cs | 20 +- .../RetryResponse.g.cs | 6 +- .../StartIlmRequest.g.cs | 13 +- .../StartIlmResponse.g.cs | 6 +- .../StopIlmRequest.g.cs | 13 +- .../StopIlmResponse.g.cs | 6 +- .../IndexManagement/AnalyzeIndexRequest.g.cs | 19 +- .../CancelMigrateReindexRequest.g.cs | 20 +- .../CancelMigrateReindexResponse.g.cs | 6 +- .../IndexManagement/ClearCacheRequest.g.cs | 19 +- .../IndexManagement/CloneIndexRequest.g.cs | 26 +- .../IndexManagement/CloneIndexResponse.g.cs | 18 +- .../IndexManagement/CloseIndexRequest.g.cs | 20 +- .../IndexManagement/CloseIndexResponse.g.cs | 18 +- .../CreateDataStreamRequest.g.cs | 15 +- .../CreateDataStreamResponse.g.cs | 6 +- .../IndexManagement/CreateFromRequest.g.cs | 26 +- .../IndexManagement/CreateFromResponse.g.cs | 18 +- .../IndexManagement/CreateIndexRequest.g.cs | 20 +- .../IndexManagement/CreateIndexResponse.g.cs | 18 +- .../DataStreamsStatsRequest.g.cs | 19 +- .../DataStreamsStatsResponse.g.cs | 30 +- .../IndexManagement/DeleteAliasRequest.g.cs | 26 +- .../IndexManagement/DeleteAliasResponse.g.cs | 6 +- .../DeleteDataLifecycleRequest.g.cs | 15 +- .../DeleteDataLifecycleResponse.g.cs | 6 +- .../DeleteDataStreamOptionsRequest.g.cs | 15 +- .../DeleteDataStreamOptionsResponse.g.cs | 6 +- .../DeleteDataStreamRequest.g.cs | 15 +- .../DeleteDataStreamResponse.g.cs | 6 +- .../IndexManagement/DeleteIndexRequest.g.cs | 20 +- .../IndexManagement/DeleteIndexResponse.g.cs | 6 +- .../DeleteIndexTemplateRequest.g.cs | 15 +- .../DeleteIndexTemplateResponse.g.cs | 6 +- .../DeleteSampleConfigurationRequest.g.cs | 20 +- .../DeleteSampleConfigurationResponse.g.cs | 6 +- .../DeleteTemplateRequest.g.cs | 15 +- .../DeleteTemplateResponse.g.cs | 6 +- .../Api/IndexManagement/DiskUsageRequest.g.cs | 20 +- .../IndexManagement/DiskUsageResponse.g.cs | 6 +- .../IndexManagement/DownsampleRequest.g.cs | 32 +- .../IndexManagement/DownsampleResponse.g.cs | 6 +- .../IndexManagement/ExistsAliasRequest.g.cs | 20 +- .../ExistsIndexTemplateRequest.g.cs | 15 +- .../Api/IndexManagement/ExistsRequest.g.cs | 20 +- .../ExistsTemplateRequest.g.cs | 15 +- .../ExplainDataLifecycleRequest.g.cs | 20 +- .../ExplainDataLifecycleResponse.g.cs | 6 +- .../FieldUsageStatsRequest.g.cs | 20 +- .../FieldUsageStatsResponse.g.cs | 6 +- .../Api/IndexManagement/FlushRequest.g.cs | 19 +- .../IndexManagement/ForcemergeRequest.g.cs | 19 +- .../Api/IndexManagement/GetAliasRequest.g.cs | 19 +- .../GetAllSampleConfigurationRequest.g.cs | 13 +- .../GetAllSampleConfigurationResponse.g.cs | 6 +- .../GetDataLifecycleRequest.g.cs | 15 +- .../GetDataLifecycleResponse.g.cs | 6 +- .../GetDataLifecycleStatsRequest.g.cs | 13 +- .../GetDataLifecycleStatsResponse.g.cs | 12 +- .../GetDataStreamMappingsRequest.g.cs | 20 +- .../GetDataStreamMappingsResponse.g.cs | 6 +- .../GetDataStreamOptionsRequest.g.cs | 15 +- .../GetDataStreamOptionsResponse.g.cs | 6 +- .../IndexManagement/GetDataStreamRequest.g.cs | 14 +- .../GetDataStreamResponse.g.cs | 6 +- .../GetDataStreamSettingsRequest.g.cs | 20 +- .../GetDataStreamSettingsResponse.g.cs | 6 +- .../GetFieldMappingRequest.g.cs | 20 +- .../GetFieldMappingResponse.g.cs | 6 +- .../Api/IndexManagement/GetIndexRequest.g.cs | 20 +- .../Api/IndexManagement/GetIndexResponse.g.cs | 6 +- .../GetIndexTemplateRequest.g.cs | 14 +- .../GetIndexTemplateResponse.g.cs | 6 +- .../GetIndicesSettingsRequest.g.cs | 19 +- .../GetIndicesSettingsResponse.g.cs | 6 +- .../IndexManagement/GetMappingRequest.g.cs | 19 +- .../IndexManagement/GetMappingResponse.g.cs | 6 +- .../GetMigrateReindexStatusRequest.g.cs | 20 +- .../GetMigrateReindexStatusResponse.g.cs | 48 +-- .../GetSampleConfigurationRequest.g.cs | 20 +- .../GetSampleConfigurationResponse.g.cs | 12 +- .../Api/IndexManagement/GetSampleRequest.g.cs | 20 +- .../IndexManagement/GetSampleResponse.g.cs | 6 +- .../GetSampleStatsRequest.g.cs | 20 +- .../GetSampleStatsResponse.g.cs | 60 +-- .../IndexManagement/GetTemplateRequest.g.cs | 14 +- .../IndexManagement/GetTemplateResponse.g.cs | 6 +- .../IndexManagement/IndicesStatsRequest.g.cs | 19 +- .../IndexManagement/IndicesStatsResponse.g.cs | 12 +- .../MigrateReindexRequest.g.cs | 21 +- .../MigrateReindexResponse.g.cs | 6 +- .../MigrateToDataStreamRequest.g.cs | 20 +- .../MigrateToDataStreamResponse.g.cs | 6 +- .../ModifyDataStreamRequest.g.cs | 21 +- .../ModifyDataStreamResponse.g.cs | 6 +- .../Api/IndexManagement/OpenIndexRequest.g.cs | 20 +- .../IndexManagement/OpenIndexResponse.g.cs | 12 +- .../PromoteDataStreamRequest.g.cs | 20 +- .../PromoteDataStreamResponse.g.cs | 6 +- .../Api/IndexManagement/PutAliasRequest.g.cs | 26 +- .../Api/IndexManagement/PutAliasResponse.g.cs | 6 +- .../PutDataLifecycleRequest.g.cs | 15 +- .../PutDataLifecycleResponse.g.cs | 6 +- .../PutDataStreamMappingsRequest.g.cs | 26 +- .../PutDataStreamMappingsResponse.g.cs | 6 +- .../PutDataStreamOptionsRequest.g.cs | 15 +- .../PutDataStreamOptionsResponse.g.cs | 6 +- .../PutDataStreamSettingsRequest.g.cs | 26 +- .../PutDataStreamSettingsResponse.g.cs | 6 +- .../PutIndexTemplateRequest.g.cs | 20 +- .../PutIndexTemplateResponse.g.cs | 6 +- .../PutIndicesSettingsRequest.g.cs | 26 +- .../PutIndicesSettingsResponse.g.cs | 6 +- .../IndexManagement/PutMappingRequest.g.cs | 20 +- .../IndexManagement/PutMappingResponse.g.cs | 6 +- .../PutSampleConfigurationRequest.g.cs | 26 +- .../PutSampleConfigurationResponse.g.cs | 6 +- .../IndexManagement/PutTemplateRequest.g.cs | 20 +- .../IndexManagement/PutTemplateResponse.g.cs | 6 +- .../Api/IndexManagement/RecoveryRequest.g.cs | 19 +- .../Api/IndexManagement/RecoveryResponse.g.cs | 6 +- .../Api/IndexManagement/RefreshRequest.g.cs | 19 +- .../ReloadSearchAnalyzersRequest.g.cs | 20 +- .../ReloadSearchAnalyzersResponse.g.cs | 12 +- .../IndexManagement/RemoveBlockRequest.g.cs | 26 +- .../IndexManagement/RemoveBlockResponse.g.cs | 12 +- .../ResolveClusterRequest.g.cs | 14 +- .../ResolveClusterResponse.g.cs | 6 +- .../ResolveIndexRequest.Converters.g.cs | 10 + .../IndexManagement/ResolveIndexRequest.g.cs | 51 ++- .../IndexManagement/ResolveIndexResponse.g.cs | 18 +- .../Api/IndexManagement/RolloverRequest.g.cs | 20 +- .../Api/IndexManagement/RolloverResponse.g.cs | 42 +- .../Api/IndexManagement/SegmentsRequest.g.cs | 19 +- .../Api/IndexManagement/SegmentsResponse.g.cs | 12 +- .../IndexManagement/ShardStoresRequest.g.cs | 19 +- .../IndexManagement/ShardStoresResponse.g.cs | 6 +- .../IndexManagement/ShrinkIndexRequest.g.cs | 26 +- .../IndexManagement/ShrinkIndexResponse.g.cs | 18 +- .../SimulateIndexTemplateRequest.g.cs | 20 +- .../SimulateIndexTemplateResponse.g.cs | 6 +- .../SimulateTemplateRequest.g.cs | 19 +- .../SimulateTemplateResponse.g.cs | 6 +- .../IndexManagement/SplitIndexRequest.g.cs | 26 +- .../IndexManagement/SplitIndexResponse.g.cs | 18 +- .../IndexManagement/UpdateAliasesRequest.g.cs | 18 +- .../UpdateAliasesResponse.g.cs | 6 +- .../IndexManagement/ValidateQueryRequest.g.cs | 19 +- .../ValidateQueryResponse.g.cs | 6 +- .../_Generated/Api/IndexRequest.g.cs | 21 +- .../_Generated/Api/IndexResponse.g.cs | 30 +- .../ChatCompletionUnifiedRequest.g.cs | 29 +- .../Api/Inference/CompletionRequest.g.cs | 21 +- .../Api/Inference/CompletionResponse.g.cs | 6 +- .../Api/Inference/DeleteInferenceRequest.g.cs | 15 +- .../Inference/DeleteInferenceResponse.g.cs | 12 +- .../Api/Inference/GetInferenceRequest.g.cs | 14 +- .../Api/Inference/GetInferenceResponse.g.cs | 6 +- .../Api/Inference/InferenceRequest.g.cs | 21 +- .../Api/Inference/InferenceResponse.g.cs | 6 +- .../Api/Inference/PutAi21Request.g.cs | 27 +- .../Api/Inference/PutAi21Response.g.cs | 24 +- .../Api/Inference/PutAlibabacloudRequest.g.cs | 27 +- .../Inference/PutAlibabacloudResponse.g.cs | 24 +- .../Inference/PutAmazonbedrockRequest.g.cs | 27 +- .../Inference/PutAmazonbedrockResponse.g.cs | 24 +- .../Inference/PutAmazonsagemakerRequest.g.cs | 27 +- .../Inference/PutAmazonsagemakerResponse.g.cs | 24 +- .../Api/Inference/PutAnthropicRequest.g.cs | 27 +- .../Api/Inference/PutAnthropicResponse.g.cs | 24 +- .../Inference/PutAzureaistudioRequest.g.cs | 27 +- .../Inference/PutAzureaistudioResponse.g.cs | 24 +- .../Api/Inference/PutAzureopenaiRequest.g.cs | 35 +- .../Api/Inference/PutAzureopenaiResponse.g.cs | 24 +- .../Api/Inference/PutCohereRequest.g.cs | 27 +- .../Api/Inference/PutCohereResponse.g.cs | 24 +- .../Api/Inference/PutContextualaiRequest.g.cs | 27 +- .../Inference/PutContextualaiResponse.g.cs | 24 +- .../Api/Inference/PutCustomRequest.g.cs | 27 +- .../Api/Inference/PutCustomResponse.g.cs | 24 +- .../Api/Inference/PutDeepseekRequest.g.cs | 27 +- .../Api/Inference/PutDeepseekResponse.g.cs | 24 +- .../Inference/PutElasticsearchRequest.g.cs | 27 +- .../Inference/PutElasticsearchResponse.g.cs | 24 +- .../Api/Inference/PutElserRequest.g.cs | 27 +- .../Api/Inference/PutElserResponse.g.cs | 24 +- .../Inference/PutGoogleaistudioRequest.g.cs | 27 +- .../Inference/PutGoogleaistudioResponse.g.cs | 24 +- .../Inference/PutGooglevertexaiRequest.g.cs | 27 +- .../Inference/PutGooglevertexaiResponse.g.cs | 24 +- .../Inference/PutGroqRequest.Converters.g.cs | 71 ++++ .../Api/Inference/PutGroqRequest.g.cs | 256 +++++++++++++ .../Inference/PutGroqResponse.Converters.g.cs | 108 ++++++ .../Api/Inference/PutGroqResponse.g.cs | 83 ++++ .../Api/Inference/PutHuggingFaceRequest.g.cs | 27 +- .../Api/Inference/PutHuggingFaceResponse.g.cs | 24 +- .../Api/Inference/PutInferenceRequest.g.cs | 49 ++- .../Api/Inference/PutInferenceResponse.g.cs | 24 +- .../Api/Inference/PutJinaaiRequest.g.cs | 27 +- .../Api/Inference/PutJinaaiResponse.g.cs | 24 +- .../Api/Inference/PutLlamaRequest.g.cs | 27 +- .../Api/Inference/PutLlamaResponse.g.cs | 24 +- .../Api/Inference/PutMistralRequest.g.cs | 27 +- .../Api/Inference/PutMistralResponse.g.cs | 24 +- .../PutNvidiaRequest.Converters.g.cs | 89 +++++ .../Api/Inference/PutNvidiaRequest.g.cs | 358 ++++++++++++++++++ .../PutNvidiaResponse.Converters.g.cs | 108 ++++++ .../Api/Inference/PutNvidiaResponse.g.cs | 83 ++++ .../Api/Inference/PutOpenaiRequest.g.cs | 27 +- .../Api/Inference/PutOpenaiResponse.g.cs | 24 +- .../Api/Inference/PutOpenshiftAiRequest.g.cs | 27 +- .../Api/Inference/PutOpenshiftAiResponse.g.cs | 24 +- .../Api/Inference/PutVoyageaiRequest.g.cs | 27 +- .../Api/Inference/PutVoyageaiResponse.g.cs | 24 +- .../Api/Inference/PutWatsonxRequest.g.cs | 27 +- .../Api/Inference/PutWatsonxResponse.g.cs | 24 +- .../Api/Inference/RerankRequest.g.cs | 27 +- .../Api/Inference/RerankResponse.g.cs | 6 +- .../Api/Inference/SparseEmbeddingRequest.g.cs | 21 +- .../Inference/SparseEmbeddingResponse.g.cs | 6 +- .../Inference/StreamCompletionRequest.g.cs | 21 +- .../Api/Inference/TextEmbeddingRequest.g.cs | 21 +- .../Api/Inference/TextEmbeddingResponse.g.cs | 6 +- .../Api/Inference/UpdateInferenceRequest.g.cs | 21 +- .../Inference/UpdateInferenceResponse.g.cs | 24 +- .../_Generated/Api/InfoRequest.g.cs | 13 +- .../_Generated/Api/InfoResponse.g.cs | 30 +- .../Ingest/DeleteGeoipDatabaseRequest.g.cs | 15 +- .../Ingest/DeleteGeoipDatabaseResponse.g.cs | 6 +- .../DeleteIpLocationDatabaseRequest.g.cs | 15 +- .../DeleteIpLocationDatabaseResponse.g.cs | 6 +- .../Api/Ingest/DeletePipelineRequest.g.cs | 15 +- .../Api/Ingest/DeletePipelineResponse.g.cs | 6 +- .../Api/Ingest/GeoIpStatsRequest.g.cs | 13 +- .../Api/Ingest/GeoIpStatsResponse.g.cs | 12 +- .../Api/Ingest/GetGeoipDatabaseRequest.g.cs | 14 +- .../Api/Ingest/GetGeoipDatabaseResponse.g.cs | 6 +- .../Ingest/GetIpLocationDatabaseRequest.g.cs | 14 +- .../Ingest/GetIpLocationDatabaseResponse.g.cs | 6 +- .../Api/Ingest/GetPipelineRequest.g.cs | 14 +- .../Api/Ingest/GetPipelineResponse.g.cs | 6 +- .../Api/Ingest/ProcessorGrokRequest.g.cs | 13 +- .../Api/Ingest/ProcessorGrokResponse.g.cs | 6 +- .../Api/Ingest/PutGeoipDatabaseRequest.g.cs | 27 +- .../Api/Ingest/PutGeoipDatabaseResponse.g.cs | 6 +- .../Ingest/PutIpLocationDatabaseRequest.g.cs | 21 +- .../Ingest/PutIpLocationDatabaseResponse.g.cs | 6 +- .../Api/Ingest/PutPipelineRequest.g.cs | 20 +- .../Api/Ingest/PutPipelineResponse.g.cs | 6 +- .../Api/Ingest/SimulateRequest.g.cs | 26 +- .../Api/Ingest/SimulateResponse.g.cs | 6 +- .../DeleteLicenseRequest.g.cs | 13 +- .../DeleteLicenseResponse.g.cs | 6 +- .../GetBasicStatusRequest.g.cs | 13 +- .../GetBasicStatusResponse.g.cs | 6 +- .../LicenseManagement/GetLicenseRequest.g.cs | 13 +- .../LicenseManagement/GetLicenseResponse.g.cs | 6 +- .../GetTrialStatusRequest.g.cs | 13 +- .../GetTrialStatusResponse.g.cs | 6 +- .../Api/LicenseManagement/PostRequest.g.cs | 13 +- .../Api/LicenseManagement/PostResponse.g.cs | 12 +- .../PostStartBasicRequest.g.cs | 13 +- .../PostStartBasicResponse.g.cs | 12 +- .../PostStartTrialRequest.g.cs | 13 +- .../PostStartTrialResponse.g.cs | 12 +- ...earTrainedModelDeploymentCacheRequest.g.cs | 15 +- ...arTrainedModelDeploymentCacheResponse.g.cs | 6 +- .../Api/MachineLearning/CloseJobRequest.g.cs | 15 +- .../Api/MachineLearning/CloseJobResponse.g.cs | 6 +- .../DeleteCalendarEventRequest.g.cs | 21 +- .../DeleteCalendarEventResponse.g.cs | 6 +- .../DeleteCalendarJobRequest.g.cs | 21 +- .../DeleteCalendarJobResponse.g.cs | 12 +- .../DeleteCalendarRequest.g.cs | 15 +- .../DeleteCalendarResponse.g.cs | 6 +- .../DeleteDataFrameAnalyticsRequest.g.cs | 15 +- .../DeleteDataFrameAnalyticsResponse.g.cs | 6 +- .../DeleteDatafeedRequest.g.cs | 15 +- .../DeleteDatafeedResponse.g.cs | 6 +- .../DeleteExpiredDataRequest.g.cs | 14 +- .../DeleteExpiredDataResponse.g.cs | 6 +- .../MachineLearning/DeleteFilterRequest.g.cs | 15 +- .../MachineLearning/DeleteFilterResponse.g.cs | 6 +- .../DeleteForecastRequest.g.cs | 15 +- .../DeleteForecastResponse.g.cs | 6 +- .../Api/MachineLearning/DeleteJobRequest.g.cs | 15 +- .../MachineLearning/DeleteJobResponse.g.cs | 6 +- .../DeleteModelSnapshotRequest.g.cs | 21 +- .../DeleteModelSnapshotResponse.g.cs | 6 +- .../DeleteTrainedModelAliasRequest.g.cs | 21 +- .../DeleteTrainedModelAliasResponse.g.cs | 6 +- .../DeleteTrainedModelRequest.g.cs | 15 +- .../DeleteTrainedModelResponse.g.cs | 6 +- .../EstimateModelMemoryRequest.g.cs | 18 +- .../EstimateModelMemoryResponse.g.cs | 6 +- .../EvaluateDataFrameRequest.g.cs | 32 +- .../ExplainDataFrameAnalyticsRequest.g.cs | 19 +- .../ExplainDataFrameAnalyticsResponse.g.cs | 12 +- .../Api/MachineLearning/FlushJobRequest.g.cs | 15 +- .../Api/MachineLearning/FlushJobResponse.g.cs | 6 +- .../Api/MachineLearning/ForecastRequest.g.cs | 15 +- .../Api/MachineLearning/ForecastResponse.g.cs | 12 +- .../MachineLearning/GetBucketsRequest.g.cs | 20 +- .../MachineLearning/GetBucketsResponse.g.cs | 12 +- .../GetCalendarEventsRequest.g.cs | 15 +- .../GetCalendarEventsResponse.g.cs | 12 +- .../MachineLearning/GetCalendarsRequest.g.cs | 14 +- .../MachineLearning/GetCalendarsResponse.g.cs | 12 +- .../MachineLearning/GetCategoriesRequest.g.cs | 15 +- .../GetCategoriesResponse.g.cs | 12 +- .../GetDataFrameAnalyticsRequest.g.cs | 14 +- .../GetDataFrameAnalyticsResponse.g.cs | 12 +- .../GetDataFrameAnalyticsStatsRequest.g.cs | 14 +- .../GetDataFrameAnalyticsStatsResponse.g.cs | 12 +- .../GetDatafeedStatsRequest.g.cs | 14 +- .../GetDatafeedStatsResponse.g.cs | 12 +- .../MachineLearning/GetDatafeedsRequest.g.cs | 14 +- .../MachineLearning/GetDatafeedsResponse.g.cs | 12 +- .../MachineLearning/GetFiltersRequest.g.cs | 14 +- .../MachineLearning/GetFiltersResponse.g.cs | 12 +- .../GetInfluencersRequest.g.cs | 20 +- .../GetInfluencersResponse.g.cs | 12 +- .../MachineLearning/GetJobStatsRequest.g.cs | 14 +- .../MachineLearning/GetJobStatsResponse.g.cs | 12 +- .../Api/MachineLearning/GetJobsRequest.g.cs | 14 +- .../Api/MachineLearning/GetJobsResponse.g.cs | 12 +- .../GetMemoryStatsRequest.g.cs | 14 +- .../GetMemoryStatsResponse.g.cs | 18 +- .../GetModelSnapshotUpgradeStatsRequest.g.cs | 21 +- .../GetModelSnapshotUpgradeStatsResponse.g.cs | 12 +- .../GetModelSnapshotsRequest.g.cs | 20 +- .../GetModelSnapshotsResponse.g.cs | 12 +- .../GetOverallBucketsRequest.g.cs | 15 +- .../GetOverallBucketsResponse.g.cs | 12 +- .../MachineLearning/GetRecordsRequest.g.cs | 20 +- .../MachineLearning/GetRecordsResponse.g.cs | 12 +- .../GetTrainedModelsRequest.g.cs | 14 +- .../GetTrainedModelsResponse.g.cs | 12 +- .../GetTrainedModelsStatsRequest.g.cs | 14 +- .../GetTrainedModelsStatsResponse.g.cs | 12 +- .../InferTrainedModelRequest.g.cs | 26 +- .../InferTrainedModelResponse.g.cs | 6 +- .../Api/MachineLearning/MlInfoRequest.g.cs | 13 +- .../Api/MachineLearning/MlInfoResponse.g.cs | 24 +- .../Api/MachineLearning/OpenJobRequest.g.cs | 15 +- .../Api/MachineLearning/OpenJobResponse.g.cs | 12 +- .../PostCalendarEventsRequest.g.cs | 21 +- .../PostCalendarEventsResponse.g.cs | 6 +- .../PreviewDataFrameAnalyticsRequest.g.cs | 19 +- .../PreviewDataFrameAnalyticsResponse.g.cs | 6 +- .../PutCalendarJobRequest.g.cs | 21 +- .../PutCalendarJobResponse.g.cs | 12 +- .../MachineLearning/PutCalendarRequest.g.cs | 15 +- .../MachineLearning/PutCalendarResponse.g.cs | 12 +- .../PutDataFrameAnalyticsRequest.g.cs | 38 +- .../PutDataFrameAnalyticsResponse.g.cs | 54 +-- .../MachineLearning/PutDatafeedRequest.g.cs | 20 +- .../MachineLearning/PutDatafeedResponse.g.cs | 42 +- .../Api/MachineLearning/PutFilterRequest.g.cs | 15 +- .../MachineLearning/PutFilterResponse.g.cs | 18 +- .../Api/MachineLearning/PutJobRequest.g.cs | 32 +- .../Api/MachineLearning/PutJobResponse.g.cs | 66 +--- .../PutTrainedModelAliasRequest.g.cs | 21 +- .../PutTrainedModelAliasResponse.g.cs | 6 +- .../PutTrainedModelDefinitionPartRequest.g.cs | 39 +- ...PutTrainedModelDefinitionPartResponse.g.cs | 6 +- .../PutTrainedModelRequest.g.cs | 20 +- .../PutTrainedModelResponse.g.cs | 18 +- .../PutTrainedModelVocabularyRequest.g.cs | 21 +- .../PutTrainedModelVocabularyResponse.g.cs | 6 +- .../Api/MachineLearning/ResetJobRequest.g.cs | 15 +- .../Api/MachineLearning/ResetJobResponse.g.cs | 6 +- .../RevertModelSnapshotRequest.g.cs | 21 +- .../RevertModelSnapshotResponse.g.cs | 6 +- .../SetUpgradeModeRequest.g.cs | 13 +- .../SetUpgradeModeResponse.g.cs | 6 +- .../StartDataFrameAnalyticsRequest.g.cs | 15 +- .../StartDataFrameAnalyticsResponse.g.cs | 12 +- .../MachineLearning/StartDatafeedRequest.g.cs | 15 +- .../StartDatafeedResponse.g.cs | 12 +- .../StartTrainedModelDeploymentRequest.g.cs | 15 +- .../StartTrainedModelDeploymentResponse.g.cs | 6 +- .../StopDataFrameAnalyticsRequest.g.cs | 15 +- .../StopDataFrameAnalyticsResponse.g.cs | 6 +- .../MachineLearning/StopDatafeedRequest.g.cs | 15 +- .../MachineLearning/StopDatafeedResponse.g.cs | 6 +- .../StopTrainedModelDeploymentRequest.g.cs | 15 +- .../StopTrainedModelDeploymentResponse.g.cs | 6 +- .../UpdateDataFrameAnalyticsRequest.g.cs | 15 +- .../UpdateDataFrameAnalyticsResponse.g.cs | 54 +-- .../UpdateDatafeedRequest.g.cs | 20 +- .../UpdateDatafeedResponse.g.cs | 42 +- .../MachineLearning/UpdateFilterRequest.g.cs | 15 +- .../MachineLearning/UpdateFilterResponse.g.cs | 18 +- .../Api/MachineLearning/UpdateJobRequest.g.cs | 20 +- .../MachineLearning/UpdateJobResponse.g.cs | 66 +--- .../UpdateModelSnapshotRequest.g.cs | 21 +- .../UpdateModelSnapshotResponse.g.cs | 12 +- .../UpdateTrainedModelDeploymentRequest.g.cs | 15 +- .../UpdateTrainedModelDeploymentResponse.g.cs | 6 +- .../UpgradeJobSnapshotRequest.g.cs | 21 +- .../UpgradeJobSnapshotResponse.g.cs | 12 +- .../ValidateDetectorRequest.g.cs | 26 +- .../ValidateDetectorResponse.g.cs | 6 +- .../Api/MachineLearning/ValidateRequest.g.cs | 18 +- .../Api/MachineLearning/ValidateResponse.g.cs | 6 +- .../_Generated/Api/MultiGetRequest.g.cs | 19 +- .../_Generated/Api/MultiGetResponse.g.cs | 6 +- .../_Generated/Api/MultiSearchRequest.g.cs | 86 ++++- .../_Generated/Api/MultiSearchResponse.g.cs | 12 +- .../Api/MultiSearchTemplateRequest.g.cs | 90 ++++- .../Api/MultiSearchTemplateResponse.g.cs | 12 +- .../Api/MultiTermVectorsRequest.g.cs | 19 +- .../Api/MultiTermVectorsResponse.g.cs | 6 +- ...earRepositoriesMeteringArchiveRequest.g.cs | 21 +- ...arRepositoriesMeteringArchiveResponse.g.cs | 12 +- .../GetRepositoriesMeteringInfoRequest.g.cs | 15 +- .../GetRepositoriesMeteringInfoResponse.g.cs | 12 +- .../Api/Nodes/HotThreadsRequest.g.cs | 14 +- .../Api/Nodes/NodesInfoRequest.g.cs | 14 +- .../Api/Nodes/NodesInfoResponse.g.cs | 12 +- .../Api/Nodes/NodesStatsRequest.g.cs | 19 +- .../Api/Nodes/NodesStatsResponse.g.cs | 6 +- .../Api/Nodes/NodesUsageRequest.g.cs | 14 +- .../Api/Nodes/NodesUsageResponse.g.cs | 12 +- .../Nodes/ReloadSecureSettingsRequest.g.cs | 14 +- .../Nodes/ReloadSecureSettingsResponse.g.cs | 12 +- .../OpenPointInTimeRequest.Converters.g.cs | 11 +- .../Api/OpenPointInTimeRequest.g.cs | 70 +++- .../Api/OpenPointInTimeResponse.g.cs | 12 +- .../_Generated/Api/PingRequest.g.cs | 13 +- .../Api/Project/TagsRequest.Converters.g.cs | 53 +++ .../_Generated/Api/Project/TagsRequest.g.cs | 169 +++++++++ .../Api/Project/TagsResponse.Converters.g.cs | 72 ++++ .../_Generated/Api/Project/TagsResponse.g.cs | 42 ++ .../_Generated/Api/PutScriptRequest.g.cs | 21 +- .../_Generated/Api/PutScriptResponse.g.cs | 6 +- .../Api/QueryRules/DeleteRuleRequest.g.cs | 21 +- .../Api/QueryRules/DeleteRuleResponse.g.cs | 6 +- .../Api/QueryRules/DeleteRulesetRequest.g.cs | 15 +- .../Api/QueryRules/DeleteRulesetResponse.g.cs | 6 +- .../Api/QueryRules/GetRuleRequest.g.cs | 21 +- .../Api/QueryRules/GetRuleResponse.g.cs | 24 +- .../Api/QueryRules/GetRulesetRequest.g.cs | 15 +- .../Api/QueryRules/GetRulesetResponse.g.cs | 12 +- .../Api/QueryRules/ListRulesetsRequest.g.cs | 13 +- .../Api/QueryRules/ListRulesetsResponse.g.cs | 12 +- .../Api/QueryRules/PutRuleRequest.g.cs | 39 +- .../Api/QueryRules/PutRuleResponse.g.cs | 6 +- .../Api/QueryRules/PutRulesetRequest.g.cs | 21 +- .../Api/QueryRules/PutRulesetResponse.g.cs | 6 +- .../Api/QueryRules/TestRequest.g.cs | 21 +- .../Api/QueryRules/TestResponse.g.cs | 12 +- .../_Generated/Api/RankEvalRequest.g.cs | 26 +- .../_Generated/Api/RankEvalResponse.g.cs | 18 +- .../_Generated/Api/ReindexRequest.g.cs | 32 +- .../Api/ReindexRethrottleRequest.g.cs | 15 +- .../Api/ReindexRethrottleResponse.g.cs | 6 +- .../Api/RenderSearchTemplateRequest.g.cs | 13 +- .../Api/RenderSearchTemplateResponse.g.cs | 6 +- .../Api/Rollup/DeleteJobRequest.g.cs | 15 +- .../Api/Rollup/DeleteJobResponse.g.cs | 6 +- .../_Generated/Api/Rollup/GetJobsRequest.g.cs | 14 +- .../Api/Rollup/GetJobsResponse.g.cs | 6 +- .../Api/Rollup/GetRollupCapsRequest.g.cs | 14 +- .../Api/Rollup/GetRollupCapsResponse.g.cs | 6 +- .../Api/Rollup/GetRollupIndexCapsRequest.g.cs | 15 +- .../Rollup/GetRollupIndexCapsResponse.g.cs | 6 +- .../_Generated/Api/Rollup/PutJobRequest.g.cs | 50 +-- .../_Generated/Api/Rollup/PutJobResponse.g.cs | 6 +- .../Api/Rollup/RollupSearchRequest.g.cs | 20 +- .../Api/Rollup/RollupSearchResponse.g.cs | 24 +- .../Api/Rollup/StartJobRequest.g.cs | 15 +- .../Api/Rollup/StartJobResponse.g.cs | 6 +- .../_Generated/Api/Rollup/StopJobRequest.g.cs | 15 +- .../Api/Rollup/StopJobResponse.g.cs | 6 +- .../Api/ScriptsPainlessExecuteRequest.g.cs | 18 +- .../Api/ScriptsPainlessExecuteResponse.g.cs | 6 +- .../_Generated/Api/ScrollRequest.g.cs | 21 +- .../_Generated/Api/ScrollResponse.g.cs | 24 +- .../DeleteBehavioralAnalyticsRequest.g.cs | 15 +- .../DeleteBehavioralAnalyticsResponse.g.cs | 6 +- .../DeleteSearchApplicationRequest.g.cs | 15 +- .../DeleteSearchApplicationResponse.g.cs | 6 +- .../GetBehavioralAnalyticsRequest.g.cs | 14 +- .../GetBehavioralAnalyticsResponse.g.cs | 6 +- .../GetSearchApplicationRequest.g.cs | 15 +- .../GetSearchApplicationResponse.g.cs | 18 +- .../Api/SearchApplication/ListRequest.g.cs | 13 +- .../Api/SearchApplication/ListResponse.g.cs | 12 +- .../PostBehavioralAnalyticsEventRequest.g.cs | 27 +- .../PostBehavioralAnalyticsEventResponse.g.cs | 6 +- .../PutBehavioralAnalyticsRequest.g.cs | 15 +- .../PutBehavioralAnalyticsResponse.g.cs | 12 +- .../PutSearchApplicationRequest.g.cs | 21 +- .../PutSearchApplicationResponse.g.cs | 6 +- .../SearchApplication/RenderQueryRequest.g.cs | 15 +- .../SearchApplicationSearchRequest.g.cs | 15 +- .../SearchApplicationSearchResponse.g.cs | 24 +- .../_Generated/Api/SearchMvtRequest.g.cs | 107 ++++-- .../Api/SearchRequest.Converters.g.cs | 9 + .../_Generated/Api/SearchRequest.g.cs | 69 +++- .../_Generated/Api/SearchResponse.g.cs | 24 +- .../_Generated/Api/SearchShardsRequest.g.cs | 19 +- .../_Generated/Api/SearchShardsResponse.g.cs | 18 +- .../_Generated/Api/SearchTemplateRequest.g.cs | 83 +++- .../Api/SearchTemplateResponse.g.cs | 24 +- .../CacheStatsRequest.g.cs | 14 +- .../CacheStatsResponse.g.cs | 6 +- .../ClearCacheRequest.g.cs | 19 +- .../ClearCacheResponse.g.cs | 6 +- .../Api/SearchableSnapshots/MountRequest.g.cs | 27 +- .../SearchableSnapshots/MountResponse.g.cs | 6 +- .../SearchableSnapshotsStatsRequest.g.cs | 19 +- .../SearchableSnapshotsStatsResponse.g.cs | 12 +- .../Security/ActivateUserProfileRequest.g.cs | 21 +- .../Security/ActivateUserProfileResponse.g.cs | 36 +- .../Api/Security/AuthenticateRequest.g.cs | 13 +- .../Api/Security/AuthenticateResponse.g.cs | 42 +- .../Api/Security/BulkDeleteRoleRequest.g.cs | 21 +- .../Api/Security/BulkPutRoleRequest.g.cs | 26 +- .../Security/BulkUpdateApiKeysRequest.g.cs | 26 +- .../Security/BulkUpdateApiKeysResponse.g.cs | 12 +- .../Api/Security/ChangePasswordRequest.g.cs | 14 +- .../Api/Security/ClearApiKeyCacheRequest.g.cs | 15 +- .../Security/ClearApiKeyCacheResponse.g.cs | 18 +- .../ClearCachedPrivilegesRequest.g.cs | 15 +- .../ClearCachedPrivilegesResponse.g.cs | 18 +- .../Security/ClearCachedRealmsRequest.g.cs | 15 +- .../Security/ClearCachedRealmsResponse.g.cs | 18 +- .../Api/Security/ClearCachedRolesRequest.g.cs | 15 +- .../Security/ClearCachedRolesResponse.g.cs | 18 +- .../ClearCachedServiceTokensRequest.g.cs | 27 +- .../ClearCachedServiceTokensResponse.g.cs | 18 +- .../Api/Security/CreateApiKeyRequest.g.cs | 18 +- .../Api/Security/CreateApiKeyResponse.g.cs | 24 +- .../CreateCrossClusterApiKeyRequest.g.cs | 32 +- .../CreateCrossClusterApiKeyResponse.g.cs | 24 +- .../Security/CreateServiceTokenRequest.g.cs | 21 +- .../Security/CreateServiceTokenResponse.g.cs | 12 +- .../Api/Security/DelegatePkiRequest.g.cs | 21 +- .../Api/Security/DelegatePkiResponse.g.cs | 18 +- .../Api/Security/DeletePrivilegesRequest.g.cs | 21 +- .../Security/DeletePrivilegesResponse.g.cs | 6 +- .../Security/DeleteRoleMappingRequest.g.cs | 15 +- .../Security/DeleteRoleMappingResponse.g.cs | 6 +- .../Api/Security/DeleteRoleRequest.g.cs | 15 +- .../Api/Security/DeleteRoleResponse.g.cs | 6 +- .../Security/DeleteServiceTokenRequest.g.cs | 27 +- .../Security/DeleteServiceTokenResponse.g.cs | 6 +- .../Api/Security/DeleteUserRequest.g.cs | 15 +- .../Api/Security/DeleteUserResponse.g.cs | 6 +- .../Security/DisableUserProfileRequest.g.cs | 15 +- .../Security/DisableUserProfileResponse.g.cs | 6 +- .../Api/Security/DisableUserRequest.g.cs | 15 +- .../Security/EnableUserProfileRequest.g.cs | 15 +- .../Security/EnableUserProfileResponse.g.cs | 6 +- .../Api/Security/EnableUserRequest.g.cs | 15 +- .../Api/Security/EnrollKibanaRequest.g.cs | 13 +- .../Api/Security/EnrollKibanaResponse.g.cs | 12 +- .../Api/Security/EnrollNodeRequest.g.cs | 13 +- .../Api/Security/EnrollNodeResponse.g.cs | 36 +- .../Api/Security/GetApiKeyRequest.g.cs | 13 +- .../Api/Security/GetApiKeyResponse.g.cs | 6 +- .../Security/GetBuiltinPrivilegesRequest.g.cs | 13 +- ...tBuiltinPrivilegesResponse.Converters.g.cs | 6 +- .../GetBuiltinPrivilegesResponse.g.cs | 18 +- .../Api/Security/GetPrivilegesRequest.g.cs | 14 +- .../Api/Security/GetPrivilegesResponse.g.cs | 6 +- .../Api/Security/GetRoleMappingRequest.g.cs | 14 +- .../Api/Security/GetRoleMappingResponse.g.cs | 6 +- .../Api/Security/GetRoleRequest.g.cs | 14 +- .../Api/Security/GetRoleResponse.g.cs | 6 +- .../Security/GetSecuritySettingsRequest.g.cs | 13 +- .../Security/GetSecuritySettingsResponse.g.cs | 18 +- .../Security/GetServiceAccountsRequest.g.cs | 14 +- .../Security/GetServiceAccountsResponse.g.cs | 6 +- .../GetServiceCredentialsRequest.g.cs | 21 +- .../GetServiceCredentialsResponse.g.cs | 24 +- .../Api/Security/GetStatsRequest.g.cs | 13 +- .../Api/Security/GetStatsResponse.g.cs | 6 +- .../Api/Security/GetTokenRequest.g.cs | 13 +- .../Api/Security/GetTokenResponse.g.cs | 24 +- .../Security/GetUserPrivilegesRequest.g.cs | 13 +- .../Security/GetUserPrivilegesResponse.g.cs | 30 +- .../Api/Security/GetUserProfileRequest.g.cs | 15 +- .../Api/Security/GetUserProfileResponse.g.cs | 6 +- .../Api/Security/GetUserRequest.g.cs | 14 +- .../Api/Security/GetUserResponse.g.cs | 6 +- .../Api/Security/GrantApiKeyRequest.g.cs | 32 +- .../Api/Security/GrantApiKeyResponse.g.cs | 24 +- .../Api/Security/HasPrivilegesRequest.g.cs | 14 +- .../Api/Security/HasPrivilegesResponse.g.cs | 30 +- .../HasPrivilegesUserProfileRequest.g.cs | 27 +- .../HasPrivilegesUserProfileResponse.g.cs | 6 +- .../Api/Security/InvalidateApiKeyRequest.g.cs | 13 +- .../Security/InvalidateApiKeyResponse.g.cs | 18 +- .../Api/Security/InvalidateTokenRequest.g.cs | 13 +- .../Api/Security/InvalidateTokenResponse.g.cs | 18 +- .../Api/Security/OidcAuthenticateRequest.g.cs | 33 +- .../Security/OidcAuthenticateResponse.g.cs | 24 +- .../Api/Security/OidcLogoutRequest.g.cs | 21 +- .../Api/Security/OidcLogoutResponse.g.cs | 6 +- .../OidcPrepareAuthenticationRequest.g.cs | 13 +- .../OidcPrepareAuthenticationResponse.g.cs | 24 +- .../Api/Security/PutPrivilegesRequest.g.cs | 21 +- .../Api/Security/PutPrivilegesResponse.g.cs | 6 +- .../Api/Security/PutRoleMappingRequest.g.cs | 20 +- .../Api/Security/PutRoleMappingResponse.g.cs | 6 +- .../Api/Security/PutRoleRequest.g.cs | 20 +- .../Api/Security/PutRoleResponse.g.cs | 6 +- .../Api/Security/PutUserRequest.g.cs | 15 +- .../Api/Security/PutUserResponse.g.cs | 6 +- .../Api/Security/QueryApiKeysRequest.g.cs | 18 +- .../Api/Security/QueryApiKeysResponse.g.cs | 18 +- .../Api/Security/QueryRoleRequest.g.cs | 18 +- .../Api/Security/QueryRoleResponse.g.cs | 18 +- .../Api/Security/QueryUserRequest.g.cs | 18 +- .../Api/Security/QueryUserResponse.g.cs | 18 +- .../Api/Security/SamlAuthenticateRequest.g.cs | 27 +- .../Security/SamlAuthenticateResponse.g.cs | 30 +- .../Security/SamlCompleteLogoutRequest.g.cs | 27 +- .../Api/Security/SamlInvalidateRequest.g.cs | 21 +- .../Api/Security/SamlInvalidateResponse.g.cs | 18 +- .../Api/Security/SamlLogoutRequest.g.cs | 21 +- .../Api/Security/SamlLogoutResponse.g.cs | 6 +- .../SamlPrepareAuthenticationRequest.g.cs | 13 +- .../SamlPrepareAuthenticationResponse.g.cs | 18 +- .../SamlServiceProviderMetadataRequest.g.cs | 15 +- .../SamlServiceProviderMetadataResponse.g.cs | 6 +- .../Security/SuggestUserProfilesRequest.g.cs | 13 +- .../Security/SuggestUserProfilesResponse.g.cs | 18 +- .../Api/Security/UpdateApiKeyRequest.g.cs | 20 +- .../Api/Security/UpdateApiKeyResponse.g.cs | 6 +- .../UpdateCrossClusterApiKeyRequest.g.cs | 26 +- .../UpdateCrossClusterApiKeyResponse.g.cs | 6 +- .../Api/Security/UpdateSettingsRequest.g.cs | 18 +- .../Api/Security/UpdateSettingsResponse.g.cs | 6 +- .../UpdateUserProfileDataRequest.g.cs | 15 +- .../UpdateUserProfileDataResponse.g.cs | 6 +- .../Api/Simulate/IngestRequest.g.cs | 26 +- .../Api/Simulate/IngestResponse.g.cs | 6 +- .../Snapshot/CleanupRepositoryRequest.g.cs | 15 +- .../Snapshot/CleanupRepositoryResponse.g.cs | 6 +- .../Api/Snapshot/CloneSnapshotRequest.g.cs | 33 +- .../Api/Snapshot/CloneSnapshotResponse.g.cs | 6 +- .../Api/Snapshot/CreateRepositoryRequest.g.cs | 21 +- .../Snapshot/CreateRepositoryResponse.g.cs | 6 +- .../Api/Snapshot/CreateSnapshotRequest.g.cs | 21 +- .../Api/Snapshot/DeleteRepositoryRequest.g.cs | 15 +- .../Snapshot/DeleteRepositoryResponse.g.cs | 6 +- .../Api/Snapshot/DeleteSnapshotRequest.g.cs | 21 +- .../Api/Snapshot/DeleteSnapshotResponse.g.cs | 6 +- .../Api/Snapshot/GetRepositoryRequest.g.cs | 14 +- .../Api/Snapshot/GetRepositoryResponse.g.cs | 6 +- .../Api/Snapshot/GetSnapshotRequest.g.cs | 21 +- .../Api/Snapshot/GetSnapshotResponse.g.cs | 12 +- .../Snapshot/RepositoryAnalyzeRequest.g.cs | 15 +- .../Snapshot/RepositoryAnalyzeResponse.g.cs | 120 +----- .../RepositoryVerifyIntegrityRequest.g.cs | 15 +- .../RepositoryVerifyIntegrityResponse.g.cs | 6 +- .../Api/Snapshot/RestoreRequest.g.cs | 26 +- .../Api/Snapshot/SnapshotStatusRequest.g.cs | 14 +- .../Api/Snapshot/SnapshotStatusResponse.g.cs | 6 +- .../Api/Snapshot/VerifyRepositoryRequest.g.cs | 15 +- .../Snapshot/VerifyRepositoryResponse.g.cs | 6 +- .../DeleteLifecycleRequest.g.cs | 15 +- .../DeleteLifecycleResponse.g.cs | 6 +- .../ExecuteLifecycleRequest.g.cs | 15 +- .../ExecuteLifecycleResponse.g.cs | 6 +- .../ExecuteRetentionRequest.g.cs | 13 +- .../ExecuteRetentionResponse.g.cs | 6 +- .../GetLifecycleRequest.g.cs | 14 +- .../GetLifecycleResponse.g.cs | 6 +- .../GetSlmStatusRequest.g.cs | 13 +- .../GetSlmStatusResponse.g.cs | 6 +- .../GetStatsRequest.g.cs | 13 +- .../GetStatsResponse.g.cs | 60 +-- .../PutLifecycleRequest.g.cs | 15 +- .../PutLifecycleResponse.g.cs | 6 +- .../StartSlmRequest.g.cs | 13 +- .../StartSlmResponse.g.cs | 6 +- .../StopSlmRequest.g.cs | 13 +- .../StopSlmResponse.g.cs | 6 +- .../Api/Sql/ClearCursorRequest.g.cs | 21 +- .../Api/Sql/ClearCursorResponse.g.cs | 6 +- .../Api/Sql/DeleteAsyncRequest.g.cs | 15 +- .../Api/Sql/DeleteAsyncResponse.g.cs | 6 +- .../_Generated/Api/Sql/GetAsyncRequest.g.cs | 15 +- .../_Generated/Api/Sql/GetAsyncResponse.g.cs | 24 +- .../Api/Sql/GetAsyncStatusRequest.g.cs | 15 +- .../Api/Sql/GetAsyncStatusResponse.g.cs | 30 +- .../Api/Sql/QueryRequest.Converters.g.cs | 9 + .../_Generated/Api/Sql/QueryRequest.g.cs | 68 +++- .../_Generated/Api/Sql/QueryResponse.g.cs | 6 +- .../_Generated/Api/Sql/TranslateRequest.g.cs | 26 +- .../Api/Streams/LogsDisableRequest.g.cs | 13 +- .../Api/Streams/LogsDisableResponse.g.cs | 6 +- .../Api/Streams/LogsEnableRequest.g.cs | 13 +- .../Api/Streams/LogsEnableResponse.g.cs | 6 +- .../Api/Streams/StreamsStatusRequest.g.cs | 13 +- .../Api/Streams/StreamsStatusResponse.g.cs | 6 +- .../Api/Synonyms/DeleteSynonymRequest.g.cs | 15 +- .../Api/Synonyms/DeleteSynonymResponse.g.cs | 6 +- .../Synonyms/DeleteSynonymRuleRequest.g.cs | 21 +- .../Synonyms/DeleteSynonymRuleResponse.g.cs | 6 +- .../Api/Synonyms/GetSynonymRequest.g.cs | 15 +- .../Api/Synonyms/GetSynonymResponse.g.cs | 12 +- .../Api/Synonyms/GetSynonymRuleRequest.g.cs | 21 +- .../Api/Synonyms/GetSynonymRuleResponse.g.cs | 12 +- .../Api/Synonyms/GetSynonymsSetsRequest.g.cs | 13 +- .../Api/Synonyms/GetSynonymsSetsResponse.g.cs | 12 +- .../Api/Synonyms/PutSynonymRequest.g.cs | 21 +- .../Api/Synonyms/PutSynonymResponse.g.cs | 6 +- .../Api/Synonyms/PutSynonymRuleRequest.g.cs | 27 +- .../Api/Synonyms/PutSynonymRuleResponse.g.cs | 6 +- .../_Generated/Api/Tasks/CancelRequest.g.cs | 14 +- .../_Generated/Api/Tasks/GetTasksRequest.g.cs | 15 +- .../Api/Tasks/GetTasksResponse.g.cs | 12 +- .../_Generated/Api/Tasks/ListRequest.g.cs | 13 +- .../_Generated/Api/TermVectorsRequest.g.cs | 15 +- .../_Generated/Api/TermVectorsResponse.g.cs | 24 +- .../_Generated/Api/TermsEnumRequest.g.cs | 26 +- .../_Generated/Api/TermsEnumResponse.g.cs | 18 +- .../FindFieldStructureRequest.g.cs | 18 +- .../FindFieldStructureResponse.g.cs | 54 +-- .../FindMessageStructureRequest.g.cs | 26 +- .../FindMessageStructureResponse.g.cs | 54 +-- .../TextStructure/TestGrokPatternRequest.g.cs | 27 +- .../TestGrokPatternResponse.g.cs | 6 +- .../DeleteTransformRequest.g.cs | 15 +- .../DeleteTransformResponse.g.cs | 6 +- .../GetNodeStatsRequest.g.cs | 13 +- .../GetNodeStatsResponse.g.cs | 6 +- .../GetTransformRequest.g.cs | 14 +- .../GetTransformResponse.g.cs | 12 +- .../GetTransformStatsRequest.g.cs | 15 +- .../GetTransformStatsResponse.g.cs | 12 +- .../PreviewTransformRequest.g.cs | 19 +- .../PreviewTransformResponse.g.cs | 12 +- .../PutTransformRequest.g.cs | 32 +- .../PutTransformResponse.g.cs | 6 +- .../ResetTransformRequest.g.cs | 15 +- .../ResetTransformResponse.g.cs | 6 +- .../ScheduleNowTransformRequest.g.cs | 15 +- .../ScheduleNowTransformResponse.g.cs | 6 +- .../SetUpgradeModeRequest.g.cs | 13 +- .../SetUpgradeModeResponse.g.cs | 6 +- .../StartTransformRequest.g.cs | 15 +- .../StartTransformResponse.g.cs | 6 +- .../StopTransformRequest.g.cs | 15 +- .../StopTransformResponse.g.cs | 6 +- .../UpdateTransformRequest.g.cs | 20 +- .../UpdateTransformResponse.g.cs | 42 +- .../UpgradeTransformsRequest.g.cs | 13 +- .../UpgradeTransformsResponse.g.cs | 18 +- .../_Generated/Api/UpdateByQueryRequest.g.cs | 20 +- .../Api/UpdateByQueryRethrottleRequest.g.cs | 15 +- .../Api/UpdateByQueryRethrottleResponse.g.cs | 6 +- .../_Generated/Api/UpdateRequest.g.cs | 21 +- .../_Generated/Api/UpdateResponse.g.cs | 30 +- .../Api/Xpack/XpackInfoRequest.g.cs | 13 +- .../Api/Xpack/XpackInfoResponse.g.cs | 24 +- .../Api/Xpack/XpackUsageRequest.g.cs | 13 +- .../Api/Xpack/XpackUsageResponse.g.cs | 120 +----- .../Client/ElasticsearchClient.Inference.g.cs | 92 +++++ .../Client/ElasticsearchClient.Project.g.cs | 86 +++++ .../Client/ElasticsearchClient.g.cs | 2 + .../AdjacencyMatrixAggregate.g.cs | 16 +- .../AdjacencyMatrixAggregation.g.cs | 8 +- .../Aggregations/AdjacencyMatrixBucket.g.cs | 22 +- .../Types/Aggregations/Aggregation.g.cs | 9 +- .../Types/Aggregations/AggregationRange.g.cs | 8 +- .../AutoDateHistogramAggregate.g.cs | 22 +- .../AutoDateHistogramAggregation.g.cs | 8 +- .../Types/Aggregations/AverageAggregate.g.cs | 16 +- .../Aggregations/AverageAggregation.g.cs | 8 +- .../AverageBucketAggregation.g.cs | 8 +- .../Types/Aggregations/BoxplotAggregate.g.cs | 52 +-- .../Aggregations/BoxplotAggregation.g.cs | 8 +- .../BucketCorrelationAggregation.g.cs | 16 +- .../BucketCorrelationFunction.g.cs | 16 +- ...etCorrelationFunctionCountCorrelation.g.cs | 16 +- ...tionFunctionCountCorrelationIndicator.g.cs | 22 +- .../Aggregations/BucketKsAggregation.g.cs | 8 +- .../BucketMetricValueAggregate.g.cs | 22 +- .../Aggregations/BucketScriptAggregation.g.cs | 8 +- .../BucketSelectorAggregation.g.cs | 8 +- .../Aggregations/BucketSortAggregation.g.cs | 8 +- .../Aggregations/CardinalityAggregate.g.cs | 16 +- .../Aggregations/CardinalityAggregation.g.cs | 8 +- .../CartesianBoundsAggregate.g.cs | 8 +- .../CartesianBoundsAggregation.g.cs | 8 +- .../CartesianCentroidAggregate.g.cs | 16 +- .../CartesianCentroidAggregation.g.cs | 8 +- .../CategorizeTextAggregation.g.cs | 16 +- .../Aggregations/ChangePointAggregate.g.cs | 16 +- .../Aggregations/ChangePointAggregation.g.cs | 8 +- .../Types/Aggregations/ChangePointBucket.g.cs | 22 +- .../Types/Aggregations/ChangeType.g.cs | 9 +- .../Aggregations/ChiSquareHeuristic.g.cs | 22 +- .../Types/Aggregations/ChildrenAggregate.g.cs | 16 +- .../Aggregations/ChildrenAggregation.g.cs | 8 +- .../Aggregations/CompositeAggregate.g.cs | 16 +- .../Aggregations/CompositeAggregation.g.cs | 8 +- .../CompositeAggregationSource.g.cs | 9 +- .../Types/Aggregations/CompositeBucket.g.cs | 22 +- .../CompositeDateHistogramAggregation.g.cs | 8 +- .../CompositeGeoTileGridAggregation.g.cs | 8 +- .../CompositeHistogramAggregation.g.cs | 16 +- .../CompositeTermsAggregation.g.cs | 8 +- .../CumulativeCardinalityAggregate.g.cs | 16 +- .../CumulativeCardinalityAggregation.g.cs | 8 +- .../CumulativeSumAggregation.g.cs | 8 +- .../CustomCategorizeTextAnalyzer.g.cs | 8 +- .../Aggregations/DateHistogramAggregate.g.cs | 16 +- .../DateHistogramAggregation.g.cs | 8 +- .../Aggregations/DateHistogramBucket.g.cs | 22 +- .../Aggregations/DateRangeAggregate.g.cs | 16 +- .../Aggregations/DateRangeAggregation.g.cs | 8 +- .../Aggregations/DateRangeExpression.g.cs | 8 +- .../Aggregations/DerivativeAggregate.g.cs | 16 +- .../Aggregations/DerivativeAggregation.g.cs | 8 +- .../_Generated/Types/Aggregations/Dip.g.cs | 22 +- .../Aggregations/DistributionChange.g.cs | 22 +- .../DiversifiedSamplerAggregation.g.cs | 8 +- .../Aggregations/DoubleTermsAggregate.g.cs | 16 +- .../Types/Aggregations/DoubleTermsBucket.g.cs | 22 +- .../Types/Aggregations/ExtendedBounds.g.cs | 8 +- .../Aggregations/ExtendedStatsAggregate.g.cs | 82 +--- .../ExtendedStatsAggregation.g.cs | 8 +- .../ExtendedStatsBucketAggregate.g.cs | 82 +--- .../ExtendedStatsBucketAggregation.g.cs | 8 +- .../Types/Aggregations/FilterAggregate.g.cs | 16 +- .../Types/Aggregations/FiltersAggregate.g.cs | 16 +- .../Aggregations/FiltersAggregation.g.cs | 8 +- .../Types/Aggregations/FiltersBucket.g.cs | 16 +- .../FrequentItemSetsAggregate.g.cs | 16 +- .../FrequentItemSetsAggregation.g.cs | 16 +- .../Aggregations/FrequentItemSetsBucket.g.cs | 28 +- .../Aggregations/FrequentItemSetsField.g.cs | 16 +- .../Aggregations/GeoBoundsAggregate.g.cs | 8 +- .../Aggregations/GeoBoundsAggregation.g.cs | 8 +- .../Aggregations/GeoCentroidAggregate.g.cs | 16 +- .../Aggregations/GeoCentroidAggregation.g.cs | 8 +- .../Aggregations/GeoDistanceAggregate.g.cs | 16 +- .../Aggregations/GeoDistanceAggregation.g.cs | 8 +- .../Types/Aggregations/GeoLineAggregate.g.cs | 28 +- .../Aggregations/GeoLineAggregation.g.cs | 16 +- .../Types/Aggregations/GeoLinePoint.g.cs | 16 +- .../Types/Aggregations/GeoLineSort.g.cs | 16 +- .../Aggregations/GeohashGridAggregate.g.cs | 16 +- .../Aggregations/GeohashGridAggregation.g.cs | 8 +- .../Types/Aggregations/GeohashGridBucket.g.cs | 22 +- .../Aggregations/GeohexGridAggregate.g.cs | 16 +- .../Aggregations/GeohexGridAggregation.g.cs | 16 +- .../Types/Aggregations/GeohexGridBucket.g.cs | 22 +- .../Aggregations/GeotileGridAggregate.g.cs | 16 +- .../Aggregations/GeotileGridAggregation.g.cs | 8 +- .../Types/Aggregations/GeotileGridBucket.g.cs | 22 +- .../Types/Aggregations/GlobalAggregate.g.cs | 16 +- .../Types/Aggregations/GlobalAggregation.g.cs | 8 +- .../GoogleNormalizedDistanceHeuristic.g.cs | 8 +- .../Types/Aggregations/HdrMethod.g.cs | 8 +- .../HdrPercentileRanksAggregate.g.cs | 16 +- .../Aggregations/HdrPercentilesAggregate.g.cs | 16 +- .../Aggregations/HistogramAggregate.g.cs | 16 +- .../Aggregations/HistogramAggregation.g.cs | 8 +- .../Types/Aggregations/HistogramBucket.g.cs | 22 +- .../Types/Aggregations/Indeterminable.g.cs | 16 +- .../Aggregations/InferenceAggregate.g.cs | 8 +- .../Aggregations/InferenceAggregation.g.cs | 16 +- .../InferenceClassImportance.g.cs | 22 +- .../Types/Aggregations/InferenceConfig.g.cs | 9 +- .../InferenceFeatureImportance.g.cs | 16 +- .../Aggregations/InferenceTopClassEntry.g.cs | 28 +- .../Types/Aggregations/IpPrefixAggregate.g.cs | 16 +- .../Aggregations/IpPrefixAggregation.g.cs | 22 +- .../Types/Aggregations/IpPrefixBucket.g.cs | 34 +- .../Types/Aggregations/IpRangeAggregate.g.cs | 16 +- .../Aggregations/IpRangeAggregation.g.cs | 8 +- .../Aggregations/IpRangeAggregationRange.g.cs | 8 +- .../Types/Aggregations/IpRangeBucket.g.cs | 16 +- .../Aggregations/LongRareTermsAggregate.g.cs | 16 +- .../Aggregations/LongRareTermsBucket.g.cs | 22 +- .../Aggregations/LongTermsAggregate.g.cs | 16 +- .../Types/Aggregations/LongTermsBucket.g.cs | 22 +- .../Aggregations/MatrixStatsAggregate.g.cs | 16 +- .../Aggregations/MatrixStatsAggregation.g.cs | 8 +- .../Types/Aggregations/MatrixStatsFields.g.cs | 58 +-- .../Types/Aggregations/MaxAggregate.g.cs | 16 +- .../Types/Aggregations/MaxAggregation.g.cs | 8 +- .../Aggregations/MaxBucketAggregation.g.cs | 8 +- .../MedianAbsoluteDeviationAggregate.g.cs | 16 +- .../MedianAbsoluteDeviationAggregation.g.cs | 8 +- .../Types/Aggregations/MinAggregate.g.cs | 16 +- .../Types/Aggregations/MinAggregation.g.cs | 8 +- .../Aggregations/MinBucketAggregation.g.cs | 8 +- .../Types/Aggregations/MissingAggregate.g.cs | 16 +- .../Aggregations/MissingAggregation.g.cs | 8 +- .../MovingFunctionAggregation.g.cs | 8 +- .../MovingPercentilesAggregation.g.cs | 8 +- .../Types/Aggregations/MultiTermLookup.g.cs | 16 +- .../Aggregations/MultiTermsAggregate.g.cs | 16 +- .../Aggregations/MultiTermsAggregation.g.cs | 16 +- .../Types/Aggregations/MultiTermsBucket.g.cs | 22 +- .../MutualInformationHeuristic.g.cs | 8 +- .../Types/Aggregations/NestedAggregate.g.cs | 16 +- .../Types/Aggregations/NestedAggregation.g.cs | 8 +- .../Types/Aggregations/NonStationary.g.cs | 28 +- .../Aggregations/NormalizeAggregation.g.cs | 8 +- .../Types/Aggregations/PValueHeuristic.g.cs | 8 +- .../Types/Aggregations/ParentAggregate.g.cs | 16 +- .../Types/Aggregations/ParentAggregation.g.cs | 8 +- .../PercentageScoreHeuristic.g.cs | 8 +- .../PercentileRanksAggregation.g.cs | 8 +- .../Aggregations/PercentilesAggregation.g.cs | 8 +- .../PercentilesBucketAggregate.g.cs | 16 +- .../PercentilesBucketAggregation.g.cs | 8 +- .../Types/Aggregations/PercentilesItem.g.cs | 22 +- .../RandomSamplerAggregation.g.cs | 16 +- .../Types/Aggregations/RangeAggregate.g.cs | 16 +- .../Types/Aggregations/RangeAggregation.g.cs | 8 +- .../Types/Aggregations/RangeBucket.g.cs | 16 +- .../Aggregations/RareTermsAggregation.g.cs | 8 +- .../Types/Aggregations/RateAggregate.g.cs | 16 +- .../Types/Aggregations/RateAggregation.g.cs | 8 +- .../Aggregations/ReverseNestedAggregate.g.cs | 16 +- .../ReverseNestedAggregation.g.cs | 8 +- .../Types/Aggregations/SamplerAggregate.g.cs | 16 +- .../Aggregations/SamplerAggregation.g.cs | 8 +- .../Types/Aggregations/ScriptedHeuristic.g.cs | 16 +- .../Aggregations/ScriptedMetricAggregate.g.cs | 16 +- .../ScriptedMetricAggregation.g.cs | 8 +- .../SerialDifferencingAggregation.g.cs | 8 +- .../SignificantLongTermsAggregate.g.cs | 16 +- .../SignificantLongTermsBucket.g.cs | 34 +- .../SignificantStringTermsAggregate.g.cs | 16 +- .../SignificantStringTermsBucket.g.cs | 34 +- .../SignificantTermsAggregation.g.cs | 8 +- .../SignificantTextAggregation.g.cs | 8 +- .../Aggregations/SimpleValueAggregate.g.cs | 16 +- .../_Generated/Types/Aggregations/Spike.g.cs | 22 +- .../Aggregations/StandardDeviationBounds.g.cs | 46 +-- .../StandardDeviationBoundsAsString.g.cs | 46 +-- .../Types/Aggregations/Stationary.g.cs | 8 +- .../Types/Aggregations/StatsAggregate.g.cs | 40 +- .../Types/Aggregations/StatsAggregation.g.cs | 8 +- .../Aggregations/StatsBucketAggregate.g.cs | 40 +- .../Aggregations/StatsBucketAggregation.g.cs | 8 +- .../Types/Aggregations/StepChange.g.cs | 22 +- .../StringRareTermsAggregate.g.cs | 16 +- .../Aggregations/StringRareTermsBucket.g.cs | 22 +- .../Aggregations/StringStatsAggregate.g.cs | 40 +- .../Aggregations/StringStatsAggregation.g.cs | 8 +- .../Aggregations/StringTermsAggregate.g.cs | 16 +- .../Types/Aggregations/StringTermsBucket.g.cs | 22 +- .../Types/Aggregations/SumAggregate.g.cs | 16 +- .../Types/Aggregations/SumAggregation.g.cs | 8 +- .../Aggregations/SumBucketAggregation.g.cs | 8 +- .../Types/Aggregations/TDigest.g.cs | 8 +- .../TDigestPercentileRanksAggregate.g.cs | 16 +- .../TDigestPercentilesAggregate.g.cs | 16 +- .../Types/Aggregations/TTestAggregate.g.cs | 16 +- .../Types/Aggregations/TTestAggregation.g.cs | 8 +- .../Types/Aggregations/TermsAggregation.g.cs | 8 +- .../Types/Aggregations/TermsPartition.g.cs | 22 +- .../Types/Aggregations/TestPopulation.g.cs | 16 +- .../Aggregations/TimeSeriesAggregate.g.cs | 16 +- .../Aggregations/TimeSeriesAggregation.g.cs | 8 +- .../Types/Aggregations/TimeSeriesBucket.g.cs | 22 +- .../Types/Aggregations/TopHitsAggregate.g.cs | 16 +- .../Aggregations/TopHitsAggregation.g.cs | 8 +- .../Types/Aggregations/TopMetrics.g.cs | 22 +- .../Aggregations/TopMetricsAggregate.g.cs | 16 +- .../Aggregations/TopMetricsAggregation.g.cs | 8 +- .../Types/Aggregations/TopMetricsValue.g.cs | 16 +- .../Types/Aggregations/TrendChange.g.cs | 28 +- .../UnmappedRareTermsAggregate.g.cs | 16 +- .../UnmappedSamplerAggregate.g.cs | 16 +- .../UnmappedSignificantTermsAggregate.g.cs | 16 +- .../Aggregations/UnmappedTermsAggregate.g.cs | 16 +- .../Aggregations/ValueCountAggregate.g.cs | 16 +- .../Aggregations/ValueCountAggregation.g.cs | 8 +- .../VariableWidthHistogramAggregate.g.cs | 16 +- .../VariableWidthHistogramAggregation.g.cs | 8 +- .../VariableWidthHistogramBucket.g.cs | 34 +- .../WeightedAverageAggregate.g.cs | 16 +- .../WeightedAverageAggregation.g.cs | 8 +- .../Aggregations/WeightedAverageValue.g.cs | 8 +- .../Types/Analysis/ApostropheTokenFilter.g.cs | 8 +- .../Types/Analysis/ArabicAnalyzer.g.cs | 8 +- .../ArabicNormalizationTokenFilter.g.cs | 8 +- .../Types/Analysis/ArabicStemTokenFilter.g.cs | 8 +- .../Types/Analysis/ArmenianAnalyzer.g.cs | 8 +- .../Analysis/AsciiFoldingTokenFilter.g.cs | 8 +- .../Types/Analysis/BasqueAnalyzer.g.cs | 8 +- .../Types/Analysis/BengaliAnalyzer.g.cs | 8 +- .../BengaliNormalizationTokenFilter.g.cs | 8 +- .../Types/Analysis/BrazilianAnalyzer.g.cs | 8 +- .../Analysis/BrazilianStemTokenFilter.g.cs | 8 +- .../Types/Analysis/BulgarianAnalyzer.g.cs | 8 +- .../Types/Analysis/CatalanAnalyzer.g.cs | 8 +- .../Types/Analysis/CharGroupTokenizer.g.cs | 16 +- .../Types/Analysis/ChineseAnalyzer.g.cs | 8 +- .../Types/Analysis/CjkAnalyzer.g.cs | 8 +- .../Types/Analysis/CjkBigramTokenFilter.g.cs | 8 +- .../Types/Analysis/CjkWidthTokenFilter.g.cs | 8 +- .../Types/Analysis/ClassicTokenFilter.g.cs | 8 +- .../Types/Analysis/ClassicTokenizer.g.cs | 8 +- .../Analysis/CommonGramsTokenFilter.g.cs | 8 +- .../Types/Analysis/ConditionTokenFilter.g.cs | 22 +- .../Types/Analysis/CustomAnalyzer.g.cs | 16 +- .../Types/Analysis/CustomNormalizer.g.cs | 8 +- .../Types/Analysis/CzechAnalyzer.g.cs | 8 +- .../Types/Analysis/CzechStemTokenFilter.g.cs | 8 +- .../Types/Analysis/DanishAnalyzer.g.cs | 8 +- .../Analysis/DecimalDigitTokenFilter.g.cs | 8 +- .../Analysis/DelimitedPayloadTokenFilter.g.cs | 8 +- .../DictionaryDecompounderTokenFilter.g.cs | 8 +- .../Types/Analysis/DutchAnalyzer.g.cs | 8 +- .../Types/Analysis/DutchStemTokenFilter.g.cs | 8 +- .../Types/Analysis/EdgeNGramTokenFilter.g.cs | 8 +- .../Types/Analysis/EdgeNGramTokenizer.g.cs | 8 +- .../Types/Analysis/ElisionTokenFilter.g.cs | 8 +- .../Types/Analysis/EnglishAnalyzer.g.cs | 8 +- .../Types/Analysis/EstonianAnalyzer.g.cs | 8 +- .../Types/Analysis/FingerprintAnalyzer.g.cs | 8 +- .../Analysis/FingerprintTokenFilter.g.cs | 8 +- .../Types/Analysis/FinnishAnalyzer.g.cs | 8 +- .../Analysis/FlattenGraphTokenFilter.g.cs | 8 +- .../Types/Analysis/FrenchAnalyzer.g.cs | 8 +- .../Types/Analysis/FrenchStemTokenFilter.g.cs | 8 +- .../Types/Analysis/GalicianAnalyzer.g.cs | 8 +- .../Types/Analysis/GermanAnalyzer.g.cs | 8 +- .../GermanNormalizationTokenFilter.g.cs | 8 +- .../Types/Analysis/GermanStemTokenFilter.g.cs | 8 +- .../Types/Analysis/GreekAnalyzer.g.cs | 8 +- .../Types/Analysis/HindiAnalyzer.g.cs | 8 +- .../HindiNormalizationTokenFilter.g.cs | 8 +- .../Types/Analysis/HtmlStripCharFilter.g.cs | 8 +- .../Types/Analysis/HungarianAnalyzer.g.cs | 8 +- .../Types/Analysis/HunspellTokenFilter.g.cs | 16 +- .../HyphenationDecompounderTokenFilter.g.cs | 16 +- .../Types/Analysis/IcuAnalyzer.g.cs | 22 +- .../Analysis/IcuCollationTokenFilter.g.cs | 8 +- .../Types/Analysis/IcuFoldingTokenFilter.g.cs | 16 +- .../Analysis/IcuNormalizationCharFilter.g.cs | 8 +- .../Analysis/IcuNormalizationTokenFilter.g.cs | 16 +- .../Types/Analysis/IcuTokenizer.g.cs | 16 +- .../Analysis/IcuTransformTokenFilter.g.cs | 16 +- .../IndicNormalizationTokenFilter.g.cs | 8 +- .../Types/Analysis/IndonesianAnalyzer.g.cs | 8 +- .../Types/Analysis/IrishAnalyzer.g.cs | 8 +- .../Types/Analysis/ItalianAnalyzer.g.cs | 8 +- .../Types/Analysis/JaStopTokenFilter.g.cs | 8 +- .../Types/Analysis/KStemTokenFilter.g.cs | 8 +- .../Types/Analysis/KeepTypesTokenFilter.g.cs | 16 +- .../Types/Analysis/KeepWordsTokenFilter.g.cs | 8 +- .../Types/Analysis/KeywordAnalyzer.g.cs | 8 +- .../Analysis/KeywordMarkerTokenFilter.g.cs | 8 +- .../Analysis/KeywordRepeatTokenFilter.g.cs | 8 +- .../Types/Analysis/KeywordTokenizer.g.cs | 8 +- .../Types/Analysis/KuromojiAnalyzer.g.cs | 8 +- .../KuromojiIterationMarkCharFilter.g.cs | 22 +- .../KuromojiPartOfSpeechTokenFilter.g.cs | 16 +- .../KuromojiReadingFormTokenFilter.g.cs | 16 +- .../Analysis/KuromojiStemmerTokenFilter.g.cs | 16 +- .../Types/Analysis/KuromojiTokenizer.g.cs | 16 +- .../Types/Analysis/LatvianAnalyzer.g.cs | 8 +- .../Types/Analysis/LengthTokenFilter.g.cs | 8 +- .../Types/Analysis/LetterTokenizer.g.cs | 8 +- .../Analysis/LimitTokenCountTokenFilter.g.cs | 8 +- .../Types/Analysis/LithuanianAnalyzer.g.cs | 8 +- .../Types/Analysis/LowercaseNormalizer.g.cs | 8 +- .../Types/Analysis/LowercaseTokenFilter.g.cs | 8 +- .../Types/Analysis/LowercaseTokenizer.g.cs | 8 +- .../Types/Analysis/MappingCharFilter.g.cs | 8 +- .../Types/Analysis/MinHashTokenFilter.g.cs | 8 +- .../Analysis/MultiplexerTokenFilter.g.cs | 16 +- .../Types/Analysis/NGramTokenFilter.g.cs | 8 +- .../Types/Analysis/NGramTokenizer.g.cs | 8 +- .../Types/Analysis/NoriAnalyzer.g.cs | 8 +- .../Analysis/NoriPartOfSpeechTokenFilter.g.cs | 8 +- .../Types/Analysis/NoriTokenizer.g.cs | 8 +- .../Types/Analysis/NorwegianAnalyzer.g.cs | 8 +- .../Analysis/PathHierarchyTokenizer.g.cs | 8 +- .../Types/Analysis/PatternAnalyzer.g.cs | 8 +- .../Analysis/PatternCaptureTokenFilter.g.cs | 16 +- .../Analysis/PatternReplaceCharFilter.g.cs | 16 +- .../Analysis/PatternReplaceTokenFilter.g.cs | 16 +- .../Types/Analysis/PatternTokenizer.g.cs | 8 +- .../Types/Analysis/PersianAnalyzer.g.cs | 8 +- .../PersianNormalizationTokenFilter.g.cs | 8 +- .../Analysis/PersianStemTokenFilter.g.cs | 8 +- .../Types/Analysis/PhoneticTokenFilter.g.cs | 16 +- .../Types/Analysis/PorterStemTokenFilter.g.cs | 8 +- .../Types/Analysis/PortugueseAnalyzer.g.cs | 8 +- .../Types/Analysis/PredicateTokenFilter.g.cs | 16 +- .../Analysis/RemoveDuplicatesTokenFilter.g.cs | 8 +- .../Types/Analysis/ReverseTokenFilter.g.cs | 8 +- .../Types/Analysis/RomanianAnalyzer.g.cs | 8 +- .../Types/Analysis/RussianAnalyzer.g.cs | 8 +- .../Analysis/RussianStemTokenFilter.g.cs | 8 +- .../ScandinavianFoldingTokenFilter.g.cs | 8 +- .../ScandinavianNormalizationTokenFilter.g.cs | 8 +- .../Types/Analysis/SerbianAnalyzer.g.cs | 8 +- .../SerbianNormalizationTokenFilter.g.cs | 8 +- .../Types/Analysis/ShingleTokenFilter.g.cs | 8 +- .../Types/Analysis/SimpleAnalyzer.g.cs | 8 +- .../Analysis/SimplePatternSplitTokenizer.g.cs | 8 +- .../Analysis/SimplePatternTokenizer.g.cs | 8 +- .../Types/Analysis/SnowballAnalyzer.g.cs | 16 +- .../Types/Analysis/SnowballTokenFilter.g.cs | 8 +- .../Types/Analysis/SoraniAnalyzer.g.cs | 8 +- .../SoraniNormalizationTokenFilter.g.cs | 8 +- .../Types/Analysis/SpanishAnalyzer.g.cs | 8 +- .../Types/Analysis/StandardAnalyzer.g.cs | 8 +- .../Types/Analysis/StandardTokenizer.g.cs | 8 +- .../Analysis/StemmerOverrideTokenFilter.g.cs | 8 +- .../Types/Analysis/StemmerTokenFilter.g.cs | 8 +- .../Types/Analysis/StopAnalyzer.g.cs | 8 +- .../Types/Analysis/StopTokenFilter.g.cs | 8 +- .../Types/Analysis/SwedishAnalyzer.g.cs | 8 +- .../Analysis/SynonymGraphTokenFilter.g.cs | 8 +- .../Types/Analysis/SynonymTokenFilter.g.cs | 8 +- .../Types/Analysis/ThaiAnalyzer.g.cs | 8 +- .../Types/Analysis/ThaiTokenizer.g.cs | 8 +- .../Types/Analysis/TrimTokenFilter.g.cs | 8 +- .../Types/Analysis/TruncateTokenFilter.g.cs | 8 +- .../Types/Analysis/TurkishAnalyzer.g.cs | 8 +- .../Types/Analysis/UaxEmailUrlTokenizer.g.cs | 8 +- .../Types/Analysis/UniqueTokenFilter.g.cs | 8 +- .../Types/Analysis/UppercaseTokenFilter.g.cs | 8 +- .../Types/Analysis/WhitespaceAnalyzer.g.cs | 8 +- .../Types/Analysis/WhitespaceTokenizer.g.cs | 8 +- .../WordDelimiterGraphTokenFilter.g.cs | 8 +- .../Analysis/WordDelimiterTokenFilter.g.cs | 8 +- .../Types/AsyncSearch/AsyncSearch.g.cs | 34 +- .../Types/BulkIndexByScrollFailure.g.cs | 34 +- .../_Generated/Types/BulkStats.g.cs | 40 +- .../_Generated/Types/CartesianPoint.g.cs | 22 +- .../_Generated/Types/ChunkRescorer.g.cs | 8 +- .../Types/Cluster/AllocationDecision.g.cs | 28 +- .../Types/Cluster/AllocationStore.g.cs | 46 +-- .../_Generated/Types/Cluster/CCSStats.g.cs | 16 +- .../Types/Cluster/CCSUsageClusterStats.g.cs | 28 +- .../Types/Cluster/CCSUsageStats.g.cs | 70 +--- .../Types/Cluster/CCSUsageTimeValue.g.cs | 28 +- .../Types/Cluster/CharFilterTypes.g.cs | 64 +--- .../Types/Cluster/ClusterFileSystem.g.cs | 8 +- .../Types/Cluster/ClusterIndices.g.cs | 76 +--- .../Types/Cluster/ClusterIndicesShards.g.cs | 8 +- .../Cluster/ClusterIndicesShardsIndex.g.cs | 28 +- .../_Generated/Types/Cluster/ClusterInfo.g.cs | 34 +- .../Types/Cluster/ClusterIngest.g.cs | 22 +- .../_Generated/Types/Cluster/ClusterJvm.g.cs | 34 +- .../Types/Cluster/ClusterJvmMemory.g.cs | 22 +- .../Types/Cluster/ClusterJvmVersion.g.cs | 52 +-- .../Types/Cluster/ClusterNetworkTypes.g.cs | 22 +- .../Types/Cluster/ClusterNodeCount.g.cs | 16 +- .../Types/Cluster/ClusterNodes.g.cs | 82 +--- .../Types/Cluster/ClusterOperatingSystem.g.cs | 40 +- .../ClusterOperatingSystemArchitecture.g.cs | 22 +- .../Cluster/ClusterOperatingSystemName.g.cs | 22 +- .../ClusterOperatingSystemPrettyName.g.cs | 22 +- .../Types/Cluster/ClusterProcess.g.cs | 22 +- .../Types/Cluster/ClusterProcessCpu.g.cs | 16 +- .../ClusterProcessOpenFileDescriptors.g.cs | 28 +- .../Types/Cluster/ClusterProcessor.g.cs | 34 +- .../Types/Cluster/ClusterShardMetrics.g.cs | 28 +- .../Types/Cluster/ClusterSnapshotStats.g.cs | 22 +- .../Types/Cluster/ComponentTemplate.g.cs | 22 +- .../Types/Cluster/ComponentTemplateNode.g.cs | 16 +- .../Cluster/ComponentTemplateSummary.g.cs | 8 +- .../_Generated/Types/Cluster/CurrentNode.g.cs | 46 +-- .../Cluster/DenseVectorOffHeapStats.g.cs | 52 +-- .../Types/Cluster/DenseVectorStats.g.cs | 16 +- .../_Generated/Types/Cluster/DiskUsage.g.cs | 46 +-- .../ExtendedRetrieversSearchUsage.g.cs | 8 +- .../Types/Cluster/ExtendedSearchUsage.g.cs | 8 +- .../ExtendedTextSimilarityRetrieverUsage.g.cs | 8 +- .../_Generated/Types/Cluster/FieldTypes.g.cs | 28 +- .../Types/Cluster/FieldTypesMappings.g.cs | 28 +- .../Types/Cluster/IndexHealthStats.g.cs | 64 +--- .../Types/Cluster/IndexingPressure.g.cs | 16 +- .../Types/Cluster/IndicesVersions.g.cs | 34 +- .../Cluster/NodeAllocationExplanation.g.cs | 46 +-- .../Types/Cluster/NodeDiskUsage.g.cs | 28 +- .../Types/Cluster/NodePackagingType.g.cs | 28 +- .../Cluster/OperatingSystemMemoryInfo.g.cs | 40 +- .../_Generated/Types/Cluster/PendingTask.g.cs | 40 +- .../Types/Cluster/PerRepositoryStats.g.cs | 28 +- .../Types/Cluster/RemoteClusterInfo.g.cs | 82 +--- .../Cluster/RepositoryStatsCurrentCounts.g.cs | 52 +-- .../Types/Cluster/RepositoryStatsShards.g.cs | 34 +- .../Types/Cluster/ReservedSize.g.cs | 34 +- .../Types/Cluster/RuntimeFieldTypes.g.cs | 94 +---- .../Types/Cluster/SearchUsageStats.g.cs | 46 +-- .../Types/Cluster/ShardHealthStats.g.cs | 52 +-- .../Types/Cluster/SnapshotCurrentCounts.g.cs | 40 +- .../Types/Cluster/SparseVectorStats.g.cs | 16 +- .../Types/Cluster/SynonymsStats.g.cs | 22 +- .../Types/Cluster/UnassignedInformation.g.cs | 22 +- .../_Generated/Types/ClusterDetails.g.cs | 28 +- .../_Generated/Types/ClusterStatistics.g.cs | 46 +-- .../_Generated/Types/CompletionStats.g.cs | 16 +- .../_Generated/Types/CoordsGeoBounds.g.cs | 34 +- .../Types/Core/Bulk/ResponseItem.g.cs | 22 +- .../Capabilities/FailedNodeException.g.cs | 16 +- .../Types/Core/Explain/Explanation.g.cs | 28 +- .../Types/Core/Explain/ExplanationDetail.g.cs | 22 +- .../Types/Core/FieldCaps/FieldCapability.g.cs | 28 +- .../_Generated/Types/Core/Get/GetResult.g.cs | 28 +- .../Types/Core/GetScriptContext/Context.g.cs | 22 +- .../Core/GetScriptContext/ContextMethod.g.cs | 28 +- .../GetScriptContext/ContextMethodParam.g.cs | 22 +- .../GetScriptLanguages/LanguageContext.g.cs | 22 +- .../DataStreamLifecycleDetails.g.cs | 22 +- .../DataStreamLifecycleIndicator.g.cs | 22 +- .../Types/Core/HealthReport/Diagnosis.g.cs | 40 +- .../DiagnosisAffectedResources.g.cs | 8 +- .../Core/HealthReport/DiskIndicator.g.cs | 22 +- .../HealthReport/DiskIndicatorDetails.g.cs | 40 +- .../HealthReport/FileSettingsIndicator.g.cs | 22 +- .../FileSettingsIndicatorDetails.g.cs | 22 +- .../Types/Core/HealthReport/IlmIndicator.g.cs | 22 +- .../HealthReport/IlmIndicatorDetails.g.cs | 28 +- .../Types/Core/HealthReport/Impact.g.cs | 34 +- .../Core/HealthReport/IndicatorNode.g.cs | 22 +- .../Types/Core/HealthReport/Indicators.g.cs | 8 +- .../HealthReport/MasterIsStableIndicator.g.cs | 22 +- ...IsStableIndicatorClusterFormationNode.g.cs | 22 +- .../MasterIsStableIndicatorDetails.g.cs | 22 +- ...ableIndicatorExceptionFetchingHistory.g.cs | 22 +- .../RepositoryIntegrityIndicator.g.cs | 22 +- .../RepositoryIntegrityIndicatorDetails.g.cs | 8 +- .../ShardsAvailabilityIndicator.g.cs | 22 +- .../ShardsAvailabilityIndicatorDetails.g.cs | 70 +--- .../HealthReport/ShardsCapacityIndicator.g.cs | 22 +- .../ShardsCapacityIndicatorDetails.g.cs | 22 +- .../ShardsCapacityIndicatorTierDetail.g.cs | 16 +- .../Types/Core/HealthReport/SlmIndicator.g.cs | 22 +- .../HealthReport/SlmIndicatorDetails.g.cs | 22 +- .../SlmIndicatorUnhealthyPolicies.g.cs | 16 +- .../StagnatingBackingIndices.g.cs | 28 +- .../Types/Core/MGet/MultiGetError.g.cs | 28 +- .../Types/Core/MGet/MultiGetOperation.g.cs | 16 +- .../Types/Core/MSearch/MultiSearchItem.g.cs | 34 +- .../Types/Core/MSearch/MultisearchBody.g.cs | 8 +- .../Types/Core/MSearch/MultisearchHeader.g.cs | 8 +- .../Core/MSearchTemplate/TemplateConfig.g.cs | 8 +- .../MultiTermVectorsOperation.g.cs | 8 +- .../Mtermvectors/MultiTermVectorsResult.g.cs | 16 +- .../Types/Core/RankEval/DocumentRating.g.cs | 28 +- .../Types/Core/RankEval/RankEvalHit.g.cs | 28 +- .../Types/Core/RankEval/RankEvalHitItem.g.cs | 16 +- .../Types/Core/RankEval/RankEvalMetric.g.cs | 8 +- .../Core/RankEval/RankEvalMetricDetail.g.cs | 34 +- ...ankEvalMetricDiscountedCumulativeGain.g.cs | 8 +- .../RankEvalMetricExpectedReciprocalRank.g.cs | 16 +- .../RankEvalMetricMeanReciprocalRank.g.cs | 8 +- .../RankEval/RankEvalMetricPrecision.g.cs | 8 +- .../Core/RankEval/RankEvalMetricRecall.g.cs | 8 +- .../Types/Core/RankEval/RankEvalQuery.g.cs | 16 +- .../Core/RankEval/RankEvalRequestItem.g.cs | 22 +- .../Types/Core/RankEval/UnratedDocument.g.cs | 22 +- .../Types/Core/Reindex/Destination.g.cs | 16 +- .../Types/Core/Reindex/RemoteSource.g.cs | 16 +- .../_Generated/Types/Core/Reindex/Source.g.cs | 16 +- .../Core/ReindexRethrottle/ReindexNode.g.cs | 46 +-- .../Core/ReindexRethrottle/ReindexStatus.g.cs | 76 +--- .../Core/ReindexRethrottle/ReindexTask.g.cs | 70 +--- .../PainlessContextSetup.g.cs | 22 +- .../Core/Search/AggregationBreakdown.g.cs | 70 +--- .../Types/Core/Search/AggregationProfile.g.cs | 34 +- .../Core/Search/AggregationProfileDebug.g.cs | 8 +- ...AggregationProfileDelegateDebugFilter.g.cs | 8 +- .../Types/Core/Search/Collector.g.cs | 28 +- .../Types/Core/Search/CompletionContext.g.cs | 16 +- .../Types/Core/Search/CompletionSuggest.g.cs | 34 +- .../Core/Search/CompletionSuggestOption.g.cs | 16 +- .../Core/Search/CompletionSuggester.g.cs | 16 +- .../Types/Core/Search/DfsKnnProfile.g.cs | 28 +- .../Types/Core/Search/DfsProfile.g.cs | 8 +- .../Core/Search/DfsStatisticsBreakdown.g.cs | 58 +-- .../Core/Search/DfsStatisticsProfile.g.cs | 34 +- .../Types/Core/Search/DirectGenerator.g.cs | 16 +- .../Types/Core/Search/FetchProfile.g.cs | 34 +- .../Core/Search/FetchProfileBreakdown.g.cs | 8 +- .../Types/Core/Search/FetchProfileDebug.g.cs | 8 +- .../Types/Core/Search/FieldCollapse.g.cs | 16 +- .../Types/Core/Search/FieldSuggester.g.cs | 9 +- .../Types/Core/Search/Highlight.g.cs | 16 +- .../Types/Core/Search/HighlightField.g.cs | 8 +- .../_Generated/Types/Core/Search/Hit.g.cs | 22 +- .../Types/Core/Search/HitsMetadata.g.cs | 16 +- .../Types/Core/Search/InnerHits.g.cs | 8 +- .../Types/Core/Search/InnerHitsResult.g.cs | 16 +- .../Types/Core/Search/KnnCollectorResult.g.cs | 28 +- .../Core/Search/KnnQueryProfileBreakdown.g.cs | 130 ++----- .../Core/Search/KnnQueryProfileResult.g.cs | 34 +- .../Core/Search/LaplaceSmoothingModel.g.cs | 16 +- .../Types/Core/Search/LearningToRank.g.cs | 16 +- .../LinearInterpolationSmoothingModel.g.cs | 28 +- .../Types/Core/Search/NestedIdentity.g.cs | 22 +- .../Types/Core/Search/PhraseSuggest.g.cs | 34 +- .../Core/Search/PhraseSuggestCollate.g.cs | 16 +- .../Search/PhraseSuggestCollateQuery.g.cs | 8 +- .../Core/Search/PhraseSuggestHighlight.g.cs | 22 +- .../Core/Search/PhraseSuggestOption.g.cs | 22 +- .../Types/Core/Search/PhraseSuggester.g.cs | 16 +- .../Core/Search/PointInTimeReference.g.cs | 16 +- .../_Generated/Types/Core/Search/Profile.g.cs | 16 +- .../Types/Core/Search/QueryBreakdown.g.cs | 130 ++----- .../Types/Core/Search/QueryProfile.g.cs | 34 +- .../Types/Core/Search/RegexOptions.g.cs | 8 +- .../_Generated/Types/Core/Search/Rescore.g.cs | 9 +- .../Types/Core/Search/RescoreQuery.g.cs | 16 +- .../Types/Core/Search/ScriptRescore.g.cs | 16 +- .../Types/Core/Search/SearchProfile.g.cs | 28 +- .../Types/Core/Search/ShardProfile.g.cs | 52 +-- .../Types/Core/Search/SmoothingModel.g.cs | 9 +- .../Types/Core/Search/SourceFilter.g.cs | 8 +- .../Search/StupidBackoffSmoothingModel.g.cs | 16 +- .../Types/Core/Search/SuggestFuzziness.g.cs | 8 +- .../Types/Core/Search/Suggester.g.cs | 8 +- .../Types/Core/Search/TermSuggest.g.cs | 34 +- .../Types/Core/Search/TermSuggestOption.g.cs | 28 +- .../Types/Core/Search/TermSuggester.g.cs | 16 +- .../Types/Core/Search/TotalHits.g.cs | 22 +- .../SearchShardsNodeAttributes.g.cs | 64 +--- .../Core/SearchShards/ShardStoreIndex.g.cs | 8 +- .../Core/TermVectors/FieldStatistics.g.cs | 28 +- .../Types/Core/TermVectors/Filter.g.cs | 8 +- .../Types/Core/TermVectors/Term.g.cs | 16 +- .../Types/Core/TermVectors/TermVector.g.cs | 16 +- .../Types/Core/TermVectors/Token.g.cs | 16 +- .../UpdateByQueryRethrottleNode.g.cs | 46 +-- .../AutoFollowPattern.g.cs | 22 +- .../AutoFollowPatternSummary.g.cs | 40 +- .../AutoFollowStats.g.cs | 40 +- .../AutoFollowedCluster.g.cs | 28 +- .../FollowIndexStats.g.cs | 22 +- .../CrossClusterReplication/FollowStats.g.cs | 16 +- .../FollowerIndex.g.cs | 34 +- .../FollowerIndexParameters.g.cs | 8 +- .../ReadException.g.cs | 28 +- .../CrossClusterReplication/ShardStats.g.cs | 178 ++------- .../Types/DanglingIndices/DanglingIndex.g.cs | 34 +- .../Types/DiversifyRetriever.Converters.g.cs | 9 + .../_Generated/Types/DiversifyRetriever.g.cs | 79 ++-- .../_Generated/Types/DocStats.g.cs | 22 +- .../Types/ElasticsearchVersionInfo.g.cs | 64 +--- .../Types/ElasticsearchVersionMinInfo.g.cs | 34 +- .../_Generated/Types/EmptyObject.g.cs | 8 +- .../_Generated/Types/Enrich/CacheStats.g.cs | 58 +-- .../Types/Enrich/CoordinatorStats.g.cs | 40 +- .../_Generated/Types/Enrich/EnrichPolicy.g.cs | 28 +- .../Types/Enrich/EnrichSummary.g.cs | 16 +- .../Enrich/ExecuteEnrichPolicyStatus.g.cs | 16 +- .../Types/Enrich/ExecutingPolicy.g.cs | 22 +- .../_Generated/Types/Eql/EqlHits.g.cs | 8 +- .../_Generated/Types/Eql/HitsEvent.g.cs | 28 +- .../_Generated/Types/Eql/HitsSequence.g.cs | 16 +- .../_Generated/Types/ErrorCause.g.cs | 16 +- .../_Generated/Types/ErrorResponseBase.g.cs | 22 +- .../_Generated/Types/Esql/EsqlQueryInfo.g.cs | 40 +- .../_Generated/Types/Features/Feature.g.cs | 22 +- .../_Generated/Types/FieldMemoryUsage.g.cs | 16 +- .../_Generated/Types/FieldSizeUsage.g.cs | 16 +- .../_Generated/Types/FieldSort.g.cs | 10 +- .../_Generated/Types/FielddataStats.g.cs | 22 +- .../_Generated/Types/FlushStats.g.cs | 28 +- .../_Generated/Types/GeoDistanceSort.g.cs | 22 +- .../_Generated/Types/GeoHashLocation.g.cs | 16 +- .../_Generated/Types/GeoLine.g.cs | 22 +- .../_Generated/Types/GetStats.g.cs | 52 +-- .../Types/GlobalOrdinalFieldStats.g.cs | 22 +- .../_Generated/Types/GlobalOrdinalsStats.g.cs | 16 +- .../_Generated/Types/Graph/Connection.g.cs | 34 +- .../Types/Graph/ExploreControls.g.cs | 16 +- .../_Generated/Types/Graph/Hop.g.cs | 16 +- .../Types/Graph/SampleDiversity.g.cs | 22 +- .../_Generated/Types/Graph/Vertex.g.cs | 34 +- .../Types/Graph/VertexDefinition.g.cs | 16 +- .../_Generated/Types/Graph/VertexInclude.g.cs | 16 +- .../IndexLifecycleManagement/Actions.g.cs | 8 +- .../AllocateAction.g.cs | 8 +- .../DeleteAction.g.cs | 8 +- .../DownsampleAction.g.cs | 16 +- .../ForceMergeAction.g.cs | 16 +- .../IndexLifecycleManagement/IlmPolicy.g.cs | 16 +- .../IndexLifecycleManagement/Lifecycle.g.cs | 28 +- .../MigrateAction.g.cs | 8 +- .../Types/IndexLifecycleManagement/Phase.g.cs | 8 +- .../IndexLifecycleManagement/Phases.g.cs | 8 +- .../RolloverAction.g.cs | 8 +- .../SearchableSnapshotAction.g.cs | 16 +- .../SetPriorityAction.g.cs | 8 +- .../ShrinkAction.g.cs | 8 +- .../IndexLifecycleManagement/StepKey.g.cs | 16 +- .../WaitForSnapshotAction.g.cs | 16 +- .../Types/IndexManagement/AddAction.g.cs | 8 +- .../Types/IndexManagement/Alias.g.cs | 8 +- .../IndexManagement/AliasDefinition.g.cs | 8 +- .../Types/IndexManagement/AnalyzeDetail.g.cs | 16 +- .../Types/IndexManagement/AnalyzeToken.g.cs | 40 +- .../Types/IndexManagement/AnalyzerDetail.g.cs | 22 +- .../Types/IndexManagement/CacheQueries.g.cs | 16 +- .../IndexManagement/CharFilterDetail.g.cs | 22 +- .../IndexManagement/CloseIndexResult.g.cs | 16 +- .../IndexManagement/CloseShardResult.g.cs | 16 +- .../Types/IndexManagement/CreateFrom.g.cs | 8 +- .../Types/IndexManagement/DataStream.g.cs | 76 +--- .../DataStreamFailureStore.g.cs | 8 +- .../DataStreamFailureStoreTemplate.g.cs | 8 +- .../IndexManagement/DataStreamIndex.g.cs | 22 +- .../IndexManagement/DataStreamLifecycle.g.cs | 8 +- .../DataStreamLifecycleExplain.g.cs | 22 +- ...DataStreamLifecycleRolloverConditions.g.cs | 8 +- .../DataStreamLifecycleWithRollover.g.cs | 8 +- .../IndexManagement/DataStreamMappings.g.cs | 28 +- .../IndexManagement/DataStreamOptions.g.cs | 8 +- .../DataStreamOptionsTemplate.g.cs | 8 +- .../IndexManagement/DataStreamSettings.g.cs | 28 +- .../DataStreamSettingsError.g.cs | 22 +- .../IndexManagement/DataStreamStats.g.cs | 28 +- .../DataStreamTimestampField.g.cs | 16 +- .../IndexManagement/DataStreamVisibility.g.cs | 8 +- .../DataStreamWithLifecycle.g.cs | 16 +- .../DataStreamWithOptions.g.cs | 16 +- .../IndexManagement/DataStreamsStatsItem.g.cs | 34 +- .../IndexManagement/DownsampleConfig.g.cs | 16 +- .../IndexManagement/DownsamplingRound.g.cs | 22 +- .../IndexManagement/ExplainAnalyzeToken.g.cs | 58 +-- .../Types/IndexManagement/FailureStore.g.cs | 28 +- .../FailureStoreLifecycle.g.cs | 8 +- .../FailureStoreLifecycleTemplate.g.cs | 8 +- .../Types/IndexManagement/FieldSummary.g.cs | 58 +-- .../FielddataFrequencyFilter.g.cs | 28 +- .../Types/IndexManagement/FileDetails.g.cs | 28 +- .../Types/IndexManagement/IndexAliases.g.cs | 16 +- .../IndexAndDataStreamAction.g.cs | 22 +- .../IndexManagement/IndexMappingRecord.g.cs | 16 +- .../IndexModifyDataStreamAction.g.cs | 9 +- .../Types/IndexManagement/IndexRouting.g.cs | 8 +- .../IndexRoutingAllocation.g.cs | 8 +- .../IndexRoutingAllocationDisk.g.cs | 8 +- .../IndexRoutingAllocationInclude.g.cs | 8 +- ...IndexRoutingAllocationInitialRecovery.g.cs | 8 +- .../IndexRoutingRebalance.g.cs | 16 +- .../IndexSamplingConfiguration.g.cs | 22 +- .../Types/IndexManagement/IndexSegment.g.cs | 16 +- .../IndexManagement/IndexSegmentSort.g.cs | 8 +- .../IndexManagement/IndexSettingBlocks.g.cs | 8 +- .../IndexManagement/IndexSettingResults.g.cs | 22 +- .../Types/IndexManagement/IndexSettings.g.cs | 8 +- .../IndexSettingsAnalysis.g.cs | 8 +- .../IndexSettingsLifecycle.g.cs | 8 +- .../IndexSettingsLifecycleStep.g.cs | 8 +- .../IndexSettingsTimeSeries.g.cs | 8 +- .../Types/IndexManagement/IndexState.g.cs | 8 +- .../Types/IndexManagement/IndexStats.g.cs | 8 +- .../Types/IndexManagement/IndexTemplate.g.cs | 22 +- .../IndexTemplateDataStreamConfiguration.g.cs | 8 +- .../IndexManagement/IndexTemplateItem.g.cs | 22 +- .../IndexManagement/IndexTemplateMapping.g.cs | 8 +- .../IndexManagement/IndexTemplateSummary.g.cs | 8 +- .../IndexUpdateAliasesAction.g.cs | 9 +- .../IndexManagement/IndexVersioning.g.cs | 8 +- .../IndexManagement/IndexingPressure.g.cs | 16 +- .../IndexingPressureMemory.g.cs | 8 +- .../IndexingSlowlogSettings.g.cs | 8 +- .../IndexingSlowlogTresholds.g.cs | 8 +- .../IndexManagement/IndicesShardStores.g.cs | 16 +- .../Types/IndexManagement/IndicesStats.g.cs | 8 +- .../IndicesValidationExplanation.g.cs | 22 +- .../Types/IndexManagement/InvertedIndex.g.cs | 52 +-- .../IndexManagement/MappingLimitSettings.g.cs | 8 +- .../MappingLimitSettingsDepth.g.cs | 8 +- .../MappingLimitSettingsDimensionFields.g.cs | 8 +- .../MappingLimitSettingsFieldNameLength.g.cs | 8 +- .../MappingLimitSettingsNestedFields.g.cs | 8 +- .../MappingLimitSettingsNestedObjects.g.cs | 8 +- .../MappingLimitSettingsSourceFields.g.cs | 16 +- .../MappingLimitSettingsTotalFields.g.cs | 8 +- .../Types/IndexManagement/MappingStats.g.cs | 22 +- .../Types/IndexManagement/Merge.g.cs | 8 +- .../Types/IndexManagement/MergeScheduler.g.cs | 8 +- .../Types/IndexManagement/MigrateReindex.g.cs | 22 +- .../IndexManagement/NumericFielddata.g.cs | 16 +- .../Types/IndexManagement/Overlapping.g.cs | 22 +- .../Types/IndexManagement/Queries.g.cs | 8 +- .../Types/IndexManagement/RawDocument.g.cs | 22 +- .../Types/IndexManagement/RecoveryBytes.g.cs | 34 +- .../Types/IndexManagement/RecoveryFiles.g.cs | 34 +- .../IndexManagement/RecoveryIndexStatus.g.cs | 40 +- .../Types/IndexManagement/RecoveryOrigin.g.cs | 8 +- .../IndexManagement/RecoveryStartStatus.g.cs | 22 +- .../Types/IndexManagement/RecoveryStatus.g.cs | 16 +- .../Types/IndexManagement/ReloadDetails.g.cs | 28 +- .../Types/IndexManagement/ReloadResult.g.cs | 22 +- .../Types/IndexManagement/RemoveAction.g.cs | 8 +- .../IndexManagement/RemoveIndexAction.g.cs | 8 +- .../RemoveIndicesBlockStatus.g.cs | 16 +- .../IndexManagement/ResolveClusterInfo.g.cs | 22 +- .../ResolveIndexAliasItem.g.cs | 22 +- .../ResolveIndexDataStreamsItem.g.cs | 28 +- .../IndexManagement/ResolveIndexItem.g.cs | 22 +- .../Types/IndexManagement/RetentionLease.g.cs | 16 +- .../IndexManagement/RolloverConditions.g.cs | 8 +- .../SamplingConfiguration.g.cs | 40 +- .../Types/IndexManagement/SearchIdle.g.cs | 8 +- .../Types/IndexManagement/Segment.g.cs | 64 +--- .../IndexManagement/SettingsAnalyze.g.cs | 8 +- .../IndexManagement/SettingsHighlight.g.cs | 8 +- .../IndexManagement/SettingsQueryString.g.cs | 16 +- .../Types/IndexManagement/SettingsSearch.g.cs | 8 +- .../SettingsSimilarityBm25.g.cs | 8 +- .../SettingsSimilarityBoolean.g.cs | 8 +- .../SettingsSimilarityDfi.g.cs | 16 +- .../SettingsSimilarityDfr.g.cs | 28 +- .../IndexManagement/SettingsSimilarityIb.g.cs | 28 +- .../SettingsSimilarityLmd.g.cs | 8 +- .../SettingsSimilarityLmj.g.cs | 8 +- .../SettingsSimilarityScripted.g.cs | 16 +- .../Types/IndexManagement/ShardCommit.g.cs | 34 +- .../IndexManagement/ShardFileSizeInfo.g.cs | 22 +- .../Types/IndexManagement/ShardLease.g.cs | 34 +- .../Types/IndexManagement/ShardPath.g.cs | 28 +- .../IndexManagement/ShardQueryCache.g.cs | 52 +-- .../Types/IndexManagement/ShardRecovery.g.cs | 76 +--- .../IndexManagement/ShardRetentionLeases.g.cs | 28 +- .../Types/IndexManagement/ShardRouting.g.cs | 28 +- .../IndexManagement/ShardSegmentRouting.g.cs | 28 +- .../IndexManagement/ShardSequenceNumber.g.cs | 28 +- .../Types/IndexManagement/ShardStats.g.cs | 8 +- .../Types/IndexManagement/ShardStore.g.cs | 28 +- .../IndexManagement/ShardStoreException.g.cs | 22 +- .../Types/IndexManagement/ShardStoreNode.g.cs | 34 +- .../IndexManagement/ShardStoreWrapper.g.cs | 16 +- .../Types/IndexManagement/ShardsSegment.g.cs | 34 +- .../Types/IndexManagement/ShardsStats.g.cs | 22 +- .../IndexManagement/ShardsTotalStats.g.cs | 16 +- .../IndexManagement/SlowlogSettings.g.cs | 8 +- .../SlowlogTresholdLevels.g.cs | 8 +- .../IndexManagement/SlowlogTresholds.g.cs | 8 +- .../Types/IndexManagement/SoftDeletes.g.cs | 8 +- .../Types/IndexManagement/SourceIndex.g.cs | 16 +- .../Types/IndexManagement/StatusError.g.cs | 22 +- .../IndexManagement/StatusInProgress.g.cs | 28 +- .../Types/IndexManagement/Storage.g.cs | 16 +- .../Types/IndexManagement/Template.g.cs | 28 +- .../IndexManagement/TemplateMapping.g.cs | 40 +- .../Types/IndexManagement/TokenDetail.g.cs | 22 +- .../Types/IndexManagement/Translog.g.cs | 8 +- .../IndexManagement/TranslogRetention.g.cs | 8 +- .../Types/IndexManagement/TranslogStatus.g.cs | 40 +- .../IndexManagement/TypeFieldMappings.g.cs | 16 +- .../UpdatedDataStreamMappings.g.cs | 22 +- .../UpdatedDataStreamSettings.g.cs | 40 +- .../IndexManagement/UsageStatsIndex.g.cs | 16 +- .../IndexManagement/UsageStatsShards.g.cs | 34 +- .../Types/IndexManagement/VerifyIndex.g.cs | 22 +- .../_Generated/Types/IndexingStats.g.cs | 70 +--- .../_Generated/Types/IndicesOptions.g.cs | 8 +- .../Types/Inference/AdaptiveAllocations.g.cs | 8 +- .../Types/Inference/Ai21ServiceSettings.g.cs | 16 +- .../AlibabaCloudServiceSettings.g.cs | 34 +- .../Inference/AlibabaCloudTaskSettings.g.cs | 8 +- .../AmazonBedrockServiceSettings.g.cs | 34 +- .../Inference/AmazonBedrockTaskSettings.g.cs | 8 +- .../AmazonSageMakerServiceSettings.g.cs | 40 +- .../AmazonSageMakerTaskSettings.g.cs | 8 +- .../Inference/AnthropicServiceSettings.g.cs | 22 +- .../Inference/AnthropicTaskSettings.g.cs | 16 +- .../AzureAiStudioServiceSettings.g.cs | 34 +- .../Inference/AzureAiStudioTaskSettings.g.cs | 8 +- .../Inference/AzureOpenAIServiceSettings.g.cs | 36 +- .../Inference/AzureOpenAITaskSettings.g.cs | 12 +- .../AzureOpenAITaskType.Converters.g.cs | 14 + .../Types/Inference/AzureOpenAITaskType.g.cs | 2 + .../Inference/CohereServiceSettings.g.cs | 22 +- .../Types/Inference/CohereTaskSettings.g.cs | 16 +- .../Types/Inference/CompletionResult.g.cs | 16 +- .../Types/Inference/CompletionTool.g.cs | 22 +- .../Types/Inference/CompletionToolChoice.g.cs | 22 +- .../CompletionToolChoiceFunction.g.cs | 16 +- .../Inference/CompletionToolFunction.g.cs | 16 +- .../Types/Inference/ContentObject.g.cs | 22 +- .../ContextualAIServiceSettings.g.cs | 22 +- .../Inference/ContextualAITaskSettings.g.cs | 8 +- .../Types/Inference/CustomRequestParams.g.cs | 16 +- .../Types/Inference/CustomResponseParams.g.cs | 16 +- .../Inference/CustomServiceSettings.g.cs | 28 +- .../Types/Inference/CustomTaskSettings.g.cs | 8 +- .../Inference/DeepSeekServiceSettings.g.cs | 22 +- .../ElasticsearchServiceSettings.g.cs | 22 +- .../Inference/ElasticsearchTaskSettings.g.cs | 8 +- .../Types/Inference/ElserServiceSettings.g.cs | 22 +- .../GoogleAiStudioServiceSettings.g.cs | 22 +- .../GoogleVertexAIServiceSettings.g.cs | 16 +- .../Inference/GoogleVertexAITaskSettings.g.cs | 8 +- .../GroqServiceSettings.Converters.g.cs | 81 ++++ .../Types/Inference/GroqServiceSettings.g.cs | 182 +++++++++ .../Inference/GroqTaskType.Converters.g.cs | 67 ++++ .../Types/Inference/GroqTaskType.g.cs | 31 ++ .../Inference/HuggingFaceServiceSettings.g.cs | 22 +- .../Inference/HuggingFaceTaskSettings.g.cs | 8 +- .../Inference/InferenceChunkingSettings.g.cs | 8 +- .../Types/Inference/InferenceEndpoint.g.cs | 22 +- .../Inference/InferenceEndpointInfo.g.cs | 34 +- .../Types/Inference/InferenceResult.g.cs | 9 +- .../Inference/JinaAIServiceSettings.g.cs | 16 +- .../Types/Inference/JinaAITaskSettings.g.cs | 8 +- .../Types/Inference/LlamaServiceSettings.g.cs | 22 +- .../_Generated/Types/Inference/Message.g.cs | 16 +- .../Inference/MistralServiceSettings.g.cs | 22 +- .../Inference/NvidiaInputType.Converters.g.cs | 81 ++++ .../Types/Inference/NvidiaInputType.g.cs | 33 ++ .../NvidiaServiceSettings.Converters.g.cs | 108 ++++++ .../Inference/NvidiaServiceSettings.g.cs | 283 ++++++++++++++ .../NvidiaSimilarityType.Converters.g.cs | 95 +++++ .../Types/Inference/NvidiaSimilarityType.g.cs | 35 ++ .../NvidiaTaskSettings.Converters.g.cs | 72 ++++ .../Types/Inference/NvidiaTaskSettings.g.cs | 175 +++++++++ .../Inference/NvidiaTaskType.Converters.g.cs | 109 ++++++ .../Types/Inference/NvidiaTaskType.g.cs | 37 ++ .../Inference/OpenAIServiceSettings.g.cs | 22 +- .../Types/Inference/OpenAITaskSettings.g.cs | 8 +- .../Inference/OpenShiftAiServiceSettings.g.cs | 24 +- .../Inference/OpenShiftAiTaskSettings.g.cs | 8 +- .../Types/Inference/RankedDocument.g.cs | 22 +- .../Types/Inference/RateLimitSetting.g.cs | 12 +- .../Inference/RequestChatCompletion.g.cs | 16 +- .../Inference/SparseEmbeddingResult.g.cs | 16 +- .../TaskTypeAzureOpenAI.Converters.g.cs | 14 + .../Types/Inference/TaskTypeAzureOpenAI.g.cs | 2 + .../Inference/TaskTypeGroq.Converters.g.cs | 67 ++++ .../Types/Inference/TaskTypeGroq.g.cs | 31 ++ .../Inference/TaskTypeNvidia.Converters.g.cs | 109 ++++++ .../Types/Inference/TaskTypeNvidia.g.cs | 37 ++ .../Inference/TextEmbeddingByteResult.g.cs | 16 +- .../TextEmbeddingInferenceResult.g.cs | 9 +- .../Types/Inference/TextEmbeddingResult.g.cs | 16 +- .../Types/Inference/ThinkingConfig.g.cs | 8 +- .../_Generated/Types/Inference/ToolCall.g.cs | 28 +- .../Types/Inference/ToolCallFunction.g.cs | 22 +- .../Inference/VoyageAIServiceSettings.g.cs | 16 +- .../Types/Inference/VoyageAITaskSettings.g.cs | 8 +- .../Inference/WatsonxServiceSettings.g.cs | 40 +- .../Types/Ingest/AppendProcessor.g.cs | 16 +- .../Types/Ingest/AttachmentProcessor.g.cs | 16 +- .../Types/Ingest/BytesProcessor.g.cs | 16 +- .../Types/Ingest/CircleProcessor.g.cs | 28 +- .../Types/Ingest/CommunityIDProcessor.g.cs | 8 +- .../Types/Ingest/ConvertProcessor.g.cs | 22 +- .../_Generated/Types/Ingest/CsvProcessor.g.cs | 22 +- .../Types/Ingest/DatabaseConfiguration.g.cs | 16 +- .../Ingest/DatabaseConfigurationFull.g.cs | 16 +- .../Ingest/DatabaseConfigurationMetadata.g.cs | 34 +- .../Types/Ingest/DateIndexNameProcessor.g.cs | 22 +- .../Types/Ingest/DateProcessor.g.cs | 22 +- .../Types/Ingest/DissectProcessor.g.cs | 22 +- .../_Generated/Types/Ingest/Document.g.cs | 16 +- .../Types/Ingest/DocumentSimulation.g.cs | 34 +- .../Types/Ingest/DotExpanderProcessor.g.cs | 16 +- .../Types/Ingest/DropProcessor.g.cs | 8 +- .../Types/Ingest/EnrichProcessor.g.cs | 28 +- .../Types/Ingest/FailProcessor.g.cs | 16 +- .../Types/Ingest/FingerprintProcessor.g.cs | 16 +- .../Types/Ingest/ForeachProcessor.g.cs | 22 +- .../Types/Ingest/GeoGridProcessor.g.cs | 22 +- .../Types/Ingest/GeoIpDownloadStatistics.g.cs | 46 +-- .../Types/Ingest/GeoIpNodeDatabaseName.g.cs | 16 +- .../Types/Ingest/GeoIpNodeDatabases.g.cs | 22 +- .../Types/Ingest/GeoIpProcessor.g.cs | 16 +- .../Types/Ingest/GrokProcessor.g.cs | 22 +- .../Types/Ingest/GsubProcessor.g.cs | 28 +- .../Types/Ingest/HtmlStripProcessor.g.cs | 16 +- .../Types/Ingest/InferenceConfig.g.cs | 9 +- .../Ingest/InferenceConfigClassification.g.cs | 8 +- .../Ingest/InferenceConfigRegression.g.cs | 8 +- .../Types/Ingest/InferenceProcessor.g.cs | 16 +- .../_Generated/Types/Ingest/Ingest.g.cs | 16 +- .../_Generated/Types/Ingest/InputConfig.g.cs | 22 +- .../IpDatabaseConfigurationMetadata.g.cs | 28 +- .../Types/Ingest/IpLocationProcessor.g.cs | 16 +- .../_Generated/Types/Ingest/Ipinfo.g.cs | 8 +- .../Types/Ingest/JoinProcessor.g.cs | 22 +- .../Types/Ingest/JsonProcessor.g.cs | 16 +- .../Types/Ingest/KeyValueProcessor.g.cs | 28 +- .../_Generated/Types/Ingest/Local.g.cs | 16 +- .../Types/Ingest/LowercaseProcessor.g.cs | 16 +- .../_Generated/Types/Ingest/Maxmind.g.cs | 16 +- .../Ingest/NetworkDirectionProcessor.g.cs | 8 +- .../_Generated/Types/Ingest/Pipeline.g.cs | 8 +- .../Types/Ingest/PipelineConfig.g.cs | 16 +- .../Types/Ingest/PipelineProcessor.g.cs | 16 +- .../Types/Ingest/PipelineProcessorResult.g.cs | 8 +- .../_Generated/Types/Ingest/Processor.g.cs | 9 +- .../_Generated/Types/Ingest/Redact.g.cs | 16 +- .../Types/Ingest/RedactProcessor.g.cs | 22 +- .../Ingest/RegisteredDomainProcessor.g.cs | 16 +- .../Types/Ingest/RemoveProcessor.g.cs | 16 +- .../Types/Ingest/RenameProcessor.g.cs | 22 +- .../Types/Ingest/RerouteProcessor.g.cs | 8 +- .../Types/Ingest/ScriptProcessor.g.cs | 8 +- .../_Generated/Types/Ingest/SetProcessor.g.cs | 16 +- .../Ingest/SetSecurityUserProcessor.g.cs | 16 +- .../Types/Ingest/SimulateDocumentResult.g.cs | 8 +- .../Types/Ingest/SortProcessor.g.cs | 16 +- .../Types/Ingest/SplitProcessor.g.cs | 22 +- .../Types/Ingest/TerminateProcessor.g.cs | 8 +- .../Types/Ingest/TrimProcessor.g.cs | 16 +- .../Types/Ingest/UppercaseProcessor.g.cs | 16 +- .../Types/Ingest/UriPartsProcessor.g.cs | 16 +- .../Types/Ingest/UrlDecodeProcessor.g.cs | 16 +- .../Types/Ingest/UserAgentProcessor.g.cs | 16 +- .../_Generated/Types/Ingest/Web.g.cs | 8 +- .../_Generated/Types/InlineGet.g.cs | 16 +- .../_Generated/Types/InnerRetriever.g.cs | 28 +- .../_Generated/Types/KnnQuery.g.cs | 16 +- .../_Generated/Types/KnnRetriever.g.cs | 28 +- .../_Generated/Types/KnnSearch.g.cs | 16 +- .../_Generated/Types/LatLonGeoLocation.g.cs | 22 +- .../LicenseManagement/Acknowledgement.g.cs | 22 +- .../Types/LicenseManagement/License.g.cs | 52 +-- .../LicenseManagement/LicenseInformation.g.cs | 64 +--- .../_Generated/Types/LinearRetriever.g.cs | 8 +- .../AdaptiveAllocationsSettings.g.cs | 16 +- .../MachineLearning/AggregateOutput.g.cs | 8 +- .../Types/MachineLearning/AnalysisConfig.g.cs | 16 +- .../MachineLearning/AnalysisConfigRead.g.cs | 28 +- .../Types/MachineLearning/AnalysisLimits.g.cs | 8 +- .../MachineLearning/AnalysisMemoryLimit.g.cs | 16 +- .../Types/MachineLearning/Anomaly.g.cs | 64 +--- .../Types/MachineLearning/AnomalyCause.g.cs | 16 +- .../MachineLearning/AnomalyDetectors.g.cs | 40 +- .../MachineLearning/AnomalyExplanation.g.cs | 8 +- .../MachineLearning/ApiKeyAuthorization.g.cs | 22 +- .../MachineLearning/BucketInfluencer.g.cs | 70 +--- .../Types/MachineLearning/BucketSummary.g.cs | 70 +--- .../Types/MachineLearning/Calendar.g.cs | 22 +- .../Types/MachineLearning/CalendarEvent.g.cs | 28 +- .../CategorizationAnalyzerDefinition.g.cs | 8 +- .../Types/MachineLearning/Category.g.cs | 58 +-- .../Types/MachineLearning/ChunkingConfig.g.cs | 16 +- .../ClassificationInferenceOptions.g.cs | 8 +- .../MachineLearning/ConfusionMatrixItem.g.cs | 34 +- .../ConfusionMatrixPrediction.g.cs | 22 +- .../ConfusionMatrixThreshold.g.cs | 34 +- .../Types/MachineLearning/DataCounts.g.cs | 82 +--- .../MachineLearning/DataDescription.g.cs | 8 +- .../Types/MachineLearning/Datafeed.g.cs | 40 +- .../DatafeedAuthorization.g.cs | 8 +- .../Types/MachineLearning/DatafeedConfig.g.cs | 8 +- .../MachineLearning/DatafeedRunningState.g.cs | 22 +- .../Types/MachineLearning/DatafeedStats.g.cs | 22 +- .../MachineLearning/DatafeedTimingStats.g.cs | 40 +- .../Types/MachineLearning/Datafeeds.g.cs | 16 +- .../MachineLearning/DataframeAnalysis.g.cs | 9 +- .../DataframeAnalysisAnalyzedFields.g.cs | 8 +- .../DataframeAnalysisClassification.g.cs | 16 +- .../DataframeAnalysisFeatureProcessor.g.cs | 9 +- ...ysisFeatureProcessorFrequencyEncoding.g.cs | 28 +- ...AnalysisFeatureProcessorMultiEncoding.g.cs | 16 +- ...AnalysisFeatureProcessorNGramEncoding.g.cs | 22 +- ...nalysisFeatureProcessorOneHotEncoding.g.cs | 22 +- ...sisFeatureProcessorTargetMeanEncoding.g.cs | 34 +- .../DataframeAnalysisOutlierDetection.g.cs | 8 +- .../DataframeAnalysisRegression.g.cs | 16 +- .../MachineLearning/DataframeAnalytics.g.cs | 40 +- .../DataframeAnalyticsAuthorization.g.cs | 8 +- .../DataframeAnalyticsDestination.g.cs | 16 +- .../DataframeAnalyticsFieldSelection.g.cs | 34 +- .../DataframeAnalyticsMemoryEstimation.g.cs | 22 +- .../DataframeAnalyticsSource.g.cs | 16 +- .../DataframeAnalyticsStatsDataCounts.g.cs | 28 +- .../DataframeAnalyticsStatsMemoryUsage.g.cs | 22 +- .../DataframeAnalyticsStatsProgress.g.cs | 22 +- .../DataframeAnalyticsSummary.g.cs | 34 +- .../DataframeClassificationSummary.g.cs | 8 +- ...ataframeClassificationSummaryAccuracy.g.cs | 22 +- ...ationSummaryMulticlassConfusionMatrix.g.cs | 22 +- ...taframeClassificationSummaryPrecision.g.cs | 22 +- .../DataframeClassificationSummaryRecall.g.cs | 22 +- .../MachineLearning/DataframeEvaluation.g.cs | 9 +- .../DataframeEvaluationClass.g.cs | 22 +- .../DataframeEvaluationClassification.g.cs | 16 +- ...aframeEvaluationClassificationMetrics.g.cs | 8 +- ...EvaluationClassificationMetricsAucRoc.g.cs | 8 +- .../DataframeEvaluationOutlierDetection.g.cs | 22 +- ...rameEvaluationOutlierDetectionMetrics.g.cs | 8 +- .../DataframeEvaluationRegression.g.cs | 22 +- .../DataframeEvaluationRegressionMetrics.g.cs | 8 +- ...frameEvaluationRegressionMetricsHuber.g.cs | 8 +- ...aframeEvaluationRegressionMetricsMsle.g.cs | 8 +- .../DataframeEvaluationSummaryAucRoc.g.cs | 16 +- ...frameEvaluationSummaryAucRocCurveItem.g.cs | 28 +- .../DataframeEvaluationValue.g.cs | 16 +- .../DataframeOutlierDetectionSummary.g.cs | 8 +- .../DataframePreviewConfig.g.cs | 22 +- .../DataframeRegressionSummary.g.cs | 8 +- .../Types/MachineLearning/Defaults.g.cs | 22 +- .../Types/MachineLearning/Definition.g.cs | 16 +- .../DelayedDataCheckConfig.g.cs | 16 +- .../Types/MachineLearning/DetectionRule.g.cs | 8 +- .../Types/MachineLearning/Detector.g.cs | 8 +- .../Types/MachineLearning/DetectorRead.g.cs | 16 +- .../Types/MachineLearning/DetectorUpdate.g.cs | 16 +- .../MachineLearning/DiscoveryNodeCompact.g.cs | 40 +- .../MachineLearning/DiscoveryNodeContent.g.cs | 58 +-- .../Types/MachineLearning/Ensemble.g.cs | 16 +- .../ExponentialAverageCalculationContext.g.cs | 16 +- .../FillMaskInferenceOptions.g.cs | 8 +- .../FillMaskInferenceUpdateOptions.g.cs | 8 +- .../Types/MachineLearning/Filter.g.cs | 22 +- .../Types/MachineLearning/FilterRef.g.cs | 16 +- .../FrequencyEncodingPreprocessor.g.cs | 28 +- .../Types/MachineLearning/GeoResults.g.cs | 8 +- .../Types/MachineLearning/Hyperparameter.g.cs | 28 +- .../InferenceConfigCreate.g.cs | 9 +- .../InferenceConfigUpdate.g.cs | 9 +- .../InferenceResponseResult.g.cs | 8 +- .../Types/MachineLearning/Influence.g.cs | 22 +- .../Types/MachineLearning/Influencer.g.cs | 70 +--- .../Types/MachineLearning/Input.g.cs | 16 +- .../_Generated/Types/MachineLearning/Job.g.cs | 46 +-- .../Types/MachineLearning/JobBlocked.g.cs | 16 +- .../JobForecastStatistics.g.cs | 22 +- .../Types/MachineLearning/JobStatistics.g.cs | 34 +- .../Types/MachineLearning/JobStats.g.cs | 46 +-- .../Types/MachineLearning/JobTimingStats.g.cs | 34 +- .../Types/MachineLearning/JvmStats.g.cs | 28 +- .../MachineLearning/LearningToRankConfig.g.cs | 16 +- .../Types/MachineLearning/Limits.g.cs | 16 +- .../Types/MachineLearning/MemMlStats.g.cs | 40 +- .../Types/MachineLearning/MemStats.g.cs | 28 +- .../Types/MachineLearning/Memory.g.cs | 52 +-- .../MachineLearning/ModelPackageConfig.g.cs | 16 +- .../MachineLearning/ModelPlotConfig.g.cs | 8 +- .../Types/MachineLearning/ModelSizeStats.g.cs | 106 +----- .../Types/MachineLearning/ModelSnapshot.g.cs | 46 +-- .../ModelSnapshotUpgrade.Converters.g.cs | 6 +- .../MachineLearning/ModelSnapshotUpgrade.g.cs | 43 +-- .../Types/MachineLearning/NativeCode.g.cs | 22 +- .../MachineLearning/NerInferenceOptions.g.cs | 8 +- .../NerInferenceUpdateOptions.g.cs | 8 +- .../NlpBertTokenizationConfig.g.cs | 8 +- .../NlpRobertaTokenizationConfig.g.cs | 8 +- .../NlpTokenizationUpdateOptions.g.cs | 8 +- .../OneHotEncodingPreprocessor.g.cs | 22 +- .../Types/MachineLearning/OverallBucket.g.cs | 46 +-- .../MachineLearning/OverallBucketJob.g.cs | 22 +- .../Types/MachineLearning/Page.g.cs | 8 +- .../PassThroughInferenceOptions.g.cs | 8 +- .../PassThroughInferenceUpdateOptions.g.cs | 8 +- .../PerPartitionCategorization.g.cs | 8 +- .../Types/MachineLearning/Preprocessor.g.cs | 9 +- .../QueryFeatureExtractor.g.cs | 22 +- .../QuestionAnsweringInferenceOptions.g.cs | 8 +- ...estionAnsweringInferenceUpdateOptions.g.cs | 16 +- .../RegressionInferenceOptions.g.cs | 8 +- .../Types/MachineLearning/RuleCondition.g.cs | 28 +- .../RunningStateSearchInterval.g.cs | 22 +- .../TargetMeanEncodingPreprocessor.g.cs | 34 +- .../TextClassificationInferenceOptions.g.cs | 8 +- ...tClassificationInferenceUpdateOptions.g.cs | 8 +- .../TextEmbeddingInferenceOptions.g.cs | 8 +- .../TextEmbeddingInferenceUpdateOptions.g.cs | 8 +- .../TextExpansionInferenceOptions.g.cs | 8 +- .../TextExpansionInferenceUpdateOptions.g.cs | 8 +- .../MachineLearning/TokenizationConfig.g.cs | 9 +- .../Types/MachineLearning/TopClassEntry.g.cs | 28 +- .../TotalFeatureImportance.g.cs | 28 +- .../TotalFeatureImportanceClass.g.cs | 22 +- .../TotalFeatureImportanceStatistics.g.cs | 28 +- .../Types/MachineLearning/TrainedModel.g.cs | 8 +- .../TrainedModelAssignment.g.cs | 34 +- ...dModelAssignmentRoutingStateAndReason.g.cs | 16 +- .../TrainedModelAssignmentRoutingTable.g.cs | 28 +- .../TrainedModelAssignmentTaskParameters.g.cs | 64 +--- .../MachineLearning/TrainedModelConfig.g.cs | 28 +- .../TrainedModelConfigInput.g.cs | 16 +- .../TrainedModelConfigMetadata.g.cs | 8 +- ...rainedModelDeploymentAllocationStatus.g.cs | 28 +- .../TrainedModelDeploymentNodesStats.g.cs | 28 +- .../TrainedModelDeploymentStats.g.cs | 46 +-- .../MachineLearning/TrainedModelEntities.g.cs | 40 +- .../TrainedModelInferenceClassImportance.g.cs | 22 +- ...rainedModelInferenceFeatureImportance.g.cs | 16 +- .../TrainedModelInferenceStats.g.cs | 40 +- .../MachineLearning/TrainedModelLocation.g.cs | 16 +- .../TrainedModelLocationIndex.g.cs | 16 +- .../TrainedModelPrefixStrings.g.cs | 8 +- .../TrainedModelSizeStats.g.cs | 22 +- .../MachineLearning/TrainedModelStats.g.cs | 28 +- .../MachineLearning/TrainedModelTree.g.cs | 22 +- .../MachineLearning/TrainedModelTreeNode.g.cs | 16 +- .../TransformAuthorization.g.cs | 8 +- .../Types/MachineLearning/Vocabulary.g.cs | 16 +- .../Types/MachineLearning/Weights.g.cs | 16 +- .../XlmRobertaTokenizationConfig.g.cs | 8 +- ...eroShotClassificationInferenceOptions.g.cs | 16 +- ...tClassificationInferenceUpdateOptions.g.cs | 16 +- .../AggregateMetricDoubleProperty.g.cs | 22 +- .../_Generated/Types/Mapping/AllField.g.cs | 70 +--- .../Types/Mapping/BinaryProperty.g.cs | 8 +- .../Types/Mapping/BooleanProperty.g.cs | 8 +- .../Types/Mapping/ByteNumberProperty.g.cs | 8 +- .../ChunkRescorerChunkingSettings.g.cs | 16 +- .../Types/Mapping/ChunkingSettings.g.cs | 22 +- .../Types/Mapping/CompletionProperty.g.cs | 8 +- .../Types/Mapping/CompositeSubField.g.cs | 16 +- .../Mapping/ConstantKeywordProperty.g.cs | 8 +- .../Types/Mapping/CountedKeywordProperty.g.cs | 8 +- .../Types/Mapping/DataStreamTimestamp.g.cs | 16 +- .../Types/Mapping/DateNanosProperty.g.cs | 8 +- .../Types/Mapping/DateProperty.g.cs | 8 +- .../Types/Mapping/DateRangeProperty.g.cs | 8 +- .../Mapping/DenseVectorIndexOptions.g.cs | 16 +- .../DenseVectorIndexOptionsRescoreVector.g.cs | 16 +- .../Types/Mapping/DenseVectorProperty.g.cs | 8 +- .../Types/Mapping/DoubleNumberProperty.g.cs | 8 +- .../Types/Mapping/DoubleRangeProperty.g.cs | 8 +- .../Types/Mapping/DynamicProperty.g.cs | 8 +- .../Types/Mapping/DynamicTemplate.g.cs | 9 +- .../Types/Mapping/FieldAliasProperty.g.cs | 8 +- .../Types/Mapping/FieldMapping.g.cs | 22 +- .../Types/Mapping/FieldNamesField.g.cs | 16 +- .../Types/Mapping/FlattenedProperty.g.cs | 8 +- .../Types/Mapping/FloatNumberProperty.g.cs | 8 +- .../Types/Mapping/FloatRangeProperty.g.cs | 8 +- .../Types/Mapping/GeoPointProperty.g.cs | 8 +- .../Types/Mapping/GeoShapeProperty.g.cs | 8 +- .../Mapping/HalfFloatNumberProperty.g.cs | 8 +- .../Types/Mapping/HistogramProperty.g.cs | 8 +- .../Types/Mapping/IcuCollationProperty.g.cs | 8 +- .../_Generated/Types/Mapping/IndexField.g.cs | 16 +- .../Types/Mapping/IntegerNumberProperty.g.cs | 8 +- .../Types/Mapping/IntegerRangeProperty.g.cs | 8 +- .../_Generated/Types/Mapping/IpProperty.g.cs | 8 +- .../Types/Mapping/IpRangeProperty.g.cs | 8 +- .../Types/Mapping/JoinProperty.g.cs | 8 +- .../Types/Mapping/KeywordProperty.g.cs | 8 +- .../Types/Mapping/LongNumberProperty.g.cs | 8 +- .../Types/Mapping/LongRangeProperty.g.cs | 8 +- .../Types/Mapping/MatchOnlyTextProperty.g.cs | 8 +- .../Types/Mapping/Murmur3HashProperty.g.cs | 8 +- .../Types/Mapping/NestedProperty.g.cs | 8 +- .../Types/Mapping/ObjectProperty.g.cs | 8 +- .../Mapping/PassthroughObjectProperty.g.cs | 8 +- .../Types/Mapping/PercolatorProperty.g.cs | 8 +- .../Types/Mapping/PointProperty.g.cs | 8 +- .../Types/Mapping/RankFeatureProperty.g.cs | 8 +- .../Types/Mapping/RankFeaturesProperty.g.cs | 8 +- .../Types/Mapping/RankVectorProperty.g.cs | 8 +- .../Types/Mapping/RoutingField.g.cs | 16 +- .../Types/Mapping/RuntimeField.g.cs | 16 +- .../Mapping/RuntimeFieldFetchFields.g.cs | 16 +- .../Mapping/ScaledFloatNumberProperty.g.cs | 8 +- .../Mapping/SearchAsYouTypeProperty.g.cs | 8 +- .../Mapping/SemanticTextIndexOptions.g.cs | 8 +- .../Types/Mapping/SemanticTextProperty.g.cs | 8 +- .../Types/Mapping/ShapeProperty.g.cs | 8 +- .../Types/Mapping/ShortNumberProperty.g.cs | 8 +- .../_Generated/Types/Mapping/SizeField.g.cs | 16 +- .../_Generated/Types/Mapping/SourceField.g.cs | 8 +- .../Mapping/SparseVectorIndexOptions.g.cs | 8 +- .../Types/Mapping/SparseVectorProperty.g.cs | 8 +- .../Types/Mapping/SuggestContext.g.cs | 22 +- .../Types/Mapping/TextIndexPrefixes.g.cs | 22 +- .../Types/Mapping/TextProperty.g.cs | 8 +- .../Types/Mapping/TokenCountProperty.g.cs | 8 +- .../_Generated/Types/Mapping/TypeMapping.g.cs | 8 +- .../Mapping/UnsignedLongNumberProperty.g.cs | 8 +- .../Types/Mapping/VersionProperty.g.cs | 8 +- .../Types/Mapping/WildcardProperty.g.cs | 8 +- .../_Generated/Types/MergesStats.g.cs | 70 +--- .../_Generated/Types/NestedSortValue.g.cs | 16 +- .../_Generated/Types/NodeAttributes.g.cs | 34 +- .../_Generated/Types/NodeShard.g.cs | 34 +- .../_Generated/Types/NodeStatistics.g.cs | 28 +- .../Types/Nodes/AdaptiveSelection.g.cs | 8 +- .../_Generated/Types/Nodes/Breaker.g.cs | 8 +- .../_Generated/Types/Nodes/Cgroup.g.cs | 8 +- .../_Generated/Types/Nodes/CgroupCpu.g.cs | 8 +- .../_Generated/Types/Nodes/CgroupCpuStat.g.cs | 8 +- .../_Generated/Types/Nodes/CgroupMemory.g.cs | 8 +- .../_Generated/Types/Nodes/Client.g.cs | 8 +- .../Types/Nodes/ClusterAppliedStats.g.cs | 8 +- .../Types/Nodes/ClusterStateQueue.g.cs | 8 +- .../Types/Nodes/ClusterStateUpdate.g.cs | 16 +- .../_Generated/Types/Nodes/Context.g.cs | 8 +- .../_Generated/Types/Nodes/Cpu.g.cs | 8 +- .../_Generated/Types/Nodes/CpuAcct.g.cs | 8 +- .../_Generated/Types/Nodes/DataPathStats.g.cs | 8 +- .../Types/Nodes/DeprecationIndexing.g.cs | 16 +- .../_Generated/Types/Nodes/Discovery.g.cs | 8 +- .../Types/Nodes/ExtendedMemoryStats.g.cs | 8 +- .../_Generated/Types/Nodes/FileSystem.g.cs | 8 +- .../Types/Nodes/FileSystemTotal.g.cs | 8 +- .../Types/Nodes/GarbageCollector.g.cs | 8 +- .../Types/Nodes/GarbageCollectorTotal.g.cs | 8 +- .../Types/Nodes/Http.Converters.g.cs | 6 +- .../_Generated/Types/Nodes/Http.g.cs | 20 +- .../_Generated/Types/Nodes/HttpRoute.g.cs | 22 +- .../Types/Nodes/HttpRouteRequests.g.cs | 28 +- .../Types/Nodes/HttpRouteResponses.g.cs | 34 +- .../Types/Nodes/IndexingPressure.g.cs | 8 +- .../Types/Nodes/IndexingPressureMemory.g.cs | 8 +- .../_Generated/Types/Nodes/Ingest.g.cs | 8 +- .../_Generated/Types/Nodes/IngestStats.g.cs | 52 +-- .../_Generated/Types/Nodes/IngestTotal.g.cs | 34 +- .../_Generated/Types/Nodes/IoStatDevice.g.cs | 8 +- .../_Generated/Types/Nodes/IoStats.g.cs | 8 +- .../_Generated/Types/Nodes/Jvm.g.cs | 8 +- .../_Generated/Types/Nodes/JvmClasses.g.cs | 8 +- .../Types/Nodes/JvmMemoryStats.g.cs | 8 +- .../_Generated/Types/Nodes/JvmThreads.g.cs | 8 +- .../Types/Nodes/KeyedProcessor.g.cs | 8 +- .../_Generated/Types/Nodes/MemoryStats.g.cs | 8 +- .../Types/Nodes/NodeBufferPool.g.cs | 8 +- .../_Generated/Types/Nodes/NodeInfo.g.cs | 88 +---- .../Types/Nodes/NodeInfoAction.g.cs | 16 +- .../Types/Nodes/NodeInfoAggregation.g.cs | 16 +- .../Types/Nodes/NodeInfoBootstrap.g.cs | 16 +- .../Types/Nodes/NodeInfoClient.g.cs | 16 +- .../Types/Nodes/NodeInfoDiscover.g.cs | 8 +- .../_Generated/Types/Nodes/NodeInfoHttp.g.cs | 28 +- .../Types/Nodes/NodeInfoIngest.g.cs | 16 +- .../Types/Nodes/NodeInfoIngestDownloader.g.cs | 16 +- .../Types/Nodes/NodeInfoIngestInfo.g.cs | 16 +- .../Types/Nodes/NodeInfoIngestProcessor.g.cs | 16 +- .../Types/Nodes/NodeInfoJvmMemory.g.cs | 40 +- .../Types/Nodes/NodeInfoMemory.g.cs | 22 +- .../_Generated/Types/Nodes/NodeInfoOSCPU.g.cs | 58 +-- .../_Generated/Types/Nodes/NodeInfoPath.g.cs | 8 +- .../Types/Nodes/NodeInfoRepositories.g.cs | 16 +- .../Types/Nodes/NodeInfoRepositoriesUrl.g.cs | 16 +- .../Types/Nodes/NodeInfoScript.g.cs | 16 +- .../Types/Nodes/NodeInfoSearch.g.cs | 16 +- .../Types/Nodes/NodeInfoSearchRemote.g.cs | 16 +- .../Types/Nodes/NodeInfoSettings.g.cs | 34 +- .../Types/Nodes/NodeInfoSettingsCluster.g.cs | 22 +- .../NodeInfoSettingsClusterElection.g.cs | 16 +- .../Types/Nodes/NodeInfoSettingsHttp.g.cs | 16 +- .../Types/Nodes/NodeInfoSettingsHttpType.g.cs | 16 +- .../Types/Nodes/NodeInfoSettingsIngest.g.cs | 8 +- .../Types/Nodes/NodeInfoSettingsNetwork.g.cs | 8 +- .../Types/Nodes/NodeInfoSettingsNode.g.cs | 22 +- .../Nodes/NodeInfoSettingsTransport.g.cs | 16 +- .../NodeInfoSettingsTransportFeatures.g.cs | 16 +- .../Nodes/NodeInfoSettingsTransportType.g.cs | 16 +- .../Types/Nodes/NodeInfoTransport.g.cs | 28 +- .../_Generated/Types/Nodes/NodeInfoXpack.g.cs | 16 +- .../Types/Nodes/NodeInfoXpackLicense.g.cs | 16 +- .../Types/Nodes/NodeInfoXpackLicenseType.g.cs | 16 +- .../Types/Nodes/NodeInfoXpackMl.g.cs | 8 +- .../Types/Nodes/NodeInfoXpackSecurity.g.cs | 16 +- .../Nodes/NodeInfoXpackSecurityAuthc.g.cs | 8 +- .../NodeInfoXpackSecurityAuthcRealms.g.cs | 8 +- ...odeInfoXpackSecurityAuthcRealmsStatus.g.cs | 16 +- .../NodeInfoXpackSecurityAuthcToken.g.cs | 16 +- .../Types/Nodes/NodeInfoXpackSecuritySsl.g.cs | 16 +- .../_Generated/Types/Nodes/NodeJvmInfo.g.cs | 76 +--- .../Types/Nodes/NodeOperatingSystemInfo.g.cs | 46 +-- .../Types/Nodes/NodeProcessInfo.g.cs | 28 +- .../Nodes/NodeReloadResult.Converters.g.cs | 38 +- .../Types/Nodes/NodeReloadResult.g.cs | 43 ++- .../Types/Nodes/NodeThreadPoolInfo.g.cs | 22 +- .../_Generated/Types/Nodes/NodeUsage.g.cs | 34 +- .../Types/Nodes/OperatingSystem.g.cs | 8 +- .../_Generated/Types/Nodes/Pool.g.cs | 8 +- .../Types/Nodes/PressureMemory.g.cs | 8 +- .../_Generated/Types/Nodes/Process.g.cs | 8 +- .../_Generated/Types/Nodes/Processor.g.cs | 8 +- .../Types/Nodes/PublishedClusterStates.g.cs | 8 +- .../_Generated/Types/Nodes/Recording.g.cs | 8 +- .../Types/Nodes/RemoveClusterServer.g.cs | 22 +- .../Types/Nodes/RepositoryLocation.g.cs | 16 +- .../Nodes/RepositoryMeteringInformation.g.cs | 52 +-- .../_Generated/Types/Nodes/RequestCounts.g.cs | 8 +- .../_Generated/Types/Nodes/ScriptCache.g.cs | 8 +- .../_Generated/Types/Nodes/Scripting.g.cs | 8 +- .../Types/Nodes/SerializedClusterState.g.cs | 8 +- .../Nodes/SerializedClusterStateDetail.g.cs | 8 +- .../Types/Nodes/SizeHttpHistogram.g.cs | 16 +- .../_Generated/Types/Nodes/Stats.g.cs | 8 +- .../_Generated/Types/Nodes/ThreadCount.g.cs | 8 +- .../Types/Nodes/TimeHttpHistogram.g.cs | 16 +- .../_Generated/Types/Nodes/Transport.g.cs | 8 +- .../Types/Nodes/TransportHistogram.g.cs | 8 +- .../_Generated/Types/PinnedRetriever.g.cs | 16 +- .../_Generated/Types/PluginStats.g.cs | 64 +--- .../Types/Project/Tags.Converters.g.cs | 96 +++++ .../_Generated/Types/Project/Tags.g.cs | 59 +++ .../_Generated/Types/QueryCacheStats.g.cs | 52 +-- .../_Generated/Types/QueryDsl/BoolQuery.g.cs | 8 +- .../Types/QueryDsl/BoostingQuery.g.cs | 28 +- .../Types/QueryDsl/CombinedFieldsQuery.g.cs | 22 +- .../Types/QueryDsl/CommonTermsQuery.g.cs | 16 +- .../Types/QueryDsl/ConstantScoreQuery.g.cs | 16 +- .../Types/QueryDsl/DateDecayFunction.g.cs | 22 +- .../QueryDsl/DateDistanceFeatureQuery.g.cs | 28 +- .../Types/QueryDsl/DateRangeQuery.g.cs | 10 +- .../Types/QueryDsl/DecayPlacement.g.cs | 8 +- .../Types/QueryDsl/DisMaxQuery.g.cs | 16 +- .../Types/QueryDsl/ExistsQuery.g.cs | 16 +- .../Types/QueryDsl/FieldAndFormat.g.cs | 16 +- .../Types/QueryDsl/FieldLookup.g.cs | 16 +- .../FieldValueFactorScoreFunction.g.cs | 16 +- .../Types/QueryDsl/FunctionScore.g.cs | 9 +- .../Types/QueryDsl/FunctionScoreQuery.g.cs | 8 +- .../_Generated/Types/QueryDsl/FuzzyQuery.g.cs | 16 +- .../Types/QueryDsl/GeoBoundingBoxQuery.g.cs | 22 +- .../Types/QueryDsl/GeoDecayFunction.g.cs | 22 +- .../QueryDsl/GeoDistanceFeatureQuery.g.cs | 28 +- .../Types/QueryDsl/GeoDistanceQuery.g.cs | 28 +- .../Types/QueryDsl/GeoGridQuery.g.cs | 10 +- .../Types/QueryDsl/GeoPolygonPoints.g.cs | 16 +- .../Types/QueryDsl/GeoPolygonQuery.g.cs | 22 +- .../Types/QueryDsl/GeoShapeFieldQuery.g.cs | 8 +- .../Types/QueryDsl/GeoShapeQuery.g.cs | 22 +- .../Types/QueryDsl/HasChildQuery.g.cs | 22 +- .../Types/QueryDsl/HasParentQuery.g.cs | 22 +- .../_Generated/Types/QueryDsl/IdsQuery.g.cs | 8 +- .../_Generated/Types/QueryDsl/Intervals.g.cs | 9 +- .../Types/QueryDsl/IntervalsAllOf.g.cs | 16 +- .../Types/QueryDsl/IntervalsAnyOf.g.cs | 16 +- .../Types/QueryDsl/IntervalsFilter.g.cs | 9 +- .../Types/QueryDsl/IntervalsFuzzy.g.cs | 16 +- .../Types/QueryDsl/IntervalsMatch.g.cs | 16 +- .../Types/QueryDsl/IntervalsPrefix.g.cs | 16 +- .../Types/QueryDsl/IntervalsQuery.g.cs | 10 +- .../Types/QueryDsl/IntervalsRange.g.cs | 8 +- .../Types/QueryDsl/IntervalsRegexp.g.cs | 16 +- .../Types/QueryDsl/IntervalsWildcard.g.cs | 16 +- .../Types/QueryDsl/LikeDocument.g.cs | 8 +- .../Types/QueryDsl/MatchAllQuery.g.cs | 8 +- .../Types/QueryDsl/MatchBoolPrefixQuery.g.cs | 16 +- .../Types/QueryDsl/MatchNoneQuery.g.cs | 8 +- .../QueryDsl/MatchPhrasePrefixQuery.g.cs | 16 +- .../Types/QueryDsl/MatchPhraseQuery.g.cs | 16 +- .../_Generated/Types/QueryDsl/MatchQuery.g.cs | 16 +- .../Types/QueryDsl/MoreLikeThisQuery.g.cs | 16 +- .../Types/QueryDsl/MultiMatchQuery.g.cs | 16 +- .../Types/QueryDsl/NestedQuery.g.cs | 22 +- .../Types/QueryDsl/NumberRangeQuery.g.cs | 10 +- .../Types/QueryDsl/NumericDecayFunction.g.cs | 22 +- .../Types/QueryDsl/ParentIdQuery.g.cs | 8 +- .../Types/QueryDsl/PercolateQuery.g.cs | 16 +- .../_Generated/Types/QueryDsl/PinnedDoc.g.cs | 16 +- .../Types/QueryDsl/PinnedQuery.g.cs | 16 +- .../Types/QueryDsl/PrefixQuery.g.cs | 16 +- .../_Generated/Types/QueryDsl/Query.g.cs | 9 +- .../Types/QueryDsl/QueryStringQuery.g.cs | 16 +- .../Types/QueryDsl/RandomScoreFunction.g.cs | 8 +- .../QueryDsl/RankFeatureFunctionLinear.g.cs | 8 +- .../RankFeatureFunctionLogarithm.g.cs | 16 +- .../RankFeatureFunctionSaturation.g.cs | 8 +- .../QueryDsl/RankFeatureFunctionSigmoid.g.cs | 22 +- .../Types/QueryDsl/RankFeatureQuery.g.cs | 16 +- .../Types/QueryDsl/RegexpQuery.g.cs | 16 +- .../_Generated/Types/QueryDsl/RuleQuery.g.cs | 22 +- .../Types/QueryDsl/ScriptQuery.g.cs | 16 +- .../Types/QueryDsl/ScriptScoreFunction.g.cs | 16 +- .../Types/QueryDsl/ScriptScoreQuery.g.cs | 22 +- .../Types/QueryDsl/SemanticQuery.g.cs | 22 +- .../Types/QueryDsl/ShapeFieldQuery.g.cs | 8 +- .../_Generated/Types/QueryDsl/ShapeQuery.g.cs | 22 +- .../QueryDsl/SimpleQueryStringQuery.g.cs | 16 +- .../Types/QueryDsl/SpanContainingQuery.g.cs | 22 +- .../Types/QueryDsl/SpanFieldMaskingQuery.g.cs | 22 +- .../Types/QueryDsl/SpanFirstQuery.g.cs | 22 +- .../Types/QueryDsl/SpanMultiTermQuery.g.cs | 16 +- .../Types/QueryDsl/SpanNearQuery.g.cs | 16 +- .../Types/QueryDsl/SpanNotQuery.g.cs | 22 +- .../Types/QueryDsl/SpanOrQuery.g.cs | 16 +- .../_Generated/Types/QueryDsl/SpanQuery.g.cs | 9 +- .../Types/QueryDsl/SpanTermQuery.g.cs | 16 +- .../Types/QueryDsl/SpanWithinQuery.g.cs | 22 +- .../Types/QueryDsl/SparseVectorQuery.g.cs | 16 +- .../_Generated/Types/QueryDsl/TermQuery.g.cs | 16 +- .../Types/QueryDsl/TermRangeQuery.g.cs | 10 +- .../Types/QueryDsl/TermsLookup.g.cs | 28 +- .../_Generated/Types/QueryDsl/TermsQuery.g.cs | 22 +- .../Types/QueryDsl/TermsSetQuery.g.cs | 16 +- .../Types/QueryDsl/TextExpansionQuery.g.cs | 22 +- .../_Generated/Types/QueryDsl/TypeQuery.g.cs | 16 +- .../Types/QueryDsl/UntypedDecayFunction.g.cs | 22 +- .../QueryDsl/UntypedDistanceFeatureQuery.g.cs | 28 +- .../Types/QueryDsl/UntypedRangeQuery.g.cs | 10 +- .../Types/QueryDsl/WeightedTokensQuery.g.cs | 16 +- .../Types/QueryDsl/WildcardQuery.g.cs | 10 +- .../Types/QueryDsl/WrapperQuery.g.cs | 16 +- .../Types/QueryRules/QueryRule.g.cs | 34 +- .../Types/QueryRules/QueryRuleActions.g.cs | 8 +- .../Types/QueryRules/QueryRuleCriteria.g.cs | 16 +- .../QueryRules/QueryRulesetListItem.g.cs | 34 +- .../QueryRules/QueryRulesetMatchedRule.g.cs | 22 +- .../_Generated/Types/QueryVectorBuilder.g.cs | 9 +- .../_Generated/Types/RRFRetriever.g.cs | 16 +- .../Types/RRFRetrieverComponent.g.cs | 16 +- .../_Generated/Types/Rank.g.cs | 9 +- .../_Generated/Types/RecoveryStats.g.cs | 28 +- .../_Generated/Types/RefreshStats.g.cs | 40 +- .../Types/RelocationFailureInfo.g.cs | 16 +- .../_Generated/Types/RequestCacheStats.g.cs | 34 +- .../_Generated/Types/RescoreVector.g.cs | 16 +- .../_Generated/Types/RescorerRetriever.g.cs | 22 +- .../_Generated/Types/Retries.g.cs | 22 +- .../_Generated/Types/Retriever.g.cs | 9 +- .../Types/Rollup/DateHistogramGrouping.g.cs | 16 +- .../_Generated/Types/Rollup/FieldMetric.g.cs | 22 +- .../_Generated/Types/Rollup/Groupings.g.cs | 8 +- .../Types/Rollup/HistogramGrouping.g.cs | 22 +- .../Types/Rollup/IndexCapabilities.g.cs | 16 +- .../Types/Rollup/RollupCapabilities.g.cs | 16 +- .../Types/Rollup/RollupCapabilitySummary.g.cs | 34 +- .../Types/Rollup/RollupFieldSummary.g.cs | 16 +- .../_Generated/Types/Rollup/RollupJob.g.cs | 28 +- .../Types/Rollup/RollupJobConfiguration.g.cs | 58 +-- .../Types/Rollup/RollupJobStats.g.cs | 82 +--- .../Types/Rollup/RollupJobStatus.g.cs | 16 +- .../Types/Rollup/RollupJobSummary.g.cs | 34 +- .../Types/Rollup/RollupJobSummaryField.g.cs | 16 +- .../Types/Rollup/TermsGrouping.g.cs | 16 +- .../_Generated/Types/RrfRank.g.cs | 8 +- .../_Generated/Types/RuleRetriever.g.cs | 28 +- .../_Generated/Types/ScoreSort.g.cs | 8 +- .../_Generated/Types/Script.g.cs | 8 +- .../_Generated/Types/ScriptField.g.cs | 16 +- .../_Generated/Types/ScriptSort.g.cs | 16 +- .../AnalyticsCollection.g.cs | 16 +- .../SearchApplication/EventDataStream.g.cs | 16 +- .../SearchApplication/SearchApplication.g.cs | 28 +- .../SearchApplicationParameters.g.cs | 16 +- .../SearchApplicationTemplate.g.cs | 16 +- .../_Generated/Types/SearchStats.g.cs | 82 +--- .../SearchableSnapshots/MountedSnapshot.g.cs | 28 +- .../Types/SearchableSnapshots/Node.g.cs | 16 +- .../Types/SearchableSnapshots/Shared.g.cs | 58 +-- .../_Generated/Types/Security/Access.g.cs | 8 +- .../_Generated/Types/Security/ApiKey.g.cs | 58 +-- .../Types/Security/ApiKeyAggregation.g.cs | 9 +- .../Security/ApiKeyFiltersAggregation.g.cs | 8 +- .../Types/Security/ApiKeyQuery.g.cs | 9 +- .../ApplicationGlobalUserPrivileges.g.cs | 16 +- .../Types/Security/ApplicationPrivileges.g.cs | 28 +- .../Security/ApplicationPrivilegesCheck.g.cs | 28 +- .../Types/Security/AuthenticateApiKey.g.cs | 22 +- .../Types/Security/AuthenticateToken.g.cs | 16 +- .../Types/Security/AuthenticatedUser.g.cs | 52 +-- .../Types/Security/Authentication.g.cs | 64 +--- .../Security/AuthenticationProvider.g.cs | 22 +- .../Types/Security/AuthenticationRealm.g.cs | 22 +- .../_Generated/Types/Security/BulkError.g.cs | 22 +- .../Types/Security/ClusterNode.g.cs | 16 +- .../Types/Security/CreatedStatus.g.cs | 16 +- .../Types/Security/FieldSecurity.g.cs | 8 +- .../Types/Security/FoundStatus.g.cs | 16 +- .../Types/Security/GetUserProfileErrors.g.cs | 22 +- .../Types/Security/GlobalPrivilege.g.cs | 16 +- .../Types/Security/GrantApiKey.g.cs | 16 +- .../HasPrivilegesUserProfileErrors.g.cs | 22 +- .../_Generated/Types/Security/Hint.g.cs | 8 +- .../Types/Security/IndexPrivilegesCheck.g.cs | 22 +- .../Types/Security/IndicesPrivileges.g.cs | 22 +- .../Types/Security/KibanaToken.g.cs | 22 +- .../Types/Security/ManageUserPrivileges.g.cs | 16 +- .../Types/Security/NodeSecurityStats.g.cs | 16 +- .../Types/Security/NodesCredentials.g.cs | 22 +- .../Security/NodesCredentialsFileToken.g.cs | 16 +- .../Types/Security/PrivilegeActions.g.cs | 16 +- .../Types/Security/PrivilegesCheck.g.cs | 8 +- .../_Generated/Types/Security/QueryRole.g.cs | 16 +- .../_Generated/Types/Security/QueryUser.g.cs | 34 +- .../_Generated/Types/Security/RealmInfo.g.cs | 22 +- .../Security/RemoteClusterPrivileges.g.cs | 22 +- .../Security/RemoteIndicesPrivileges.g.cs | 28 +- .../Security/RemoteUserIndicesPrivileges.g.cs | 34 +- .../Types/Security/ReplicationAccess.g.cs | 16 +- .../Types/Security/Restriction.g.cs | 16 +- .../Types/Security/RoleDescriptor.g.cs | 8 +- .../Types/Security/RoleDescriptorRead.g.cs | 22 +- .../Types/Security/RoleDescriptorWrapper.g.cs | 16 +- .../_Generated/Types/Security/RoleInfo.g.cs | 34 +- .../Types/Security/RoleMapping.g.cs | 28 +- .../Types/Security/RoleMappingRule.g.cs | 9 +- .../_Generated/Types/Security/RoleQuery.g.cs | 9 +- .../Types/Security/RoleTemplate.g.cs | 16 +- .../_Generated/Types/Security/RolesStats.g.cs | 16 +- .../Types/Security/SearchAccess.g.cs | 16 +- .../Types/Security/SecuritySettings.g.cs | 8 +- .../Types/Security/ServiceToken.g.cs | 22 +- .../Types/Security/TotalUserProfiles.g.cs | 22 +- .../_Generated/Types/Security/User.g.cs | 34 +- .../Types/Security/UserIndicesPrivileges.g.cs | 28 +- .../Types/Security/UserProfile.g.cs | 34 +- .../Security/UserProfileHitMetadata.g.cs | 22 +- .../Types/Security/UserProfileUser.g.cs | 28 +- .../Security/UserProfileWithMetadata.g.cs | 46 +-- .../_Generated/Types/Security/UserQuery.g.cs | 9 +- .../_Generated/Types/Security/UserRealm.g.cs | 22 +- .../_Generated/Types/SegmentsStats.g.cs | 88 +---- .../_Generated/Types/ShardFailure.g.cs | 16 +- .../_Generated/Types/ShardStatistics.g.cs | 28 +- .../Simulate/IngestDocumentSimulation.g.cs | 40 +- .../SimulateIngestDocumentResult.g.cs | 8 +- .../_Generated/Types/SlicedScroll.g.cs | 22 +- .../Types/Snapshot/AzureRepository.g.cs | 8 +- .../Snapshot/AzureRepositorySettings.g.cs | 8 +- .../Types/Snapshot/BlobDetails.g.cs | 58 +-- .../Snapshot/CleanupRepositoryResults.g.cs | 22 +- .../Types/Snapshot/CompactNodeInfo.g.cs | 16 +- .../Types/Snapshot/DetailsInfo.g.cs | 46 +-- .../Snapshot/FileCountSnapshotStats.g.cs | 22 +- .../Types/Snapshot/GcsRepository.g.cs | 16 +- .../Types/Snapshot/GcsRepositorySettings.g.cs | 16 +- .../Types/Snapshot/IndexDetails.g.cs | 28 +- .../Types/Snapshot/InfoFeatureState.g.cs | 22 +- .../Types/Snapshot/ReadBlobDetails.g.cs | 28 +- .../Types/Snapshot/ReadOnlyUrlRepository.g.cs | 16 +- .../ReadOnlyUrlRepositorySettings.g.cs | 16 +- .../Types/Snapshot/ReadSummaryInfo.g.cs | 76 +--- .../Types/Snapshot/S3Repository.g.cs | 16 +- .../Types/Snapshot/S3RepositorySettings.g.cs | 16 +- .../Types/Snapshot/ShardsStats.g.cs | 46 +-- .../Types/Snapshot/ShardsStatsSummary.g.cs | 34 +- .../Snapshot/ShardsStatsSummaryItem.g.cs | 22 +- .../Snapshot/SharedFileSystemRepository.g.cs | 16 +- .../SharedFileSystemRepositorySettings.g.cs | 16 +- .../Types/Snapshot/SnapshotIndexStats.g.cs | 28 +- .../Types/Snapshot/SnapshotInfo.g.cs | 28 +- .../Types/Snapshot/SnapshotNodeInfo.g.cs | 22 +- .../Types/Snapshot/SnapshotResponseItem.g.cs | 16 +- .../Types/Snapshot/SnapshotRestore.g.cs | 28 +- .../Types/Snapshot/SnapshotShardFailure.g.cs | 40 +- .../Types/Snapshot/SnapshotShardsStatus.g.cs | 22 +- .../Types/Snapshot/SnapshotStats.g.cs | 34 +- .../Types/Snapshot/SourceOnlyRepository.g.cs | 16 +- .../SourceOnlyRepositorySettings.g.cs | 8 +- .../_Generated/Types/Snapshot/Status.g.cs | 58 +-- .../Types/Snapshot/SummaryInfo.g.cs | 22 +- .../Types/Snapshot/WriteSummaryInfo.g.cs | 52 +-- .../InProgress.g.cs | 34 +- .../Invocation.g.cs | 22 +- .../Retention.g.cs | 28 +- .../SlmConfiguration.g.cs | 8 +- .../SlmPolicy.g.cs | 28 +- .../SnapshotLifecycle.g.cs | 40 +- .../SnapshotPolicyStats.g.cs | 40 +- .../Statistics.g.cs | 8 +- .../_Generated/Types/SortOptions.g.cs | 9 +- .../_Generated/Types/SpecifiedDocument.g.cs | 16 +- .../_Generated/Types/Sql/Column.g.cs | 22 +- .../_Generated/Types/StandardRetriever.g.cs | 8 +- .../_Generated/Types/StoreStats.g.cs | 22 +- .../_Generated/Types/StoredScript.g.cs | 22 +- .../_Generated/Types/Streams/LogsStatus.g.cs | 16 +- .../Types/Synonyms/SynonymRule.g.cs | 16 +- .../Types/Synonyms/SynonymRuleRead.g.cs | 22 +- .../Types/Synonyms/SynonymsSetItem.g.cs | 22 +- .../_Generated/Types/TaskFailure.g.cs | 34 +- .../_Generated/Types/Tasks/NodeTasks.g.cs | 16 +- .../Types/Tasks/ParentTaskInfo.g.cs | 58 +-- .../_Generated/Types/Tasks/TaskInfo.g.cs | 58 +-- .../_Generated/Types/TextEmbedding.g.cs | 16 +- .../Types/TextSimilarityReranker.g.cs | 28 +- .../Types/TextStructure/FieldStat.g.cs | 28 +- .../Types/TextStructure/MatchedField.g.cs | 28 +- .../Types/TextStructure/MatchedText.g.cs | 16 +- .../Types/TextStructure/TopHit.g.cs | 22 +- .../_Generated/Types/TokenPruningConfig.g.cs | 8 +- .../Types/TopLeftBottomRightGeoBounds.g.cs | 22 +- .../Types/TopRightBottomLeftGeoBounds.g.cs | 22 +- .../TransformManagement/CheckpointStats.g.cs | 16 +- .../TransformManagement/Checkpointing.g.cs | 16 +- .../TransformManagement/Destination.g.cs | 8 +- .../Types/TransformManagement/Latest.g.cs | 22 +- .../Types/TransformManagement/Pivot.g.cs | 8 +- .../TransformManagement/PivotGroupBy.g.cs | 9 +- .../TransformManagement/RetentionPolicy.g.cs | 9 +- .../Types/TransformManagement/Settings.g.cs | 8 +- .../Types/TransformManagement/Source.g.cs | 16 +- .../Types/TransformManagement/Sync.g.cs | 9 +- .../TimeRetentionPolicy.g.cs | 22 +- .../Types/TransformManagement/TimeSync.g.cs | 16 +- .../TransformHealthIssue.g.cs | 28 +- .../TransformIndexerStats.g.cs | 100 +---- .../TransformNodeStats.g.cs | 16 +- .../TransformProgress.g.cs | 22 +- .../TransformSchedulerStats.g.cs | 16 +- .../TransformManagement/TransformStats.g.cs | 34 +- .../TransformStatsHealth.g.cs | 16 +- .../TransformManagement/TransformSummary.g.cs | 28 +- .../_Generated/Types/TranslogStats.g.cs | 40 +- .../_Generated/Types/WarmerStats.g.cs | 28 +- .../_Generated/Types/WktGeoBounds.g.cs | 16 +- .../_Generated/Types/Xpack/Analytics.g.cs | 28 +- .../Types/Xpack/AnalyticsStatistics.g.cs | 58 +-- .../_Generated/Types/Xpack/Archive.g.cs | 28 +- .../_Generated/Types/Xpack/Audit.g.cs | 16 +- .../_Generated/Types/Xpack/Base.g.cs | 22 +- .../Types/Xpack/BuildInformation.g.cs | 22 +- .../_Generated/Types/Xpack/Ccr.g.cs | 34 +- .../_Generated/Types/Xpack/Counter.g.cs | 22 +- .../_Generated/Types/Xpack/DataStreams.g.cs | 34 +- .../Types/Xpack/DataTierPhaseStatistics.g.cs | 70 +--- .../_Generated/Types/Xpack/DataTiers.g.cs | 46 +-- .../_Generated/Types/Xpack/Datafeed.g.cs | 16 +- .../_Generated/Types/Xpack/Eql.g.cs | 34 +- .../_Generated/Types/Xpack/EqlFeatures.g.cs | 52 +-- .../Types/Xpack/EqlFeaturesJoin.g.cs | 40 +- .../Types/Xpack/EqlFeaturesKeys.g.cs | 40 +- .../Types/Xpack/EqlFeaturesPipes.g.cs | 22 +- .../Types/Xpack/EqlFeaturesSequences.g.cs | 46 +-- .../_Generated/Types/Xpack/Feature.g.cs | 22 +- .../_Generated/Types/Xpack/FeatureToggle.g.cs | 16 +- .../Types/Xpack/Features.Converters.g.cs | 8 +- .../_Generated/Types/Xpack/Features.g.cs | 172 ++------- .../_Generated/Types/Xpack/Flattened.g.cs | 28 +- .../Types/Xpack/HealthStatistics.g.cs | 28 +- .../_Generated/Types/Xpack/Ilm.g.cs | 22 +- .../Types/Xpack/IlmPolicyStatistics.g.cs | 22 +- .../_Generated/Types/Xpack/Invocations.g.cs | 16 +- .../_Generated/Types/Xpack/IpFilter.g.cs | 22 +- .../_Generated/Types/Xpack/JobUsage.g.cs | 40 +- .../Types/Xpack/MachineLearning.g.cs | 52 +-- .../Xpack/MinimalLicenseInformation.g.cs | 40 +- .../_Generated/Types/Xpack/MlCounter.g.cs | 16 +- .../Types/Xpack/MlDataFrameAnalyticsJobs.g.cs | 16 +- .../MlDataFrameAnalyticsJobsAnalysis.g.cs | 8 +- .../Xpack/MlDataFrameAnalyticsJobsCount.g.cs | 16 +- .../Xpack/MlDataFrameAnalyticsJobsMemory.g.cs | 16 +- .../_Generated/Types/Xpack/MlInference.g.cs | 22 +- .../Types/Xpack/MlInferenceDeployments.g.cs | 34 +- .../Xpack/MlInferenceDeploymentsTimeMs.g.cs | 16 +- .../Xpack/MlInferenceIngestProcessor.g.cs | 34 +- .../MlInferenceIngestProcessorCount.g.cs | 28 +- .../Types/Xpack/MlInferenceTrainedModels.g.cs | 16 +- .../Xpack/MlInferenceTrainedModelsCount.g.cs | 28 +- .../Types/Xpack/MlJobForecasts.g.cs | 22 +- .../_Generated/Types/Xpack/Monitoring.g.cs | 34 +- .../Types/Xpack/NativeCodeInformation.g.cs | 22 +- .../_Generated/Types/Xpack/Phase.g.cs | 22 +- .../_Generated/Types/Xpack/Phases.g.cs | 8 +- .../_Generated/Types/Xpack/Realm.g.cs | 22 +- .../_Generated/Types/Xpack/RealmCache.g.cs | 16 +- .../_Generated/Types/Xpack/RoleMapping.g.cs | 22 +- .../Types/Xpack/RuntimeFieldTypes.g.cs | 28 +- .../Types/Xpack/RuntimeFieldsType.g.cs | 94 +---- .../Types/Xpack/SearchableSnapshots.g.cs | 28 +- .../_Generated/Types/Xpack/Security.g.cs | 88 +---- .../_Generated/Types/Xpack/SecurityRoles.g.cs | 28 +- .../Types/Xpack/SecurityRolesDls.g.cs | 16 +- .../Xpack/SecurityRolesDlsBitSetCache.g.cs | 52 +-- .../Types/Xpack/SecurityRolesFile.g.cs | 28 +- .../Types/Xpack/SecurityRolesNative.g.cs | 28 +- .../_Generated/Types/Xpack/Slm.g.cs | 22 +- .../_Generated/Types/Xpack/Sql.g.cs | 34 +- .../_Generated/Types/Xpack/Ssl.g.cs | 22 +- .../_Generated/Types/Xpack/Vector.g.cs | 34 +- .../_Generated/Types/Xpack/Watcher.g.cs | 40 +- .../Types/Xpack/WatcherActionTotals.g.cs | 22 +- .../Types/Xpack/WatcherActions.g.cs | 16 +- .../_Generated/Types/Xpack/WatcherWatch.g.cs | 22 +- .../Types/Xpack/WatcherWatchTrigger.g.cs | 16 +- .../Xpack/WatcherWatchTriggerSchedule.g.cs | 34 +- .../Types/Xpack/XpackUsageQuery.g.cs | 8 +- 2620 files changed, 15397 insertions(+), 36230 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Project.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqServiceSettings.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqTaskType.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqTaskType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaInputType.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaInputType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaServiceSettings.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaSimilarityType.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaSimilarityType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskSettings.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskType.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeGroq.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeGroq.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeNvidia.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeNvidia.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Project/Tags.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Project/Tags.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 d27c3ffa6ce..08446bd68e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -182,10 +182,12 @@ internal static class ApiUrlLookup internal static ApiUrls InferencePutElser = new ApiUrls(new[] { "_inference/{task_type}/{elser_inference_id}" }); internal static ApiUrls InferencePutGoogleaistudio = new ApiUrls(new[] { "_inference/{task_type}/{googleaistudio_inference_id}" }); internal static ApiUrls InferencePutGooglevertexai = new ApiUrls(new[] { "_inference/{task_type}/{googlevertexai_inference_id}" }); + internal static ApiUrls InferencePutGroq = new ApiUrls(new[] { "_inference/{task_type}/{groq_inference_id}" }); internal static ApiUrls InferencePutHuggingFace = new ApiUrls(new[] { "_inference/{task_type}/{huggingface_inference_id}" }); internal static ApiUrls InferencePutJinaai = new ApiUrls(new[] { "_inference/{task_type}/{jinaai_inference_id}" }); 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 InferencePutNvidia = new ApiUrls(new[] { "_inference/{task_type}/{nvidia_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}" }); @@ -336,6 +338,7 @@ internal static class ApiUrlLookup internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" }); internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" }); internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" }); + internal static ApiUrls ProjectTags = new ApiUrls(new[] { "_project/tags" }); internal static ApiUrls QueryRulesDeleteRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" }); internal static ApiUrls QueryRulesDeleteRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" }); internal static ApiUrls QueryRulesGetRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs index 4f445b98070..8c7f1a7ca72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs @@ -62,11 +62,11 @@ public sealed partial class AsyncSearchStatusRequest : Elastic.Clients.Elasticse public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public AsyncSearchStatusRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,11 +86,7 @@ internal AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// A unique identifier for the async search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -183,6 +179,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 a463956f8b1..8e7656e91c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs @@ -70,11 +70,7 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J /// /// public System.DateTimeOffset? ExpirationTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ExpirationTimeInMillis { get; set; } + public required System.DateTimeOffset ExpirationTimeInMillis { get; set; } public string? Id { get; set; } /// @@ -83,11 +79,7 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J /// While the query is running, is_partial is always set to true. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsPartial { get; set; } + public required bool IsPartial { get; set; } /// /// @@ -98,26 +90,14 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J /// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsRunning { get; set; } + public required bool IsRunning { get; set; } /// /// /// The number of shards that have run the query so far. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } public System.DateTimeOffset? StartTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs index bab954971b2..669c6418446 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs @@ -44,11 +44,11 @@ public sealed partial class DeleteAsyncSearchRequest : Elastic.Clients.Elasticse public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteAsyncSearchRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +68,7 @@ internal DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// A unique identifier for the async search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -134,6 +130,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.DeleteAsyncSearchRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.AsyncSearch.DeleteAsyncSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs index 51ae2d0428e..425f33b1902 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs index 20667989cd0..03b1c60a7a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs @@ -69,11 +69,11 @@ public partial class GetAsyncSearchRequest : Elastic.Clients.Elasticsearch.Reque public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetAsyncSearchRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -93,11 +93,7 @@ internal GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// A unique identifier for the async search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -224,6 +220,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 836a7ac0f9e..92183e1c614 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs @@ -53,11 +53,7 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// /// public System.DateTimeOffset? ExpirationTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ExpirationTimeInMillis { get; set; } + public required System.DateTimeOffset ExpirationTimeInMillis { get; set; } public string? Id { get; set; } /// @@ -66,11 +62,7 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// While the query is running, is_partial is always set to true. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsPartial { get; set; } + public required bool IsPartial { get; set; } /// /// @@ -81,20 +73,8 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsRunning { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch Response { get; set; } + public required bool IsRunning { get; set; } + public required Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch Response { get; set; } public System.DateTimeOffset? StartTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.Converters.g.cs index b9781d0a238..27855c33f45 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.Converters.g.cs @@ -40,6 +40,7 @@ public sealed partial class SubmitAsyncSearchRequestConverter : System.Text.Json private static readonly System.Text.Json.JsonEncodedText PropPit = System.Text.Json.JsonEncodedText.Encode("pit"u8); private static readonly System.Text.Json.JsonEncodedText PropPostFilter = System.Text.Json.JsonEncodedText.Encode("post_filter"u8); private static readonly System.Text.Json.JsonEncodedText PropProfile = System.Text.Json.JsonEncodedText.Encode("profile"u8); + private static readonly System.Text.Json.JsonEncodedText PropProjectRouting = System.Text.Json.JsonEncodedText.Encode("project_routing"u8); private static readonly System.Text.Json.JsonEncodedText PropQuery = System.Text.Json.JsonEncodedText.Encode("query"u8); private static readonly System.Text.Json.JsonEncodedText PropRescore = System.Text.Json.JsonEncodedText.Encode("rescore"u8); private static readonly System.Text.Json.JsonEncodedText PropRuntimeMappings = System.Text.Json.JsonEncodedText.Encode("runtime_mappings"u8); @@ -76,6 +77,7 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchReque LocalJsonValue propPit = default; LocalJsonValue propPostFilter = default; LocalJsonValue propProfile = default; + LocalJsonValue propProjectRouting = default; LocalJsonValue propQuery = default; LocalJsonValue?> propRescore = default; LocalJsonValue?> propRuntimeMappings = default; @@ -166,6 +168,11 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchReque continue; } + if (propProjectRouting.TryReadProperty(ref reader, options, PropProjectRouting, null)) + { + continue; + } + if (propQuery.TryReadProperty(ref reader, options, PropQuery, null)) { continue; @@ -282,6 +289,7 @@ public override Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchReque Pit = propPit.Value, PostFilter = propPostFilter.Value, Profile = propProfile.Value, + ProjectRouting = propProjectRouting.Value, Query = propQuery.Value, Rescore = propRescore.Value, RuntimeMappings = propRuntimeMappings.Value, @@ -320,6 +328,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropPit, value.Pit, null, null); writer.WriteProperty(options, PropPostFilter, value.PostFilter, null, 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)); + writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteProperty(options, PropQuery, value.Query, null, null); writer.WriteProperty(options, PropRescore, value.Rescore, 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, PropRuntimeMappings, value.RuntimeMappings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, null)); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index bb029c10b43..fb4e26ec898 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -255,16 +255,11 @@ public partial class SubmitAsyncSearchRequest : Elastic.Clients.Elasticsearch.Re public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public SubmitAsyncSearchRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public SubmitAsyncSearchRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -568,6 +563,20 @@ internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js public Elastic.Clients.Elasticsearch.QueryDsl.Query? PostFilter { get; set; } public bool? Profile { get; set; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get; set; } + /// /// /// Defines the search definition using the Query DSL. @@ -1520,6 +1529,24 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// Defines the search definition using the Query DSL. @@ -2026,6 +2053,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -2817,6 +2849,24 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// Defines the search definition using the Query DSL. @@ -3238,6 +3288,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 50844509f41..6ed81b4edcb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs @@ -53,11 +53,7 @@ internal SubmitAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J /// /// public System.DateTimeOffset? ExpirationTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ExpirationTimeInMillis { get; set; } + public required System.DateTimeOffset ExpirationTimeInMillis { get; set; } public string? Id { get; set; } /// @@ -66,11 +62,7 @@ internal SubmitAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J /// While the query is running, is_partial is always set to true. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsPartial { get; set; } + public required bool IsPartial { get; set; } /// /// @@ -81,20 +73,8 @@ internal SubmitAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J /// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsRunning { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch Response { get; set; } + public required bool IsRunning { get; set; } + public required Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch Response { get; set; } public System.DateTimeOffset? StartTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs index a4968fa4143..95bc7477efd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs @@ -335,16 +335,11 @@ public partial class BulkRequest : Elastic.Clients.Elasticsearch.Requests.PlainR public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) { } -#if NET7_0_OR_GREATER - public BulkRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public BulkRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BulkRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -919,6 +914,11 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor ErrorTrace(bool? valu return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.BulkRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1399,6 +1399,11 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.BulkRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs index 92e581942ea..9a5a2e33625 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs @@ -42,11 +42,7 @@ internal BulkResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// If true, one or more of the operations in the bulk request did not complete successfully. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Errors { get; set; } + public required bool Errors { get; set; } public long? IngestTook { get; set; } /// @@ -54,20 +50,12 @@ internal BulkResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The result of each operation in the bulk request, in the order they were submitted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Items { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Items { get; set; } /// /// /// The length of time, in milliseconds, it took to process the bulk request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Took { get; set; } + public required long Took { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CapabilitiesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CapabilitiesRequest.g.cs index 2ed4eb6da99..7bf5e3ab489 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CapabilitiesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CapabilitiesRequest.g.cs @@ -77,16 +77,10 @@ public sealed partial class CapabilitiesRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.CapabilitiesRequestConverter))] public sealed partial class CapabilitiesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public CapabilitiesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public CapabilitiesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CapabilitiesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -276,6 +270,11 @@ public Elastic.Clients.Elasticsearch.CapabilitiesRequestDescriptor ErrorTrace(bo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CapabilitiesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CapabilitiesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CapabilitiesResponse.g.cs index 2b0083e511e..c23f021078b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CapabilitiesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CapabilitiesResponse.g.cs @@ -37,20 +37,8 @@ internal CapabilitiesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } + public required string ClusterName { get; set; } public System.Collections.Generic.IReadOnlyCollection? Failures { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.NodeStatistics Nodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool? Supported { get; set; } + public required Elastic.Clients.Elasticsearch.NodeStatistics Nodes { get; set; } + public required bool? Supported { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs index d14afa85909..a23eae355cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class ClearScrollRequestParameters : Elastic.Transport.Req [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ClearScrollRequestConverter))] public sealed partial class ClearScrollRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ClearScrollRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ClearScrollRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearScrollRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -128,6 +122,11 @@ public Elastic.Clients.Elasticsearch.ClearScrollRequestDescriptor ErrorTrace(boo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ClearScrollRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollResponse.g.cs index 646e2d055cb..7a3490a3dc2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollResponse.g.cs @@ -42,11 +42,7 @@ internal ClearScrollResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The number of scrolling search requests cleared. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumFreed { get; set; } + public required int NumFreed { get; set; } /// /// @@ -54,9 +50,5 @@ internal ClearScrollResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// This does not indicate whether any scrolling search requests were cleared. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Succeeded { get; set; } + public required bool Succeeded { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs index 3a5c1826f5e..bb1311d7c8f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -46,17 +46,11 @@ public ClosePointInTimeRequest(Elastic.Clients.Elasticsearch.Id id) { Id = id; } -#if NET7_0_OR_GREATER - public ClosePointInTimeRequest() - { - } -#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 ClosePointInTimeRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClosePointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +70,7 @@ internal ClosePointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The ID of the point-in-time. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } } /// @@ -137,6 +127,11 @@ public Elastic.Clients.Elasticsearch.ClosePointInTimeRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ClosePointInTimeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs index 35ddcd48fe5..7e94a8ade72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs @@ -42,20 +42,12 @@ internal ClosePointInTimeResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The number of search contexts that were successfully closed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumFreed { get; set; } + public required int NumFreed { get; set; } /// /// /// If true, all search contexts associated with the point-in-time ID were successfully closed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Succeeded { get; set; } + public required bool Succeeded { get; set; } } \ No newline at end of file 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 74d87454c35..6513cf752b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs @@ -63,16 +63,10 @@ public sealed partial class AllocationExplainRequestParameters : Elastic.Transpo [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.AllocationExplainRequestConverter))] public sealed partial class AllocationExplainRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public AllocationExplainRequest() { } -#endif -#if !NET7_0_OR_GREATER - public AllocationExplainRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AllocationExplainRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -264,6 +258,11 @@ public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainResponse.g.cs index 486161d9621..76ba2a91792 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainResponse.g.cs @@ -51,31 +51,15 @@ internal AllocationExplainResponse(Elastic.Clients.Elasticsearch.Serialization.J public Elastic.Clients.Elasticsearch.Duration? ConfiguredDelay { get; set; } public System.TimeSpan? ConfiguredDelayInMillis { get; set; } public Elastic.Clients.Elasticsearch.Cluster.CurrentNode? CurrentNode { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string CurrentState { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Index { get; set; } + public required string CurrentState { get; set; } + public required string Index { get; set; } public string? MoveExplanation { get; set; } public System.Collections.Generic.IReadOnlyCollection? NodeAllocationDecisions { get; set; } public string? Note { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Primary { get; set; } + public required bool Primary { get; set; } public string? RebalanceExplanation { get; set; } public Elastic.Clients.Elasticsearch.Duration? RemainingDelay { get; set; } public System.TimeSpan? RemainingDelayInMillis { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int Shard { get; set; } + public required int Shard { get; set; } public Elastic.Clients.Elasticsearch.Cluster.UnassignedInformation? UnassignedInfo { get; set; } } \ No newline at end of file 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 51ca7257181..0b0278004e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class ClusterInfoRequest : Elastic.Clients.Elasticsearch.R public ClusterInfoRequest(System.Collections.Generic.ICollection target) : base(r => r.Required("target", target)) { } -#if NET7_0_OR_GREATER + public ClusterInfoRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal ClusterInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Target { get => P>("target"); set => PR("target", value); } + public required System.Collections.Generic.ICollection Target { get => P>("target"); set => PR("target", value); } } /// @@ -141,6 +137,11 @@ public Elastic.Clients.Elasticsearch.Cluster.ClusterInfoRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.ClusterInfoRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoResponse.g.cs index b724316b4ab..413cfddf572 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoResponse.g.cs @@ -37,11 +37,7 @@ internal ClusterInfoResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } + public required string ClusterName { get; set; } public Elastic.Clients.Elasticsearch.Nodes.Http? Http { get; set; } public Elastic.Clients.Elasticsearch.Nodes.Ingest? Ingest { get; set; } public Elastic.Clients.Elasticsearch.Nodes.Scripting? Script { get; set; } 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 4402f9ddc5a..5bf77272543 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs @@ -56,16 +56,11 @@ public sealed partial class ClusterStatsRequest : Elastic.Clients.Elasticsearch. public ClusterStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) { } -#if NET7_0_OR_GREATER - public ClusterStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ClusterStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -189,6 +184,11 @@ public Elastic.Clients.Elasticsearch.Cluster.ClusterStatsRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.ClusterStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs index e3adef4794f..0a38f96c5f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs @@ -42,55 +42,35 @@ internal ClusterStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Cross-cluster stats /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.CCSStats Ccs { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.CCSStats Ccs { get; set; } /// /// /// Name of the cluster, based on the cluster name setting. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterName { get; set; } + public required string ClusterName { get; set; } /// /// /// Unique identifier for the cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterUuid { get; set; } + public required string ClusterUuid { get; set; } /// /// /// Contains statistics about indices with shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterIndices Indices { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterIndices Indices { get; set; } /// /// /// Contains statistics about nodes selected by the request’s node filters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterNodes Nodes { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterNodes Nodes { get; set; } /// /// @@ -104,22 +84,14 @@ internal ClusterStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Contains stats on repository feature usage exposed in cluster stats for telemetry. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary> Repositories { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Repositories { get; set; } /// /// /// Contains stats cluster snapshots. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterSnapshotStats Snapshots { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterSnapshotStats Snapshots { get; set; } /// /// @@ -133,9 +105,5 @@ internal ClusterStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Unix timestamp, in milliseconds, for the last time the cluster statistics were refreshed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Timestamp { get; set; } + public required long Timestamp { get; set; } } \ No newline at end of file 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 d17945be45d..95ca41945c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class DeleteComponentTemplateRequest : Elastic.Clients.Ela public DeleteComponentTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteComponentTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,11 +81,7 @@ internal DeleteComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serializat /// Comma-separated list or wildcard expression of component template names used to limit the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// @@ -185,6 +181,11 @@ public Elastic.Clients.Elasticsearch.Cluster.DeleteComponentTemplateRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.DeleteComponentTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateResponse.g.cs index b7302d1345d..c6249457c38 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteComponentTemplateResponse(Elastic.Clients.Elasticsearch.Serializa /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 255482874d8..e7e5c3e6c48 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs @@ -56,16 +56,10 @@ public sealed partial class DeleteVotingConfigExclusionsRequestParameters : Elas [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.DeleteVotingConfigExclusionsRequestConverter))] public sealed partial class DeleteVotingConfigExclusionsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public DeleteVotingConfigExclusionsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public DeleteVotingConfigExclusionsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteVotingConfigExclusionsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -172,6 +166,11 @@ public Elastic.Clients.Elasticsearch.Cluster.DeleteVotingConfigExclusionsRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.DeleteVotingConfigExclusionsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 8e20046a98b..eeb3b0e18cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs @@ -59,11 +59,11 @@ public sealed partial class ExistsComponentTemplateRequest : Elastic.Clients.Ela public ExistsComponentTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public ExistsComponentTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExistsComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,11 +84,7 @@ internal ExistsComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serializat /// Wildcard (*) expressions are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// @@ -193,6 +189,11 @@ public Elastic.Clients.Elasticsearch.Cluster.ExistsComponentTemplateRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.ExistsComponentTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs index 46cd3e954a9..f6b9df7b69b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs @@ -72,16 +72,10 @@ public sealed partial class GetClusterSettingsRequestParameters : Elastic.Transp [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.GetClusterSettingsRequestConverter))] public sealed partial class GetClusterSettingsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetClusterSettingsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetClusterSettingsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetClusterSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -228,6 +222,11 @@ public Elastic.Clients.Elasticsearch.Cluster.GetClusterSettingsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.GetClusterSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs index c699c07dfe7..6c58781a4c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs @@ -49,20 +49,12 @@ internal GetClusterSettingsResponse(Elastic.Clients.Elasticsearch.Serialization. /// The settings that persist after the cluster restarts. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Persistent { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Persistent { get; set; } /// /// /// The settings that do not persist after the cluster restarts. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Transient { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Transient { get; set; } } \ No newline at end of file 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 23a1ba55926..9b0f2d1c5a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs @@ -78,16 +78,11 @@ public sealed partial class GetComponentTemplateRequest : Elastic.Clients.Elasti public GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetComponentTemplateRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetComponentTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -280,6 +275,11 @@ public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateResponse.g.cs index e2325c2bf5d..580cf99d7e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateResponse.g.cs @@ -37,9 +37,5 @@ internal GetComponentTemplateResponse(Elastic.Clients.Elasticsearch.Serializatio _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection ComponentTemplates { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ComponentTemplates { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs index f753be5d218..7de9a5b5900 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs @@ -127,16 +127,11 @@ public sealed partial class HealthRequest : Elastic.Clients.Elasticsearch.Reques public HealthRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public HealthRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public HealthRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HealthRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -439,6 +434,11 @@ public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor ErrorTrace( return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -679,6 +679,11 @@ public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.HealthRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs index 45a34eeafff..f192fa3bf96 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs @@ -42,22 +42,14 @@ internal HealthResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The number of active primary shards. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ActivePrimaryShards { get; set; } + public required int ActivePrimaryShards { get; set; } /// /// /// The total number of active primary and replica shards. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ActiveShards { get; set; } + public required int ActiveShards { get; set; } /// /// @@ -71,33 +63,21 @@ internal HealthResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The ratio of active shards in the cluster expressed as a percentage. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double ActiveShardsPercentAsNumber { get; set; } + public required double ActiveShardsPercentAsNumber { get; set; } /// /// /// The name of the cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterName { get; set; } + public required string ClusterName { get; set; } /// /// /// The number of shards whose allocation has been delayed by the timeout settings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DelayedUnassignedShards { get; set; } + public required int DelayedUnassignedShards { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Indices { get; set; } /// @@ -105,71 +85,43 @@ internal HealthResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The number of shards that are under initialization. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int InitializingShards { get; set; } + public required int InitializingShards { get; set; } /// /// /// The number of nodes that are dedicated data nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumberOfDataNodes { get; set; } + public required int NumberOfDataNodes { get; set; } /// /// /// The number of unfinished fetches. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumberOfInFlightFetch { get; set; } + public required int NumberOfInFlightFetch { get; set; } /// /// /// The number of nodes within the cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumberOfNodes { get; set; } + public required int NumberOfNodes { get; set; } /// /// /// The number of cluster-level changes that have not yet been executed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumberOfPendingTasks { get; set; } + public required int NumberOfPendingTasks { get; set; } /// /// /// The number of shards that are under relocation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int RelocatingShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } + public required int RelocatingShards { get; set; } + public required Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } /// /// @@ -183,42 +135,26 @@ internal HealthResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The time expressed in milliseconds since the earliest initiated task is waiting for being performed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TaskMaxWaitingInQueueMillis { get; set; } + public required System.TimeSpan TaskMaxWaitingInQueueMillis { get; set; } /// /// /// If false the response returned within the period of time that is specified by the timeout parameter (30s by default) /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool TimedOut { get; set; } + public required bool TimedOut { get; set; } /// /// /// The number of primary shards that are not allocated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int UnassignedPrimaryShards { get; set; } + public required int UnassignedPrimaryShards { get; set; } /// /// /// The number of shards that are not allocated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int UnassignedShards { get; set; } + public required int UnassignedShards { get; set; } } \ No newline at end of file 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 c00f71cff25..1cc2d20b339 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs @@ -58,16 +58,10 @@ public sealed partial class PendingTasksRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.PendingTasksRequestConverter))] public sealed partial class PendingTasksRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public PendingTasksRequest() { } -#endif -#if !NET7_0_OR_GREATER - public PendingTasksRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PendingTasksRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -173,6 +167,11 @@ public Elastic.Clients.Elasticsearch.Cluster.PendingTasksRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.PendingTasksRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksResponse.g.cs index 7683fd6b08c..004bb423202 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksResponse.g.cs @@ -37,9 +37,5 @@ internal PendingTasksResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Tasks { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Tasks { get; set; } } \ No newline at end of file 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 3bd22f7f840..bf4d43d241e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs @@ -89,16 +89,10 @@ public sealed partial class PostVotingConfigExclusionsRequestParameters : Elasti [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.PostVotingConfigExclusionsRequestConverter))] public sealed partial class PostVotingConfigExclusionsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public PostVotingConfigExclusionsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public PostVotingConfigExclusionsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PostVotingConfigExclusionsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -260,6 +254,11 @@ public Elastic.Clients.Elasticsearch.Cluster.PostVotingConfigExclusionsRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.PostVotingConfigExclusionsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutClusterSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutClusterSettingsRequest.g.cs index e2e7fe5dd35..d445ecbd829 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutClusterSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutClusterSettingsRequest.g.cs @@ -78,16 +78,10 @@ public sealed partial class PutClusterSettingsRequestParameters : Elastic.Transp [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.PutClusterSettingsRequestConverter))] public sealed partial class PutClusterSettingsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public PutClusterSettingsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public PutClusterSettingsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutClusterSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -316,6 +310,11 @@ public Elastic.Clients.Elasticsearch.Cluster.PutClusterSettingsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.PutClusterSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutClusterSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutClusterSettingsResponse.g.cs index 92cccfcbc8f..20c85538b7d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutClusterSettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutClusterSettingsResponse.g.cs @@ -37,19 +37,7 @@ internal PutClusterSettingsResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Persistent { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Transient { get; set; } + public required bool Acknowledged { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Persistent { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Transient { get; set; } } \ No newline at end of file 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 1ae75ee04ca..70d0abc3327 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs @@ -94,11 +94,11 @@ public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name name, Elas { Template = template; } -#if NET7_0_OR_GREATER + public PutComponentTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -122,11 +122,7 @@ internal PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization /// If you don’t use Elastic Agent and want to disable all built-in component and index templates, set stack.templates.enabled to false using the cluster update settings API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -173,11 +169,7 @@ internal PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization /// The template to be applied which includes mappings, settings, or aliases configuration. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMapping Template { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMapping Template { get; set; } /// /// @@ -428,6 +420,11 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -693,6 +690,11 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateResponse.g.cs index 7874395f401..bde07c6ccd6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateResponse.g.cs @@ -42,9 +42,5 @@ internal PutComponentTemplateResponse(Elastic.Clients.Elasticsearch.Serializatio /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.Converters.g.cs index a7901e46e6f..f597a83b3a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.Converters.g.cs @@ -25,14 +25,21 @@ namespace Elastic.Clients.Elasticsearch.Json; public sealed partial class CountRequestConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText PropProjectRouting = System.Text.Json.JsonEncodedText.Encode("project_routing"u8); private static readonly System.Text.Json.JsonEncodedText PropQuery = System.Text.Json.JsonEncodedText.Encode("query"u8); public override Elastic.Clients.Elasticsearch.CountRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propProjectRouting = default; LocalJsonValue propQuery = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { + if (propProjectRouting.TryReadProperty(ref reader, options, PropProjectRouting, null)) + { + continue; + } + if (propQuery.TryReadProperty(ref reader, options, PropQuery, null)) { continue; @@ -50,6 +57,7 @@ public override Elastic.Clients.Elasticsearch.CountRequest Read(ref System.Text. reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { + ProjectRouting = propProjectRouting.Value, Query = propQuery.Value }; } @@ -57,6 +65,7 @@ public override Elastic.Clients.Elasticsearch.CountRequest Read(ref System.Text. public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.CountRequest value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); + writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteProperty(options, PropQuery, value.Query, null, null); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index bc86de41c9f..2bd2f44aa50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -169,16 +169,11 @@ public partial class CountRequest : Elastic.Clients.Elasticsearch.Requests.Plain public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public CountRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public CountRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -319,6 +314,20 @@ internal CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get; set; } + /// /// /// Defines the search query using Query DSL. A request body query cannot be used @@ -570,6 +579,24 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor TerminateAfter(long? return this; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.CountRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// Defines the search query using Query DSL. A request body query cannot be used @@ -625,6 +652,11 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor ErrorTrace(bool? val return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CountRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -904,6 +936,24 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor Terminate return this; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.CountRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// Defines the search query using Query DSL. A request body query cannot be used @@ -947,6 +997,11 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CountRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountResponse.g.cs index 7696c01cf0f..cdb0ab48f60 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountResponse.g.cs @@ -37,14 +37,6 @@ internal CountResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required long Count { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs index 48708252872..668e6692ebe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs @@ -237,11 +237,11 @@ public CreateRequest(TDocument document) : base(r => r.Required("index", (Elasti { Document = document; } -#if NET7_0_OR_GREATER + public CreateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -262,11 +262,7 @@ internal CreateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// To automatically generate a document ID, use the POST /<target>/_doc/ request format. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -275,11 +271,7 @@ internal CreateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// If the target doesn't exist and doesn’t match a data stream template, this request creates the index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -365,11 +357,7 @@ internal CreateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - public -#if NET7_0_OR_GREATER - required -#endif - TDocument Document { get; set; } + public required TDocument Document { get; set; } } /// @@ -682,6 +670,11 @@ public Elastic.Clients.Elasticsearch.CreateRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CreateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs index 907942415b4..bcaec2536c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs @@ -50,22 +50,14 @@ internal CreateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The unique identifier for the added document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// The name of the index the document was added to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// @@ -79,11 +71,7 @@ internal CreateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The result of the indexing operation: created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } /// /// @@ -98,20 +86,12 @@ internal CreateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Information about the replication process of the operation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } /// /// /// The document version, which is incremented each time the document is updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs index 8b2f7c8dc1f..211bef62e99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs @@ -53,16 +53,10 @@ public sealed partial class CcrStatsRequestParameters : Elastic.Transport.Reques [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.CrossClusterReplication.Json.CcrStatsRequestConverter))] public sealed partial class CcrStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public CcrStatsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public CcrStatsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CcrStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -163,6 +157,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.CcrStatsRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.CcrStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsResponse.g.cs index 3cc0a7a2e92..43e29d4175c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsResponse.g.cs @@ -42,20 +42,12 @@ internal CcrStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Statistics for the auto-follow coordinator. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.CrossClusterReplication.AutoFollowStats AutoFollowStats { get; set; } + public required Elastic.Clients.Elasticsearch.CrossClusterReplication.AutoFollowStats AutoFollowStats { get; set; } /// /// /// Shard-level statistics for follower indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowStats FollowStats { get; set; } + public required Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowStats FollowStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs index db654b9ea0a..6505fd4d7f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class DeleteAutoFollowPatternRequest : Elastic.Clients.Ela public DeleteAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteAutoFollowPatternRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal DeleteAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serializat /// The auto-follow pattern collection to delete. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -160,6 +156,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.DeleteAutoFollowPat return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.DeleteAutoFollowPatternRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternResponse.g.cs index b50e256a6a6..e948ef0e839 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteAutoFollowPatternResponse(Elastic.Clients.Elasticsearch.Serializa /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs index e357454d8f8..b4a7ab26113 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs @@ -51,11 +51,11 @@ public sealed partial class FollowInfoRequest : Elastic.Clients.Elasticsearch.Re public FollowInfoRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public FollowInfoRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FollowInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -75,11 +75,7 @@ internal FollowInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// A comma-delimited list of follower index patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -162,6 +158,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowInfoRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowInfoRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -269,6 +270,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowInfoRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowInfoRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoResponse.g.cs index c822bc068c0..d36c01ef7e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoResponse.g.cs @@ -37,9 +37,5 @@ internal FollowInfoResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection FollowerIndices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection FollowerIndices { get; set; } } \ No newline at end of file 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 f00ca38048f..c1f993d34e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs @@ -67,11 +67,11 @@ public FollowRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie LeaderIndex = leaderIndex; RemoteCluster = remoteCluster; } -#if NET7_0_OR_GREATER + public FollowRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -91,11 +91,7 @@ internal FollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The name of the follower index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -126,11 +122,7 @@ internal FollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The name of the index in the leader cluster to follow. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName LeaderIndex { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName LeaderIndex { get; set; } /// /// @@ -212,11 +204,7 @@ internal FollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The remote cluster containing the leader index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RemoteCluster { get; set; } + public required string RemoteCluster { get; set; } /// /// @@ -537,6 +525,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -875,6 +868,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowResponse.g.cs index 9e29618f990..b8b688700be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowResponse.g.cs @@ -37,19 +37,7 @@ internal FollowResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool FollowIndexCreated { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool FollowIndexShardsAcked { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool IndexFollowingStarted { get; set; } + public required bool FollowIndexCreated { get; set; } + public required bool FollowIndexShardsAcked { get; set; } + public required bool IndexFollowingStarted { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs index ffd58a03cb0..676a21a8631 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class FollowStatsRequest : Elastic.Clients.Elasticsearch.R public FollowStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public FollowStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FollowStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal FollowStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// A comma-delimited list of index patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -159,6 +155,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowStatsRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -265,6 +266,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowStatsRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsResponse.g.cs index 55646255dca..7bbdd01cd19 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsResponse.g.cs @@ -42,9 +42,5 @@ internal FollowStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// An array of follower index statistics. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } } \ No newline at end of file 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 58f149d8581..8511e6bd039 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs @@ -60,11 +60,11 @@ public sealed partial class ForgetFollowerRequest : Elastic.Clients.Elasticsearc public ForgetFollowerRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public ForgetFollowerRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ForgetFollowerRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,11 +84,7 @@ internal ForgetFollowerRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Name of the leader index for which specified follower retention leases should be removed /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -206,6 +202,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.ForgetFollowerReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.ForgetFollowerRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -346,6 +347,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.ForgetFollowerReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.ForgetFollowerRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerResponse.g.cs index 6b430f05e2c..5aee0e2ebc6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerResponse.g.cs @@ -37,9 +37,5 @@ internal ForgetFollowerResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs index 7421c2e43fa..3614ea9b7c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs @@ -49,16 +49,11 @@ public sealed partial class GetAutoFollowPatternRequest : Elastic.Clients.Elasti public GetAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetAutoFollowPatternRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetAutoFollowPatternRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -166,6 +161,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.GetAutoFollowPatter return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.GetAutoFollowPatternRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternResponse.g.cs index 7b091c1bc97..4b836f05aea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternResponse.g.cs @@ -37,9 +37,5 @@ internal GetAutoFollowPatternResponse(Elastic.Clients.Elasticsearch.Serializatio _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Patterns { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Patterns { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs index ff2a0d04a87..8990853ebfb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class PauseAutoFollowPatternRequest : Elastic.Clients.Elas public PauseAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PauseAutoFollowPatternRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PauseAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,11 +81,7 @@ internal PauseAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serializati /// The name of the auto-follow pattern to pause. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -174,6 +170,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.PauseAutoFollowPatt return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.PauseAutoFollowPatternRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternResponse.g.cs index 4db78bc0f29..86f7f91df08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternResponse.g.cs @@ -42,9 +42,5 @@ internal PauseAutoFollowPatternResponse(Elastic.Clients.Elasticsearch.Serializat /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs index f7c7f0037b3..0f336cae23b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs @@ -53,11 +53,11 @@ public sealed partial class PauseFollowRequest : Elastic.Clients.Elasticsearch.R public PauseFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public PauseFollowRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PauseFollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -77,11 +77,7 @@ internal PauseFollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The name of the follower index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -166,6 +162,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.PauseFollowRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.PauseFollowRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -275,6 +276,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.PauseFollowRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.PauseFollowRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowResponse.g.cs index 2f423908a54..8c20ecaba96 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowResponse.g.cs @@ -42,9 +42,5 @@ internal PauseFollowResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 63d9a43a2aa..3aa10132816 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs @@ -61,11 +61,11 @@ public PutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name, stri { RemoteCluster = remoteCluster; } -#if NET7_0_OR_GREATER + public PutAutoFollowPatternRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,11 +85,7 @@ internal PutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serialization /// The name of the collection of auto-follow patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -194,11 +190,7 @@ internal PutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serialization /// The remote cluster containing the leader indices to match against. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RemoteCluster { get; set; } + public required string RemoteCluster { get; set; } /// /// @@ -533,6 +525,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.PutAutoFollowPatter return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.PutAutoFollowPatternRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternResponse.g.cs index 3155a31a500..4fa3241fc86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternResponse.g.cs @@ -42,9 +42,5 @@ internal PutAutoFollowPatternResponse(Elastic.Clients.Elasticsearch.Serializatio /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs index 277acda478a..ae947bd907f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs @@ -52,11 +52,11 @@ public sealed partial class ResumeAutoFollowPatternRequest : Elastic.Clients.Ela public ResumeAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public ResumeAutoFollowPatternRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResumeAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal ResumeAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Serializat /// The name of the auto-follow pattern to resume. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -164,6 +160,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeAutoFollowPat return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeAutoFollowPatternRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternResponse.g.cs index ef46e2db24b..6e2ebb5baab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternResponse.g.cs @@ -42,9 +42,5 @@ internal ResumeAutoFollowPatternResponse(Elastic.Clients.Elasticsearch.Serializa /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 58e8c148e73..4d101fa958d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs @@ -51,11 +51,11 @@ public sealed partial class ResumeFollowRequest : Elastic.Clients.Elasticsearch. public ResumeFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public ResumeFollowRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResumeFollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -75,11 +75,7 @@ internal ResumeFollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Name of the follow index to resume following /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -230,6 +226,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeFollowRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeFollowRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -397,6 +398,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeFollowRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.ResumeFollowRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowResponse.g.cs index 3e5f13f4981..dd711f3df78 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowResponse.g.cs @@ -42,9 +42,5 @@ internal ResumeFollowResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs index 1e842769656..2800b98c6e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs @@ -56,11 +56,11 @@ public sealed partial class UnfollowRequest : Elastic.Clients.Elasticsearch.Requ public UnfollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public UnfollowRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UnfollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +80,7 @@ internal UnfollowRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The name of the follower index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -172,6 +168,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.UnfollowRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.UnfollowRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -284,6 +285,11 @@ public Elastic.Clients.Elasticsearch.CrossClusterReplication.UnfollowRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.CrossClusterReplication.UnfollowRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowResponse.g.cs index e1940d29fdd..8111f88c44f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowResponse.g.cs @@ -42,9 +42,5 @@ internal UnfollowResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs index f5188996e6f..affeefe3f7d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs @@ -42,16 +42,10 @@ public sealed partial class ListDanglingIndicesRequestParameters : Elastic.Trans [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.DanglingIndices.Json.ListDanglingIndicesRequestConverter))] public sealed partial class ListDanglingIndicesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ListDanglingIndicesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ListDanglingIndicesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ListDanglingIndicesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -116,6 +110,11 @@ public Elastic.Clients.Elasticsearch.DanglingIndices.ListDanglingIndicesRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.DanglingIndices.ListDanglingIndicesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesResponse.g.cs index 3bc251d8047..4536bc0d517 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesResponse.g.cs @@ -37,9 +37,5 @@ internal ListDanglingIndicesResponse(Elastic.Clients.Elasticsearch.Serialization _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DanglingIndices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DanglingIndices { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs index 21f2b25432a..452b6282f34 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs @@ -400,11 +400,11 @@ public sealed partial class DeleteByQueryRequest : Elastic.Clients.Elasticsearch public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public DeleteByQueryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -426,11 +426,7 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// To search all data streams or indices, omit this parameter or use * or _all. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -1370,6 +1366,11 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor ErrorTrace(b return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -2061,6 +2062,11 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs index 5ed6555219e..3357c71970e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class DeleteByQueryRethrottleRequest : Elastic.Clients.Ela public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.TaskId taskId) : base(r => r.Required("task_id", taskId)) { } -#if NET7_0_OR_GREATER + public DeleteByQueryRethrottleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serializat /// The ID for the task. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TaskId TaskId { get => P("task_id"); set => PR("task_id", value); } + public required Elastic.Clients.Elasticsearch.TaskId TaskId { get => P("task_id"); set => PR("task_id", value); } /// /// @@ -159,6 +155,11 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRethrottleRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.DeleteByQueryRethrottleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs index 53c62dcdfbc..6da661106ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs @@ -154,11 +154,11 @@ public partial class DeleteRequest : Elastic.Clients.Elasticsearch.Requests.Plai public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", index).Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -178,22 +178,14 @@ internal DeleteRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// A unique identifier for the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// /// The name of the target index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -475,6 +467,11 @@ public Elastic.Clients.Elasticsearch.DeleteRequestDescriptor ErrorTrace(bool? va return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.DeleteRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -745,6 +742,11 @@ public Elastic.Clients.Elasticsearch.DeleteRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.DeleteRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs index 28bf86570f0..40be41c9c74 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs @@ -50,22 +50,14 @@ internal DeleteResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The unique identifier for the added document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// The name of the index the document was added to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// @@ -79,11 +71,7 @@ internal DeleteResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The result of the indexing operation: created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } /// /// @@ -98,20 +86,12 @@ internal DeleteResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Information about the replication process of the operation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } /// /// /// The document version, which is incremented each time the document is updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs index d76b5ae385d..c953e0ebc3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs @@ -59,11 +59,11 @@ public sealed partial class DeleteScriptRequest : Elastic.Clients.Elasticsearch. public DeleteScriptRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteScriptRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,11 +83,7 @@ internal DeleteScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The identifier for the stored script or search template. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -191,6 +187,11 @@ public Elastic.Clients.Elasticsearch.DeleteScriptRequestDescriptor ErrorTrace(bo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.DeleteScriptRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptResponse.g.cs index b0048d47abe..1113bc46182 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteScriptResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 281da499ac9..d6a02f1829c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs @@ -48,11 +48,11 @@ public sealed partial class DeletePolicyRequest : Elastic.Clients.Elasticsearch. public DeletePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeletePolicyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeletePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -72,11 +72,7 @@ internal DeletePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Enrich policy to delete. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -154,6 +150,11 @@ public Elastic.Clients.Elasticsearch.Enrich.DeletePolicyRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Enrich.DeletePolicyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyResponse.g.cs index d473a062a42..2bffc403189 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyResponse.g.cs @@ -42,9 +42,5 @@ internal DeletePolicyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 45af2d75c0d..214e1a8cbda 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs @@ -44,16 +44,10 @@ public sealed partial class EnrichStatsRequestParameters : Elastic.Transport.Req [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Enrich.Json.EnrichStatsRequestConverter))] public sealed partial class EnrichStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public EnrichStatsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public EnrichStatsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EnrichStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -132,6 +126,11 @@ public Elastic.Clients.Elasticsearch.Enrich.EnrichStatsRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Enrich.EnrichStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs index 52ed1c7778f..f4af4ae36f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs @@ -49,20 +49,12 @@ internal EnrichStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Objects containing information about each coordinating ingest node for configured enrich processors. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection CoordinatorStats { get; set; } + public required System.Collections.Generic.IReadOnlyCollection CoordinatorStats { get; set; } /// /// /// Objects containing information about each enrich policy that is currently executing. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ExecutingPolicies { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ExecutingPolicies { get; set; } } \ No newline at end of file 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 b41afff9355..b3bc1502658 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class ExecutePolicyRequest : Elastic.Clients.Elasticsearch public ExecutePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public ExecutePolicyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExecutePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal ExecutePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Enrich policy to execute. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -179,6 +175,11 @@ public Elastic.Clients.Elasticsearch.Enrich.ExecutePolicyRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Enrich.ExecutePolicyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 f92b3685241..142b83927f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs @@ -47,16 +47,11 @@ public sealed partial class GetPolicyRequest : Elastic.Clients.Elasticsearch.Req public GetPolicyRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetPolicyRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetPolicyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetPolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -160,6 +155,11 @@ public Elastic.Clients.Elasticsearch.Enrich.GetPolicyRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Enrich.GetPolicyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyResponse.g.cs index cf4b4943fe9..38acdaa83eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyResponse.g.cs @@ -37,9 +37,5 @@ internal GetPolicyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Policies { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Policies { get; set; } } \ No newline at end of file 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 e861394fd8d..21a036158ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs @@ -48,11 +48,11 @@ public sealed partial class PutPolicyRequest : Elastic.Clients.Elasticsearch.Req public PutPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutPolicyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutPolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -72,11 +72,7 @@ internal PutPolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Name of the enrich policy to create or update. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -274,6 +270,11 @@ public Elastic.Clients.Elasticsearch.Enrich.PutPolicyRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Enrich.PutPolicyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -445,6 +446,11 @@ public Elastic.Clients.Elasticsearch.Enrich.PutPolicyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyResponse.g.cs index b10648bace9..b06a1fc2b59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyResponse.g.cs @@ -42,9 +42,5 @@ internal PutPolicyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 eb290517ddd..e83ee4c6fae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class EqlDeleteRequest : Elastic.Clients.Elasticsearch.Req public EqlDeleteRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public EqlDeleteRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlDeleteRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +69,7 @@ internal EqlDeleteRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// A search ID is also provided if the request’s keep_on_completion parameter is true. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -136,6 +132,11 @@ public Elastic.Clients.Elasticsearch.Eql.EqlDeleteRequestDescriptor ErrorTrace(b return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Eql.EqlDeleteRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteResponse.g.cs index dc7c605d63c..c5004064d66 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteResponse.g.cs @@ -42,9 +42,5 @@ internal EqlDeleteResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 a8e57ac691a..eae886da223 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class EqlGetRequest : Elastic.Clients.Elasticsearch.Reques public EqlGetRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public EqlGetRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlGetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,11 +81,7 @@ internal EqlGetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Identifier for the search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -185,6 +181,11 @@ public Elastic.Clients.Elasticsearch.Eql.EqlGetRequestDescriptor ErrorTrace(bool return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Eql.EqlGetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs index 0fdf36bf121..40ab8e72d8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs @@ -42,11 +42,7 @@ internal EqlGetResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Contains matching events and sequences. Also contains related metadata. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Eql.EqlHits Hits { get; set; } + public required Elastic.Clients.Elasticsearch.Eql.EqlHits Hits { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.Converters.g.cs index 303cbc6f2bf..29f194214f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.Converters.g.cs @@ -35,6 +35,7 @@ public sealed partial class EqlSearchRequestConverter : System.Text.Json.Seriali private static readonly System.Text.Json.JsonEncodedText PropKeepAlive = System.Text.Json.JsonEncodedText.Encode("keep_alive"u8); private static readonly System.Text.Json.JsonEncodedText PropKeepOnCompletion = System.Text.Json.JsonEncodedText.Encode("keep_on_completion"u8); private static readonly System.Text.Json.JsonEncodedText PropMaxSamplesPerKey = System.Text.Json.JsonEncodedText.Encode("max_samples_per_key"u8); + private static readonly System.Text.Json.JsonEncodedText PropProjectRouting = System.Text.Json.JsonEncodedText.Encode("project_routing"u8); private static readonly System.Text.Json.JsonEncodedText PropQuery = System.Text.Json.JsonEncodedText.Encode("query"u8); private static readonly System.Text.Json.JsonEncodedText PropResultPosition = System.Text.Json.JsonEncodedText.Encode("result_position"u8); private static readonly System.Text.Json.JsonEncodedText PropRuntimeMappings = System.Text.Json.JsonEncodedText.Encode("runtime_mappings"u8); @@ -56,6 +57,7 @@ public override Elastic.Clients.Elasticsearch.Eql.EqlSearchRequest Read(ref Syst LocalJsonValue propKeepAlive = default; LocalJsonValue propKeepOnCompletion = default; LocalJsonValue propMaxSamplesPerKey = default; + LocalJsonValue propProjectRouting = default; LocalJsonValue propQuery = default; LocalJsonValue propResultPosition = default; LocalJsonValue?> propRuntimeMappings = default; @@ -115,6 +117,11 @@ public override Elastic.Clients.Elasticsearch.Eql.EqlSearchRequest Read(ref Syst continue; } + if (propProjectRouting.TryReadProperty(ref reader, options, PropProjectRouting, null)) + { + continue; + } + if (propQuery.TryReadProperty(ref reader, options, PropQuery, null)) { continue; @@ -172,6 +179,7 @@ public override Elastic.Clients.Elasticsearch.Eql.EqlSearchRequest Read(ref Syst KeepAlive = propKeepAlive.Value, KeepOnCompletion = propKeepOnCompletion.Value, MaxSamplesPerKey = propMaxSamplesPerKey.Value, + ProjectRouting = propProjectRouting.Value, Query = propQuery.Value, ResultPosition = propResultPosition.Value, RuntimeMappings = propRuntimeMappings.Value, @@ -195,6 +203,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien 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, PropMaxSamplesPerKey, value.MaxSamplesPerKey, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteProperty(options, PropQuery, value.Query, null, null); writer.WriteProperty(options, PropResultPosition, value.ResultPosition, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Eql.ResultPosition? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropRuntimeMappings, value.RuntimeMappings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, null)); 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 bebb78a97d4..035fec06bf8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -78,11 +78,11 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices, string qu { Query = query; } -#if NET7_0_OR_GREATER + public EqlSearchRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -102,11 +102,7 @@ internal EqlSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Comma-separated list of index names to scope the operation /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -195,16 +191,26 @@ internal EqlSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// public int? MaxSamplesPerKey { get; set; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get; set; } + /// /// /// EQL query you wish to run. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public Elastic.Clients.Elasticsearch.Eql.ResultPosition? ResultPosition { get; set; } public System.Collections.Generic.IDictionary? RuntimeMappings { get; set; } @@ -535,6 +541,24 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor MaxSamplesPe return this; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// EQL query you wish to run. @@ -693,6 +717,11 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor ErrorTrace(b return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1001,6 +1030,24 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor M return this; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// EQL query you wish to run. @@ -1139,6 +1186,11 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs index ef9c1ac84cb..8830abf2c26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs @@ -42,11 +42,7 @@ internal EqlSearchResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Contains matching events and sequences. Also contains related metadata. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Eql.EqlHits Hits { get; set; } + public required Elastic.Clients.Elasticsearch.Eql.EqlHits Hits { get; set; } /// /// 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 257f94ff86b..0c643a1253d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class GetEqlStatusRequest : Elastic.Clients.Elasticsearch. public GetEqlStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetEqlStatusRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetEqlStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal GetEqlStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Identifier for the search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.Eql.GetEqlStatusRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Eql.GetEqlStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusResponse.g.cs index ba880aefbdb..06912f8641c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusResponse.g.cs @@ -56,33 +56,21 @@ internal GetEqlStatusResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Identifier for the search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// If true, the search request is still executing. If false, the search is completed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsPartial { get; set; } + public required bool IsPartial { get; set; } /// /// /// If true, the response does not contain complete search results. This could be because either the search is still running (is_running status is false), or because it is already completed (is_running status is true) and results are partial due to failures or timeouts. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsRunning { get; set; } + public required bool IsRunning { get; set; } /// /// 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 34f6c32e3d9..bb1f0612352 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs @@ -58,11 +58,11 @@ public sealed partial class AsyncQueryDeleteRequest : Elastic.Clients.Elasticsea public AsyncQueryDeleteRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public AsyncQueryDeleteRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AsyncQueryDeleteRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,11 +84,7 @@ internal AsyncQueryDeleteRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// A query ID is also provided when the request was submitted with the keep_on_completion parameter set to true. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -166,6 +162,11 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryDeleteRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Esql.AsyncQueryDeleteRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteResponse.g.cs index 09c3d9e7cac..2658a0bb74a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteResponse.g.cs @@ -42,9 +42,5 @@ internal AsyncQueryDeleteResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 d4904cefd82..c7979e0decf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs @@ -75,11 +75,11 @@ public sealed partial class AsyncQueryGetRequest : Elastic.Clients.Elasticsearch public AsyncQueryGetRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public AsyncQueryGetRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AsyncQueryGetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -101,11 +101,7 @@ internal AsyncQueryGetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// A query ID is also provided when the request was submitted with the keep_on_completion parameter set to true. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -250,6 +246,11 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 c2e5e6269b2..b8b72ae81dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs @@ -86,17 +86,11 @@ public AsyncQueryRequest(string query) { Query = query; } -#if NET7_0_OR_GREATER - public AsyncQueryRequest() - { - } -#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 AsyncQueryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AsyncQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -226,11 +220,7 @@ internal AsyncQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } /// /// @@ -507,6 +497,11 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -797,6 +792,11 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopRequest.g.cs index bd115eb51d8..499726676b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class AsyncQueryStopRequest : Elastic.Clients.Elasticsearc public AsyncQueryStopRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public AsyncQueryStopRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AsyncQueryStopRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal AsyncQueryStopRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// A query ID is also provided when the request was submitted with the keep_on_completion parameter set to true. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -163,6 +159,11 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 4baf6d53281..40aefe85622 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -78,17 +78,11 @@ public EsqlQueryRequest(string query) { Query = query; } -#if NET7_0_OR_GREATER - public EsqlQueryRequest() - { - } -#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 EsqlQueryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -195,11 +189,7 @@ internal EsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } } /// @@ -418,6 +408,11 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor ErrorTrace( return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -660,6 +655,11 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = 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 ca3e97fc0c0..c7d9c53a0b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class GetEsqlQueryRequest : Elastic.Clients.Elasticsearch. public GetEsqlQueryRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetEsqlQueryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetEsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal GetEsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The query ID /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.Esql.GetEsqlQueryRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Esql.GetEsqlQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryResponse.g.cs index 9436b896d1f..3612da34f3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/GetEsqlQueryResponse.g.cs @@ -37,39 +37,11 @@ internal GetEsqlQueryResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string CoordinatingNode { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataNodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Id { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Node { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Query { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long RunningTimeNanos { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long StartTimeMillis { get; set; } + public required string CoordinatingNode { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataNodes { get; set; } + public required long Id { get; set; } + public required string Node { get; set; } + public required string Query { get; set; } + public required long RunningTimeNanos { get; set; } + public required long StartTimeMillis { get; set; } } \ No newline at end of file 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 a97ed16fe3a..8c7d6624b0d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class ListQueriesRequestParameters : Elastic.Transport.Req [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Esql.Json.ListQueriesRequestConverter))] public sealed partial class ListQueriesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ListQueriesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ListQueriesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ListQueriesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.Esql.ListQueriesRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Esql.ListQueriesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesResponse.g.cs index 4add3ed88ba..7d0bd0f5543 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/ListQueriesResponse.g.cs @@ -37,9 +37,5 @@ internal ListQueriesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Queries { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Queries { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs index da1965496a9..f6dd53f70ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs @@ -146,11 +146,11 @@ public sealed partial class ExistsRequest : Elastic.Clients.Elasticsearch.Reques public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", index).Required("id", id)) { } -#if NET7_0_OR_GREATER + public ExistsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExistsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -170,11 +170,7 @@ internal ExistsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// A unique document identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -182,11 +178,7 @@ internal ExistsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// It supports wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -551,6 +543,11 @@ public Elastic.Clients.Elasticsearch.ExistsRequestDescriptor ErrorTrace(bool? va return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ExistsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -873,6 +870,11 @@ public Elastic.Clients.Elasticsearch.ExistsRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ExistsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs index db9f89bfa61..7b162faa872 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs @@ -114,11 +114,11 @@ public sealed partial class ExistsSourceRequest : Elastic.Clients.Elasticsearch. public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", index).Required("id", id)) { } -#if NET7_0_OR_GREATER + public ExistsSourceRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExistsSourceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -138,11 +138,7 @@ internal ExistsSourceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// A unique identifier for the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -150,11 +146,7 @@ internal ExistsSourceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// It supports wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -445,6 +437,11 @@ public Elastic.Clients.Elasticsearch.ExistsSourceRequestDescriptor ErrorTrace(bo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ExistsSourceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -713,6 +710,11 @@ public Elastic.Clients.Elasticsearch.ExistsSourceRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ExistsSourceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs index 8182386d5b3..3fa4e2d0f97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs @@ -137,11 +137,11 @@ public sealed partial class ExplainRequest : Elastic.Clients.Elasticsearch.Reque public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", index).Required("id", id)) { } -#if NET7_0_OR_GREATER + public ExplainRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExplainRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -161,11 +161,7 @@ internal ExplainRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The document identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -173,11 +169,7 @@ internal ExplainRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Only a single index name can be provided to this parameter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -588,6 +580,11 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor ErrorTrace(bool? v return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -929,6 +926,11 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainResponse.g.cs index c8c1bd41b92..9edff79bfb1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainResponse.g.cs @@ -39,19 +39,7 @@ internal ExplainResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru public Elastic.Clients.Elasticsearch.Core.Explain.ExplanationDetail? Explanation { get; set; } public Elastic.Clients.Elasticsearch.InlineGet? Get { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Id { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Index { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Matched { get; set; } + public required string Id { get; set; } + public required string Index { get; set; } + public required bool Matched { get; set; } } \ No newline at end of file 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 709a8da9b6c..6796b46d5c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs @@ -54,16 +54,10 @@ public sealed partial class GetFeaturesRequestParameters : Elastic.Transport.Req [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Features.Json.GetFeaturesRequestConverter))] public sealed partial class GetFeaturesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetFeaturesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetFeaturesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetFeaturesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -152,6 +146,11 @@ public Elastic.Clients.Elasticsearch.Features.GetFeaturesRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Features.GetFeaturesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesResponse.g.cs index 8dfa4654604..c18659e6566 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesResponse.g.cs @@ -37,9 +37,5 @@ internal GetFeaturesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Features { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Features { get; set; } } \ No newline at end of file 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 df544e9db8a..d5637b0e5f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs @@ -65,16 +65,10 @@ public sealed partial class ResetFeaturesRequestParameters : Elastic.Transport.R [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Features.Json.ResetFeaturesRequestConverter))] public sealed partial class ResetFeaturesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ResetFeaturesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ResetFeaturesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResetFeaturesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -174,6 +168,11 @@ public Elastic.Clients.Elasticsearch.Features.ResetFeaturesRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Features.ResetFeaturesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesResponse.g.cs index b50da193d58..fce47f1ebeb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesResponse.g.cs @@ -37,9 +37,5 @@ internal ResetFeaturesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Features { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Features { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.Converters.g.cs index 3dc083c9fde..2d84630f442 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.Converters.g.cs @@ -27,6 +27,7 @@ public sealed partial class FieldCapsRequestConverter : System.Text.Json.Seriali { private static readonly System.Text.Json.JsonEncodedText PropFields = System.Text.Json.JsonEncodedText.Encode("fields"u8); private static readonly System.Text.Json.JsonEncodedText PropIndexFilter = System.Text.Json.JsonEncodedText.Encode("index_filter"u8); + private static readonly System.Text.Json.JsonEncodedText PropProjectRouting = System.Text.Json.JsonEncodedText.Encode("project_routing"u8); private static readonly System.Text.Json.JsonEncodedText PropRuntimeMappings = System.Text.Json.JsonEncodedText.Encode("runtime_mappings"u8); public override Elastic.Clients.Elasticsearch.FieldCapsRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) @@ -34,6 +35,7 @@ public override Elastic.Clients.Elasticsearch.FieldCapsRequest Read(ref System.T reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propFields = default; LocalJsonValue propIndexFilter = default; + LocalJsonValue propProjectRouting = default; LocalJsonValue?> propRuntimeMappings = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { @@ -47,6 +49,11 @@ public override Elastic.Clients.Elasticsearch.FieldCapsRequest Read(ref System.T continue; } + if (propProjectRouting.TryReadProperty(ref reader, options, PropProjectRouting, null)) + { + continue; + } + if (propRuntimeMappings.TryReadProperty(ref reader, options, PropRuntimeMappings, static System.Collections.Generic.IDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, null))) { continue; @@ -66,6 +73,7 @@ public override Elastic.Clients.Elasticsearch.FieldCapsRequest Read(ref System.T { Fields = propFields.Value, IndexFilter = propIndexFilter.Value, + ProjectRouting = propProjectRouting.Value, RuntimeMappings = propRuntimeMappings.Value }; } @@ -75,6 +83,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropFields, value.Fields, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Fields? v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SingleOrManyFieldsMarker))); writer.WriteProperty(options, PropIndexFilter, value.IndexFilter, null, null); + writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteProperty(options, PropRuntimeMappings, value.RuntimeMappings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, null)); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs index 0765b33055b..30db883208d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs @@ -98,16 +98,11 @@ public sealed partial class FieldCapsRequest : Elastic.Clients.Elasticsearch.Req public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public FieldCapsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public FieldCapsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldCapsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -201,6 +196,20 @@ internal FieldCapsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// public Elastic.Clients.Elasticsearch.QueryDsl.Query? IndexFilter { get; set; } + /// + /// + /// Specifies a subset of projects to target for the field-caps query using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get; set; } + /// /// /// Define ad-hoc runtime fields in the request similar to the way it is done in search requests. @@ -443,6 +452,24 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor IndexFilter(S return this; } + /// + /// + /// Specifies a subset of projects to target for the field-caps query using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// Define ad-hoc runtime fields in the request similar to the way it is done in search requests. @@ -552,6 +579,11 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -806,6 +838,24 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Index return this; } + /// + /// + /// Specifies a subset of projects to target for the field-caps query using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// Define ad-hoc runtime fields in the request similar to the way it is done in search requests. @@ -889,6 +939,11 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsResponse.g.cs index 378c472e070..e6c0e37d847 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsResponse.g.cs @@ -37,20 +37,12 @@ internal FieldCapsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary> Fields { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Fields { get; set; } /// /// /// The list of indices where this field has the same type family, or null if all indices have the same type family for the field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Indices { get; set; } + public required System.Collections.Generic.ICollection Indices { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs index b460432671b..28f30789b6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs @@ -209,11 +209,11 @@ public sealed partial class GetRequest : Elastic.Clients.Elasticsearch.Requests. public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", index).Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -233,22 +233,14 @@ internal GetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// A unique document identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// /// The name of the index that contains the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -703,6 +695,11 @@ public Elastic.Clients.Elasticsearch.GetRequestDescriptor ErrorTrace(bool? value return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.GetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1097,6 +1094,11 @@ public Elastic.Clients.Elasticsearch.GetRequestDescriptor ErrorTrace( return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.GetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs index f9deed616b3..23dac27b248 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs @@ -49,22 +49,14 @@ internal GetResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Indicates whether the document exists. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } /// /// /// The unique identifier for the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } public System.Collections.Generic.IReadOnlyCollection? Ignored { get; set; } /// @@ -72,11 +64,7 @@ internal GetResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The name of the index the document belongs to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs index 3d874a42bb9..f33f36f92e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class GetScriptContextRequestParameters : Elastic.Transpor [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.GetScriptContextRequestConverter))] public sealed partial class GetScriptContextRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetScriptContextRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetScriptContextRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetScriptContextRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.GetScriptContextRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.GetScriptContextRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextResponse.g.cs index f5aac4cc8f8..7597d641ee7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextResponse.g.cs @@ -37,9 +37,5 @@ internal GetScriptContextResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Contexts { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Contexts { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs index 2a9908cefa0..8e74b11e37b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class GetScriptLanguagesRequestParameters : Elastic.Transp [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.GetScriptLanguagesRequestConverter))] public sealed partial class GetScriptLanguagesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetScriptLanguagesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetScriptLanguagesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetScriptLanguagesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.GetScriptLanguagesRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.GetScriptLanguagesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesResponse.g.cs index 6e28eb4424a..dfcd9b3d608 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesResponse.g.cs @@ -37,14 +37,6 @@ internal GetScriptLanguagesResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection LanguageContexts { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection TypesAllowed { get; set; } + public required System.Collections.Generic.IReadOnlyCollection LanguageContexts { get; set; } + public required System.Collections.Generic.IReadOnlyCollection TypesAllowed { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs index 726b98cfc4f..db6b657dd6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class GetScriptRequest : Elastic.Clients.Elasticsearch.Req public GetScriptRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetScriptRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal GetScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The identifier for the stored script or search template. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -160,6 +156,11 @@ public Elastic.Clients.Elasticsearch.GetScriptRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.GetScriptRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptResponse.g.cs index 27724bc83ae..763fb89c8aa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptResponse.g.cs @@ -37,15 +37,7 @@ internal GetScriptResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Found { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Id { get; set; } + public required bool Found { get; set; } + public required string Id { get; set; } public Elastic.Clients.Elasticsearch.StoredScript? Script { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs index d54a1937f0b..0def2dc51fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs @@ -117,11 +117,11 @@ public sealed partial class GetSourceRequest : Elastic.Clients.Elasticsearch.Req public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", index).Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetSourceRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSourceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -141,22 +141,14 @@ internal GetSourceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// A unique document identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// /// The name of the index that contains the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -449,6 +441,11 @@ public Elastic.Clients.Elasticsearch.GetSourceRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.GetSourceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -719,6 +716,11 @@ public Elastic.Clients.Elasticsearch.GetSourceRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.GetSourceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceResponse.g.cs index 0de8fa92562..0c674078b27 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceResponse.g.cs @@ -37,9 +37,5 @@ internal GetSourceResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -TDocument Source { get; set; } + public required TDocument Source { get; set; } } \ No newline at end of file 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 08f7f295d68..4e17e63ad89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs @@ -61,11 +61,11 @@ public sealed partial class ExploreRequest : Elastic.Clients.Elasticsearch.Reque public ExploreRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public ExploreRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExploreRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,11 +85,7 @@ internal ExploreRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Name of the index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -376,6 +372,11 @@ public Elastic.Clients.Elasticsearch.Graph.ExploreRequestDescriptor ErrorTrace(b return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Graph.ExploreRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -602,6 +603,11 @@ public Elastic.Clients.Elasticsearch.Graph.ExploreRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Graph.ExploreRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreResponse.g.cs index 85381725dbc..749035d4cf2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreResponse.g.cs @@ -37,29 +37,9 @@ internal ExploreResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Connections { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Failures { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool TimedOut { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Took { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Vertices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Connections { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Failures { get; set; } + public required bool TimedOut { get; set; } + public required long Took { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Vertices { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs index c15c72a056a..28b3249caaf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs @@ -82,16 +82,11 @@ public sealed partial class HealthReportRequest : Elastic.Clients.Elasticsearch. public HealthReportRequest(System.Collections.Generic.ICollection? feature) : base(r => r.Optional("feature", feature)) { } -#if NET7_0_OR_GREATER - public HealthReportRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public HealthReportRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HealthReportRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -261,6 +256,11 @@ public Elastic.Clients.Elasticsearch.HealthReportRequestDescriptor ErrorTrace(bo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.HealthReportRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportResponse.g.cs index d0f6dd93331..8e301e99ced 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportResponse.g.cs @@ -37,15 +37,7 @@ internal HealthReportResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Core.HealthReport.Indicators Indicators { get; set; } + public required string ClusterName { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.Indicators Indicators { get; set; } public Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus? Status { get; set; } } \ No newline at end of file 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 c4088d360c6..ca635293eca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class DeleteLifecycleRequest : Elastic.Clients.Elasticsear public DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("policy", name)) { } -#if NET7_0_OR_GREATER + public DeleteLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// Identifier for the policy. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("policy"); set => PR("policy", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("policy"); set => PR("policy", value); } /// /// @@ -179,6 +175,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.DeleteLifecycleReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.DeleteLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleResponse.g.cs index f17dc9eaed5..c0efaecbec4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs index 041ac9d91c1..8fa7f910928 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class GetIlmStatusRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.GetIlmStatusRequestConverter))] public sealed partial class GetIlmStatusRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetIlmStatusRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetIlmStatusRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetIlmStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.GetIlmStatusReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.GetIlmStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusResponse.g.cs index cc3e5eb1045..2cba1b7039e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusResponse.g.cs @@ -37,9 +37,5 @@ internal GetIlmStatusResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.LifecycleOperationMode OperationMode { get; set; } + public required Elastic.Clients.Elasticsearch.LifecycleOperationMode OperationMode { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs index 52e5f6bd72e..c0d19f696f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs @@ -51,16 +51,11 @@ public sealed partial class GetLifecycleRequest : Elastic.Clients.Elasticsearch. public GetLifecycleRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => r.Optional("policy", name)) { } -#if NET7_0_OR_GREATER - public GetLifecycleRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -177,6 +172,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.GetLifecycleReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.GetLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleResponse.g.cs index 8de1cc5da70..e04887dfecc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleResponse.g.cs @@ -37,9 +37,5 @@ internal GetLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Lifecycles { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Lifecycles { get; set; } } \ No newline at end of file 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 6b97afbe28c..1838de9d638 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs @@ -81,16 +81,10 @@ public sealed partial class MigrateToDataTiersRequestParameters : Elastic.Transp [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.MigrateToDataTiersRequestConverter))] public sealed partial class MigrateToDataTiersRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public MigrateToDataTiersRequest() { } -#endif -#if !NET7_0_OR_GREATER - public MigrateToDataTiersRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MigrateToDataTiersRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -234,6 +228,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.MigrateToDataTiers return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.MigrateToDataTiersRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersResponse.g.cs index c4c5238a4d3..3cdc145c76a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersResponse.g.cs @@ -37,66 +37,42 @@ internal MigrateToDataTiersResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool DryRun { get; set; } + public required bool DryRun { get; set; } /// /// /// The component templates that were updated to not contain custom routing settings for the provided data attribute. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection MigratedComponentTemplates { get; set; } + public required System.Collections.Generic.IReadOnlyCollection MigratedComponentTemplates { get; set; } /// /// /// The composable index templates that were updated to not contain custom routing settings for the provided data attribute. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection MigratedComposableTemplates { get; set; } + public required System.Collections.Generic.IReadOnlyCollection MigratedComposableTemplates { get; set; } /// /// /// The ILM policies that were updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection MigratedIlmPolicies { get; set; } + public required System.Collections.Generic.IReadOnlyCollection MigratedIlmPolicies { get; set; } /// /// /// The indices that were migrated to tier preference routing. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection MigratedIndices { get; set; } + public required System.Collections.Generic.ICollection MigratedIndices { get; set; } /// /// /// The legacy index templates that were updated to not contain custom routing settings for the provided data attribute. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection MigratedLegacyTemplates { get; set; } + public required System.Collections.Generic.IReadOnlyCollection MigratedLegacyTemplates { get; set; } /// /// @@ -104,9 +80,5 @@ internal MigrateToDataTiersResponse(Elastic.Clients.Elasticsearch.Serialization. /// This information is missing if no legacy index templates were deleted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RemovedLegacyTemplate { get; set; } + public required string RemovedLegacyTemplate { get; set; } } \ No newline at end of file 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 1a1fd66f01d..48e17660f55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs @@ -65,11 +65,11 @@ public MoveToStepRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic. CurrentStep = currentStep; NextStep = nextStep; } -#if NET7_0_OR_GREATER + public MoveToStepRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MoveToStepRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -89,33 +89,21 @@ internal MoveToStepRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The name of the index whose lifecycle step is to change /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// /// The step that the index is expected to be in. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey CurrentStep { get; set; } + public required Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey CurrentStep { get; set; } /// /// /// The step that you want to run. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey NextStep { get; set; } + public required Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey NextStep { get; set; } } /// @@ -236,6 +224,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.MoveToStepRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.MoveToStepRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -392,6 +385,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.MoveToStepRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.MoveToStepRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepResponse.g.cs index 21f31418bbe..002bf9c043f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepResponse.g.cs @@ -42,9 +42,5 @@ internal MoveToStepResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 d621d40b71d..4b547f6b7f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs @@ -58,11 +58,11 @@ public sealed partial class PutLifecycleRequest : Elastic.Clients.Elasticsearch. public PutLifecycleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("policy", name)) { } -#if NET7_0_OR_GREATER + public PutLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal PutLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Identifier for the policy. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("policy"); set => PR("policy", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("policy"); set => PR("policy", value); } /// /// @@ -198,6 +194,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.PutLifecycleReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.PutLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleResponse.g.cs index e1f17aadca2..f026d15dfcd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleResponse.g.cs @@ -42,9 +42,5 @@ internal PutLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 16422c1c5bb..1cc0fdeb145 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class RemovePolicyRequest : Elastic.Clients.Elasticsearch. public RemovePolicyRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public RemovePolicyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemovePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +67,7 @@ internal RemovePolicyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The name of the index to remove policy on /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } } /// @@ -132,6 +128,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RemovePolicyReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RemovePolicyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -226,6 +227,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RemovePolicyReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RemovePolicyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyResponse.g.cs index fc7ed1c1da3..3527ef904b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyResponse.g.cs @@ -37,14 +37,6 @@ internal RemovePolicyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection FailedIndexes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool HasFailures { get; set; } + public required System.Collections.Generic.IReadOnlyCollection FailedIndexes { get; set; } + public required bool HasFailures { get; set; } } \ No newline at end of file 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 31f51aad783..8127ae525f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs @@ -44,11 +44,11 @@ public sealed partial class RetryRequest : Elastic.Clients.Elasticsearch.Request public RetryRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public RetryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RetryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +68,7 @@ internal RetryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The name of the indices (comma-separated) whose failed lifecycle step is to be retry /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } } /// @@ -134,6 +130,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RetryRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RetryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -229,6 +230,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RetryRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.RetryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryResponse.g.cs index df6104429ee..095ba989408 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryResponse.g.cs @@ -42,9 +42,5 @@ internal RetryResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 3216a660339..40bb04458f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs @@ -53,16 +53,10 @@ public sealed partial class StartIlmRequestParameters : Elastic.Transport.Reques [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.StartIlmRequestConverter))] public sealed partial class StartIlmRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public StartIlmRequest() { } -#endif -#if !NET7_0_OR_GREATER - public StartIlmRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StartIlmRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -161,6 +155,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StartIlmRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StartIlmRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmResponse.g.cs index 069c2ddfaae..ee39b21dc47 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmResponse.g.cs @@ -42,9 +42,5 @@ internal StartIlmResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 dfe4f8335b8..0e4e873df00 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs @@ -56,16 +56,10 @@ public sealed partial class StopIlmRequestParameters : Elastic.Transport.Request [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.StopIlmRequestConverter))] public sealed partial class StopIlmRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public StopIlmRequest() { } -#endif -#if !NET7_0_OR_GREATER - public StopIlmRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopIlmRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -167,6 +161,11 @@ public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StopIlmRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StopIlmRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmResponse.g.cs index 974786425c8..fc9acdf7d9c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmResponse.g.cs @@ -42,9 +42,5 @@ internal StopIlmResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 0f6b329e53a..4d86ba229cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs @@ -47,16 +47,11 @@ public sealed partial class AnalyzeIndexRequest : Elastic.Clients.Elasticsearch. public AnalyzeIndexRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) { } -#if NET7_0_OR_GREATER - public AnalyzeIndexRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public AnalyzeIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalyzeIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -423,6 +418,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.AnalyzeIndexRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.AnalyzeIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -735,6 +735,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.AnalyzeIndexRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.AnalyzeIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexRequest.g.cs index c68321037f7..052a718a303 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class CancelMigrateReindexRequest : Elastic.Clients.Elasti public CancelMigrateReindexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public CancelMigrateReindexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CancelMigrateReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal CancelMigrateReindexRequest(Elastic.Clients.Elasticsearch.Serialization /// The index or data stream name /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CancelMigrateReindexRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CancelMigrateReindexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -223,6 +224,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CancelMigrateReindexRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CancelMigrateReindexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexResponse.g.cs index 2461dc1e07e..4f39c70e13c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexResponse.g.cs @@ -42,9 +42,5 @@ internal CancelMigrateReindexResponse(Elastic.Clients.Elasticsearch.Serializatio /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index 43773ae5359..7127a073739 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -99,16 +99,11 @@ public sealed partial class ClearCacheRequest : Elastic.Clients.Elasticsearch.Re public ClearCacheRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public ClearCacheRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ClearCacheRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -360,6 +355,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -571,6 +571,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 1efba48c759..88c292156f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs @@ -150,11 +150,11 @@ public sealed partial class CloneIndexRequest : Elastic.Clients.Elasticsearch.Re public CloneIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target) : base(r => r.Required("index", index).Required("target", target)) { } -#if NET7_0_OR_GREATER + public CloneIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CloneIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -174,22 +174,14 @@ internal CloneIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Name of the source index to clone. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// /// Name of the target index to create. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Target { get => P("target"); set => PR("target", value); } + public required Elastic.Clients.Elasticsearch.Name Target { get => P("target"); set => PR("target", value); } /// /// @@ -559,6 +551,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloneIndexRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CloneIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -907,6 +904,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloneIndexRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CloneIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexResponse.g.cs index 9bb9c370487..03c17ac11ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexResponse.g.cs @@ -37,19 +37,7 @@ internal CloneIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Index { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool ShardsAcknowledged { get; set; } + public required bool Acknowledged { get; set; } + public required string Index { get; set; } + public required bool ShardsAcknowledged { get; set; } } \ No newline at end of file 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 f70605d231a..beaae41d650 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs @@ -109,11 +109,11 @@ public sealed partial class CloseIndexRequest : Elastic.Clients.Elasticsearch.Re public CloseIndexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public CloseIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CloseIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -133,11 +133,7 @@ internal CloseIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Comma-separated list or wildcard expression of index names used to limit the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -350,6 +346,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -548,6 +549,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexResponse.g.cs index 254d7a12849..b244514986f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexResponse.g.cs @@ -37,19 +37,7 @@ internal CloseIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool ShardsAcknowledged { get; set; } + public required bool Acknowledged { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } + public required bool ShardsAcknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs index ff029d7ead3..b66560f942c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class CreateDataStreamRequest : Elastic.Clients.Elasticsea public CreateDataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamName name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public CreateDataStreamRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,11 +84,7 @@ internal CreateDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Cannot be longer than 255 bytes. Multi-byte characters count towards this limit faster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamName Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.DataStreamName Name { get => P("name"); set => PR("name", value); } /// /// @@ -189,6 +185,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CreateDataStreamRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CreateDataStreamRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamResponse.g.cs index a8f5719e5e5..314b7050b49 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamResponse.g.cs @@ -42,9 +42,5 @@ internal CreateDataStreamResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs index d341b545db7..969b45251ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class CreateFromRequest : Elastic.Clients.Elasticsearch.Re public CreateFromRequest(Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest) : base(r => r.Required("source", source).Required("dest", dest)) { } -#if NET7_0_OR_GREATER + public CreateFromRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateFromRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,22 +66,14 @@ internal CreateFromRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The destination index or data stream name /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Dest { get => P("dest"); set => PR("dest", value); } + public required Elastic.Clients.Elasticsearch.IndexName Dest { get => P("dest"); set => PR("dest", value); } /// /// /// The source index or data stream name /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Source { get => P("source"); set => PR("source", value); } + public required Elastic.Clients.Elasticsearch.IndexName Source { get => P("source"); set => PR("source", value); } public Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom? CreateFrom { get; set; } } @@ -177,6 +169,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -300,6 +297,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromResponse.g.cs index a973ed3fdf9..f161bf828a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromResponse.g.cs @@ -37,19 +37,7 @@ internal CreateFromResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Index { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool ShardsAcknowledged { get; set; } + public required bool Acknowledged { get; set; } + public required string Index { get; set; } + public required bool ShardsAcknowledged { get; set; } } \ No newline at end of file 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 5d5251908ae..4367e60078e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs @@ -99,11 +99,11 @@ public sealed partial class CreateIndexRequest : Elastic.Clients.Elasticsearch.R public CreateIndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public CreateIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -161,11 +161,7 @@ internal CreateIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -651,6 +647,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CreateIndexRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CreateIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1051,6 +1052,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CreateIndexRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.CreateIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexResponse.g.cs index c05d82d4594..a38b5b7cfef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexResponse.g.cs @@ -37,19 +37,7 @@ internal CreateIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Index { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool ShardsAcknowledged { get; set; } + public required bool Acknowledged { get; set; } + public required string Index { get; set; } + public required bool ShardsAcknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs index 91705a5c3df..841dd76cf5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs @@ -48,16 +48,11 @@ public sealed partial class DataStreamsStatsRequest : Elastic.Clients.Elasticsea public DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.Indices? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public DataStreamsStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public DataStreamsStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -177,6 +172,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -301,6 +301,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs index 83a1896f0d1..47778063e21 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs @@ -42,55 +42,35 @@ internal DataStreamsStatsResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// Total number of backing indices for the selected data streams. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int BackingIndices { get; set; } + public required int BackingIndices { get; set; } /// /// /// Total number of selected data streams. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DataStreamCount { get; set; } + public required int DataStreamCount { get; set; } /// /// /// Contains statistics for the selected data streams. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } /// /// /// Contains information about shards that attempted to execute the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } /// /// /// Total size, in bytes, of all shards for the selected data streams. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TotalStoreSizeBytes { get; set; } + public required long TotalStoreSizeBytes { get; set; } /// /// 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 761397643eb..6c09b27c749 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class DeleteAliasRequest : Elastic.Clients.Elasticsearch.R public DeleteAliasRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("index", indices).Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteAliasRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal DeleteAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Supports wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -94,11 +90,7 @@ internal DeleteAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Supports wildcards (*). To remove all aliases, use * or _all. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// @@ -211,6 +203,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteAliasRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -342,6 +339,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteAliasRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasResponse.g.cs index 9dcb422e6e9..9a5f1367f44 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasResponse.g.cs @@ -42,10 +42,6 @@ internal DeleteAliasResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// 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; } + public required bool Acknowledged { get; set; } public bool? Errors { get; set; } } \ No newline at end of file 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 a84442da0de..79aa15f802e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs @@ -62,11 +62,11 @@ public sealed partial class DeleteDataLifecycleRequest : Elastic.Clients.Elastic public DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteDataLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,11 +87,7 @@ internal DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization. /// Use * to get all data streams /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } /// /// @@ -217,6 +213,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteDataLifecycleRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteDataLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs index 664c35edf05..02091eccf9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteDataLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 b7ff982c02b..765dd180e04 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsRequest.g.cs @@ -62,11 +62,11 @@ public sealed partial class DeleteDataStreamOptionsRequest : Elastic.Clients.Ela public DeleteDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteDataStreamOptionsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,11 +87,7 @@ internal DeleteDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.Serializat /// Use * to get all data streams /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } /// /// @@ -217,6 +213,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteDataStreamOptionsRequ return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteDataStreamOptionsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsResponse.g.cs index c74b3021b06..f93cb38c51a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamOptionsResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteDataStreamOptionsResponse(Elastic.Clients.Elasticsearch.Serializa /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 d1ebd2150d4..bfce58ddf70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class DeleteDataStreamRequest : Elastic.Clients.Elasticsea public DeleteDataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteDataStreamRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal DeleteDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Comma-separated list of data streams to delete. Wildcard (*) expressions are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } /// /// @@ -190,6 +186,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteDataStreamRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteDataStreamRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamResponse.g.cs index 241d4a6a371..23c88953090 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteDataStreamResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 ace6337443c..3925b2bac50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs @@ -87,11 +87,11 @@ public sealed partial class DeleteIndexRequest : Elastic.Clients.Elasticsearch.R public DeleteIndexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public DeleteIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -114,11 +114,7 @@ internal DeleteIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// To use wildcards or _all, set the action.destructive_requires_name cluster setting to false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -300,6 +296,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -475,6 +476,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexResponse.g.cs index b3ed2160d70..32185cf276e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexResponse.g.cs @@ -42,10 +42,6 @@ internal DeleteIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// 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; } + public required bool Acknowledged { get; set; } public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; set; } } \ No newline at end of file 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 ad6eabefaa8..64e5b04e64e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class DeleteIndexTemplateRequest : Elastic.Clients.Elastic public DeleteIndexTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteIndexTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,11 +81,7 @@ internal DeleteIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization. /// Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// @@ -183,6 +179,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexTemplateRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateResponse.g.cs index 6b5914128ca..b1811ba6594 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteIndexTemplateResponse(Elastic.Clients.Elasticsearch.Serialization /// 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; } + public required bool Acknowledged { get; set; } } \ 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 index 1a674e398b5..9bedc9f6a9a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationRequest.g.cs @@ -58,11 +58,11 @@ public sealed partial class DeleteSampleConfigurationRequest : Elastic.Clients.E 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) { @@ -82,11 +82,7 @@ internal DeleteSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serializ /// 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); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -188,6 +184,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -306,6 +307,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteSampleConfigurationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.g.cs index 509b25f5934..82041f93724 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteSampleConfigurationResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Seriali /// 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; } + public required 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 4d5ce065a07..cd91311834e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class DeleteTemplateRequest : Elastic.Clients.Elasticsearc public DeleteTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal DeleteTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Wildcard (*) expressions are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -187,6 +183,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteTemplateRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DeleteTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs index 933f6a4a010..5f4ac9f6b3b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteTemplateResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs index f396cfad4e3..adb0db7bf2e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs @@ -92,11 +92,11 @@ public sealed partial class DiskUsageRequest : Elastic.Clients.Elasticsearch.Req public DiskUsageRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public DiskUsageRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DiskUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -117,11 +117,7 @@ internal DiskUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// It’s recommended to execute this API with a single index (or the latest backing index of a data stream) as the API consumes resources significantly. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -307,6 +303,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -485,6 +486,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor< return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageResponse.g.cs index a33695f17ab..40e2ef515a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageResponse.g.cs @@ -37,9 +37,5 @@ internal DiskUsageResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -object DiskUsage { get; set; } + public required object DiskUsage { get; set; } } \ No newline at end of file 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 db00418ce5b..1113f770d2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs @@ -71,11 +71,11 @@ public DownsampleRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic. { Config = config; } -#if NET7_0_OR_GREATER + public DownsampleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DownsampleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -95,27 +95,15 @@ internal DownsampleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Name of the time series index to downsample. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// /// Name of the index to create. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName TargetIndex { get => P("target_index"); set => PR("target_index", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig Config { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName TargetIndex { get => P("target_index"); set => PR("target_index", value); } + public required Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig Config { get; set; } } /// @@ -222,6 +210,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DownsampleRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DownsampleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -363,6 +356,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DownsampleRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.DownsampleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleResponse.g.cs index db84ba71643..ba880af0126 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleResponse.g.cs @@ -37,9 +37,5 @@ internal DownsampleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -object Result { get; set; } + public required object Result { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index 47942224b24..a9df48f4037 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -78,11 +78,11 @@ public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name) : base(r => r.Optional("index", indices).Required("name", name)) { } -#if NET7_0_OR_GREATER + public ExistsAliasRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExistsAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -110,11 +110,7 @@ internal ExistsAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Comma-separated list of aliases to check. Supports wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// @@ -284,6 +280,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -456,6 +457,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs index 65840d0c291..911ea38008c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs @@ -62,11 +62,11 @@ public sealed partial class ExistsIndexTemplateRequest : Elastic.Clients.Elastic public ExistsIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public ExistsIndexTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExistsIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,11 +86,7 @@ internal ExistsIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization. /// Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -204,6 +200,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsIndexTemplateRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ExistsIndexTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 53415dc5b51..a52b2f73370 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -86,11 +86,11 @@ public sealed partial class ExistsRequest : Elastic.Clients.Elasticsearch.Reques public ExistsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public ExistsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExistsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -110,11 +110,7 @@ internal ExistsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Comma-separated list of data streams, indices, and aliases. Supports wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -301,6 +297,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -476,6 +477,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 4ac1300d047..5871cd6fde2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs @@ -69,11 +69,11 @@ public sealed partial class ExistsTemplateRequest : Elastic.Clients.Elasticsearc public ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public ExistsTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -94,11 +94,7 @@ internal ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Wildcard (*) expressions are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// @@ -223,6 +219,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsTemplateRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ExistsTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 ef73d102bde..061266d1b81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class ExplainDataLifecycleRequest : Elastic.Clients.Elasti public ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public ExplainDataLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization /// Comma-separated list of index names to explain /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -179,6 +175,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExplainDataLifecycleRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ExplainDataLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -294,6 +295,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExplainDataLifecycleRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ExplainDataLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs index 29a5fd044b2..4d0f5dde8e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs @@ -37,9 +37,5 @@ internal ExplainDataLifecycleResponse(Elastic.Clients.Elasticsearch.Serializatio _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs index 8904b6a2c3f..f695480b080 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs @@ -79,11 +79,11 @@ public sealed partial class FieldUsageStatsRequest : Elastic.Clients.Elasticsear public FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public FieldUsageStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -103,11 +103,7 @@ internal FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// Comma-separated list or wildcard expression of index names used to limit the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -277,6 +273,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -448,6 +449,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsResponse.g.cs index c70045e0f80..81738b7704b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsResponse.g.cs @@ -37,11 +37,7 @@ internal FieldUsageStatsResponse(Elastic.Clients.Elasticsearch.Serialization.Jso _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } /// /// 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 8181bf2a3c6..d18a2a9b099 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -90,16 +90,11 @@ public sealed partial class FlushRequest : Elastic.Clients.Elasticsearch.Request public FlushRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public FlushRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public FlushRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FlushRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -309,6 +304,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -492,6 +492,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 a9f312b9476..123864db54a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -169,16 +169,11 @@ public sealed partial class ForcemergeRequest : Elastic.Clients.Elasticsearch.Re public ForcemergeRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public ForcemergeRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ForcemergeRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ForcemergeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -480,6 +475,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -746,6 +746,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 772da23cad4..1e0ef799842 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -80,16 +80,11 @@ public GetAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.C public GetAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public GetAliasRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetAliasRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -302,6 +297,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -486,6 +486,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.g.cs index 6ddcd1ffaea..073db58faa5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationRequest.g.cs @@ -46,16 +46,10 @@ public sealed partial class GetAllSampleConfigurationRequestParameters : Elastic [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) { @@ -138,6 +132,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetAllSampleConfigurationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.g.cs index a65a9191195..1994730581b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAllSampleConfigurationResponse.g.cs @@ -37,9 +37,5 @@ internal GetAllSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Seriali _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Configurations { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Configurations { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs index 25b70296e34..3f08fabd897 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs @@ -63,11 +63,11 @@ public sealed partial class GetDataLifecycleRequest : Elastic.Clients.Elasticsea public GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public GetDataLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -89,11 +89,7 @@ internal GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// To target all data streams, omit this parameter or use * or _all. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } /// /// @@ -223,6 +219,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetDataLifecycleRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetDataLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs index 4bc351f621c..4a89002864b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs @@ -37,9 +37,5 @@ internal GetDataLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { 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 1f7d9e01868..1bd3c8a0f94 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class GetDataLifecycleStatsRequestParameters : Elastic.Tra [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.GetDataLifecycleStatsRequestConverter))] public sealed partial class GetDataLifecycleStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetDataLifecycleStatsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetDataLifecycleStatsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDataLifecycleStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetDataLifecycleStatsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.IndexManagement.GetDataLifecycleStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsResponse.g.cs index cc259d1ba7c..d29917d1d55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsResponse.g.cs @@ -42,22 +42,14 @@ internal GetDataLifecycleStatsResponse(Elastic.Clients.Elasticsearch.Serializati /// The count of data streams currently being managed by the data stream lifecycle. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DataStreamCount { get; set; } + public required int DataStreamCount { get; set; } /// /// /// Information about the data streams that are managed by the data stream lifecycle. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamMappingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamMappingsRequest.g.cs index f667af51706..2e97380ab68 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamMappingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamMappingsRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class GetDataStreamMappingsRequest : Elastic.Clients.Elast public GetDataStreamMappingsRequest(Elastic.Clients.Elasticsearch.Indices name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public GetDataStreamMappingsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDataStreamMappingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal GetDataStreamMappingsRequest(Elastic.Clients.Elasticsearch.Serializatio /// A comma-separated list of data streams or data stream patterns. Supports wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Indices Name { get => P("name"); set => PR("name", value); } /// /// @@ -160,6 +156,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamMappingsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamMappingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -266,6 +267,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamMappingsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamMappingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamMappingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamMappingsResponse.g.cs index a4989cd9f5e..719878714d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamMappingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamMappingsResponse.g.cs @@ -37,9 +37,5 @@ internal GetDataStreamMappingsResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamOptionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamOptionsRequest.g.cs index 6a6122d4cf9..68fdfc73ce1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamOptionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamOptionsRequest.g.cs @@ -56,11 +56,11 @@ public sealed partial class GetDataStreamOptionsRequest : Elastic.Clients.Elasti public GetDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public GetDataStreamOptionsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal GetDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.Serialization /// To target all data streams, omit this parameter or use * or _all. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } /// /// @@ -198,6 +194,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamOptionsRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamOptionsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamOptionsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamOptionsResponse.g.cs index 28e0eb04f0d..97f3ce26046 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamOptionsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamOptionsResponse.g.cs @@ -37,9 +37,5 @@ internal GetDataStreamOptionsResponse(Elastic.Clients.Elasticsearch.Serializatio _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs index a483e3772fe..cd2372474e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs @@ -69,16 +69,11 @@ public sealed partial class GetDataStreamRequest : Elastic.Clients.Elasticsearch public GetDataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamNames? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetDataStreamRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetDataStreamRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -250,6 +245,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamResponse.g.cs index b0d540c9454..7ee9873db72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamResponse.g.cs @@ -37,9 +37,5 @@ internal GetDataStreamResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamSettingsRequest.g.cs index 5a24b7f29cc..c9c28072522 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamSettingsRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class GetDataStreamSettingsRequest : Elastic.Clients.Elast public GetDataStreamSettingsRequest(Elastic.Clients.Elasticsearch.Indices name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public GetDataStreamSettingsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDataStreamSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal GetDataStreamSettingsRequest(Elastic.Clients.Elasticsearch.Serializatio /// A comma-separated list of data streams or data stream patterns. Supports wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Indices Name { get => P("name"); set => PR("name", value); } /// /// @@ -160,6 +156,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamSettingsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -266,6 +267,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamSettingsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetDataStreamSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamSettingsResponse.g.cs index b6e4229866f..906983546dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamSettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamSettingsResponse.g.cs @@ -37,9 +37,5 @@ internal GetDataStreamSettingsResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } } \ No newline at end of file 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 09366ff0a91..ddd1deef16c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs @@ -81,11 +81,11 @@ public GetFieldMappingRequest(Elastic.Clients.Elasticsearch.Fields fields) : bas public GetFieldMappingRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields) : base(r => r.Optional("index", indices).Required("fields", fields)) { } -#if NET7_0_OR_GREATER + public GetFieldMappingRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetFieldMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -106,11 +106,7 @@ internal GetFieldMappingRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// Supports wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields Fields { get => P("fields"); set => PR("fields", value); } + public required Elastic.Clients.Elasticsearch.Fields Fields { get => P("fields"); set => PR("fields", value); } /// /// @@ -305,6 +301,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -494,6 +495,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingResponse.g.cs index 5cd2b1703b1..a9a105dc24c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingResponse.g.cs @@ -37,9 +37,5 @@ internal GetFieldMappingResponse(Elastic.Clients.Elasticsearch.Serialization.Jso _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary FieldMappings { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary FieldMappings { get; set; } } \ No newline at end of file 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 1dfcce66a3b..14809ab2897 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs @@ -102,11 +102,11 @@ public sealed partial class GetIndexRequest : Elastic.Clients.Elasticsearch.Requ public GetIndexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public GetIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -127,11 +127,7 @@ internal GetIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Wildcard expressions (*) are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -369,6 +365,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -580,6 +581,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexResponse.g.cs index e123b9d9ba9..daedd2ad7f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexResponse.g.cs @@ -37,9 +37,5 @@ internal GetIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } } \ No newline at end of file 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 e8a35dd6932..935833dfcdc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs @@ -69,16 +69,11 @@ public sealed partial class GetIndexTemplateRequest : Elastic.Clients.Elasticsea public GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetIndexTemplateRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetIndexTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -236,6 +231,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexTemplateRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateResponse.g.cs index ad7f20ea27b..f237e4bcdad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateResponse.g.cs @@ -37,9 +37,5 @@ internal GetIndexTemplateResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection IndexTemplates { get; set; } + public required System.Collections.Generic.IReadOnlyCollection IndexTemplates { get; set; } } \ No newline at end of file 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 f822d868101..18b3721ad82 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs @@ -108,16 +108,11 @@ public GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Indices? indices, public GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetIndicesSettingsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetIndicesSettingsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -393,6 +388,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -615,6 +615,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsResponse.g.cs index 5c7f4912f94..09b7bc958c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsResponse.g.cs @@ -37,9 +37,5 @@ internal GetIndicesSettingsResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Settings { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Settings { get; set; } } \ No newline at end of file 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 176baab93e0..5396ba530d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -80,16 +80,11 @@ public sealed partial class GetMappingRequest : Elastic.Clients.Elasticsearch.Re public GetMappingRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public GetMappingRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetMappingRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -290,6 +285,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -463,6 +463,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingResponse.g.cs index b1788463d05..caa2079fc63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingResponse.g.cs @@ -37,9 +37,5 @@ internal GetMappingResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Mappings { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Mappings { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusRequest.g.cs index c1bbb9ef871..82ea9bbb1b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class GetMigrateReindexStatusRequest : Elastic.Clients.Ela public GetMigrateReindexStatusRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public GetMigrateReindexStatusRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetMigrateReindexStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal GetMigrateReindexStatusRequest(Elastic.Clients.Elasticsearch.Serializat /// The index or data stream name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMigrateReindexStatusRequ return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetMigrateReindexStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -223,6 +224,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMigrateReindexStatusRequ return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetMigrateReindexStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusResponse.g.cs index 3ca8b28058a..93ec91ec06f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusResponse.g.cs @@ -37,46 +37,14 @@ internal GetMigrateReindexStatusResponse(Elastic.Clients.Elasticsearch.Serializa _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Complete { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Errors { get; set; } + public required bool Complete { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Errors { get; set; } public string? Exception { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection InProgress { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int Pending { get; set; } + public required System.Collections.Generic.IReadOnlyCollection InProgress { get; set; } + public required int Pending { get; set; } public System.DateTimeOffset? StartTime { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.DateTimeOffset StartTimeMillis { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int Successes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int TotalIndicesInDataStream { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int TotalIndicesRequiringUpgrade { get; set; } + public required System.DateTimeOffset StartTimeMillis { get; set; } + public required int Successes { get; set; } + public required int TotalIndicesInDataStream { get; set; } + public required int TotalIndicesRequiringUpgrade { get; set; } } \ 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 index 2aa30de148b..9d7b82b73cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class GetSampleConfigurationRequest : Elastic.Clients.Elas 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) { @@ -74,11 +74,7 @@ internal GetSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serializati /// 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); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -160,6 +156,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -266,6 +267,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleConfigurationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.g.cs index 747bbc30b4c..a6f0507e0f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleConfigurationResponse.g.cs @@ -37,14 +37,6 @@ internal GetSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serializat _ = 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; } + public required Elastic.Clients.Elasticsearch.IndexManagement.SamplingConfiguration? Configuration { get; set; } + public required string Index { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleRequest.g.cs index 2d882890445..247e275287a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class GetSampleRequest : Elastic.Clients.Elasticsearch.Req public GetSampleRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public GetSampleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSampleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal GetSampleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Single index or data stream name. Wildcards are not supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } } /// @@ -124,6 +120,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -214,6 +215,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleRequestDescriptor< return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleResponse.g.cs index 5c73765a950..18387eb0854 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleResponse.g.cs @@ -37,9 +37,5 @@ internal GetSampleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Sample { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Sample { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleStatsRequest.g.cs index 67f1b70ae52..b410a5ceb9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleStatsRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class GetSampleStatsRequest : Elastic.Clients.Elasticsearc public GetSampleStatsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public GetSampleStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSampleStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal GetSampleStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Single index or data stream name. Wildcards are not supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } } /// @@ -124,6 +120,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleStatsRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -214,6 +215,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleStatsRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetSampleStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleStatsResponse.g.cs index 2ca9f4e2067..2b9bb7d5095 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetSampleStatsResponse.g.cs @@ -38,57 +38,17 @@ internal GetSampleStatsResponse(Elastic.Clients.Elasticsearch.Serialization.Json } public string? LastException { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long PotentialSamples { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long SamplesAccepted { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long SamplesRejectedForCondition { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long SamplesRejectedForException { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long SamplesRejectedForMaxSamplesExceeded { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long SamplesRejectedForRate { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long SamplesRejectedForSize { get; set; } + public required long PotentialSamples { get; set; } + public required long SamplesAccepted { get; set; } + public required long SamplesRejectedForCondition { get; set; } + public required long SamplesRejectedForException { get; set; } + public required long SamplesRejectedForMaxSamplesExceeded { get; set; } + public required long SamplesRejectedForRate { get; set; } + public required long SamplesRejectedForSize { get; set; } public Elastic.Clients.Elasticsearch.Duration? TimeCompilingCondition { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.TimeSpan TimeCompilingConditionMillis { get; set; } + public required System.TimeSpan TimeCompilingConditionMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TimeEvaluatingCondition { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.TimeSpan TimeEvaluatingConditionMillis { get; set; } + public required System.TimeSpan TimeEvaluatingConditionMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TimeSampling { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.TimeSpan TimeSamplingMillis { get; set; } + public required System.TimeSpan TimeSamplingMillis { 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 57fd0d51162..6df6f625ca8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs @@ -66,16 +66,11 @@ public sealed partial class GetTemplateRequest : Elastic.Clients.Elasticsearch.R public GetTemplateRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetTemplateRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -224,6 +219,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetTemplateRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.GetTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateResponse.g.cs index e4abbe8d656..5e6e6dc3538 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateResponse.g.cs @@ -37,9 +37,5 @@ internal GetTemplateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Templates { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Templates { get; set; } } \ No newline at end of file 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 bd6e5a8a10e..c718fc8b597 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs @@ -125,16 +125,11 @@ public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas 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 - public IndicesStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public IndicesStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -492,6 +487,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -792,6 +792,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsResponse.g.cs index 0822661060c..05948755ef6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsResponse.g.cs @@ -37,15 +37,7 @@ internal IndicesStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.IndexManagement.IndicesStats All { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndicesStats All { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Indices { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexRequest.g.cs index d9e76681e36..ebc16d56014 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexRequest.g.cs @@ -45,17 +45,11 @@ public MigrateReindexRequest(Elastic.Clients.Elasticsearch.IndexManagement.Migra { Reindex = reindex; } -#if NET7_0_OR_GREATER - public MigrateReindexRequest() - { - } -#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 MigrateReindexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MigrateReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,11 +64,7 @@ internal MigrateReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC internal override string OperationName => "indices.migrate_reindex"; - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex Reindex { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex Reindex { get; set; } } /// @@ -131,6 +121,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindexRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexResponse.g.cs index be6dc8d163d..5aa316c9900 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexResponse.g.cs @@ -42,9 +42,5 @@ internal MigrateReindexResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 90b9820a643..0490efb418c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs @@ -64,11 +64,11 @@ public sealed partial class MigrateToDataStreamRequest : Elastic.Clients.Elastic public MigrateToDataStreamRequest(Elastic.Clients.Elasticsearch.IndexName name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public MigrateToDataStreamRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MigrateToDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -88,11 +88,7 @@ internal MigrateToDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization. /// Name of the index alias to convert to a data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.IndexName Name { get => P("name"); set => PR("name", value); } /// /// @@ -197,6 +193,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.MigrateToDataStreamRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.MigrateToDataStreamRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -321,6 +322,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.MigrateToDataStreamRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.MigrateToDataStreamRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamResponse.g.cs index c71ac7af780..7242c18142e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamResponse.g.cs @@ -42,9 +42,5 @@ internal MigrateToDataStreamResponse(Elastic.Clients.Elasticsearch.Serialization /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 878f423d5af..2ffb187d2ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs @@ -43,17 +43,11 @@ public ModifyDataStreamRequest(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Actions { get; set; } + public required System.Collections.Generic.ICollection Actions { get; set; } } /// @@ -159,6 +149,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ModifyDataStreamRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ModifyDataStreamRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs index d29c6361f9d..3b00c92ea91 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs @@ -42,9 +42,5 @@ internal ModifyDataStreamResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 c0ac05501e0..7a7ecad44b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs @@ -116,11 +116,11 @@ public sealed partial class OpenIndexRequest : Elastic.Clients.Elasticsearch.Req public OpenIndexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public OpenIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OpenIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -144,11 +144,7 @@ internal OpenIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// You can update this setting in the elasticsearch.yml file or using the cluster update settings API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -372,6 +368,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -581,6 +582,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor< return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexResponse.g.cs index ed7a7d49c9e..2b3b8d1b3e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexResponse.g.cs @@ -37,14 +37,6 @@ internal OpenIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool ShardsAcknowledged { get; set; } + public required bool Acknowledged { get; set; } + public required bool ShardsAcknowledged { get; set; } } \ No newline at end of file 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 0cb737c4aec..21adcc1a013 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs @@ -59,11 +59,11 @@ public sealed partial class PromoteDataStreamRequest : Elastic.Clients.Elasticse public PromoteDataStreamRequest(Elastic.Clients.Elasticsearch.IndexName name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PromoteDataStreamRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PromoteDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,11 +83,7 @@ internal PromoteDataStreamRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The name of the data stream to promote /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.IndexName Name { get => P("name"); set => PR("name", value); } /// /// @@ -176,6 +172,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PromoteDataStreamRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PromoteDataStreamRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -291,6 +292,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PromoteDataStreamRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PromoteDataStreamRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamResponse.g.cs index 37beb235ed6..172253ee14c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamResponse.g.cs @@ -37,9 +37,5 @@ internal PromoteDataStreamResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -object Result { get; set; } + public required object Result { get; set; } } \ No newline at end of file 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 5c080e01edd..6911ba56d32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class PutAliasRequest : Elastic.Clients.Elasticsearch.Requ public PutAliasRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("index", indices).Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutAliasRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,11 +83,7 @@ internal PutAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Wildcard patterns that match both data streams and indices return an error. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -96,11 +92,7 @@ internal PutAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Index alias names support date math. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -343,6 +335,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutAliasRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -550,6 +547,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasResponse.g.cs index a1e251895d8..6063f195f37 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasResponse.g.cs @@ -42,9 +42,5 @@ internal PutAliasResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 51c05e114ca..5ecbc196f60 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -66,11 +66,11 @@ public sealed partial class PutDataLifecycleRequest : Elastic.Clients.Elasticsea public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutDataLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -92,11 +92,7 @@ internal PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// To target all data streams use * or _all. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } /// /// @@ -340,6 +336,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs index 7667288562f..5fd44277887 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs @@ -42,9 +42,5 @@ internal PutDataLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamMappingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamMappingsRequest.g.cs index 93d1167a4d5..acbf3411bf4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamMappingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamMappingsRequest.g.cs @@ -76,11 +76,11 @@ public PutDataStreamMappingsRequest(Elastic.Clients.Elasticsearch.Indices name, { Mappings = mappings; } -#if NET7_0_OR_GREATER + public PutDataStreamMappingsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutDataStreamMappingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -100,11 +100,7 @@ internal PutDataStreamMappingsRequest(Elastic.Clients.Elasticsearch.Serializatio /// A comma-separated list of data streams or data stream patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Indices Name { get => P("name"); set => PR("name", value); } /// /// @@ -131,11 +127,7 @@ internal PutDataStreamMappingsRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } } /// @@ -261,6 +253,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamMappingsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamMappingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -416,6 +413,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamMappingsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamMappingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamMappingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamMappingsResponse.g.cs index 7c74a79db3b..4236c11be6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamMappingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamMappingsResponse.g.cs @@ -37,9 +37,5 @@ internal PutDataStreamMappingsResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } } \ No newline at end of file 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 0f4d74d45f0..ee62b2786cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsRequest.g.cs @@ -66,11 +66,11 @@ public sealed partial class PutDataStreamOptionsRequest : Elastic.Clients.Elasti public PutDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutDataStreamOptionsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -92,11 +92,7 @@ internal PutDataStreamOptionsRequest(Elastic.Clients.Elasticsearch.Serialization /// To target all data streams use * or _all. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.DataStreamNames Name { get => P("name"); set => PR("name", value); } /// /// @@ -272,6 +268,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamOptionsRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamOptionsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsResponse.g.cs index fdf9a634a61..32fac5fe78c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamOptionsResponse.g.cs @@ -42,9 +42,5 @@ internal PutDataStreamOptionsResponse(Elastic.Clients.Elasticsearch.Serializatio /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamSettingsRequest.g.cs index 7720ea62d34..df0eb4d59c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamSettingsRequest.g.cs @@ -77,11 +77,11 @@ public PutDataStreamSettingsRequest(Elastic.Clients.Elasticsearch.Indices name, { Settings = settings; } -#if NET7_0_OR_GREATER + public PutDataStreamSettingsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutDataStreamSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -101,11 +101,7 @@ internal PutDataStreamSettingsRequest(Elastic.Clients.Elasticsearch.Serializatio /// A comma-separated list of data streams or data stream patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Indices Name { get => P("name"); set => PR("name", value); } /// /// @@ -132,11 +128,7 @@ internal PutDataStreamSettingsRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } } /// @@ -263,6 +255,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamSettingsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -419,6 +416,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamSettingsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutDataStreamSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamSettingsResponse.g.cs index b6e55179c13..170b7d6e6fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamSettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataStreamSettingsResponse.g.cs @@ -37,9 +37,5 @@ internal PutDataStreamSettingsResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } } \ No newline at end of file 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 f0089fd0672..db9dfd38d2c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs @@ -96,11 +96,11 @@ public sealed partial class PutIndexTemplateRequest : Elastic.Clients.Elasticsea public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutIndexTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -120,11 +120,7 @@ internal PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Index or template name /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -612,6 +608,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1012,6 +1013,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateResponse.g.cs index 625dcaaaeb7..40974d17485 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateResponse.g.cs @@ -42,9 +42,5 @@ internal PutIndexTemplateResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 93a3ecfa98f..18656d18bbd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs @@ -179,17 +179,11 @@ public PutIndicesSettingsRequest(Elastic.Clients.Elasticsearch.IndexManagement.I { Settings = settings; } -#if NET7_0_OR_GREATER - public PutIndicesSettingsRequest() - { - } -#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 PutIndicesSettingsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -280,11 +274,7 @@ internal PutIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } } /// @@ -542,6 +532,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -828,6 +823,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsResponse.g.cs index 75226bc5c63..7e6e54f08f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsResponse.g.cs @@ -42,9 +42,5 @@ internal PutIndicesSettingsResponse(Elastic.Clients.Elasticsearch.Serialization. /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 4f235b504f5..ff27f2a8bd2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -129,11 +129,11 @@ public sealed partial class PutMappingRequest : Elastic.Clients.Elasticsearch.Re public PutMappingRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public PutMappingRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -154,11 +154,7 @@ internal PutMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Use _all or omit to add the mapping on all indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -906,6 +902,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1471,6 +1472,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingResponse.g.cs index b031896fdc4..0f111eccda0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingResponse.g.cs @@ -42,10 +42,6 @@ internal PutMappingResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// 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; } + public required bool Acknowledged { get; set; } public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; set; } } \ 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 index 06ba8f86d29..9af53689d70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationRequest.g.cs @@ -65,11 +65,11 @@ public PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.IndexName ind { Rate = rate; } -#if NET7_0_OR_GREATER + public PutSampleConfigurationRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -89,11 +89,7 @@ internal PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serializati /// 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); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -139,11 +135,7 @@ internal PutSampleConfigurationRequest(Elastic.Clients.Elasticsearch.Serializati /// Can be specified as a number or a string. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Rate { get; set; } + public required double Rate { get; set; } /// /// @@ -306,6 +298,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -496,6 +493,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutSampleConfigurationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.g.cs index c5b06bce879..b6d858b9121 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSampleConfigurationResponse.g.cs @@ -42,9 +42,5 @@ internal PutSampleConfigurationResponse(Elastic.Clients.Elasticsearch.Serializat /// 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; } + public required 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 84d6381aa48..6ff003fc455 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs @@ -88,11 +88,11 @@ public sealed partial class PutTemplateRequest : Elastic.Clients.Elasticsearch.R public PutTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -112,11 +112,7 @@ internal PutTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The name of the template /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -548,6 +544,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutTemplateRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -902,6 +903,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutTemplateRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.PutTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateResponse.g.cs index 0a8e402c525..61341696341 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateResponse.g.cs @@ -42,9 +42,5 @@ internal PutTemplateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 f0de04eabce..c7681f4e9a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -129,16 +129,11 @@ public sealed partial class RecoveryRequest : Elastic.Clients.Elasticsearch.Requ public RecoveryRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public RecoveryRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public RecoveryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RecoveryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -386,6 +381,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -608,6 +608,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryResponse.g.cs index 9c5006624a5..69d0f796e3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryResponse.g.cs @@ -37,9 +37,5 @@ internal RecoveryResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Statuses { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Statuses { get; set; } } \ No newline at end of file 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 cd8fd52819f..8aa226aef4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -83,16 +83,11 @@ public sealed partial class RefreshRequest : Elastic.Clients.Elasticsearch.Reque public RefreshRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public RefreshRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public RefreshRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RefreshRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -272,6 +267,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -440,6 +440,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 98de205144b..7bae7545234 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs @@ -85,11 +85,11 @@ public sealed partial class ReloadSearchAnalyzersRequest : Elastic.Clients.Elast public ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public ReloadSearchAnalyzersRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -109,11 +109,7 @@ internal ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Serializatio /// A comma-separated list of index names to reload analyzers for /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -273,6 +269,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -437,6 +438,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersResponse.g.cs index 482cbe7faec..89a49f92e51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersResponse.g.cs @@ -37,14 +37,6 @@ internal ReloadSearchAnalyzersResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection ReloadDetails { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ReloadDetails { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } } \ No newline at end of file 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 757a38934f2..b894e3e342a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs @@ -85,11 +85,11 @@ public sealed partial class RemoveBlockRequest : Elastic.Clients.Elasticsearch.R 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 + public RemoveBlockRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoveBlockRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -109,11 +109,7 @@ internal RemoveBlockRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The block type to remove from the index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions Block { get => P("block"); set => PR("block", value); } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndicesBlockOptions Block { get => P("block"); set => PR("block", value); } /// /// @@ -123,11 +119,7 @@ internal RemoveBlockRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// You can update this setting in the elasticsearch.yml file or by using the cluster update settings API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -321,6 +313,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -506,6 +503,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockResponse.g.cs index 03d4b2de7c7..dbcf617cdb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockResponse.g.cs @@ -37,14 +37,6 @@ internal RemoveBlockResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required bool Acknowledged { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs index 584f2986d31..58393d2b192 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs @@ -183,16 +183,11 @@ public sealed partial class ResolveClusterRequest : Elastic.Clients.Elasticsearc public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public ResolveClusterRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ResolveClusterRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResolveClusterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -518,6 +513,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveClusterRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ResolveClusterRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterResponse.g.cs index 2552cc133c0..975c3585cd3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterResponse.g.cs @@ -37,9 +37,5 @@ internal ResolveClusterResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Infos { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Infos { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.Converters.g.cs index 021aa05635a..28ce3238519 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.Converters.g.cs @@ -25,11 +25,19 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; public sealed partial class ResolveIndexRequestConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText PropProjectRouting = System.Text.Json.JsonEncodedText.Encode("project_routing"u8); + public override Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propProjectRouting = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { + if (propProjectRouting.TryReadProperty(ref reader, options, PropProjectRouting, null)) + { + continue; + } + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) { reader.SafeSkip(); @@ -42,12 +50,14 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexReques reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { + ProjectRouting = propProjectRouting.Value }; } public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequest value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); + writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index 820f8710401..cbe0c3b13b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -74,11 +74,11 @@ public sealed partial class ResolveIndexRequest : Elastic.Clients.Elasticsearch. public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public ResolveIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,9 +87,9 @@ internal ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.IndexManagementResolveIndex; - protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.GET; + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "indices.resolve_index"; @@ -99,11 +99,7 @@ internal ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Resources on remote clusters can be specified using the <cluster>:<name> syntax. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// @@ -136,6 +132,20 @@ internal ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// public System.Collections.Generic.ICollection? Mode { get => Q?>("mode"); set => Q("mode", value); } + + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get; set; } } /// @@ -255,6 +265,24 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescript return this; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequest Build(System.Action action) { @@ -269,6 +297,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs index d4a30c7c567..d56e0d0c2b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs @@ -37,19 +37,7 @@ internal ResolveIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Aliases { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Aliases { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } } \ No newline at end of file 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 00bb05921f7..3a3be9c06a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs @@ -133,11 +133,11 @@ public RolloverRequest(Elastic.Clients.Elasticsearch.IndexAlias alias) : base(r public RolloverRequest(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex) : base(r => r.Required("alias", alias).Optional("new_index", newIndex)) { } -#if NET7_0_OR_GREATER + public RolloverRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RolloverRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -157,11 +157,7 @@ internal RolloverRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Name of the data stream or index alias to roll over. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexAlias Alias { get => P("alias"); set => PR("alias", value); } + public required Elastic.Clients.Elasticsearch.IndexAlias Alias { get => P("alias"); set => PR("alias", value); } /// /// @@ -671,6 +667,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RolloverRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.RolloverRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1101,6 +1102,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RolloverRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverResponse.g.cs index 58567790206..d4ab898c9ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverResponse.g.cs @@ -37,39 +37,11 @@ internal RolloverResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Conditions { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool DryRun { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string NewIndex { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string OldIndex { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool RolledOver { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool ShardsAcknowledged { get; set; } + public required bool Acknowledged { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Conditions { get; set; } + public required bool DryRun { get; set; } + public required string NewIndex { get; set; } + public required string OldIndex { get; set; } + public required bool RolledOver { get; set; } + public required bool ShardsAcknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index dc8f4786e55..007e80bd427 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -65,16 +65,11 @@ public sealed partial class SegmentsRequest : Elastic.Clients.Elasticsearch.Requ public SegmentsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public SegmentsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public SegmentsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SegmentsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -236,6 +231,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -386,6 +386,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsResponse.g.cs index 6397cec9b12..4c948afd4e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsResponse.g.cs @@ -37,14 +37,6 @@ internal SegmentsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs index e8d369a353e..ffcc673a797 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs @@ -100,16 +100,11 @@ public sealed partial class ShardStoresRequest : Elastic.Clients.Elasticsearch.R public ShardStoresRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public ShardStoresRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ShardStoresRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardStoresRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -323,6 +318,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -520,6 +520,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresResponse.g.cs index e88e77e5fbe..598ed806bb7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresResponse.g.cs @@ -37,9 +37,5 @@ internal ShardStoresResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } } \ No newline at end of file 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 9422906efeb..82cfdeaedb5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs @@ -148,11 +148,11 @@ public sealed partial class ShrinkIndexRequest : Elastic.Clients.Elasticsearch.R public ShrinkIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) : base(r => r.Required("index", index).Required("target", target)) { } -#if NET7_0_OR_GREATER + public ShrinkIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShrinkIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -172,22 +172,14 @@ internal ShrinkIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Name of the source index to shrink. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// /// Name of the target index to create. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Target { get => P("target"); set => PR("target", value); } + public required Elastic.Clients.Elasticsearch.IndexName Target { get => P("target"); set => PR("target", value); } /// /// @@ -562,6 +554,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShrinkIndexRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ShrinkIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -913,6 +910,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShrinkIndexRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ShrinkIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexResponse.g.cs index 639acb595db..3854731f9b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexResponse.g.cs @@ -37,19 +37,7 @@ internal ShrinkIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Index { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool ShardsAcknowledged { get; set; } + public required bool Acknowledged { get; set; } + public required string Index { get; set; } + public required bool ShardsAcknowledged { get; set; } } \ No newline at end of file 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 a04b0fe8e93..a8eed5682b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs @@ -69,11 +69,11 @@ public sealed partial class SimulateIndexTemplateRequest : Elastic.Clients.Elast public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public SimulateIndexTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -93,11 +93,7 @@ internal SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serializatio /// Name of the index to simulate /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -248,6 +244,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -398,6 +399,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateResponse.g.cs index 0521c6e306a..2b6b3d69c4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateResponse.g.cs @@ -38,9 +38,5 @@ internal SimulateIndexTemplateResponse(Elastic.Clients.Elasticsearch.Serializati } public System.Collections.Generic.IReadOnlyCollection? Overlapping { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.IndexManagement.Template Template { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.Template Template { get; set; } } \ No newline at end of file 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 fa4cf1285cc..345aa50dbb9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs @@ -68,16 +68,11 @@ public sealed partial class SimulateTemplateRequest : Elastic.Clients.Elasticsea public SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public SimulateTemplateRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public SimulateTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -562,6 +557,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SimulateTemplateRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.SimulateTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -936,6 +936,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SimulateTemplateRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.SimulateTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateResponse.g.cs index f222feb15da..0539b195ed8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateResponse.g.cs @@ -38,9 +38,5 @@ internal SimulateTemplateResponse(Elastic.Clients.Elasticsearch.Serialization.Js } public System.Collections.Generic.IReadOnlyCollection? Overlapping { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.IndexManagement.Template Template { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.Template Template { get; set; } } \ No newline at end of file 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 62efd6d657b..4c563244c30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs @@ -147,11 +147,11 @@ public sealed partial class SplitIndexRequest : Elastic.Clients.Elasticsearch.Re public SplitIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) : base(r => r.Required("index", index).Required("target", target)) { } -#if NET7_0_OR_GREATER + public SplitIndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SplitIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -171,22 +171,14 @@ internal SplitIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Name of the source index to split. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// /// Name of the target index to create. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Target { get => P("target"); set => PR("target", value); } + public required Elastic.Clients.Elasticsearch.IndexName Target { get => P("target"); set => PR("target", value); } /// /// @@ -553,6 +545,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SplitIndexRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.SplitIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -898,6 +895,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SplitIndexRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.SplitIndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexResponse.g.cs index 442f6e6870f..9ccb34941e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexResponse.g.cs @@ -37,19 +37,7 @@ internal SplitIndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Index { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool ShardsAcknowledged { get; set; } + public required bool Acknowledged { get; set; } + public required string Index { get; set; } + public required bool ShardsAcknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs index f8a538c350c..775ee6f0f6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs @@ -53,16 +53,10 @@ public sealed partial class UpdateAliasesRequestParameters : Elastic.Transport.R [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.UpdateAliasesRequestConverter))] public sealed partial class UpdateAliasesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public UpdateAliasesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public UpdateAliasesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateAliasesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -226,6 +220,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.UpdateAliasesRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.UpdateAliasesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -371,6 +370,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.UpdateAliasesRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.UpdateAliasesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs index 729679d4a23..8146ee9f345 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs @@ -42,9 +42,5 @@ internal UpdateAliasesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs index 45e1203b7fc..aa05e156a3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs @@ -129,16 +129,11 @@ public sealed partial class ValidateQueryRequest : Elastic.Clients.Elasticsearch public ValidateQueryRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public ValidateQueryRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ValidateQueryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -505,6 +500,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -777,6 +777,11 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs index b30011e1d3f..1c6aa412534 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs @@ -40,9 +40,5 @@ internal ValidateQueryResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC public string? Error { get; set; } public System.Collections.Generic.IReadOnlyCollection? Explanations { get; set; } public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Valid { get; set; } + public required bool Valid { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs index a85d89f70a4..264fc78dfff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs @@ -325,11 +325,11 @@ public IndexRequest(TDocument document) : base(r => r.Required("index", (Elastic { Document = document; } -#if NET7_0_OR_GREATER + public IndexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -360,11 +360,7 @@ internal IndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// You can check for existing targets with the resolve index API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -474,11 +470,7 @@ internal IndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - public -#if NET7_0_OR_GREATER - required -#endif - TDocument Document { get; set; } + public required TDocument Document { get; set; } } /// @@ -892,6 +884,11 @@ public Elastic.Clients.Elasticsearch.IndexRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.IndexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexResponse.g.cs index ffe24aea4bc..84eb1cf62ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexResponse.g.cs @@ -50,22 +50,14 @@ internal IndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The unique identifier for the added document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// The name of the index the document was added to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// @@ -79,11 +71,7 @@ internal IndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The result of the indexing operation: created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } /// /// @@ -98,20 +86,12 @@ internal IndexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Information about the replication process of the operation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } /// /// /// The document version, which is incremented each time the document is updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required long Version { get; set; } } \ No newline at end of file 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 d11c65b58f5..538120e9be3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs @@ -39,13 +39,13 @@ public sealed partial class ChatCompletionUnifiedRequestParameters : Elastic.Tra /// /// /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. -/// It only works with the chat_completion task type for openai and elastic inference services. +/// It only works with the chat_completion task type. /// /// /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. -/// If you use the openai, hugging_face or the elastic service, use the Chat completion inference API. +/// To determine whether a given inference service supports this task type, please see the page for that service. /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.ChatCompletionUnifiedRequestConverter))] @@ -62,11 +62,11 @@ public ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Id inferenceId { ChatCompletionRequest = chatCompletionRequest; } -#if NET7_0_OR_GREATER + public ChatCompletionUnifiedRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,11 +86,7 @@ internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serializatio /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -98,11 +94,7 @@ internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion ChatCompletionRequest { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion ChatCompletionRequest { get; set; } } /// @@ -111,13 +103,13 @@ internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. -/// It only works with the chat_completion task type for openai and elastic inference services. +/// It only works with the chat_completion task type. /// /// /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. -/// If you use the openai, hugging_face or the elastic service, use the Chat completion inference API. +/// To determine whether a given inference service supports this task type, please see the page for that service. /// /// public readonly partial struct ChatCompletionUnifiedRequestDescriptor @@ -194,6 +186,11 @@ public Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 60a38ebd153..b1014728dbf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs @@ -62,11 +62,11 @@ public CompletionRequest(Elastic.Clients.Elasticsearch.Id inferenceId, System.Co { Input = input; } -#if NET7_0_OR_GREATER + public CompletionRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,11 +86,7 @@ internal CompletionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -105,11 +101,7 @@ internal CompletionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Either a string or an array of strings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Input { get; set; } + public required System.Collections.Generic.ICollection Input { get; set; } /// /// @@ -231,6 +223,11 @@ public Elastic.Clients.Elasticsearch.Inference.CompletionRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.CompletionRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionResponse.g.cs index e1478bc9fb5..8d6223486cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionResponse.g.cs @@ -37,9 +37,5 @@ internal CompletionResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Completion { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Completion { get; set; } } \ No newline at end of file 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 b22ca98cde9..df863bab23b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs @@ -60,11 +60,11 @@ public DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : ba public DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) { } -#if NET7_0_OR_GREATER + public DeleteInferenceRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,11 +84,7 @@ internal DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// The inference identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -207,6 +203,11 @@ public Elastic.Clients.Elasticsearch.Inference.DeleteInferenceRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.DeleteInferenceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceResponse.g.cs index 32b83ad262b..13cb3fe921e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceResponse.g.cs @@ -42,14 +42,6 @@ internal DeleteInferenceResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// 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; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Pipelines { get; set; } + public required bool Acknowledged { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Pipelines { get; set; } } \ No newline at end of file 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 70477d07126..b9e69975657 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs @@ -45,16 +45,11 @@ public GetInferenceRequest(Elastic.Clients.Elasticsearch.Id? inferenceId) : base public GetInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id? inferenceId) : base(r => r.Optional("task_type", taskType).Optional("inference_id", inferenceId)) { } -#if NET7_0_OR_GREATER - public GetInferenceRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetInferenceRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -161,6 +156,11 @@ public Elastic.Clients.Elasticsearch.Inference.GetInferenceRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.GetInferenceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceResponse.g.cs index f1da2c4ff53..c244fe81a40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceResponse.g.cs @@ -37,9 +37,5 @@ internal GetInferenceResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Endpoints { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Endpoints { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs index d4647894c06..e9192448548 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs @@ -76,11 +76,11 @@ public InferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskTy { Input = input; } -#if NET7_0_OR_GREATER + public InferenceRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -100,11 +100,7 @@ internal InferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The unique identifier for the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -130,11 +126,7 @@ internal InferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Inference endpoints for the completion task type currently only support a single string as input. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Input { get; set; } + public required System.Collections.Generic.ICollection Input { get; set; } /// /// @@ -380,6 +372,11 @@ public Elastic.Clients.Elasticsearch.Inference.InferenceRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.InferenceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceResponse.g.cs index 5ccd5e2558a..4029820c5e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceResponse.g.cs @@ -37,9 +37,5 @@ internal InferenceResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Inference.InferenceResult Result { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.InferenceResult Result { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAi21Request.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAi21Request.g.cs index e3ba9385c6e..bd147ec544e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAi21Request.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAi21Request.g.cs @@ -55,11 +55,11 @@ public PutAi21Request(Elastic.Clients.Elasticsearch.Inference.Ai21TaskType taskT { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutAi21Request() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAi21Request(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutAi21Request(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Ai21InferenceId { get => P("ai21_inference_id"); set => PR("ai21_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id Ai21InferenceId { get => P("ai21_inference_id"); set => PR("ai21_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.Ai21TaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.Ai21TaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -115,11 +107,7 @@ internal PutAi21Request(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Settings used to install the inference model. These settings are specific to the ai21 service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.Ai21ServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.Ai21ServiceSettings ServiceSettings { get; set; } } /// @@ -225,6 +213,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutAi21RequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutAi21RequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAi21Response.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAi21Response.g.cs index 757accbbd82..d3a96259972 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAi21Response.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAi21Response.g.cs @@ -51,33 +51,21 @@ internal PutAi21Response(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutAi21Response(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeAi21 TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeAi21 TaskType { get; set; } } \ No newline at end of file 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 5cc9f7e7087..843741c4213 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs @@ -55,11 +55,11 @@ public PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Inference.AlibabaClo { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutAlibabacloudRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id AlibabacloudInferenceId { get => P("alibabacloud_inference_id"); set => PR("alibabacloud_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id AlibabacloudInferenceId { get => P("alibabacloud_inference_id"); set => PR("alibabacloud_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -124,11 +116,7 @@ internal PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// Settings used to install the inference model. These settings are specific to the alibabacloud-ai-search service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceSettings ServiceSettings { get; set; } /// /// @@ -317,6 +305,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs index ddb1325c3b4..9d06ae7cae9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs @@ -51,33 +51,21 @@ internal PutAlibabacloudResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutAlibabacloudResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI TaskType { get; set; } } \ No newline at end of file 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 e3f33369664..91825a21dfe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs @@ -59,11 +59,11 @@ public PutAmazonbedrockRequest(Elastic.Clients.Elasticsearch.Inference.AmazonBed { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutAmazonbedrockRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAmazonbedrockRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,22 +83,14 @@ internal PutAmazonbedrockRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id AmazonbedrockInferenceId { get => P("amazonbedrock_inference_id"); set => PR("amazonbedrock_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id AmazonbedrockInferenceId { get => P("amazonbedrock_inference_id"); set => PR("amazonbedrock_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -128,11 +120,7 @@ internal PutAmazonbedrockRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Settings used to install the inference model. These settings are specific to the amazonbedrock service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceSettings ServiceSettings { get; set; } /// /// @@ -325,6 +313,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockResponse.g.cs index 878b9adef3f..f65a99fc618 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockResponse.g.cs @@ -51,33 +51,21 @@ internal PutAmazonbedrockResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutAmazonbedrockResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeAmazonBedrock TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeAmazonBedrock TaskType { get; set; } } \ No newline at end of file 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 fef88cc60f9..8085f91c38e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerRequest.g.cs @@ -55,11 +55,11 @@ public PutAmazonsagemakerRequest(Elastic.Clients.Elasticsearch.Inference.TaskTyp { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutAmazonsagemakerRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAmazonsagemakerRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutAmazonsagemakerRequest(Elastic.Clients.Elasticsearch.Serialization.J /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id AmazonsagemakerInferenceId { get => P("amazonsagemaker_inference_id"); set => PR("amazonsagemaker_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id AmazonsagemakerInferenceId { get => P("amazonsagemaker_inference_id"); set => PR("amazonsagemaker_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeAmazonSageMaker TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeAmazonSageMaker TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -125,11 +117,7 @@ internal PutAmazonsagemakerRequest(Elastic.Clients.Elasticsearch.Serialization.J /// These settings are specific to the amazon_sagemaker service and service_settings.api you specified. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AmazonSageMakerServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.AmazonSageMakerServiceSettings ServiceSettings { get; set; } /// /// @@ -320,6 +308,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerResponse.g.cs index e7da6e0afe8..1a0fa795427 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerResponse.g.cs @@ -51,33 +51,21 @@ internal PutAmazonsagemakerResponse(Elastic.Clients.Elasticsearch.Serialization. /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutAmazonsagemakerResponse(Elastic.Clients.Elasticsearch.Serialization. /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeAmazonSageMaker TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeAmazonSageMaker TaskType { get; set; } } \ No newline at end of file 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 0680eeb94e8..ca48d6e1295 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs @@ -55,11 +55,11 @@ public PutAnthropicRequest(Elastic.Clients.Elasticsearch.Inference.AnthropicTask { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutAnthropicRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAnthropicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal PutAnthropicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id AnthropicInferenceId { get => P("anthropic_inference_id"); set => PR("anthropic_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id AnthropicInferenceId { get => P("anthropic_inference_id"); set => PR("anthropic_inference_id", value); } /// /// @@ -91,11 +87,7 @@ internal PutAnthropicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The only valid task type for the model to perform is completion. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -116,11 +108,7 @@ internal PutAnthropicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Settings used to install the inference model. These settings are specific to the anthropic service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettings ServiceSettings { get; set; } /// /// @@ -259,6 +247,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicResponse.g.cs index 675e6c24ee6..a93d16115f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicResponse.g.cs @@ -51,33 +51,21 @@ internal PutAnthropicResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutAnthropicResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeAnthropic TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeAnthropic TaskType { get; set; } } \ No newline at end of file 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 eeb8182cbca..a69afd92fb7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs @@ -55,11 +55,11 @@ public PutAzureaistudioRequest(Elastic.Clients.Elasticsearch.Inference.AzureAiSt { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutAzureaistudioRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAzureaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutAzureaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id AzureaistudioInferenceId { get => P("azureaistudio_inference_id"); set => PR("azureaistudio_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id AzureaistudioInferenceId { get => P("azureaistudio_inference_id"); set => PR("azureaistudio_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -124,11 +116,7 @@ internal PutAzureaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Settings used to install the inference model. These settings are specific to the azureaistudio service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettings ServiceSettings { get; set; } /// /// @@ -317,6 +305,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioResponse.g.cs index 48765668a03..2ef60018626 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioResponse.g.cs @@ -51,33 +51,21 @@ internal PutAzureaistudioResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutAzureaistudioResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureAIStudio TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureAIStudio TaskType { get; set; } } \ No newline at end of file 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 312ea50eb1f..8c4aa82c4d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs @@ -73,11 +73,11 @@ public PutAzureopenaiRequest(Elastic.Clients.Elasticsearch.Inference.AzureOpenAI { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutAzureopenaiRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutAzureopenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -97,11 +97,7 @@ internal PutAzureopenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id AzureopenaiInferenceId { get => P("azureopenai_inference_id"); set => PR("azureopenai_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id AzureopenaiInferenceId { get => P("azureopenai_inference_id"); set => PR("azureopenai_inference_id", value); } /// /// @@ -109,11 +105,7 @@ internal PutAzureopenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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.AzureOpenAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -126,7 +118,7 @@ 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. + /// Not applicable to the completion and chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } @@ -143,11 +135,7 @@ internal PutAzureopenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Settings used to install the inference model. These settings are specific to the azureopenai service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettings ServiceSettings { get; set; } /// /// @@ -248,7 +236,7 @@ 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. + /// Not applicable to the completion and chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value) @@ -261,7 +249,7 @@ 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. + /// Not applicable to the completion and chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings() @@ -274,7 +262,7 @@ 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. + /// Not applicable to the completion and chat_completion task types. /// /// public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings(System.Action? action) @@ -355,6 +343,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiResponse.g.cs index 83144eaa37a..a7f698c8556 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiResponse.g.cs @@ -51,33 +51,21 @@ internal PutAzureopenaiResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutAzureopenaiResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI TaskType { get; set; } } \ No newline at end of file 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 6e4b443be93..4fdb8c0035e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs @@ -55,11 +55,11 @@ public PutCohereRequest(Elastic.Clients.Elasticsearch.Inference.CohereTaskType t { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutCohereRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutCohereRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutCohereRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CohereInferenceId { get => P("cohere_inference_id"); set => PR("cohere_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id CohereInferenceId { get => P("cohere_inference_id"); set => PR("cohere_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CohereTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.CohereTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -125,11 +117,7 @@ internal PutCohereRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// These settings are specific to the cohere service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CohereServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.CohereServiceSettings ServiceSettings { get; set; } /// /// @@ -308,6 +296,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutCohereRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutCohereRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereResponse.g.cs index 5bc540d541a..e9c30e61c77 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereResponse.g.cs @@ -51,33 +51,21 @@ internal PutCohereResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutCohereResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeCohere TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeCohere TaskType { get; set; } } \ No newline at end of file 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 43b94f13513..e29b00fcd0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs @@ -58,11 +58,11 @@ public PutContextualaiRequest(Elastic.Clients.Elasticsearch.Inference.TaskTypeCo { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutContextualaiRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,22 +82,14 @@ internal PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ContextualaiInferenceId { get => P("contextualai_inference_id"); set => PR("contextualai_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id ContextualaiInferenceId { get => P("contextualai_inference_id"); set => PR("contextualai_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -118,11 +110,7 @@ internal PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// Settings used to install the inference model. These settings are specific to the contextualai service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.ContextualAIServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.ContextualAIServiceSettings ServiceSettings { get; set; } /// /// @@ -275,6 +263,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.g.cs index 4c8ad8a5151..2aac0c0366a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.g.cs @@ -51,33 +51,21 @@ internal PutContextualaiResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutContextualaiResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI TaskType { get; set; } } \ No newline at end of file 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 d8b1b5147f8..21f534c5dda 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomRequest.g.cs @@ -114,11 +114,11 @@ public PutCustomRequest(Elastic.Clients.Elasticsearch.Inference.CustomTaskType t { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutCustomRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutCustomRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -138,22 +138,14 @@ internal PutCustomRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CustomInferenceId { get => P("custom_inference_id"); set => PR("custom_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id CustomInferenceId { get => P("custom_inference_id"); set => PR("custom_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CustomTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.CustomTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -177,11 +169,7 @@ internal PutCustomRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// These settings are specific to the custom service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CustomServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.CustomServiceSettings ServiceSettings { get; set; } /// /// @@ -426,6 +414,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutCustomRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutCustomRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomResponse.g.cs index 73fef358ca3..a765b3d799d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCustomResponse.g.cs @@ -51,33 +51,21 @@ internal PutCustomResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutCustomResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeCustom TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeCustom TaskType { get; set; } } \ No newline at end of file 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 0be8e54c44c..f1fd4df7be2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekRequest.g.cs @@ -55,11 +55,11 @@ public PutDeepseekRequest(Elastic.Clients.Elasticsearch.Inference.TaskTypeDeepSe { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutDeepseekRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutDeepseekRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutDeepseekRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id DeepseekInferenceId { get => P("deepseek_inference_id"); set => PR("deepseek_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id DeepseekInferenceId { get => P("deepseek_inference_id"); set => PR("deepseek_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeDeepSeek TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeDeepSeek TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -116,11 +108,7 @@ internal PutDeepseekRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// These settings are specific to the deepseek service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.DeepSeekServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.DeepSeekServiceSettings ServiceSettings { get; set; } } /// @@ -228,6 +216,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutDeepseekRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekResponse.g.cs index 8e2c02ce62c..d6c61edb7b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutDeepseekResponse.g.cs @@ -51,33 +51,21 @@ internal PutDeepseekResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutDeepseekResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeDeepSeek TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeDeepSeek TaskType { get; set; } } \ No newline at end of file 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 12d4547f696..beaa1b34402 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs @@ -72,11 +72,11 @@ public PutElasticsearchRequest(Elastic.Clients.Elasticsearch.Inference.Elasticse { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutElasticsearchRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutElasticsearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -97,22 +97,14 @@ internal PutElasticsearchRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The must not match the model_id. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ElasticsearchInferenceId { get => P("elasticsearch_inference_id"); set => PR("elasticsearch_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id ElasticsearchInferenceId { get => P("elasticsearch_inference_id"); set => PR("elasticsearch_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -142,11 +134,7 @@ internal PutElasticsearchRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Settings used to install the inference model. These settings are specific to the elasticsearch service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceSettings ServiceSettings { get; set; } /// /// @@ -353,6 +341,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutElasticsearchRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutElasticsearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchResponse.g.cs index 1707bce50d2..ef171a4c5fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchResponse.g.cs @@ -51,33 +51,21 @@ internal PutElasticsearchResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutElasticsearchResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeElasticsearch TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeElasticsearch TaskType { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserRequest.g.cs index 26df33008a1..c069e882600 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserRequest.g.cs @@ -73,11 +73,11 @@ public PutElserRequest(Elastic.Clients.Elasticsearch.Inference.ElserTaskType tas { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutElserRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutElserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -97,22 +97,14 @@ internal PutElserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ElserInferenceId { get => P("elser_inference_id"); set => PR("elser_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id ElserInferenceId { get => P("elser_inference_id"); set => PR("elser_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.ElserTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.ElserTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -141,11 +133,7 @@ internal PutElserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Settings used to install the inference model. These settings are specific to the elser service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.ElserServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.ElserServiceSettings ServiceSettings { get; set; } } /// @@ -305,6 +293,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutElserRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutElserRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserResponse.g.cs index 49bacdc8fb4..09be7a43d07 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserResponse.g.cs @@ -51,33 +51,21 @@ internal PutElserResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutElserResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeELSER TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeELSER TaskType { get; set; } } \ No newline at end of file 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 9a3c292781c..d6d414cb28a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs @@ -55,11 +55,11 @@ public PutGoogleaistudioRequest(Elastic.Clients.Elasticsearch.Inference.GoogleAi { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutGoogleaistudioRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutGoogleaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutGoogleaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id GoogleaistudioInferenceId { get => P("googleaistudio_inference_id"); set => PR("googleaistudio_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id GoogleaistudioInferenceId { get => P("googleaistudio_inference_id"); set => PR("googleaistudio_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -124,11 +116,7 @@ internal PutGoogleaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// Settings used to install the inference model. These settings are specific to the googleaistudio service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioServiceSettings ServiceSettings { get; set; } } /// @@ -273,6 +261,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutGoogleaistudioRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutGoogleaistudioRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioResponse.g.cs index 5c27ad4450f..d0d56bda65e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioResponse.g.cs @@ -51,33 +51,21 @@ internal PutGoogleaistudioResponse(Elastic.Clients.Elasticsearch.Serialization.J /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutGoogleaistudioResponse(Elastic.Clients.Elasticsearch.Serialization.J /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeGoogleAIStudio TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeGoogleAIStudio TaskType { get; set; } } \ No newline at end of file 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 1a4a88b4c63..e1f22ab175e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs @@ -55,11 +55,11 @@ public PutGooglevertexaiRequest(Elastic.Clients.Elasticsearch.Inference.GoogleVe { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutGooglevertexaiRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutGooglevertexaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutGooglevertexaiRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id GooglevertexaiInferenceId { get => P("googlevertexai_inference_id"); set => PR("googlevertexai_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id GooglevertexaiInferenceId { get => P("googlevertexai_inference_id"); set => PR("googlevertexai_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -124,11 +116,7 @@ internal PutGooglevertexaiRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// Settings used to install the inference model. These settings are specific to the googlevertexai service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceSettings ServiceSettings { get; set; } /// /// @@ -317,6 +305,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiResponse.g.cs index 65292f3f04a..6077ffba821 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiResponse.g.cs @@ -51,33 +51,21 @@ internal PutGooglevertexaiResponse(Elastic.Clients.Elasticsearch.Serialization.J /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutGooglevertexaiResponse(Elastic.Clients.Elasticsearch.Serialization.J /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeGoogleVertexAI TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeGoogleVertexAI TaskType { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqRequest.Converters.g.cs new file mode 100644 index 00000000000..e7a05622e9e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqRequest.Converters.g.cs @@ -0,0 +1,71 @@ +// 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 PutGroqRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"u8); + private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"u8); + + public override Elastic.Clients.Elasticsearch.Inference.PutGroqRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propServiceSettings = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (reader.ValueTextEquals(PropService)) + { + reader.SafeSkip(); + continue; + } + + if (propServiceSettings.TryReadProperty(ref reader, options, PropServiceSettings, 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.PutGroqRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + ServiceSettings = propServiceSettings.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutGroqRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropService, value.Service, null, null); + writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqRequest.g.cs new file mode 100644 index 00000000000..abc45735d7b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqRequest.g.cs @@ -0,0 +1,256 @@ +// 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 PutGroqRequestParameters : 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 a Groq inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the groq service. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.PutGroqRequestConverter))] +public sealed partial class PutGroqRequest : 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 PutGroqRequest(Elastic.Clients.Elasticsearch.Inference.GroqTaskType taskType, Elastic.Clients.Elasticsearch.Id groqInferenceId) : base(r => r.Required("task_type", taskType).Required("groq_inference_id", groqInferenceId)) + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutGroqRequest(Elastic.Clients.Elasticsearch.Inference.GroqTaskType taskType, Elastic.Clients.Elasticsearch.Id groqInferenceId, Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings serviceSettings) : base(r => r.Required("task_type", taskType).Required("groq_inference_id", groqInferenceId)) + { + ServiceSettings = serviceSettings; + } + + public PutGroqRequest() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal PutGroqRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.InferencePutGroq; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_groq"; + + /// + /// + /// The unique identifier of the inference endpoint. + /// + /// + public required Elastic.Clients.Elasticsearch.Id GroqInferenceId { get => P("groq_inference_id"); set => PR("groq_inference_id", value); } + + /// + /// + /// The type of the inference task that the model will perform. + /// + /// + public required Elastic.Clients.Elasticsearch.Inference.GroqTaskType 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 type of service supported for the specified task type. In this case, groq. + /// + /// + public string Service => "groq"; + + /// + /// + /// Settings used to install the inference model. These settings are specific to the groq service. + /// + /// + public required Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings ServiceSettings { get; set; } +} + +/// +/// +/// Create a Groq inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the groq service. +/// +/// +public readonly partial struct PutGroqRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.Inference.PutGroqRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutGroqRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.PutGroqRequest instance) + { + Instance = instance; + } + + public PutGroqRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.GroqTaskType taskType, Elastic.Clients.Elasticsearch.Id groqInferenceId) + { +#pragma warning disable CS0618 + Instance = new Elastic.Clients.Elasticsearch.Inference.PutGroqRequest(taskType, groqInferenceId); +#pragma warning restore CS0618 + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] + public PutGroqRequestDescriptor() + { + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.PutGroqRequest instance) => new Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Inference.PutGroqRequest(Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The unique identifier of the inference endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor GroqInferenceId(Elastic.Clients.Elasticsearch.Id value) + { + Instance.GroqInferenceId = value; + return this; + } + + /// + /// + /// The type of the inference task that the model will perform. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.GroqTaskType 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.PutGroqRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.Timeout = value; + return this; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the groq service. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings value) + { + Instance.ServiceSettings = value; + return this; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the groq service. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor ServiceSettings(System.Action action) + { + Instance.ServiceSettings = Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor.Build(action); + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Inference.PutGroqRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor(new Elastic.Clients.Elasticsearch.Inference.PutGroqRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor 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/PutGroqResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqResponse.Converters.g.cs new file mode 100644 index 00000000000..cd732337ef4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqResponse.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 PutGroqResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"u8); + private static readonly System.Text.Json.JsonEncodedText PropInferenceId = System.Text.Json.JsonEncodedText.Encode("inference_id"u8); + private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"u8); + private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"u8); + private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings"u8); + private static readonly System.Text.Json.JsonEncodedText PropTaskType = System.Text.Json.JsonEncodedText.Encode("task_type"u8); + + public override Elastic.Clients.Elasticsearch.Inference.PutGroqResponse 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.PutGroqResponse(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.PutGroqResponse 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/PutGroqResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqResponse.g.cs new file mode 100644 index 00000000000..f9c2541369f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGroqResponse.g.cs @@ -0,0 +1,83 @@ +// 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.PutGroqResponseConverter))] +public sealed partial class PutGroqResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutGroqResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal PutGroqResponse(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 required string InferenceId { get; set; } + + /// + /// + /// The service type + /// + /// + public required string Service { get; set; } + + /// + /// + /// Settings specific to the service + /// + /// + public required object ServiceSettings { get; set; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + public object? TaskSettings { get; set; } + + /// + /// + /// The task type + /// + /// + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq TaskType { get; set; } +} \ No newline at end of file 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 4713d720d82..cd0b60a27ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs @@ -145,11 +145,11 @@ public PutHuggingFaceRequest(Elastic.Clients.Elasticsearch.Inference.HuggingFace { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutHuggingFaceRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutHuggingFaceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -169,22 +169,14 @@ internal PutHuggingFaceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id HuggingfaceInferenceId { get => P("huggingface_inference_id"); set => PR("huggingface_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id HuggingfaceInferenceId { get => P("huggingface_inference_id"); set => PR("huggingface_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -214,11 +206,7 @@ internal PutHuggingFaceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Settings used to install the inference model. These settings are specific to the hugging_face service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceSettings ServiceSettings { get; set; } /// /// @@ -497,6 +485,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceResponse.g.cs index b30f343991c..42e4c066e38 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceResponse.g.cs @@ -51,33 +51,21 @@ internal PutHuggingFaceResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutHuggingFaceResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeHuggingFace TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeHuggingFace TaskType { get; set; } } \ No newline at end of file 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 0a9f7f885a2..875f44fffd0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs @@ -73,12 +73,12 @@ public sealed partial class PutInferenceRequestParameters : Elastic.Transport.Re /// /// /// -/// Azure AI Studio (completion, 'rerank', text_embedding) +/// Azure AI Studio (completion, rerank, text_embedding) /// /// /// /// -/// Azure OpenAI (completion, text_embedding) +/// Azure OpenAI (chat_completion, completion, text_embedding) /// /// /// @@ -113,6 +113,11 @@ public sealed partial class PutInferenceRequestParameters : Elastic.Transport.Re /// /// /// +/// Groq (chat_completion) +/// +/// +/// +/// /// Hugging Face (chat_completion, completion, rerank, text_embedding) /// /// @@ -133,6 +138,11 @@ public sealed partial class PutInferenceRequestParameters : Elastic.Transport.Re /// /// /// +/// Nvidia (chat_completion, completion, text_embedding, rerank) +/// +/// +/// +/// /// OpenAI (chat_completion, completion, text_embedding) /// /// @@ -179,11 +189,11 @@ public PutInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? tas { InferenceConfig = inferenceConfig; } -#if NET7_0_OR_GREATER + public PutInferenceRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -203,11 +213,7 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -222,11 +228,7 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint InferenceConfig { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint InferenceConfig { get; set; } } /// @@ -269,12 +271,12 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// -/// Azure AI Studio (completion, 'rerank', text_embedding) +/// Azure AI Studio (completion, rerank, text_embedding) /// /// /// /// -/// Azure OpenAI (completion, text_embedding) +/// Azure OpenAI (chat_completion, completion, text_embedding) /// /// /// @@ -309,6 +311,11 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// +/// Groq (chat_completion) +/// +/// +/// +/// /// Hugging Face (chat_completion, completion, rerank, text_embedding) /// /// @@ -329,6 +336,11 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// +/// Nvidia (chat_completion, completion, text_embedding, rerank) +/// +/// +/// +/// /// OpenAI (chat_completion, completion, text_embedding) /// /// @@ -441,6 +453,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutInferenceRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutInferenceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs index 570cef2af3c..e07c7d838d0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs @@ -51,33 +51,21 @@ internal PutInferenceResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutInferenceResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; set; } } \ No newline at end of file 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 369431ffd17..d975e8a8ce9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs @@ -59,11 +59,11 @@ public PutJinaaiRequest(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType t { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutJinaaiRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutJinaaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,22 +83,14 @@ internal PutJinaaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JinaaiInferenceId { get => P("jinaai_inference_id"); set => PR("jinaai_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id JinaaiInferenceId { get => P("jinaai_inference_id"); set => PR("jinaai_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.JinaAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.JinaAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -128,11 +120,7 @@ internal PutJinaaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Settings used to install the inference model. These settings are specific to the jinaai service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.JinaAIServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.JinaAIServiceSettings ServiceSettings { get; set; } /// /// @@ -325,6 +313,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutJinaaiRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutJinaaiRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs index 5b9d3d9240d..725929a3cb5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs @@ -51,33 +51,21 @@ internal PutJinaaiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutJinaaiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeJinaAi TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeJinaAi TaskType { get; set; } } \ No newline at end of file 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 a2648b6ed24..8dc39e8bde4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaRequest.g.cs @@ -55,11 +55,11 @@ public PutLlamaRequest(Elastic.Clients.Elasticsearch.Inference.LlamaTaskType tas { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutLlamaRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutLlamaRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutLlamaRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id LlamaInferenceId { get => P("llama_inference_id"); set => PR("llama_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id LlamaInferenceId { get => P("llama_inference_id"); set => PR("llama_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.LlamaTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.LlamaTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -124,11 +116,7 @@ internal PutLlamaRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Settings used to install the inference model. These settings are specific to the llama service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.LlamaServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.LlamaServiceSettings ServiceSettings { get; set; } } /// @@ -273,6 +261,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutLlamaRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutLlamaRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaResponse.g.cs index dd1c75813eb..52f2d4b440f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutLlamaResponse.g.cs @@ -51,33 +51,21 @@ internal PutLlamaResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutLlamaResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeLlama TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeLlama TaskType { get; set; } } \ No newline at end of file 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 e9ae7a6d0ed..e3e7b717a66 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs @@ -55,11 +55,11 @@ public PutMistralRequest(Elastic.Clients.Elasticsearch.Inference.MistralTaskType { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutMistralRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutMistralRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,22 +79,14 @@ internal PutMistralRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id MistralInferenceId { get => P("mistral_inference_id"); set => PR("mistral_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id MistralInferenceId { get => P("mistral_inference_id"); set => PR("mistral_inference_id", value); } /// /// /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.MistralTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.MistralTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -124,11 +116,7 @@ internal PutMistralRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Settings used to install the inference model. These settings are specific to the mistral service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.MistralServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.MistralServiceSettings ServiceSettings { get; set; } } /// @@ -273,6 +261,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutMistralRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutMistralRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralResponse.g.cs index d1d96117fcc..83ef30d5b5f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralResponse.g.cs @@ -51,33 +51,21 @@ internal PutMistralResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutMistralResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeMistral TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeMistral TaskType { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaRequest.Converters.g.cs new file mode 100644 index 00000000000..8385160307b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaRequest.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 PutNvidiaRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"u8); + private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"u8); + private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"u8); + private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings"u8); + + public override Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest 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.PutNvidiaRequest(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.PutNvidiaRequest 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/PutNvidiaRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaRequest.g.cs new file mode 100644 index 00000000000..0d38d893cf9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaRequest.g.cs @@ -0,0 +1,358 @@ +// 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 PutNvidiaRequestParameters : 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 Nvidia inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the nvidia service. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.PutNvidiaRequestConverter))] +public sealed partial class PutNvidiaRequest : 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 PutNvidiaRequest(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType taskType, Elastic.Clients.Elasticsearch.Id nvidiaInferenceId) : base(r => r.Required("task_type", taskType).Required("nvidia_inference_id", nvidiaInferenceId)) + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutNvidiaRequest(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType taskType, Elastic.Clients.Elasticsearch.Id nvidiaInferenceId, Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings serviceSettings) : base(r => r.Required("task_type", taskType).Required("nvidia_inference_id", nvidiaInferenceId)) + { + ServiceSettings = serviceSettings; + } + + public PutNvidiaRequest() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal PutNvidiaRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.InferencePutNvidia; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_nvidia"; + + /// + /// + /// The unique identifier of the inference endpoint. + /// + /// + public required Elastic.Clients.Elasticsearch.Id NvidiaInferenceId { get => P("nvidia_inference_id"); set => PR("nvidia_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 required Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType 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, nvidia. + /// + /// + public string Service => "nvidia"; + + /// + /// + /// Settings used to install the inference model. These settings are specific to the nvidia service. + /// + /// + public required Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// These settings are specific to the task type you specified. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an Nvidia inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the nvidia service. +/// +/// +public readonly partial struct PutNvidiaRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutNvidiaRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest instance) + { + Instance = instance; + } + + public PutNvidiaRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType taskType, Elastic.Clients.Elasticsearch.Id nvidiaInferenceId) + { +#pragma warning disable CS0618 + Instance = new Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest(taskType, nvidiaInferenceId); +#pragma warning restore CS0618 + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] + public PutNvidiaRequestDescriptor() + { + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest instance) => new Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest(Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The unique identifier of the inference endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor NvidiaInferenceId(Elastic.Clients.Elasticsearch.Id value) + { + Instance.NvidiaInferenceId = 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.PutNvidiaRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType 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.PutNvidiaRequestDescriptor 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.PutNvidiaRequestDescriptor 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.PutNvidiaRequestDescriptor 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.PutNvidiaRequestDescriptor 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 nvidia service. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings value) + { + Instance.ServiceSettings = value; + return this; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the nvidia service. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor ServiceSettings(System.Action action) + { + Instance.ServiceSettings = Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor.Build(action); + return this; + } + + /// + /// + /// Settings to configure the inference task. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// These settings are specific to the task type you specified. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings? value) + { + Instance.TaskSettings = value; + return this; + } + + /// + /// + /// Settings to configure the inference task. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// These settings are specific to the task type you specified. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor TaskSettings() + { + Instance.TaskSettings = Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettingsDescriptor.Build(null); + return this; + } + + /// + /// + /// Settings to configure the inference task. + /// Applies only to the text_embedding task type. + /// Not applicable to the rerank, completion, or chat_completion task types. + /// These settings are specific to the task type you specified. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor TaskSettings(System.Action? action) + { + Instance.TaskSettings = Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettingsDescriptor.Build(action); + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor(new Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor 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/PutNvidiaResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaResponse.Converters.g.cs new file mode 100644 index 00000000000..7dfceb9d5a6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaResponse.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 PutNvidiaResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings"u8); + private static readonly System.Text.Json.JsonEncodedText PropInferenceId = System.Text.Json.JsonEncodedText.Encode("inference_id"u8); + private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service"u8); + private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings"u8); + private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings"u8); + private static readonly System.Text.Json.JsonEncodedText PropTaskType = System.Text.Json.JsonEncodedText.Encode("task_type"u8); + + public override Elastic.Clients.Elasticsearch.Inference.PutNvidiaResponse 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.PutNvidiaResponse(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.PutNvidiaResponse 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/PutNvidiaResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaResponse.g.cs new file mode 100644 index 00000000000..f76212a7cd0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutNvidiaResponse.g.cs @@ -0,0 +1,83 @@ +// 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.PutNvidiaResponseConverter))] +public sealed partial class PutNvidiaResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PutNvidiaResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal PutNvidiaResponse(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 required string InferenceId { get; set; } + + /// + /// + /// The service type + /// + /// + public required string Service { get; set; } + + /// + /// + /// Settings specific to the service + /// + /// + public required object ServiceSettings { get; set; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + public object? TaskSettings { get; set; } + + /// + /// + /// The task type + /// + /// + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia TaskType { get; set; } +} \ No newline at end of file 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 00d6032e39b..89358d92975 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs @@ -55,11 +55,11 @@ public PutOpenaiRequest(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType t { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutOpenaiRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutOpenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal PutOpenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id OpenaiInferenceId { get => P("openai_inference_id"); set => PR("openai_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id OpenaiInferenceId { get => P("openai_inference_id"); set => PR("openai_inference_id", value); } /// /// @@ -91,11 +87,7 @@ internal PutOpenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// 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.OpenAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.OpenAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -125,11 +117,7 @@ internal PutOpenaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Settings used to install the inference model. These settings are specific to the openai service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.OpenAIServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.OpenAIServiceSettings ServiceSettings { get; set; } /// /// @@ -319,6 +307,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiResponse.g.cs index 169ddfcab4c..2be138aebbd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiResponse.g.cs @@ -51,33 +51,21 @@ internal PutOpenaiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutOpenaiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenAI TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenAI TaskType { get; set; } } \ 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 index a11c58734d2..127c4193e43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiRequest.g.cs @@ -55,11 +55,11 @@ public PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Inference.OpenShiftAi { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutOpenshiftAiRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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); } + public required Elastic.Clients.Elasticsearch.Id OpenshiftaiInferenceId { get => P("openshiftai_inference_id"); set => PR("openshiftai_inference_id", value); } /// /// @@ -91,11 +87,7 @@ internal PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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); } + public required Elastic.Clients.Elasticsearch.Inference.OpenShiftAiTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// @@ -125,11 +117,7 @@ internal PutOpenshiftAiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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; } + public required Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettings ServiceSettings { get; set; } /// /// @@ -327,6 +315,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutOpenshiftAiRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.g.cs index 4f96d43db9f..667b82b401c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenshiftAiResponse.g.cs @@ -51,33 +51,21 @@ internal PutOpenshiftAiResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutOpenshiftAiResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeOpenShiftAi TaskType { get; set; } + public required 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 ce106297ba4..692dcac8284 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiRequest.g.cs @@ -58,11 +58,11 @@ public PutVoyageaiRequest(Elastic.Clients.Elasticsearch.Inference.VoyageAITaskTy { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutVoyageaiRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutVoyageaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,22 +82,14 @@ internal PutVoyageaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.VoyageAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.VoyageAITaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id VoyageaiInferenceId { get => P("voyageai_inference_id"); set => PR("voyageai_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id VoyageaiInferenceId { get => P("voyageai_inference_id"); set => PR("voyageai_inference_id", value); } /// /// @@ -127,11 +119,7 @@ internal PutVoyageaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Settings used to install the inference model. These settings are specific to the voyageai service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.VoyageAIServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.VoyageAIServiceSettings ServiceSettings { get; set; } /// /// @@ -323,6 +311,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutVoyageaiRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiResponse.g.cs index adcd4cc3336..b5059779524 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutVoyageaiResponse.g.cs @@ -51,33 +51,21 @@ internal PutVoyageaiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutVoyageaiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeVoyageAI TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeVoyageAI TaskType { get; set; } } \ No newline at end of file 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 ccd25f309c6..d8fccfc7787 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs @@ -57,11 +57,11 @@ public PutWatsonxRequest(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType { ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER + public PutWatsonxRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutWatsonxRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,22 +81,14 @@ internal PutWatsonxRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The type of the inference task that the model will perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } + public required Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType TaskType { get => P("task_type"); set => PR("task_type", value); } /// /// /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id WatsonxInferenceId { get => P("watsonx_inference_id"); set => PR("watsonx_inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id WatsonxInferenceId { get => P("watsonx_inference_id"); set => PR("watsonx_inference_id", value); } /// /// @@ -126,11 +118,7 @@ internal PutWatsonxRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Settings used to install the inference model. These settings are specific to the watsonxai service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.WatsonxServiceSettings ServiceSettings { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.WatsonxServiceSettings ServiceSettings { get; set; } } /// @@ -277,6 +265,11 @@ public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxResponse.g.cs index dfbadbe5629..3058a8458c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxResponse.g.cs @@ -51,33 +51,21 @@ internal PutWatsonxResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal PutWatsonxResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskTypeWatsonx TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskTypeWatsonx TaskType { get; set; } } \ No newline at end of file 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 b45139a8b03..ae35f7281b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs @@ -53,11 +53,11 @@ public RerankRequest(Elastic.Clients.Elasticsearch.Id inferenceId, System.Collec Input = input; Query = query; } -#if NET7_0_OR_GREATER + public RerankRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RerankRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -77,11 +77,7 @@ internal RerankRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The unique identifier for the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -95,22 +91,14 @@ internal RerankRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The documents to rank. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Input { get; set; } + public required System.Collections.Generic.ICollection Input { get; set; } /// /// /// Query input. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } /// /// @@ -269,6 +257,11 @@ public Elastic.Clients.Elasticsearch.Inference.RerankRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.RerankRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankResponse.g.cs index d1f5531b4e5..83fc91260ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankResponse.g.cs @@ -37,9 +37,5 @@ internal RerankResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Rerank { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Rerank { get; set; } } \ No newline at end of file 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 11f0188e579..d94e8b1c768 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs @@ -52,11 +52,11 @@ public SparseEmbeddingRequest(Elastic.Clients.Elasticsearch.Id inferenceId, Syst { Input = input; } -#if NET7_0_OR_GREATER + public SparseEmbeddingRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SparseEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal SparseEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -95,11 +91,7 @@ internal SparseEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// Either a string or an array of strings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Input { get; set; } + public required System.Collections.Generic.ICollection Input { get; set; } /// /// @@ -211,6 +203,11 @@ public Elastic.Clients.Elasticsearch.Inference.SparseEmbeddingRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.SparseEmbeddingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingResponse.g.cs index 4ea0afac710..7bd392f90c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingResponse.g.cs @@ -37,9 +37,5 @@ internal SparseEmbeddingResponse(Elastic.Clients.Elasticsearch.Serialization.Jso _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection SparseEmbedding { get; set; } + public required System.Collections.Generic.IReadOnlyCollection SparseEmbedding { get; set; } } \ No newline at end of file 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 f3e996124d8..be4b251b0a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs @@ -62,11 +62,11 @@ public StreamCompletionRequest(Elastic.Clients.Elasticsearch.Id inferenceId, Sys { Input = input; } -#if NET7_0_OR_GREATER + public StreamCompletionRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StreamCompletionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,11 +86,7 @@ internal StreamCompletionRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The unique identifier for the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -108,11 +104,7 @@ internal StreamCompletionRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// NOTE: Inference endpoints for the completion task type currently only support a single string as input. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Input { get; set; } + public required System.Collections.Generic.ICollection Input { get; set; } /// /// @@ -240,6 +232,11 @@ public Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 690eff1fcea..02d5fb99988 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs @@ -52,11 +52,11 @@ public TextEmbeddingRequest(Elastic.Clients.Elasticsearch.Id inferenceId, System { Input = input; } -#if NET7_0_OR_GREATER + public TextEmbeddingRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal TextEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -95,11 +91,7 @@ internal TextEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Either a string or an array of strings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Input { get; set; } + public required System.Collections.Generic.ICollection Input { get; set; } /// /// @@ -285,6 +277,11 @@ public Elastic.Clients.Elasticsearch.Inference.TextEmbeddingRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.TextEmbeddingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingResponse.g.cs index 7d18278155d..e15f9198915 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingResponse.g.cs @@ -37,9 +37,5 @@ internal TextEmbeddingResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Inference.TextEmbeddingInferenceResult InferenceResult { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TextEmbeddingInferenceResult InferenceResult { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs index d344fe064a6..d4ae567ca8d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs @@ -66,11 +66,11 @@ public UpdateInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? { InferenceConfig = inferenceConfig; } -#if NET7_0_OR_GREATER + public UpdateInferenceRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -90,11 +90,7 @@ internal UpdateInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// The unique identifier of the inference endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } + public required Elastic.Clients.Elasticsearch.Id InferenceId { get => P("inference_id"); set => PR("inference_id", value); } /// /// @@ -102,11 +98,7 @@ internal UpdateInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// public Elastic.Clients.Elasticsearch.Inference.TaskType? TaskType { get => P("task_type"); set => PO("task_type", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint InferenceConfig { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint InferenceConfig { get; set; } } /// @@ -203,6 +195,11 @@ public Elastic.Clients.Elasticsearch.Inference.UpdateInferenceRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Inference.UpdateInferenceRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceResponse.g.cs index 38914e99550..223bd7ce45a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceResponse.g.cs @@ -51,33 +51,21 @@ internal UpdateInferenceResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -91,9 +79,5 @@ internal UpdateInferenceResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs index bcee8c2c6db..1764551fdc3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs @@ -39,16 +39,10 @@ public sealed partial class InfoRequestParameters : Elastic.Transport.RequestPar [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.InfoRequestConverter))] public sealed partial class InfoRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public InfoRequest() { } -#endif -#if !NET7_0_OR_GREATER - public InfoRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -110,6 +104,11 @@ public Elastic.Clients.Elasticsearch.InfoRequestDescriptor ErrorTrace(bool? valu return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.InfoRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs index 4817620c16a..319a5b86d4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs @@ -42,41 +42,21 @@ internal InfoResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The responding cluster's name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterUuid { get; set; } + public required string ClusterName { get; set; } + public required string ClusterUuid { get; set; } /// /// /// The responding node's name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Tagline { get; set; } + public required string Name { get; set; } + public required string Tagline { get; set; } /// /// /// The running version of Elasticsearch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ElasticsearchVersionInfo Version { get; set; } + public required Elastic.Clients.Elasticsearch.ElasticsearchVersionInfo Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs index 7521e69a230..25d3c547016 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs @@ -56,11 +56,11 @@ public sealed partial class DeleteGeoipDatabaseRequest : Elastic.Clients.Elastic public DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Ids id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteGeoipDatabaseRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +80,7 @@ internal DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization. /// A comma-separated list of geoip database configurations to delete /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ids Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Ids Id { get => P("id"); set => PR("id", value); } /// /// @@ -182,6 +178,11 @@ public Elastic.Clients.Elasticsearch.Ingest.DeleteGeoipDatabaseRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.DeleteGeoipDatabaseRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.g.cs index 31602956dde..7d8fb211452 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteGeoipDatabaseResponse(Elastic.Clients.Elasticsearch.Serialization /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs index 003e086393d..88e313ad03f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs @@ -56,11 +56,11 @@ public sealed partial class DeleteIpLocationDatabaseRequest : Elastic.Clients.El public DeleteIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Ids id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteIpLocationDatabaseRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +80,7 @@ internal DeleteIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serializa /// A comma-separated list of IP location database configurations. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ids Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Ids Id { get => P("id"); set => PR("id", value); } /// /// @@ -185,6 +181,11 @@ public Elastic.Clients.Elasticsearch.Ingest.DeleteIpLocationDatabaseRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.DeleteIpLocationDatabaseRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs index a0784ae9cd8..f566e031e9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteIpLocationDatabaseResponse(Elastic.Clients.Elasticsearch.Serializ /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 17311938f72..a9451056869 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class DeletePipelineRequest : Elastic.Clients.Elasticsearc public DeletePipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeletePipelineRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeletePipelineRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal DeletePipelineRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// To delete all ingest pipelines in a cluster, use a value of *. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -187,6 +183,11 @@ public Elastic.Clients.Elasticsearch.Ingest.DeletePipelineRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.DeletePipelineRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineResponse.g.cs index ea831d4ee43..a55625c9a43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineResponse.g.cs @@ -42,9 +42,5 @@ internal DeletePipelineResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 c923d557365..07b5de96eee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class GeoIpStatsRequestParameters : Elastic.Transport.Requ [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.GeoIpStatsRequestConverter))] public sealed partial class GeoIpStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GeoIpStatsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GeoIpStatsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoIpStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.Ingest.GeoIpStatsRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Ingest.GeoIpStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsResponse.g.cs index f933f1e6fb3..670d698eaec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsResponse.g.cs @@ -42,20 +42,12 @@ internal GeoIpStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Downloaded GeoIP2 databases for each node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } /// /// /// Download statistics for all GeoIP2 databases. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.GeoIpDownloadStatistics Stats { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.GeoIpDownloadStatistics Stats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs index 85f68580a5d..de8f990e94f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs @@ -41,16 +41,11 @@ public sealed partial class GetGeoipDatabaseRequest : Elastic.Clients.Elasticsea public GetGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Ids? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public GetGeoipDatabaseRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetGeoipDatabaseRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -138,6 +133,11 @@ public Elastic.Clients.Elasticsearch.Ingest.GetGeoipDatabaseRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.GetGeoipDatabaseRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseResponse.g.cs index 9df201f4e28..0dc2b3a752f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseResponse.g.cs @@ -37,9 +37,5 @@ internal GetGeoipDatabaseResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Databases { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Databases { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs index 872aab7bf79..8d62977983d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs @@ -38,16 +38,11 @@ public sealed partial class GetIpLocationDatabaseRequest : Elastic.Clients.Elast public GetIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Ids? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public GetIpLocationDatabaseRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetIpLocationDatabaseRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -132,6 +127,11 @@ public Elastic.Clients.Elasticsearch.Ingest.GetIpLocationDatabaseRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.GetIpLocationDatabaseRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs index 3b6eb5605d4..f2119b5983e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs @@ -37,9 +37,5 @@ internal GetIpLocationDatabaseResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Databases { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Databases { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs index bd9eedb5129..3c597fc4f33 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs @@ -56,16 +56,11 @@ public sealed partial class GetPipelineRequest : Elastic.Clients.Elasticsearch.R public GetPipelineRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public GetPipelineRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetPipelineRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetPipelineRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -192,6 +187,11 @@ public Elastic.Clients.Elasticsearch.Ingest.GetPipelineRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.GetPipelineRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineResponse.g.cs index 7a52e01d7d1..30848261b44 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineResponse.g.cs @@ -37,9 +37,5 @@ internal GetPipelineResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Pipelines { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Pipelines { get; set; } } \ No newline at end of file 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 901aba959c1..7d6037d2977 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs @@ -40,16 +40,10 @@ public sealed partial class ProcessorGrokRequestParameters : Elastic.Transport.R [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.ProcessorGrokRequestConverter))] public sealed partial class ProcessorGrokRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ProcessorGrokRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ProcessorGrokRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ProcessorGrokRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -112,6 +106,11 @@ public Elastic.Clients.Elasticsearch.Ingest.ProcessorGrokRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Ingest.ProcessorGrokRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokResponse.g.cs index a69ff48b807..16f7bb27a5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokResponse.g.cs @@ -37,9 +37,5 @@ internal ProcessorGrokResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Patterns { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Patterns { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs index 5948ffd6945..163ad2f670c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs @@ -64,11 +64,11 @@ public PutGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Id id, Elastic.Clie Maxmind = maxmind; Name = name; } -#if NET7_0_OR_GREATER + public PutGeoipDatabaseRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -88,11 +88,7 @@ internal PutGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// ID of the database configuration to create or update. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -115,22 +111,14 @@ internal PutGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.Maxmind Maxmind { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.Maxmind Maxmind { get; set; } /// /// /// The provider-assigned name of the IP geolocation database to download. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get; set; } + public required Elastic.Clients.Elasticsearch.Name Name { get; set; } } /// @@ -250,6 +238,11 @@ public Elastic.Clients.Elasticsearch.Ingest.PutGeoipDatabaseRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.PutGeoipDatabaseRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseResponse.g.cs index 3dc3086bae2..39d6ecf5487 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseResponse.g.cs @@ -42,9 +42,5 @@ internal PutGeoipDatabaseResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs index 61df7b25bec..5b2c4876658 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs @@ -63,11 +63,11 @@ public PutIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Id id, Elastic { Configuration = configuration; } -#if NET7_0_OR_GREATER + public PutIpLocationDatabaseRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,11 +87,7 @@ internal PutIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serializatio /// The database configuration identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -110,11 +106,7 @@ internal PutIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration Configuration { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration Configuration { get; set; } } /// @@ -211,6 +203,11 @@ public Elastic.Clients.Elasticsearch.Ingest.PutIpLocationDatabaseRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.PutIpLocationDatabaseRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs index 3c8aeb63f13..3443c5b8b17 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs @@ -42,9 +42,5 @@ internal PutIpLocationDatabaseResponse(Elastic.Clients.Elasticsearch.Serializati /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 02db9f9fe5e..d8550ec74d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs @@ -62,11 +62,11 @@ public sealed partial class PutPipelineRequest : Elastic.Clients.Elasticsearch.R public PutPipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public PutPipelineRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutPipelineRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,11 +86,7 @@ internal PutPipelineRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// ID of the ingest pipeline to create or update. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -451,6 +447,11 @@ public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -741,6 +742,11 @@ public Elastic.Clients.Elasticsearch.Ingest.PutPipelineRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineResponse.g.cs index a21922c8795..4cc66f6fd39 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineResponse.g.cs @@ -42,9 +42,5 @@ internal PutPipelineResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs index 867132da54d..fc25e0e78a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs @@ -62,17 +62,11 @@ public SimulateRequest(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Docs { get; set; } + public required System.Collections.Generic.ICollection Docs { get; set; } /// /// @@ -285,6 +275,11 @@ public Elastic.Clients.Elasticsearch.Ingest.SimulateRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.SimulateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -471,6 +466,11 @@ public Elastic.Clients.Elasticsearch.Ingest.SimulateRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Ingest.SimulateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateResponse.g.cs index f17b9ba9666..d4994fdb7f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateResponse.g.cs @@ -37,9 +37,5 @@ internal SimulateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Docs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Docs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs index 04f6a6e4772..af186c9877f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs @@ -54,16 +54,10 @@ public sealed partial class DeleteLicenseRequestParameters : Elastic.Transport.R [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.LicenseManagement.Json.DeleteLicenseRequestConverter))] public sealed partial class DeleteLicenseRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public DeleteLicenseRequest() { } -#endif -#if !NET7_0_OR_GREATER - public DeleteLicenseRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteLicenseRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -163,6 +157,11 @@ public Elastic.Clients.Elasticsearch.LicenseManagement.DeleteLicenseRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.LicenseManagement.DeleteLicenseRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseResponse.g.cs index ad3621c62dd..374e3ed8da7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteLicenseResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs index d160801991c..9582b997b61 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs @@ -35,16 +35,10 @@ public sealed partial class GetBasicStatusRequestParameters : Elastic.Transport. [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.LicenseManagement.Json.GetBasicStatusRequestConverter))] public sealed partial class GetBasicStatusRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetBasicStatusRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetBasicStatusRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetBasicStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -102,6 +96,11 @@ public Elastic.Clients.Elasticsearch.LicenseManagement.GetBasicStatusRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.LicenseManagement.GetBasicStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusResponse.g.cs index 013dbcd8f73..3eebebd85e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusResponse.g.cs @@ -37,9 +37,5 @@ internal GetBasicStatusResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool EligibleToStartBasic { get; set; } + public required bool EligibleToStartBasic { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs index c3e8c744ff0..243a5baf5d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs @@ -60,16 +60,10 @@ public sealed partial class GetLicenseRequestParameters : Elastic.Transport.Requ [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.LicenseManagement.Json.GetLicenseRequestConverter))] public sealed partial class GetLicenseRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetLicenseRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetLicenseRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetLicenseRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -179,6 +173,11 @@ public Elastic.Clients.Elasticsearch.LicenseManagement.GetLicenseRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.LicenseManagement.GetLicenseRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseResponse.g.cs index 5930ed39424..543feda7651 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseResponse.g.cs @@ -37,9 +37,5 @@ internal GetLicenseResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.LicenseManagement.LicenseInformation License { get; set; } + public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseInformation License { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs index 0beeaafd1cb..601c0c53855 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs @@ -35,16 +35,10 @@ public sealed partial class GetTrialStatusRequestParameters : Elastic.Transport. [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.LicenseManagement.Json.GetTrialStatusRequestConverter))] public sealed partial class GetTrialStatusRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetTrialStatusRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetTrialStatusRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetTrialStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -102,6 +96,11 @@ public Elastic.Clients.Elasticsearch.LicenseManagement.GetTrialStatusRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.LicenseManagement.GetTrialStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusResponse.g.cs index 0ecf2ed852b..6cd452cb168 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusResponse.g.cs @@ -37,9 +37,5 @@ internal GetTrialStatusResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool EligibleToStartTrial { get; set; } + public required bool EligibleToStartTrial { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs index c32052d5141..a123024f107 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs @@ -65,16 +65,10 @@ public sealed partial class PostRequestParameters : Elastic.Transport.RequestPar [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.LicenseManagement.Json.PostRequestConverter))] public sealed partial class PostRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public PostRequest() { } -#endif -#if !NET7_0_OR_GREATER - public PostRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PostRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -255,6 +249,11 @@ public Elastic.Clients.Elasticsearch.LicenseManagement.PostRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.LicenseManagement.PostRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostResponse.g.cs index 8bb44b61ebf..655c3c73c35 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostResponse.g.cs @@ -38,14 +38,6 @@ internal PostResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo } public Elastic.Clients.Elasticsearch.LicenseManagement.Acknowledgement? Acknowledge { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.LicenseManagement.LicenseStatus LicenseStatus { get; set; } + public required bool Acknowledged { get; set; } + public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseStatus LicenseStatus { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs index 2f1dad14c87..775c27e7129 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs @@ -68,16 +68,10 @@ public sealed partial class PostStartBasicRequestParameters : Elastic.Transport. [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.LicenseManagement.Json.PostStartBasicRequestConverter))] public sealed partial class PostStartBasicRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public PostStartBasicRequest() { } -#endif -#if !NET7_0_OR_GREATER - public PostStartBasicRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PostStartBasicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -202,6 +196,11 @@ public Elastic.Clients.Elasticsearch.LicenseManagement.PostStartBasicRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.LicenseManagement.PostStartBasicRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicResponse.g.cs index e25f850d04e..4721e340725 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicResponse.g.cs @@ -38,16 +38,8 @@ internal PostStartBasicResponse(Elastic.Clients.Elasticsearch.Serialization.Json } public System.Collections.Generic.IReadOnlyDictionary>? Acknowledge { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool BasicWasStarted { get; set; } + public required bool Acknowledged { get; set; } + public required bool BasicWasStarted { get; set; } public string? ErrorMessage { get; set; } public Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType? Type { get; set; } } \ No newline at end of file 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 510fb67bff4..bc2b7fe7bc8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs @@ -65,16 +65,10 @@ public sealed partial class PostStartTrialRequestParameters : Elastic.Transport. [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.LicenseManagement.Json.PostStartTrialRequestConverter))] public sealed partial class PostStartTrialRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public PostStartTrialRequest() { } -#endif -#if !NET7_0_OR_GREATER - public PostStartTrialRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PostStartTrialRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -196,6 +190,11 @@ public Elastic.Clients.Elasticsearch.LicenseManagement.PostStartTrialRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.LicenseManagement.PostStartTrialRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialResponse.g.cs index bdab8a710a5..d56046eef71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialResponse.g.cs @@ -37,16 +37,8 @@ internal PostStartTrialResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } + public required bool Acknowledged { get; set; } public string? ErrorMessage { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool TrialWasStarted { get; set; } + public required bool TrialWasStarted { get; set; } public Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType? Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs index 3565d12a60d..b4335fe948e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs @@ -45,11 +45,11 @@ public sealed partial class ClearTrainedModelDeploymentCacheRequest : Elastic.Cl public ClearTrainedModelDeploymentCacheRequest(Elastic.Clients.Elasticsearch.Id modelId) : base(r => r.Required("model_id", modelId)) { } -#if NET7_0_OR_GREATER + public ClearTrainedModelDeploymentCacheRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearTrainedModelDeploymentCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +69,7 @@ internal ClearTrainedModelDeploymentCacheRequest(Elastic.Clients.Elasticsearch.S /// The unique identifier of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } } /// @@ -136,6 +132,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ClearTrainedModelDeployment return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.ClearTrainedModelDeploymentCacheRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheResponse.g.cs index 2b8a50505f8..808a83a85c3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheResponse.g.cs @@ -37,9 +37,5 @@ internal ClearTrainedModelDeploymentCacheResponse(Elastic.Clients.Elasticsearch. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Cleared { get; set; } + public required bool Cleared { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs index 324411af00d..b8a73c367c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs @@ -45,11 +45,11 @@ public sealed partial class CloseJobRequest : Elastic.Clients.Elasticsearch.Requ public CloseJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public CloseJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CloseJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +69,7 @@ internal CloseJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close 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 close all jobs by using _all or by specifying * as the job identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -190,6 +186,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.CloseJobRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.CloseJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobResponse.g.cs index 3dbf5ee4e57..80abd28c249 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobResponse.g.cs @@ -37,9 +37,5 @@ internal CloseJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Closed { get; set; } + public required bool Closed { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs index 752c8af5593..fcb0deb5e77 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class DeleteCalendarEventRequest : Elastic.Clients.Elastic public DeleteCalendarEventRequest(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId) : base(r => r.Required("calendar_id", calendarId).Required("event_id", eventId)) { } -#if NET7_0_OR_GREATER + public DeleteCalendarEventRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteCalendarEventRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal DeleteCalendarEventRequest(Elastic.Clients.Elasticsearch.Serialization. /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } + public required Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } /// /// @@ -75,11 +71,7 @@ internal DeleteCalendarEventRequest(Elastic.Clients.Elasticsearch.Serialization. /// You can obtain this identifier by using the get calendar events API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id EventId { get => P("event_id"); set => PR("event_id", value); } + public required Elastic.Clients.Elasticsearch.Id EventId { get => P("event_id"); set => PR("event_id", value); } } /// @@ -148,6 +140,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteCalendarEventRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteCalendarEventRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventResponse.g.cs index 4c17016c227..70017b74051 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteCalendarEventResponse(Elastic.Clients.Elasticsearch.Serialization /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs index 2678ce2e0ea..0cc8bb56a4e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class DeleteCalendarJobRequest : Elastic.Clients.Elasticse public DeleteCalendarJobRequest(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId) : base(r => r.Required("calendar_id", calendarId).Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public DeleteCalendarJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteCalendarJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal DeleteCalendarJobRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } + public required Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } /// /// @@ -75,11 +71,7 @@ internal DeleteCalendarJobRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// comma-separated list of jobs or groups. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ids JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Ids JobId { get => P("job_id"); set => PR("job_id", value); } } /// @@ -148,6 +140,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteCalendarJobRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteCalendarJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobResponse.g.cs index 6ed3b914b1d..12fc575e62f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobResponse.g.cs @@ -42,11 +42,7 @@ internal DeleteCalendarJobResponse(Elastic.Clients.Elasticsearch.Serialization.J /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string CalendarId { get; set; } + public required string CalendarId { get; set; } /// /// @@ -60,9 +56,5 @@ internal DeleteCalendarJobResponse(Elastic.Clients.Elasticsearch.Serialization.J /// A list of anomaly detection job identifiers or group names. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection JobIds { get; set; } + public required System.Collections.Generic.ICollection JobIds { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs index 1215b5de5b9..6d124abfc3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class DeleteCalendarRequest : Elastic.Clients.Elasticsearc public DeleteCalendarRequest(Elastic.Clients.Elasticsearch.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) { } -#if NET7_0_OR_GREATER + public DeleteCalendarRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteCalendarRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal DeleteCalendarRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } + public required Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteCalendarRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteCalendarRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarResponse.g.cs index e54453c463d..3a04dcd69e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteCalendarResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs index 14ce471322b..dcd5398560c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs @@ -52,11 +52,11 @@ public sealed partial class DeleteDataFrameAnalyticsRequest : Elastic.Clients.El public DeleteDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteDataFrameAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal DeleteDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializa /// Identifier for the data frame analytics job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -173,6 +169,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteDataFrameAnalyticsReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsResponse.g.cs index ba46d4a5f16..61bd53c9c89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializ /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs index 6e1045d4c04..71eb330e185 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs @@ -46,11 +46,11 @@ public sealed partial class DeleteDatafeedRequest : Elastic.Clients.Elasticsearc public DeleteDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) { } -#if NET7_0_OR_GREATER + public DeleteDatafeedRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -73,11 +73,7 @@ internal DeleteDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } + public required Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } /// /// @@ -157,6 +153,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteDatafeedRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteDatafeedRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedResponse.g.cs index 8708e3cc304..1ae5f421ea2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteDatafeedResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs index d710f0763cd..da9f9172aa3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs @@ -48,16 +48,11 @@ public sealed partial class DeleteExpiredDataRequest : Elastic.Clients.Elasticse public DeleteExpiredDataRequest(Elastic.Clients.Elasticsearch.Id? jobId) : base(r => r.Optional("job_id", jobId)) { } -#if NET7_0_OR_GREATER - public DeleteExpiredDataRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public DeleteExpiredDataRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteExpiredDataRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -188,6 +183,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteExpiredDataRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteExpiredDataRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataResponse.g.cs index 8ac65980d84..84f85fa02e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataResponse.g.cs @@ -37,9 +37,5 @@ internal DeleteExpiredDataResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Deleted { get; set; } + public required bool Deleted { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs index c894cc9d14e..6fa254c1b81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class DeleteFilterRequest : Elastic.Clients.Elasticsearch. public DeleteFilterRequest(Elastic.Clients.Elasticsearch.Id filterId) : base(r => r.Required("filter_id", filterId)) { } -#if NET7_0_OR_GREATER + public DeleteFilterRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteFilterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +67,7 @@ internal DeleteFilterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// A string that uniquely identifies a filter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id FilterId { get => P("filter_id"); set => PR("filter_id", value); } + public required Elastic.Clients.Elasticsearch.Id FilterId { get => P("filter_id"); set => PR("filter_id", value); } } /// @@ -132,6 +128,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteFilterRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteFilterRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterResponse.g.cs index d64be7b7eab..41db3a450e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteFilterResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs index e2e8fbe1d74..d830639331e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs @@ -68,11 +68,11 @@ public DeleteForecastRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => public DeleteForecastRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? forecastId) : base(r => r.Required("job_id", jobId).Optional("forecast_id", forecastId)) { } -#if NET7_0_OR_GREATER + public DeleteForecastRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteForecastRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -101,11 +101,7 @@ internal DeleteForecastRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -232,6 +228,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteForecastRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteForecastRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastResponse.g.cs index d3b4ce75b79..525ab6e44a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteForecastResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs index 952947ee1e1..6127549283e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs @@ -71,11 +71,11 @@ public sealed partial class DeleteJobRequest : Elastic.Clients.Elasticsearch.Req public DeleteJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public DeleteJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -95,11 +95,7 @@ internal DeleteJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -226,6 +222,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteJobRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobResponse.g.cs index 8daad5a3872..025a7201b40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs index c8f29044bb9..05f838b7ced 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs @@ -44,11 +44,11 @@ public sealed partial class DeleteModelSnapshotRequest : Elastic.Clients.Elastic public DeleteModelSnapshotRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) { } -#if NET7_0_OR_GREATER + public DeleteModelSnapshotRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,22 +68,14 @@ internal DeleteModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization. /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// /// Identifier for the model snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } + public required Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } } /// @@ -156,6 +148,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteModelSnapshotRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteModelSnapshotRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotResponse.g.cs index 1dc87817886..02161b2c431 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteModelSnapshotResponse(Elastic.Clients.Elasticsearch.Serialization /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs index c9d3ab81090..654e7f53b66 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs @@ -44,11 +44,11 @@ public sealed partial class DeleteTrainedModelAliasRequest : Elastic.Clients.Ela public DeleteTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias) : base(r => r.Required("model_id", modelId).Required("model_alias", modelAlias)) { } -#if NET7_0_OR_GREATER + public DeleteTrainedModelAliasRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,22 +68,14 @@ internal DeleteTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Serializat /// The model alias to delete. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name ModelAlias { get => P("model_alias"); set => PR("model_alias", value); } + public required Elastic.Clients.Elasticsearch.Name ModelAlias { get => P("model_alias"); set => PR("model_alias", value); } /// /// /// The trained model ID to which the model alias refers. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } } /// @@ -156,6 +148,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteTrainedModelAliasRequ return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteTrainedModelAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasResponse.g.cs index 9f39aaf4c75..4f7ecda9126 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteTrainedModelAliasResponse(Elastic.Clients.Elasticsearch.Serializa /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs index 99281a3e959..8b375097243 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class DeleteTrainedModelRequest : Elastic.Clients.Elastics public DeleteTrainedModelRequest(Elastic.Clients.Elasticsearch.Id modelId) : base(r => r.Required("model_id", modelId)) { } -#if NET7_0_OR_GREATER + public DeleteTrainedModelRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteTrainedModelRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal DeleteTrainedModelRequest(Elastic.Clients.Elasticsearch.Serialization.J /// The unique identifier of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -179,6 +175,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.DeleteTrainedModelRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.DeleteTrainedModelRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelResponse.g.cs index e524529737a..a675c089eab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteTrainedModelResponse(Elastic.Clients.Elasticsearch.Serialization. /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs index 55ae3651a88..b69f2117aa1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs @@ -40,16 +40,10 @@ public sealed partial class EstimateModelMemoryRequestParameters : Elastic.Trans [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.EstimateModelMemoryRequestConverter))] public sealed partial class EstimateModelMemoryRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public EstimateModelMemoryRequest() { } -#endif -#if !NET7_0_OR_GREATER - public EstimateModelMemoryRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EstimateModelMemoryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -336,6 +330,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.EstimateModelMemoryRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.EstimateModelMemoryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -568,6 +567,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.EstimateModelMemoryRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.EstimateModelMemoryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryResponse.g.cs index 767dad7b293..45888f302c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryResponse.g.cs @@ -37,9 +37,5 @@ internal EstimateModelMemoryResponse(Elastic.Clients.Elasticsearch.Serialization _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ModelMemoryEstimate { get; set; } + public required string ModelMemoryEstimate { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs index 37b9cc67ecd..ebef9b9aba0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs @@ -47,17 +47,11 @@ public EvaluateDataFrameRequest(Elastic.Clients.Elasticsearch.MachineLearning.Da Evaluation = evaluation; Index = index; } -#if NET7_0_OR_GREATER - public EvaluateDataFrameRequest() - { - } -#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 EvaluateDataFrameRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EvaluateDataFrameRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -77,22 +71,14 @@ internal EvaluateDataFrameRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// Defines the type of evaluation you want to perform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeEvaluation Evaluation { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeEvaluation Evaluation { get; set; } /// /// /// Defines the index in which the evaluation will be performed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } /// /// @@ -222,6 +208,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.EvaluateDataFrameRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.EvaluateDataFrameRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -357,6 +348,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.EvaluateDataFrameRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.EvaluateDataFrameRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs index d78595ad2cd..65a09ffb7f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs @@ -56,16 +56,11 @@ public sealed partial class ExplainDataFrameAnalyticsRequest : Elastic.Clients.E public ExplainDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public ExplainDataFrameAnalyticsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ExplainDataFrameAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExplainDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -448,6 +443,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ExplainDataFrameAnalyticsRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.ExplainDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -734,6 +734,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ExplainDataFrameAnalyticsRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.ExplainDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsResponse.g.cs index 649a68f8951..95de26599da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsResponse.g.cs @@ -42,20 +42,12 @@ internal ExplainDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Seriali /// An array of objects that explain selection for each field, sorted by the field names. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection FieldSelection { get; set; } + public required System.Collections.Generic.IReadOnlyCollection FieldSelection { get; set; } /// /// /// An array of objects that explain selection for each field, sorted by the field names. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsMemoryEstimation MemoryEstimation { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsMemoryEstimation MemoryEstimation { get; set; } } \ No newline at end of file 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 8504d9d5da4..5bdf15e56bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs @@ -49,11 +49,11 @@ public sealed partial class FlushJobRequest : Elastic.Clients.Elasticsearch.Requ public FlushJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public FlushJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FlushJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -73,11 +73,7 @@ internal FlushJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -234,6 +230,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.FlushJobRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.FlushJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobResponse.g.cs index 86dd68bad9a..bfc1a00f62e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobResponse.g.cs @@ -37,11 +37,7 @@ internal FlushJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Flushed { get; set; } + public required bool Flushed { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastRequest.g.cs index 8560130d2a6..459e1f4f447 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastRequest.g.cs @@ -45,11 +45,11 @@ public sealed partial class ForecastRequest : Elastic.Clients.Elasticsearch.Requ public ForecastRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public ForecastRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ForecastRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,11 +70,7 @@ internal ForecastRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// create a forecast; otherwise, an error occurs. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -192,6 +188,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ForecastRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.ForecastRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastResponse.g.cs index b60c51dfcd9..a08f01cbb4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastResponse.g.cs @@ -37,14 +37,6 @@ internal ForecastResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string ForecastId { get; set; } + public required bool Acknowledged { get; set; } + public required string ForecastId { get; set; } } \ No newline at end of file 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 3f3aff49755..29b5692b9e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs @@ -60,11 +60,11 @@ public GetBucketsRequest(Elastic.Clients.Elasticsearch.Id jobId, System.DateTime public GetBucketsRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public GetBucketsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetBucketsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,11 +84,7 @@ internal GetBucketsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -365,6 +361,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetBucketsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetBucketsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -604,6 +605,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetBucketsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetBucketsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsResponse.g.cs index 050412f8957..1d1ea5605ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsResponse.g.cs @@ -37,14 +37,6 @@ internal GetBucketsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required long Count { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs index cc76ad80646..d3599e47554 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs @@ -73,11 +73,11 @@ public sealed partial class GetCalendarEventsRequest : Elastic.Clients.Elasticse public GetCalendarEventsRequest(Elastic.Clients.Elasticsearch.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) { } -#if NET7_0_OR_GREATER + public GetCalendarEventsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetCalendarEventsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -97,11 +97,7 @@ internal GetCalendarEventsRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using _all or * or by omitting the calendar identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } + public required Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } /// /// @@ -248,6 +244,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetCalendarEventsRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetCalendarEventsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsResponse.g.cs index 3b159781cf1..f7277d5c128 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsResponse.g.cs @@ -37,14 +37,6 @@ internal GetCalendarEventsResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Events { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Events { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs index 9eac0d6939a..ba13b2075bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs @@ -51,16 +51,11 @@ public sealed partial class GetCalendarsRequest : Elastic.Clients.Elasticsearch. public GetCalendarsRequest(Elastic.Clients.Elasticsearch.Id? calendarId) : base(r => r.Optional("calendar_id", calendarId)) { } -#if NET7_0_OR_GREATER - public GetCalendarsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetCalendarsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetCalendarsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -217,6 +212,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetCalendarsRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetCalendarsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsResponse.g.cs index c454cdfe6f4..8f9f92557ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsResponse.g.cs @@ -37,14 +37,6 @@ internal GetCalendarsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Calendars { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Calendars { get; set; } + public required long Count { get; set; } } \ No newline at end of file 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 49a056cf5f0..4d4c4bd605c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs @@ -64,11 +64,11 @@ public GetCategoriesRequest(Elastic.Clients.Elasticsearch.Id jobId, long? catego public GetCategoriesRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public GetCategoriesRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetCategoriesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -99,11 +99,7 @@ internal GetCategoriesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -278,6 +274,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetCategoriesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesResponse.g.cs index 793539090c3..c1e4e157eb5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesResponse.g.cs @@ -37,14 +37,6 @@ internal GetCategoriesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Categories { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Categories { get; set; } + public required long Count { get; set; } } \ No newline at end of file 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 d70c5786702..c4c9ba544a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs @@ -96,16 +96,11 @@ public sealed partial class GetDataFrameAnalyticsRequest : Elastic.Clients.Elast public GetDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public GetDataFrameAnalyticsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetDataFrameAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -319,6 +314,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetDataFrameAnalyticsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsResponse.g.cs index fd6b7667642..d09466eb13e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsResponse.g.cs @@ -37,20 +37,12 @@ internal GetDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -int Count { get; set; } + public required int Count { get; set; } /// /// /// An array of data frame analytics job resources, which are sorted by the id value in ascending order. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection DataFrameAnalytics { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataFrameAnalytics { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs index edba7eb3d5f..fe4a0137549 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs @@ -89,16 +89,11 @@ public sealed partial class GetDataFrameAnalyticsStatsRequest : Elastic.Clients. public GetDataFrameAnalyticsStatsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public GetDataFrameAnalyticsStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetDataFrameAnalyticsStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDataFrameAnalyticsStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -303,6 +298,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetDataFrameAnalyticsStatsR return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetDataFrameAnalyticsStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsResponse.g.cs index f20710aa31e..2ceaac18e55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsResponse.g.cs @@ -37,20 +37,12 @@ internal GetDataFrameAnalyticsStatsResponse(Elastic.Clients.Elasticsearch.Serial _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } + public required long Count { get; set; } /// /// /// An array of objects that contain usage information for data frame analytics jobs, which are sorted by the id value in ascending order. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection DataFrameAnalytics { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataFrameAnalytics { get; set; } } \ No newline at end of file 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 ccdcbeda9df..3dd728b4c9a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs @@ -75,16 +75,11 @@ public sealed partial class GetDatafeedStatsRequest : Elastic.Clients.Elasticsea public GetDatafeedStatsRequest(Elastic.Clients.Elasticsearch.Ids? datafeedId) : base(r => r.Optional("datafeed_id", datafeedId)) { } -#if NET7_0_OR_GREATER - public GetDatafeedStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetDatafeedStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDatafeedStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -241,6 +236,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetDatafeedStatsRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetDatafeedStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsResponse.g.cs index 4afa0cd0fd5..f0f903bd390 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsResponse.g.cs @@ -37,14 +37,6 @@ internal GetDatafeedStatsResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Datafeeds { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Datafeeds { get; set; } } \ No newline at end of file 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 51176f00564..8cf59a55511 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs @@ -83,16 +83,11 @@ public sealed partial class GetDatafeedsRequest : Elastic.Clients.Elasticsearch. public GetDatafeedsRequest(Elastic.Clients.Elasticsearch.Ids? datafeedId) : base(r => r.Optional("datafeed_id", datafeedId)) { } -#if NET7_0_OR_GREATER - public GetDatafeedsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetDatafeedsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetDatafeedsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -270,6 +265,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetDatafeedsRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetDatafeedsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsResponse.g.cs index 94dcfea144a..3e890253a36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsResponse.g.cs @@ -37,14 +37,6 @@ internal GetDatafeedsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Datafeeds { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Datafeeds { get; set; } } \ No newline at end of file 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 4dd84e62a3d..9c8e3141601 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs @@ -54,16 +54,11 @@ public sealed partial class GetFiltersRequest : Elastic.Clients.Elasticsearch.Re public GetFiltersRequest(Elastic.Clients.Elasticsearch.Ids? filterId) : base(r => r.Optional("filter_id", filterId)) { } -#if NET7_0_OR_GREATER - public GetFiltersRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetFiltersRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetFiltersRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -183,6 +178,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetFiltersRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetFiltersRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersResponse.g.cs index 31fb821d799..f2518a29e3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersResponse.g.cs @@ -37,14 +37,6 @@ internal GetFiltersResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Filters { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Filters { get; set; } } \ No newline at end of file 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 c68e49368c0..558addb1c1c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs @@ -105,11 +105,11 @@ public sealed partial class GetInfluencersRequest : Elastic.Clients.Elasticsearc public GetInfluencersRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public GetInfluencersRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetInfluencersRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -129,11 +129,7 @@ internal GetInfluencersRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -407,6 +403,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetInfluencersRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetInfluencersRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -645,6 +646,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetInfluencersRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetInfluencersRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersResponse.g.cs index ab2fc522776..07183d7c20a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersResponse.g.cs @@ -37,20 +37,12 @@ internal GetInfluencersResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } + public required long Count { get; set; } /// /// /// Array of influencer objects /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Influencers { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Influencers { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs index b604c8860c7..3ca732115d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs @@ -67,16 +67,11 @@ public sealed partial class GetJobStatsRequest : Elastic.Clients.Elasticsearch.R public GetJobStatsRequest(Elastic.Clients.Elasticsearch.Id? jobId) : base(r => r.Optional("job_id", jobId)) { } -#if NET7_0_OR_GREATER - public GetJobStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetJobStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetJobStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -227,6 +222,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetJobStatsRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetJobStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsResponse.g.cs index 8cdafc2d0bf..0bd288e22d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsResponse.g.cs @@ -37,14 +37,6 @@ internal GetJobStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Jobs { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Jobs { get; set; } } \ No newline at end of file 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 7792ff8de38..883c819056a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs @@ -82,16 +82,11 @@ public sealed partial class GetJobsRequest : Elastic.Clients.Elasticsearch.Reque public GetJobsRequest(Elastic.Clients.Elasticsearch.Ids? jobId) : base(r => r.Optional("job_id", jobId)) { } -#if NET7_0_OR_GREATER - public GetJobsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetJobsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetJobsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -268,6 +263,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetJobsRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetJobsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsResponse.g.cs index 6baf6b85fc9..42ab4c16672 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsResponse.g.cs @@ -37,14 +37,6 @@ internal GetJobsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Jobs { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Jobs { get; set; } } \ No newline at end of file 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 47b185286d8..569a27c64c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs @@ -57,16 +57,11 @@ public sealed partial class GetMemoryStatsRequest : Elastic.Clients.Elasticsearc public GetMemoryStatsRequest(Elastic.Clients.Elasticsearch.Id? nodeId) : base(r => r.Optional("node_id", nodeId)) { } -#if NET7_0_OR_GREATER - public GetMemoryStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetMemoryStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetMemoryStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -193,6 +188,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetMemoryStatsRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetMemoryStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsResponse.g.cs index 5acf61affc6..d43e5bd4ad7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsResponse.g.cs @@ -37,19 +37,7 @@ internal GetMemoryStatsResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.NodeStatistics NodeStatistics { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required Elastic.Clients.Elasticsearch.NodeStatistics NodeStatistics { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs index 6ff820ff3bb..aef8233ad49 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs @@ -67,11 +67,11 @@ public sealed partial class GetModelSnapshotUpgradeStatsRequest : Elastic.Client public GetModelSnapshotUpgradeStatsRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) { } -#if NET7_0_OR_GREATER + public GetModelSnapshotUpgradeStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetModelSnapshotUpgradeStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -91,11 +91,7 @@ internal GetModelSnapshotUpgradeStatsRequest(Elastic.Clients.Elasticsearch.Seria /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -104,11 +100,7 @@ internal GetModelSnapshotUpgradeStatsRequest(Elastic.Clients.Elasticsearch.Seria /// by specifying * as the snapshot ID, or by omitting the snapshot ID. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } + public required Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } /// /// @@ -240,6 +232,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetModelSnapshotUpgradeStat return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetModelSnapshotUpgradeStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsResponse.g.cs index a4dcc24aab7..26d6288f485 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsResponse.g.cs @@ -37,14 +37,6 @@ internal GetModelSnapshotUpgradeStatsResponse(Elastic.Clients.Elasticsearch.Seri _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection ModelSnapshotUpgrades { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ModelSnapshotUpgrades { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs index 86a3a2979c4..a846089b7b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs @@ -57,11 +57,11 @@ public GetModelSnapshotsRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic. public GetModelSnapshotsRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public GetModelSnapshotsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetModelSnapshotsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,11 +81,7 @@ internal GetModelSnapshotsRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -307,6 +303,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetModelSnapshotsRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetModelSnapshotsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -511,6 +512,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetModelSnapshotsRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetModelSnapshotsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsResponse.g.cs index c8fd4ebc71f..954e84acacf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsResponse.g.cs @@ -37,14 +37,6 @@ internal GetModelSnapshotsResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection ModelSnapshots { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ModelSnapshots { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs index cd7b172bfda..e6af8339717 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs @@ -59,11 +59,11 @@ public sealed partial class GetOverallBucketsRequest : Elastic.Clients.Elasticse public GetOverallBucketsRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public GetOverallBucketsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetOverallBucketsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -89,11 +89,7 @@ internal GetOverallBucketsRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// using _all or by specifying * as the <job_id>. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -302,6 +298,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetOverallBucketsRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetOverallBucketsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsResponse.g.cs index 1810e4c721c..2e9d9959039 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsResponse.g.cs @@ -37,20 +37,12 @@ internal GetOverallBucketsResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } + public required long Count { get; set; } /// /// /// Array of overall bucket objects /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection OverallBuckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection OverallBuckets { get; set; } } \ No newline at end of file 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 43900641b23..affe6c8bf4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs @@ -64,11 +64,11 @@ public sealed partial class GetRecordsRequest : Elastic.Clients.Elasticsearch.Re public GetRecordsRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public GetRecordsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRecordsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -88,11 +88,7 @@ internal GetRecordsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -335,6 +331,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetRecordsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetRecordsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -555,6 +556,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetRecordsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetRecordsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsResponse.g.cs index cef436a3667..42fa8277a73 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsResponse.g.cs @@ -37,14 +37,6 @@ internal GetRecordsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Records { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Records { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs index aa3b9580131..1c8f6dea0d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs @@ -113,16 +113,11 @@ public sealed partial class GetTrainedModelsRequest : Elastic.Clients.Elasticsea public GetTrainedModelsRequest(Elastic.Clients.Elasticsearch.Ids? modelId) : base(r => r.Optional("model_id", modelId)) { } -#if NET7_0_OR_GREATER - public GetTrainedModelsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetTrainedModelsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetTrainedModelsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -406,6 +401,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetTrainedModelsRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetTrainedModelsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsResponse.g.cs index 6c9ae69b08d..0d0e974b663 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsResponse.g.cs @@ -37,20 +37,12 @@ internal GetTrainedModelsResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -int Count { get; set; } + public required int Count { get; set; } /// /// /// An array of trained model resources, which are sorted by the model_id value in ascending order. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection TrainedModelConfigs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection TrainedModelConfigs { get; set; } } \ No newline at end of file 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 a9c762e1d25..601bd2d03be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs @@ -83,16 +83,11 @@ public sealed partial class GetTrainedModelsStatsRequest : Elastic.Clients.Elast public GetTrainedModelsStatsRequest(Elastic.Clients.Elasticsearch.Ids? modelId) : base(r => r.Optional("model_id", modelId)) { } -#if NET7_0_OR_GREATER - public GetTrainedModelsStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetTrainedModelsStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetTrainedModelsStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -275,6 +270,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.GetTrainedModelsStatsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.GetTrainedModelsStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsResponse.g.cs index 4aa3e7cad3f..43bac29432c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsResponse.g.cs @@ -42,20 +42,12 @@ internal GetTrainedModelsStatsResponse(Elastic.Clients.Elasticsearch.Serializati /// The total number of trained model statistics that matched the requested ID patterns. Could be higher than the number of items in the trained_model_stats array as the size of the array is restricted by the supplied size parameter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// An array of trained model statistics, which are sorted by the model_id value in ascending order. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection TrainedModelStats { get; set; } + public required System.Collections.Generic.IReadOnlyCollection TrainedModelStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs index 447d8326aac..f273e392b42 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs @@ -52,11 +52,11 @@ public InferTrainedModelRequest(Elastic.Clients.Elasticsearch.Id modelId, System { Docs = docs; } -#if NET7_0_OR_GREATER + public InferTrainedModelRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferTrainedModelRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal InferTrainedModelRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The unique identifier of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -96,11 +92,7 @@ internal InferTrainedModelRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// Currently, for NLP models, only a single value is allowed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection> Docs { get; set; } + public required System.Collections.Generic.ICollection> Docs { get; set; } /// /// @@ -255,6 +247,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.InferTrainedModelRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.InferTrainedModelRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -426,6 +423,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.InferTrainedModelRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.InferTrainedModelRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelResponse.g.cs index b639f5234aa..33d64959e37 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelResponse.g.cs @@ -37,9 +37,5 @@ internal InferTrainedModelResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection InferenceResults { get; set; } + public required System.Collections.Generic.IReadOnlyCollection InferenceResults { get; set; } } \ No newline at end of file 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 847f460e055..0f1ff48902b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs @@ -44,16 +44,10 @@ public sealed partial class MlInfoRequestParameters : Elastic.Transport.RequestP [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.MlInfoRequestConverter))] public sealed partial class MlInfoRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public MlInfoRequest() { } -#endif -#if !NET7_0_OR_GREATER - public MlInfoRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -120,6 +114,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.MlInfoRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.MachineLearning.MlInfoRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoResponse.g.cs index 4b51d415f41..aee4786911d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoResponse.g.cs @@ -37,24 +37,8 @@ internal MlInfoResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.Defaults Defaults { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.Limits Limits { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.NativeCode NativeCode { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool UpgradeMode { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.Defaults Defaults { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.Limits Limits { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.NativeCode NativeCode { get; set; } + public required bool UpgradeMode { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs index fcb4466889a..a026e9bba42 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs @@ -47,11 +47,11 @@ public sealed partial class OpenJobRequest : Elastic.Clients.Elasticsearch.Reque public OpenJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public OpenJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OpenJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -71,11 +71,7 @@ internal OpenJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -158,6 +154,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.OpenJobRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.OpenJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobResponse.g.cs index 93dd7b20189..338cdede880 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobResponse.g.cs @@ -43,14 +43,6 @@ internal OpenJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// If the job is allowed to open lazily and has not yet been assigned to a node, this value is an empty string. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Opened { get; set; } + public required string Node { get; set; } + public required bool Opened { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs index 1c7c13bc147..4b28c7bdeb1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs @@ -46,11 +46,11 @@ public PostCalendarEventsRequest(Elastic.Clients.Elasticsearch.Id calendarId, Sy { Events = events; } -#if NET7_0_OR_GREATER + public PostCalendarEventsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PostCalendarEventsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,22 +70,14 @@ internal PostCalendarEventsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } + public required Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } /// /// /// A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Events { get; set; } + public required System.Collections.Generic.ICollection Events { get; set; } } /// @@ -183,6 +175,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PostCalendarEventsRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PostCalendarEventsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsResponse.g.cs index 16fb533a0f0..0280c2c9b7e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsResponse.g.cs @@ -37,9 +37,5 @@ internal PostCalendarEventsResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Events { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Events { get; set; } } \ No newline at end of file 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 dae0c0a3067..5c7f334fc66 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs @@ -41,16 +41,11 @@ public sealed partial class PreviewDataFrameAnalyticsRequest : Elastic.Clients.E public PreviewDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public PreviewDataFrameAnalyticsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public PreviewDataFrameAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PreviewDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -182,6 +177,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PreviewDataFrameAnalyticsRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PreviewDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -306,6 +306,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PreviewDataFrameAnalyticsRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PreviewDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsResponse.g.cs index df085b24429..ff0321b5fd6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsResponse.g.cs @@ -42,9 +42,5 @@ internal PreviewDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Seriali /// An array of objects that contain feature name and value pairs. The features have been processed and indicate what will be sent to the model for training. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection> FeatureValues { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> FeatureValues { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs index c1ae91dc444..edfce1c5300 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class PutCalendarJobRequest : Elastic.Clients.Elasticsearc public PutCalendarJobRequest(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId) : base(r => r.Required("calendar_id", calendarId).Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public PutCalendarJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutCalendarJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,22 +63,14 @@ internal PutCalendarJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } + public required Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } /// /// /// An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ids JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Ids JobId { get => P("job_id"); set => PR("job_id", value); } } /// @@ -146,6 +138,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutCalendarJobRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutCalendarJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobResponse.g.cs index 3405c2c1624..74624bf3554 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobResponse.g.cs @@ -42,11 +42,7 @@ internal PutCalendarJobResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string CalendarId { get; set; } + public required string CalendarId { get; set; } /// /// @@ -60,9 +56,5 @@ internal PutCalendarJobResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// A list of anomaly detection job identifiers or group names. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection JobIds { get; set; } + public required System.Collections.Generic.ICollection JobIds { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs index 0da007a6f27..2124eb0cb8b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class PutCalendarRequest : Elastic.Clients.Elasticsearch.R public PutCalendarRequest(Elastic.Clients.Elasticsearch.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) { } -#if NET7_0_OR_GREATER + public PutCalendarRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutCalendarRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal PutCalendarRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } + public required Elastic.Clients.Elasticsearch.Id CalendarId { get => P("calendar_id"); set => PR("calendar_id", value); } /// /// @@ -171,6 +167,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutCalendarRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutCalendarRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarResponse.g.cs index ae2c4c32f06..ae9bd25e6e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarResponse.g.cs @@ -42,11 +42,7 @@ internal PutCalendarResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string CalendarId { get; set; } + public required string CalendarId { get; set; } /// /// @@ -60,9 +56,5 @@ internal PutCalendarResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// A list of anomaly detection job identifiers or group names. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection JobIds { get; set; } + public required System.Collections.Generic.ICollection JobIds { get; set; } } \ No newline at end of file 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 ace92af8a30..42e7780d79e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs @@ -59,11 +59,11 @@ public PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id, Elastic Dest = dest; Source = source; } -#if NET7_0_OR_GREATER + public PutDataFrameAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,11 +85,7 @@ internal PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializatio /// underscores. It must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -112,11 +108,7 @@ internal PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializatio /// detection, or regression. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } /// /// @@ -164,11 +156,7 @@ internal PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializatio /// The destination configuration. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } public System.Collections.Generic.IDictionary>? Headers { get; set; } /// @@ -198,11 +186,7 @@ internal PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializatio /// The configuration of how to source the analysis data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } public string? Version { get; set; } } @@ -615,6 +599,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDataFrameAnalyticsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1026,6 +1015,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDataFrameAnalyticsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs index 7b6f804ddb6..03c6ad4bd6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs @@ -37,53 +37,17 @@ internal PutDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool AllowLazyStart { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } + public required bool AllowLazyStart { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsAuthorization? Authorization { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.DateTimeOffset CreateTime { get; set; } + public required System.DateTimeOffset CreateTime { get; set; } public string? Description { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Id { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int MaxNumThreads { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } + public required string Id { get; set; } + public required int MaxNumThreads { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string ModelMemoryLimit { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Version { get; set; } + public required string ModelMemoryLimit { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } + public required string Version { get; set; } } \ No newline at end of file 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 1a03d2b1666..3487c207e6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -82,11 +82,11 @@ public sealed partial class PutDatafeedRequest : Elastic.Clients.Elasticsearch.R public PutDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) { } -#if NET7_0_OR_GREATER + public PutDatafeedRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,11 +108,7 @@ internal PutDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// It must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } + public required Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } /// /// @@ -834,6 +830,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1387,6 +1388,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedResponse.g.cs index fbb6344d40b..2835b5e5ef6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedResponse.g.cs @@ -39,45 +39,17 @@ internal PutDatafeedResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon public System.Collections.Generic.IReadOnlyDictionary? Aggregations { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DatafeedAuthorization? Authorization { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.ChunkingConfig ChunkingConfig { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string DatafeedId { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.ChunkingConfig ChunkingConfig { get; set; } + public required string DatafeedId { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfig { get; set; } public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string JobId { get; set; } + public required string JobId { get; set; } public int? MaxEmptySearches { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Duration QueryDelay { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.Duration QueryDelay { get; set; } public System.Collections.Generic.IReadOnlyDictionary? RuntimeMappings { get; set; } public System.Collections.Generic.IReadOnlyDictionary? ScriptFields { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int ScrollSize { get; set; } + public required int ScrollSize { get; set; } } \ No newline at end of file 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 7b4d01f6e2c..6a2bf6ae64c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class PutFilterRequest : Elastic.Clients.Elasticsearch.Req public PutFilterRequest(Elastic.Clients.Elasticsearch.Id filterId) : base(r => r.Required("filter_id", filterId)) { } -#if NET7_0_OR_GREATER + public PutFilterRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutFilterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +67,7 @@ internal PutFilterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// A string that uniquely identifies a filter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id FilterId { get => P("filter_id"); set => PR("filter_id", value); } + public required Elastic.Clients.Elasticsearch.Id FilterId { get => P("filter_id"); set => PR("filter_id", value); } /// /// @@ -182,6 +178,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutFilterRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutFilterRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterResponse.g.cs index b4222db509e..176440bfbf8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterResponse.g.cs @@ -37,19 +37,7 @@ internal PutFilterResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string Description { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string FilterId { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Items { get; set; } + public required string Description { get; set; } + public required string FilterId { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Items { get; set; } } \ No newline at end of file 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 14d14e74f30..0ff24028cf6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs @@ -81,11 +81,11 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Ela AnalysisConfig = analysisConfig; DataDescription = dataDescription; } -#if NET7_0_OR_GREATER + public PutJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -105,11 +105,7 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// 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); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -154,11 +150,7 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Specifies how to analyze the data. After you create a job, you cannot change the analysis configuration; all the properties are informational. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfig AnalysisConfig { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfig AnalysisConfig { get; set; } /// /// @@ -193,11 +185,7 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Defines the format of the input data when you send data to the job by using the post data API. Note that when configure a datafeed, these properties are automatically set. When data is received via the post data API, it is not stored in Elasticsearch. Only the results for anomaly detection are retained. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataDescription DataDescription { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataDescription DataDescription { get; set; } /// /// @@ -694,6 +682,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1125,6 +1118,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobResponse.g.cs index d88d1f213d0..b81e3bec2b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobResponse.g.cs @@ -37,68 +37,24 @@ internal PutJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool AllowLazyOpen { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfigRead AnalysisConfig { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.AnalysisLimits AnalysisLimits { get; set; } + public required bool AllowLazyOpen { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfigRead AnalysisConfig { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.AnalysisLimits AnalysisLimits { get; set; } public Elastic.Clients.Elasticsearch.Duration? BackgroundPersistInterval { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.DateTimeOffset CreateTime { get; set; } + public required System.DateTimeOffset CreateTime { get; set; } public object? CustomSettings { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long DailyModelSnapshotRetentionAfterDays { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.DataDescription DataDescription { get; set; } + public required long DailyModelSnapshotRetentionAfterDays { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataDescription DataDescription { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.Datafeed? DatafeedConfig { get; set; } public string? Description { get; set; } public System.Collections.Generic.IReadOnlyCollection? Groups { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string JobId { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string JobType { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string JobVersion { get; set; } + public required string JobId { get; set; } + public required string JobType { get; set; } + public required string JobVersion { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfig? ModelPlotConfig { get; set; } public string? ModelSnapshotId { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long ModelSnapshotRetentionDays { get; set; } + public required long ModelSnapshotRetentionDays { get; set; } public long? RenormalizationWindowDays { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string ResultsIndexName { get; set; } + public required string ResultsIndexName { get; set; } public long? ResultsRetentionDays { get; set; } } \ No newline at end of file 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 807f0fd80ef..1a3ade30dd5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs @@ -65,11 +65,11 @@ public sealed partial class PutTrainedModelAliasRequest : Elastic.Clients.Elasti public PutTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias) : base(r => r.Required("model_id", modelId).Required("model_alias", modelAlias)) { } -#if NET7_0_OR_GREATER + public PutTrainedModelAliasRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -89,22 +89,14 @@ internal PutTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Serialization /// The alias to create or update. This value cannot end in numbers. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name ModelAlias { get => P("model_alias"); set => PR("model_alias", value); } + public required Elastic.Clients.Elasticsearch.Name ModelAlias { get => P("model_alias"); set => PR("model_alias", value); } /// /// /// The identifier for the trained model that the alias refers to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -212,6 +204,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelAliasRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelAliasRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasResponse.g.cs index d716b00c4ad..c464236063c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasResponse.g.cs @@ -42,9 +42,5 @@ internal PutTrainedModelAliasResponse(Elastic.Clients.Elasticsearch.Serializatio /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs index 55fa78cba3b..b1da1a8b9ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs @@ -48,11 +48,11 @@ public PutTrainedModelDefinitionPartRequest(Elastic.Clients.Elasticsearch.Id mod TotalDefinitionLength = totalDefinitionLength; TotalParts = totalParts; } -#if NET7_0_OR_GREATER + public PutTrainedModelDefinitionPartRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutTrainedModelDefinitionPartRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -72,11 +72,7 @@ internal PutTrainedModelDefinitionPartRequest(Elastic.Clients.Elasticsearch.Seri /// The unique identifier of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -84,44 +80,28 @@ internal PutTrainedModelDefinitionPartRequest(Elastic.Clients.Elasticsearch.Seri /// order of their part number. The first part must be 0 and the final part must be total_parts - 1. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Part { get => P("part"); set => PR("part", value); } + public required int Part { get => P("part"); set => PR("part", value); } /// /// /// The definition part for the model. Must be a base64 encoded string. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Definition { get; set; } + public required string Definition { get; set; } /// /// /// The total uncompressed definition length in bytes. Not base64 encoded. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TotalDefinitionLength { get; set; } + public required long TotalDefinitionLength { get; set; } /// /// /// The total number of parts that will be uploaded. Must be greater than 0. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int TotalParts { get; set; } + public required int TotalParts { get; set; } } /// @@ -225,6 +205,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelDefinitionPa return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelDefinitionPartRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartResponse.g.cs index 68c3b65cb53..dbb65a1e9f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartResponse.g.cs @@ -42,9 +42,5 @@ internal PutTrainedModelDefinitionPartResponse(Elastic.Clients.Elasticsearch.Ser /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 a1130b5fd62..57adcc98c54 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs @@ -58,11 +58,11 @@ public sealed partial class PutTrainedModelRequest : Elastic.Clients.Elasticsear public PutTrainedModelRequest(Elastic.Clients.Elasticsearch.Id modelId) : base(r => r.Required("model_id", modelId)) { } -#if NET7_0_OR_GREATER + public PutTrainedModelRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutTrainedModelRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal PutTrainedModelRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// The unique identifier of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -498,6 +494,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -822,6 +823,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelRequestDescr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs index 71dd5dc57ff..a30cfad93e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs @@ -100,11 +100,7 @@ internal PutTrainedModelResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The input field names for the model definition. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelConfigInput Input { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelConfigInput Input { get; set; } /// /// @@ -126,11 +122,7 @@ internal PutTrainedModelResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// Identifier for the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.ModelPackageConfig? ModelPackage { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? ModelSizeBytes { get; set; } @@ -148,11 +140,7 @@ internal PutTrainedModelResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// A comma delimited string of tags. A trained model can have many tags, or none. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Tags { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Tags { get; set; } /// /// 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 d8518d4bcc8..2b205d39d3b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs @@ -50,11 +50,11 @@ public PutTrainedModelVocabularyRequest(Elastic.Clients.Elasticsearch.Id modelId { Vocabulary = vocabulary; } -#if NET7_0_OR_GREATER + public PutTrainedModelVocabularyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutTrainedModelVocabularyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal PutTrainedModelVocabularyRequest(Elastic.Clients.Elasticsearch.Serializ /// The unique identifier of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -99,11 +95,7 @@ internal PutTrainedModelVocabularyRequest(Elastic.Clients.Elasticsearch.Serializ /// The model vocabulary, which must not be empty. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Vocabulary { get; set; } + public required System.Collections.Generic.ICollection Vocabulary { get; set; } } /// @@ -232,6 +224,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelVocabularyRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.PutTrainedModelVocabularyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyResponse.g.cs index f06ac6980cd..91cbe2166f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyResponse.g.cs @@ -42,9 +42,5 @@ internal PutTrainedModelVocabularyResponse(Elastic.Clients.Elasticsearch.Seriali /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 764aefca755..e8f723ce316 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs @@ -61,11 +61,11 @@ public sealed partial class ResetJobRequest : Elastic.Clients.Elasticsearch.Requ public ResetJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public ResetJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResetJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,11 +85,7 @@ internal ResetJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The ID of the job to reset. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -194,6 +190,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ResetJobRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.ResetJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobResponse.g.cs index e92f0a51add..31107d2a4ad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobResponse.g.cs @@ -42,9 +42,5 @@ internal ResetJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 c7d71544c20..6ce6737e2e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs @@ -48,11 +48,11 @@ public sealed partial class RevertModelSnapshotRequest : Elastic.Clients.Elastic public RevertModelSnapshotRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) { } -#if NET7_0_OR_GREATER + public RevertModelSnapshotRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RevertModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -72,11 +72,7 @@ internal RevertModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization. /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -85,11 +81,7 @@ internal RevertModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization. /// scratch when it is started. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } + public required Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } /// /// @@ -186,6 +178,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.RevertModelSnapshotRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.RevertModelSnapshotRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotResponse.g.cs index fc9bb0744ce..fd19301e4b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotResponse.g.cs @@ -37,9 +37,5 @@ internal RevertModelSnapshotResponse(Elastic.Clients.Elasticsearch.Serialization _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.ModelSnapshot Model { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.ModelSnapshot Model { get; set; } } \ No newline at end of file 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 cbe73863e10..3c5d0378f9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs @@ -64,16 +64,10 @@ public sealed partial class SetUpgradeModeRequestParameters : Elastic.Transport. [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.SetUpgradeModeRequestConverter))] public sealed partial class SetUpgradeModeRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public SetUpgradeModeRequest() { } -#endif -#if !NET7_0_OR_GREATER - public SetUpgradeModeRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SetUpgradeModeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -185,6 +179,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.SetUpgradeModeRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.SetUpgradeModeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeResponse.g.cs index 2a3fcdcff63..fd1f1dff561 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeResponse.g.cs @@ -42,9 +42,5 @@ internal SetUpgradeModeResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 555bda316a7..de25e6696a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs @@ -52,11 +52,11 @@ public sealed partial class StartDataFrameAnalyticsRequest : Elastic.Clients.Ela public StartDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public StartDataFrameAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StartDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -78,11 +78,7 @@ internal StartDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializat /// underscores. It must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -174,6 +170,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.StartDataFrameAnalyticsRequ return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.StartDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsResponse.g.cs index afcf6724228..b6e071d9cde 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsResponse.g.cs @@ -37,11 +37,7 @@ internal StartDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializa _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } + public required bool Acknowledged { get; set; } /// /// @@ -52,9 +48,5 @@ internal StartDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializa /// node ID will be "serverless". /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } + public required string Node { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs index ae9e81721fb..2195248ee9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class StartDatafeedRequest : Elastic.Clients.Elasticsearch public StartDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) { } -#if NET7_0_OR_GREATER + public StartDatafeedRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StartDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,11 +81,7 @@ internal StartDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } + public required Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } /// /// @@ -214,6 +210,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.StartDatafeedRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.StartDatafeedRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedResponse.g.cs index af8af10a932..640e122c1b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedResponse.g.cs @@ -43,20 +43,12 @@ internal StartDatafeedResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC /// If the job is allowed to open lazily and has not yet been assigned to a node, this value is an empty string. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Node { get; set; } + public required System.Collections.Generic.ICollection Node { get; set; } /// /// /// 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 Started { get; set; } + public required bool Started { get; set; } } \ No newline at end of file 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 9a2ca96ae7e..c63951f51f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs @@ -110,11 +110,11 @@ public sealed partial class StartTrainedModelDeploymentRequest : Elastic.Clients public StartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id modelId) : base(r => r.Required("model_id", modelId)) { } -#if NET7_0_OR_GREATER + public StartTrainedModelDeploymentRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -134,11 +134,7 @@ internal StartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Serial /// The unique identifier of the trained model. Currently, only PyTorch models are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -416,6 +412,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.StartTrainedModelDeployment return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.StartTrainedModelDeploymentRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentResponse.g.cs index 9e9ad7cf6cb..de40e0343df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentResponse.g.cs @@ -37,9 +37,5 @@ internal StartTrainedModelDeploymentResponse(Elastic.Clients.Elasticsearch.Seria _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignment Assignment { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignment Assignment { get; set; } } \ No newline at end of file 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 e987ae41465..9e8122784ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class StopDataFrameAnalyticsRequest : Elastic.Clients.Elas public StopDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public StopDataFrameAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +69,7 @@ internal StopDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializati /// underscores. It must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -240,6 +236,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.StopDataFrameAnalyticsReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.StopDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsResponse.g.cs index 83af3a81595..e38a297dfbd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsResponse.g.cs @@ -37,9 +37,5 @@ internal StopDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializat _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Stopped { get; set; } + public required bool Stopped { get; set; } } \ No newline at end of file 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 4c8e65eda5d..d9ecdb05474 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class StopDatafeedRequest : Elastic.Clients.Elasticsearch. public StopDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) { } -#if NET7_0_OR_GREATER + public StopDatafeedRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +69,7 @@ internal StopDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// the identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } + public required Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } /// /// @@ -190,6 +186,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.StopDatafeedRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.StopDatafeedRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedResponse.g.cs index 8c33fc955e4..292f9415a0a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedResponse.g.cs @@ -37,9 +37,5 @@ internal StopDatafeedResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Stopped { get; set; } + public required bool Stopped { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs index 37915da500e..a19a8982d38 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class StopTrainedModelDeploymentRequest : Elastic.Clients. public StopTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id modelId) : base(r => r.Required("model_id", modelId)) { } -#if NET7_0_OR_GREATER + public StopTrainedModelDeploymentRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal StopTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Seriali /// The unique identifier of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -186,6 +182,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.StopTrainedModelDeploymentR return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.StopTrainedModelDeploymentRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentResponse.g.cs index b52860855b4..9c8bc4785c3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentResponse.g.cs @@ -37,9 +37,5 @@ internal StopTrainedModelDeploymentResponse(Elastic.Clients.Elasticsearch.Serial _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Stopped { get; set; } + public required bool Stopped { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs index 447e65835d4..9ad163c5a03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class UpdateDataFrameAnalyticsRequest : Elastic.Clients.El public UpdateDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public UpdateDataFrameAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +65,7 @@ internal UpdateDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializa /// underscores. It must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -216,6 +212,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDataFrameAnalyticsReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDataFrameAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsResponse.g.cs index 10ea89af5cd..6427e597055 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsResponse.g.cs @@ -37,52 +37,16 @@ internal UpdateDataFrameAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializ _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool AllowLazyStart { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } + public required bool AllowLazyStart { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsAuthorization? Authorization { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long CreateTime { get; set; } + public required long CreateTime { get; set; } public string? Description { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Id { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int MaxNumThreads { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string ModelMemoryLimit { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Version { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } + public required string Id { get; set; } + public required int MaxNumThreads { get; set; } + public required string ModelMemoryLimit { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } + public required string Version { get; set; } } \ No newline at end of file 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 a3dd50deb24..98f4dffaae3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs @@ -75,11 +75,11 @@ public sealed partial class UpdateDatafeedRequest : Elastic.Clients.Elasticsearc public UpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) { } -#if NET7_0_OR_GREATER + public UpdateDatafeedRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -101,11 +101,7 @@ internal UpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// It must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } + public required Elastic.Clients.Elasticsearch.Id DatafeedId { get => P("datafeed_id"); set => PR("datafeed_id", value); } /// /// @@ -801,6 +797,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1328,6 +1329,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedResponse.g.cs index 10bd818d7ec..edb47e48228 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedResponse.g.cs @@ -39,16 +39,8 @@ internal UpdateDatafeedResponse(Elastic.Clients.Elasticsearch.Serialization.Json public System.Collections.Generic.IReadOnlyDictionary? Aggregations { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DatafeedAuthorization? Authorization { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.ChunkingConfig ChunkingConfig { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string DatafeedId { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.ChunkingConfig ChunkingConfig { get; set; } + public required string DatafeedId { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfig { get; set; } /// @@ -57,33 +49,13 @@ internal UpdateDatafeedResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// /// public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } public int? MaxEmptySearches { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration QueryDelay { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.Duration QueryDelay { get; set; } public System.Collections.Generic.IReadOnlyDictionary? RuntimeMappings { get; set; } public System.Collections.Generic.IReadOnlyDictionary? ScriptFields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int ScrollSize { get; set; } + public required int ScrollSize { get; set; } } \ No newline at end of file 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 1b75ca43b02..3d31a08c3f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class UpdateFilterRequest : Elastic.Clients.Elasticsearch. public UpdateFilterRequest(Elastic.Clients.Elasticsearch.Id filterId) : base(r => r.Required("filter_id", filterId)) { } -#if NET7_0_OR_GREATER + public UpdateFilterRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateFilterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal UpdateFilterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// A string that uniquely identifies a filter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id FilterId { get => P("filter_id"); set => PR("filter_id", value); } + public required Elastic.Clients.Elasticsearch.Id FilterId { get => P("filter_id"); set => PR("filter_id", value); } /// /// @@ -206,6 +202,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateFilterRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpdateFilterRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterResponse.g.cs index cedc7f91d0b..353354adf39 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterResponse.g.cs @@ -37,19 +37,7 @@ internal UpdateFilterResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string Description { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string FilterId { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Items { get; set; } + public required string Description { get; set; } + public required string FilterId { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Items { get; set; } } \ No newline at end of file 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 50b0e37c0ba..b2b35575b0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class UpdateJobRequest : Elastic.Clients.Elasticsearch.Req public UpdateJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) { } -#if NET7_0_OR_GREATER + public UpdateJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal UpdateJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Identifier for the job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// @@ -565,6 +561,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateJobRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpdateJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -956,6 +957,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateJobRequestDescriptor< return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpdateJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobResponse.g.cs index 067476e4397..10a459b3a2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobResponse.g.cs @@ -37,69 +37,25 @@ internal UpdateJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool AllowLazyOpen { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfigRead AnalysisConfig { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.AnalysisLimits AnalysisLimits { get; set; } + public required bool AllowLazyOpen { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfigRead AnalysisConfig { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.AnalysisLimits AnalysisLimits { get; set; } public Elastic.Clients.Elasticsearch.Duration? BackgroundPersistInterval { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.DateTimeOffset CreateTime { get; set; } + public required System.DateTimeOffset CreateTime { get; set; } public System.Collections.Generic.IReadOnlyDictionary? CustomSettings { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long DailyModelSnapshotRetentionAfterDays { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.DataDescription DataDescription { get; set; } + public required long DailyModelSnapshotRetentionAfterDays { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataDescription DataDescription { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.Datafeed? DatafeedConfig { get; set; } public string? Description { get; set; } public System.DateTimeOffset? FinishedTime { get; set; } public System.Collections.Generic.IReadOnlyCollection? Groups { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string JobId { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string JobType { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string JobVersion { get; set; } + public required string JobId { get; set; } + public required string JobType { get; set; } + public required string JobVersion { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfig? ModelPlotConfig { get; set; } public string? ModelSnapshotId { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long ModelSnapshotRetentionDays { get; set; } + public required long ModelSnapshotRetentionDays { get; set; } public long? RenormalizationWindowDays { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string ResultsIndexName { get; set; } + public required string ResultsIndexName { get; set; } public long? ResultsRetentionDays { get; set; } } \ No newline at end of file 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 f0f6e8092f9..6255adf9718 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class UpdateModelSnapshotRequest : Elastic.Clients.Elastic public UpdateModelSnapshotRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) { } -#if NET7_0_OR_GREATER + public UpdateModelSnapshotRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,22 +66,14 @@ internal UpdateModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization. /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// /// Identifier for the model snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } + public required Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } /// /// @@ -192,6 +184,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateModelSnapshotRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpdateModelSnapshotRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotResponse.g.cs index c3581857afe..bb69a9b8b36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotResponse.g.cs @@ -37,14 +37,6 @@ internal UpdateModelSnapshotResponse(Elastic.Clients.Elasticsearch.Serialization _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.ModelSnapshot Model { get; set; } + public required bool Acknowledged { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.ModelSnapshot Model { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs index 80a091b75d9..13a4ce7f028 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class UpdateTrainedModelDeploymentRequest : Elastic.Client public UpdateTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id modelId) : base(r => r.Required("model_id", modelId)) { } -#if NET7_0_OR_GREATER + public UpdateTrainedModelDeploymentRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal UpdateTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Seria /// The unique identifier of the trained model. Currently, only PyTorch models are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } + public required Elastic.Clients.Elasticsearch.Id ModelId { get => P("model_id"); set => PR("model_id", value); } /// /// @@ -189,6 +185,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateTrainedModelDeploymen return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpdateTrainedModelDeploymentRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentResponse.g.cs index 88905144072..3eed0d11670 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentResponse.g.cs @@ -37,9 +37,5 @@ internal UpdateTrainedModelDeploymentResponse(Elastic.Clients.Elasticsearch.Seri _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignment Assignment { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignment Assignment { get; set; } } \ No newline at end of file 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 b61be987e99..1eabc10a7d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs @@ -64,11 +64,11 @@ public sealed partial class UpgradeJobSnapshotRequest : Elastic.Clients.Elastics public UpgradeJobSnapshotRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) { } -#if NET7_0_OR_GREATER + public UpgradeJobSnapshotRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpgradeJobSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -88,22 +88,14 @@ internal UpgradeJobSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.J /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } + public required Elastic.Clients.Elasticsearch.Id JobId { get => P("job_id"); set => PR("job_id", value); } /// /// /// A numerical character string that uniquely identifies the model snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } + public required Elastic.Clients.Elasticsearch.Id SnapshotId { get => P("snapshot_id"); set => PR("snapshot_id", value); } /// /// @@ -220,6 +212,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpgradeJobSnapshotRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MachineLearning.UpgradeJobSnapshotRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotResponse.g.cs index 589d4301d96..0f7ff0513b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotResponse.g.cs @@ -42,20 +42,12 @@ internal UpgradeJobSnapshotResponse(Elastic.Clients.Elasticsearch.Serialization. /// When true, this means the task is complete. When false, it is still running. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Completed { get; set; } + public required bool Completed { get; set; } /// /// /// The ID of the node that the upgrade task was started on if it is still running. In serverless this will be the "serverless". /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } + public required string Node { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs index 5e7e7296531..90d47e947bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs @@ -40,17 +40,11 @@ public ValidateDetectorRequest(Elastic.Clients.Elasticsearch.MachineLearning.Det { Detector = detector; } -#if NET7_0_OR_GREATER - public ValidateDetectorRequest() - { - } -#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 ValidateDetectorRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ValidateDetectorRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +59,7 @@ internal ValidateDetectorRequest(Elastic.Clients.Elasticsearch.Serialization.Jso internal override string OperationName => "ml.validate_detector"; - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.Detector Detector { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.Detector Detector { get; set; } } /// @@ -133,6 +123,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ValidateDetectorRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.MachineLearning.ValidateDetectorRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -225,6 +220,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ValidateDetectorRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.MachineLearning.ValidateDetectorRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorResponse.g.cs index a2db19295b6..c3a17b1def3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorResponse.g.cs @@ -42,9 +42,5 @@ internal ValidateDetectorResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs index b087a5b7436..4f90a869735 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs @@ -35,16 +35,10 @@ public sealed partial class ValidateRequestParameters : Elastic.Transport.Reques [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.ValidateRequestConverter))] public sealed partial class ValidateRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ValidateRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ValidateRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ValidateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -226,6 +220,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ValidateRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.MachineLearning.ValidateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -401,6 +400,11 @@ public Elastic.Clients.Elasticsearch.MachineLearning.ValidateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateResponse.g.cs index bcec4752d99..783c4bb6a26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateResponse.g.cs @@ -42,9 +42,5 @@ internal ValidateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs index 036363cba40..3d20234e448 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs @@ -126,16 +126,11 @@ public sealed partial class MultiGetRequest : Elastic.Clients.Elasticsearch.Requ public MultiGetRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) { } -#if NET7_0_OR_GREATER - public MultiGetRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public MultiGetRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiGetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -548,6 +543,11 @@ public Elastic.Clients.Elasticsearch.MultiGetRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MultiGetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -865,6 +865,11 @@ public Elastic.Clients.Elasticsearch.MultiGetRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MultiGetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetResponse.g.cs index 59752ce5bd9..2100eb75a81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetResponse.g.cs @@ -44,9 +44,5 @@ internal MultiGetResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// If there is a failure getting a particular document, the error is included in place of the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection> Docs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> Docs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs index 7f35b706558..55cf9ac6e5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs @@ -95,6 +95,19 @@ public sealed partial class MultiSearchRequestParameters : Elastic.Transport.Req /// public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } + /// + /// + /// Specifies a subset of projects to target for a search using project metadata + /// tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag + /// and a single value (possible wildcarded). Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } + /// /// /// If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. @@ -166,17 +179,11 @@ public MultiSearchRequest(System.Collections.Generic.ICollection public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } + /// + /// + /// Specifies a subset of projects to target for a search using project metadata + /// tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag + /// and a single value (possible wildcarded). Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } + /// /// /// If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. @@ -295,11 +315,7 @@ internal MultiSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Searches { get; set; } + public required System.Collections.Generic.ICollection Searches { get; set; } } /// @@ -478,6 +494,23 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor PreFilterShard return this; } + /// + /// + /// Specifies a subset of projects to target for a search using project metadata + /// tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag + /// and a single value (possible wildcarded). Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. @@ -548,6 +581,11 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor ErrorTrace(boo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -761,6 +799,23 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor Pre return this; } + /// + /// + /// Specifies a subset of projects to target for a search using project metadata + /// tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag + /// and a single value (possible wildcarded). Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. @@ -831,6 +886,11 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchResponse.g.cs index f07b313c193..c65708b68e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchResponse.g.cs @@ -37,14 +37,6 @@ internal MultiSearchResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection> Responses { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Took { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> Responses { get; set; } + public required long Took { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs index 293c430d289..78a82c735e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -39,6 +39,20 @@ public sealed partial class MultiSearchTemplateRequestParameters : Elastic.Trans /// public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } + /// /// /// If true, the response returns hits.total as an integer. @@ -100,17 +114,11 @@ public MultiSearchTemplateRequest(System.Collections.Generic.ICollection public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } + /// /// /// If true, the response returns hits.total as an integer. @@ -169,11 +191,7 @@ internal MultiSearchTemplateRequest(Elastic.Clients.Elasticsearch.Serialization. /// /// public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection SearchTemplates { get; set; } + public required System.Collections.Generic.ICollection SearchTemplates { get; set; } } /// @@ -255,6 +273,24 @@ public Elastic.Clients.Elasticsearch.MultiSearchTemplateRequestDescriptor MaxCon return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.MultiSearchTemplateRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// If true, the response returns hits.total as an integer. @@ -315,6 +351,11 @@ public Elastic.Clients.Elasticsearch.MultiSearchTemplateRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MultiSearchTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -431,6 +472,24 @@ public Elastic.Clients.Elasticsearch.MultiSearchTemplateRequestDescriptor + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.MultiSearchTemplateRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// If true, the response returns hits.total as an integer. @@ -491,6 +550,11 @@ public Elastic.Clients.Elasticsearch.MultiSearchTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateResponse.g.cs index 43946a50ad1..5d2323465ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateResponse.g.cs @@ -37,14 +37,6 @@ internal MultiSearchTemplateResponse(Elastic.Clients.Elasticsearch.Serialization _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection> Responses { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Took { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> Responses { get; set; } + public required long Took { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs index 4c4ee78e7b8..bcfa41b94e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -130,16 +130,11 @@ public sealed partial class MultiTermVectorsRequest : Elastic.Clients.Elasticsea public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) { } -#if NET7_0_OR_GREATER - public MultiTermVectorsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public MultiTermVectorsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -540,6 +535,11 @@ public Elastic.Clients.Elasticsearch.MultiTermVectorsRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.MultiTermVectorsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -845,6 +845,11 @@ public Elastic.Clients.Elasticsearch.MultiTermVectorsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsResponse.g.cs index 1d0d63294b1..88daf630d1e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsResponse.g.cs @@ -37,9 +37,5 @@ internal MultiTermVectorsResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Docs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Docs { get; set; } } \ No newline at end of file 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 98ea21f8505..4a8d98708d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class ClearRepositoriesMeteringArchiveRequest : Elastic.Cl public ClearRepositoriesMeteringArchiveRequest(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion) : base(r => r.Required("node_id", nodeId).Required("max_archive_version", maxArchiveVersion)) { } -#if NET7_0_OR_GREATER + public ClearRepositoriesMeteringArchiveRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearRepositoriesMeteringArchiveRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,22 +66,14 @@ internal ClearRepositoriesMeteringArchiveRequest(Elastic.Clients.Elasticsearch.S /// Specifies the maximum archive_version to be cleared from the archive. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MaxArchiveVersion { get => P("max_archive_version"); set => PR("max_archive_version", value); } + public required long MaxArchiveVersion { get => P("max_archive_version"); set => PR("max_archive_version", value); } /// /// /// Comma-separated list of node IDs or names used to limit returned information. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.NodeIds NodeId { get => P("node_id"); set => PR("node_id", value); } + public required Elastic.Clients.Elasticsearch.NodeIds NodeId { get => P("node_id"); set => PR("node_id", value); } } /// @@ -152,6 +144,11 @@ public Elastic.Clients.Elasticsearch.Nodes.ClearRepositoriesMeteringArchiveReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Nodes.ClearRepositoriesMeteringArchiveRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveResponse.g.cs index 0ddc0bd91c5..c8042d4be03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveResponse.g.cs @@ -42,22 +42,14 @@ internal ClearRepositoriesMeteringArchiveResponse(Elastic.Clients.Elasticsearch. /// Name of the cluster. Based on the cluster.name setting. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterName { get; set; } + public required string ClusterName { get; set; } /// /// /// Contains repositories metering information for the nodes selected by the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } /// /// 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 8d9b5061340..c9dbe5d64bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs @@ -44,11 +44,11 @@ public sealed partial class GetRepositoriesMeteringInfoRequest : Elastic.Clients public GetRepositoriesMeteringInfoRequest(Elastic.Clients.Elasticsearch.NodeIds nodeId) : base(r => r.Required("node_id", nodeId)) { } -#if NET7_0_OR_GREATER + public GetRepositoriesMeteringInfoRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRepositoriesMeteringInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +68,7 @@ internal GetRepositoriesMeteringInfoRequest(Elastic.Clients.Elasticsearch.Serial /// Comma-separated list of node IDs or names used to limit returned information. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.NodeIds NodeId { get => P("node_id"); set => PR("node_id", value); } + public required Elastic.Clients.Elasticsearch.NodeIds NodeId { get => P("node_id"); set => PR("node_id", value); } } /// @@ -134,6 +130,11 @@ public Elastic.Clients.Elasticsearch.Nodes.GetRepositoriesMeteringInfoRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Nodes.GetRepositoriesMeteringInfoRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoResponse.g.cs index b47413936c9..e4bc036bff2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoResponse.g.cs @@ -42,22 +42,14 @@ internal GetRepositoriesMeteringInfoResponse(Elastic.Clients.Elasticsearch.Seria /// Name of the cluster. Based on the cluster.name setting. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterName { get; set; } + public required string ClusterName { get; set; } /// /// /// Contains repositories metering information for the nodes selected by the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } /// /// 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 7fc40712517..6f32857942f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs @@ -92,16 +92,11 @@ public sealed partial class HotThreadsRequest : Elastic.Clients.Elasticsearch.Re public HotThreadsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) { } -#if NET7_0_OR_GREATER - public HotThreadsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public HotThreadsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HotThreadsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -316,6 +311,11 @@ public Elastic.Clients.Elasticsearch.Nodes.HotThreadsRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Nodes.HotThreadsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 74c0e9e46e0..ef332292570 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs @@ -62,16 +62,11 @@ public NodesInfoRequest(System.Collections.Generic.ICollection? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) { } -#if NET7_0_OR_GREATER - public NodesInfoRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public NodesInfoRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodesInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -230,6 +225,11 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Nodes.NodesInfoRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoResponse.g.cs index bae21599a8b..f76edf91cfd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoResponse.g.cs @@ -37,16 +37,8 @@ internal NodesInfoResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } /// /// 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 6f14b425104..9551af7719f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs @@ -120,16 +120,11 @@ public NodesStatsRequest(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 - public NodesStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public NodesStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -498,6 +493,11 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -804,6 +804,11 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsResponse.g.cs index 96fbd92efc9..550898120ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsResponse.g.cs @@ -38,11 +38,7 @@ internal NodesStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons } public string? ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } /// /// 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 e96da5558ac..b88dd04beca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs @@ -53,16 +53,11 @@ public NodesUsageRequest(System.Collections.Generic.ICollection? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) { } -#if NET7_0_OR_GREATER - public NodesUsageRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public NodesUsageRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodesUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -207,6 +202,11 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Nodes.NodesUsageRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageResponse.g.cs index 5309aa7573e..db89e803abf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageResponse.g.cs @@ -37,16 +37,8 @@ internal NodesUsageResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs index 3df71df4848..356716a794a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs @@ -55,16 +55,11 @@ public sealed partial class ReloadSecureSettingsRequest : Elastic.Clients.Elasti public ReloadSecureSettingsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) { } -#if NET7_0_OR_GREATER - public ReloadSecureSettingsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ReloadSecureSettingsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReloadSecureSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -193,6 +188,11 @@ public Elastic.Clients.Elasticsearch.Nodes.ReloadSecureSettingsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Nodes.ReloadSecureSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsResponse.g.cs index 6bfdb313fed..6da3e7624bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsResponse.g.cs @@ -37,16 +37,8 @@ internal ReloadSecureSettingsResponse(Elastic.Clients.Elasticsearch.Serializatio _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.Converters.g.cs index 21a70adead3..ce043490233 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.Converters.g.cs @@ -26,11 +26,13 @@ namespace Elastic.Clients.Elasticsearch.Json; public sealed partial class OpenPointInTimeRequestConverter : System.Text.Json.Serialization.JsonConverter { private static readonly System.Text.Json.JsonEncodedText PropIndexFilter = System.Text.Json.JsonEncodedText.Encode("index_filter"u8); + private static readonly System.Text.Json.JsonEncodedText PropProjectRouting = System.Text.Json.JsonEncodedText.Encode("project_routing"u8); public override Elastic.Clients.Elasticsearch.OpenPointInTimeRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propIndexFilter = default; + LocalJsonValue propProjectRouting = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { if (propIndexFilter.TryReadProperty(ref reader, options, PropIndexFilter, null)) @@ -38,6 +40,11 @@ public override Elastic.Clients.Elasticsearch.OpenPointInTimeRequest Read(ref Sy continue; } + if (propProjectRouting.TryReadProperty(ref reader, options, PropProjectRouting, null)) + { + continue; + } + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) { reader.SafeSkip(); @@ -50,7 +57,8 @@ public override Elastic.Clients.Elasticsearch.OpenPointInTimeRequest Read(ref Sy reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { - IndexFilter = propIndexFilter.Value + IndexFilter = propIndexFilter.Value, + ProjectRouting = propProjectRouting.Value }; } @@ -58,6 +66,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien { writer.WriteStartObject(); writer.WriteProperty(options, PropIndexFilter, value.IndexFilter, null, null); + writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 16bb08c0617..f4ced2429b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -139,11 +139,11 @@ public sealed partial class OpenPointInTimeRequest : Elastic.Clients.Elasticsear public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public OpenPointInTimeRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -163,11 +163,7 @@ internal OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// A comma-separated list of index names to open point in time; use _all or empty string to perform the operation on all indices /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -229,6 +225,20 @@ internal OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// public Elastic.Clients.Elasticsearch.QueryDsl.Query? IndexFilter { get; set; } + + /// + /// + /// Specifies a subset of projects to target for the PIT request using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get; set; } } /// @@ -446,6 +456,24 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor IndexFilte return this; } + /// + /// + /// Specifies a subset of projects to target for the PIT request using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.OpenPointInTimeRequest Build(System.Action action) { @@ -460,6 +488,11 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -700,6 +733,24 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor return this; } + /// + /// + /// Specifies a subset of projects to target for the PIT request using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.OpenPointInTimeRequest Build(System.Action> action) { @@ -714,6 +765,11 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeResponse.g.cs index 6839734dceb..34afb3b585f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeResponse.g.cs @@ -37,20 +37,12 @@ internal OpenPointInTimeResponse(Elastic.Clients.Elasticsearch.Serialization.Jso _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string Id { get; set; } + public required string Id { get; set; } /// /// /// Shards used to create the PIT /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs index 56f937493df..7e3b1362832 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class PingRequestParameters : Elastic.Transport.RequestPar [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.PingRequestConverter))] public sealed partial class PingRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public PingRequest() { } -#endif -#if !NET7_0_OR_GREATER - public PingRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.PingRequestDescriptor ErrorTrace(bool? valu return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.PingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsRequest.Converters.g.cs new file mode 100644 index 00000000000..7fe21141180 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsRequest.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.Project.Json; + +public sealed partial class TagsRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + public override Elastic.Clients.Elasticsearch.Project.TagsRequest 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.Project.TagsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Project.TagsRequest 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/Project/TagsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsRequest.g.cs new file mode 100644 index 00000000000..12a34675926 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsRequest.g.cs @@ -0,0 +1,169 @@ +// 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.Project; + +public sealed partial class TagsRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// A Lucene query using project metadata tags used to filter which projects are returned in the response, such as _alias:_origin or _alias:pr. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } +} + +/// +/// +/// Get tags. +/// +/// +/// Get the tags that are defined for the project. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Project.Json.TagsRequestConverter))] +public sealed partial class TagsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + public TagsRequest() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal TagsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.ProjectTags; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "project.tags"; + + /// + /// + /// A Lucene query using project metadata tags used to filter which projects are returned in the response, such as _alias:_origin or _alias:pr. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } +} + +/// +/// +/// Get tags. +/// +/// +/// Get the tags that are defined for the project. +/// +/// +public readonly partial struct TagsRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.Project.TagsRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public TagsRequestDescriptor(Elastic.Clients.Elasticsearch.Project.TagsRequest instance) + { + Instance = instance; + } + + public TagsRequestDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.Project.TagsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor(Elastic.Clients.Elasticsearch.Project.TagsRequest instance) => new Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Project.TagsRequest(Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// A Lucene query using project metadata tags used to filter which projects are returned in the response, such as _alias:_origin or _alias:pr. + /// + /// + public Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Project.TagsRequest Build(System.Action? action) + { + if (action is null) + { + return new Elastic.Clients.Elasticsearch.Project.TagsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + var builder = new Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor(new Elastic.Clients.Elasticsearch.Project.TagsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] + public Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor 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/Project/TagsResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsResponse.Converters.g.cs new file mode 100644 index 00000000000..60d2cf34587 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsResponse.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.Project.Json; + +public sealed partial class TagsResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropLinkedProjects = System.Text.Json.JsonEncodedText.Encode("linked_projects"u8); + private static readonly System.Text.Json.JsonEncodedText PropOrigin = System.Text.Json.JsonEncodedText.Encode("origin"u8); + + public override Elastic.Clients.Elasticsearch.Project.TagsResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue?> propLinkedProjects = default; + LocalJsonValue> propOrigin = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propLinkedProjects.TryReadProperty(ref reader, options, PropLinkedProjects, static System.Collections.Generic.IReadOnlyDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, null))) + { + continue; + } + + if (propOrigin.TryReadProperty(ref reader, options, PropOrigin, static System.Collections.Generic.KeyValuePair (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadKeyValuePairValue(o, null, 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.Project.TagsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + LinkedProjects = propLinkedProjects.Value, + Origin = propOrigin.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Project.TagsResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropLinkedProjects, value.LinkedProjects, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary? v) => w.WriteDictionaryValue(o, v, null, null)); + writer.WriteProperty(options, PropOrigin, value.Origin, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.KeyValuePair v) => w.WriteKeyValuePairValue(o, v, null, null)); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsResponse.g.cs new file mode 100644 index 00000000000..b92d9d6eca0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Project/TagsResponse.g.cs @@ -0,0 +1,42 @@ +// 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.Project; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Project.Json.TagsResponseConverter))] +public sealed partial class TagsResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public TagsResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal TagsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + public System.Collections.Generic.IReadOnlyDictionary? LinkedProjects { get; set; } + public required System.Collections.Generic.KeyValuePair Origin { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs index a5fcdb6f759..8ec3fc632cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs @@ -78,11 +78,11 @@ public PutScriptRequest(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Ela { Script = script; } -#if NET7_0_OR_GREATER + public PutScriptRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -111,11 +111,7 @@ internal PutScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// It must be unique within the cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -140,11 +136,7 @@ internal PutScriptRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The script or search template, its parameters, and its language. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.StoredScript Script { get; set; } + public required Elastic.Clients.Elasticsearch.StoredScript Script { get; set; } } /// @@ -274,6 +266,11 @@ public Elastic.Clients.Elasticsearch.PutScriptRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.PutScriptRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptResponse.g.cs index 0b8e30976ce..594c52f7a72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptResponse.g.cs @@ -42,9 +42,5 @@ internal PutScriptResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 925460b617b..0aa0e5ce7d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class DeleteRuleRequest : Elastic.Clients.Elasticsearch.Re public DeleteRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId)) { } -#if NET7_0_OR_GREATER + public DeleteRuleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,22 +67,14 @@ internal DeleteRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The unique identifier of the query rule within the specified ruleset to delete /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } + public required Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } /// /// /// The unique identifier of the query ruleset containing the rule to delete /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } + public required Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } } /// @@ -154,6 +146,11 @@ public Elastic.Clients.Elasticsearch.QueryRules.DeleteRuleRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.QueryRules.DeleteRuleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs index ae40cd63661..1dd592ecf7f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteRuleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 3f35be0b440..f58c1301ba2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class DeleteRulesetRequest : Elastic.Clients.Elasticsearch public DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) { } -#if NET7_0_OR_GREATER + public DeleteRulesetRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +67,7 @@ internal DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The unique identifier of the query ruleset to delete /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } + public required Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } } /// @@ -132,6 +128,11 @@ public Elastic.Clients.Elasticsearch.QueryRules.DeleteRulesetRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.QueryRules.DeleteRulesetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs index 55f2b20c295..ae32bcdca70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteRulesetResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 6c42e514f5d..ccb63b56b51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class GetRuleRequest : Elastic.Clients.Elasticsearch.Reque public GetRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId)) { } -#if NET7_0_OR_GREATER + public GetRuleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,22 +66,14 @@ internal GetRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The unique identifier of the query rule within the specified ruleset to retrieve /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } + public required Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } /// /// /// The unique identifier of the query ruleset containing the rule to retrieve /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } + public required Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } } /// @@ -152,6 +144,11 @@ public Elastic.Clients.Elasticsearch.QueryRules.GetRuleRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.QueryRules.GetRuleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleResponse.g.cs index 1561e4cd8cc..2256054396b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleResponse.g.cs @@ -43,11 +43,7 @@ internal GetRuleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The format of this action depends on the rule type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; set; } + public required Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; set; } /// /// @@ -55,11 +51,7 @@ internal GetRuleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// If multiple criteria are specified for a rule, all criteria must be met for the rule to be applied. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Criteria { get; set; } + public required System.Collections.Generic.ICollection Criteria { get; set; } public int? Priority { get; set; } /// @@ -67,11 +59,7 @@ internal GetRuleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// A unique identifier for the rule. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RuleId { get; set; } + public required string RuleId { get; set; } /// /// @@ -80,9 +68,5 @@ internal GetRuleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// exclude will exclude specific documents from search results. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; set; } + public required Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; set; } } \ No newline at end of file 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 4057e04385b..6409453d932 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class GetRulesetRequest : Elastic.Clients.Elasticsearch.Re public GetRulesetRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) { } -#if NET7_0_OR_GREATER + public GetRulesetRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal GetRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The unique identifier of the query ruleset /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } + public required Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.QueryRules.GetRulesetRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.QueryRules.GetRulesetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetResponse.g.cs index a2983a31006..711dff035c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetResponse.g.cs @@ -42,20 +42,12 @@ internal GetRulesetResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Rules associated with the query ruleset. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Rules { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Rules { get; set; } /// /// /// A unique identifier for the ruleset. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RulesetId { get; set; } + public required string RulesetId { get; set; } } \ No newline at end of file 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 7b98bd91922..959817fa8dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs @@ -51,16 +51,10 @@ public sealed partial class ListRulesetsRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryRules.Json.ListRulesetsRequestConverter))] public sealed partial class ListRulesetsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ListRulesetsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ListRulesetsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ListRulesetsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -157,6 +151,11 @@ public Elastic.Clients.Elasticsearch.QueryRules.ListRulesetsRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.QueryRules.ListRulesetsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs index eed9610be8c..6b03c7e4728 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs @@ -37,14 +37,6 @@ internal ListRulesetsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Results { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Results { get; set; } } \ No newline at end of file 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 a1e64545ab9..6be04aff996 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs @@ -57,11 +57,11 @@ public PutRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Client Criteria = criteria; Type = type; } -#if NET7_0_OR_GREATER + public PutRuleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,22 +81,14 @@ internal PutRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The unique identifier of the query rule within the specified ruleset to be created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } + public required Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } /// /// /// The unique identifier of the query ruleset containing the rule to be created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } + public required Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } /// /// @@ -104,11 +96,7 @@ internal PutRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The format of this action depends on the rule type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; set; } + public required Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; set; } /// /// @@ -116,11 +104,7 @@ internal PutRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// If multiple criteria are specified for a rule, all criteria must be met for the rule to be applied. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Criteria { get; set; } + public required System.Collections.Generic.ICollection Criteria { get; set; } public int? Priority { get; set; } /// @@ -128,11 +112,7 @@ internal PutRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The type of rule. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; set; } + public required Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; set; } } /// @@ -306,6 +286,11 @@ public Elastic.Clients.Elasticsearch.QueryRules.PutRuleRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.QueryRules.PutRuleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleResponse.g.cs index 82433b02be5..a4c944fa7d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleResponse.g.cs @@ -37,9 +37,5 @@ internal PutRuleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } } \ No newline at end of file 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 a4e91c1e07d..fb5d5372161 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs @@ -56,11 +56,11 @@ public PutRulesetRequest(Elastic.Clients.Elasticsearch.Id rulesetId, System.Coll { Rules = rules; } -#if NET7_0_OR_GREATER + public PutRulesetRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,16 +80,8 @@ internal PutRulesetRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The unique identifier of the query ruleset to be created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Rules { get; set; } + public required Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } + public required System.Collections.Generic.ICollection Rules { get; set; } } /// @@ -182,6 +174,11 @@ public Elastic.Clients.Elasticsearch.QueryRules.PutRulesetRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.QueryRules.PutRulesetRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetResponse.g.cs index c18533d1f13..748e4d18aab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetResponse.g.cs @@ -37,9 +37,5 @@ internal PutRulesetResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } } \ No newline at end of file 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 f4117e6fbaf..b201e0a58c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs @@ -49,11 +49,11 @@ public TestRequest(Elastic.Clients.Elasticsearch.Id rulesetId, System.Collection { MatchCriteria = matchCriteria; } -#if NET7_0_OR_GREATER + public TestRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TestRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -73,11 +73,7 @@ internal TestRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The unique identifier of the query ruleset to be created or updated /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } + public required Elastic.Clients.Elasticsearch.Id RulesetId { get => P("ruleset_id"); set => PR("ruleset_id", value); } /// /// @@ -85,11 +81,7 @@ internal TestRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Match criteria should match the keys defined in the criteria.metadata field of the rule. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IDictionary MatchCriteria { get; set; } + public required System.Collections.Generic.IDictionary MatchCriteria { get; set; } } /// @@ -194,6 +186,11 @@ public Elastic.Clients.Elasticsearch.QueryRules.TestRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.QueryRules.TestRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestResponse.g.cs index 972d119e7f1..5ef322edadc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestResponse.g.cs @@ -37,14 +37,6 @@ internal TestResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection MatchedRules { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int TotalMatchedRules { get; set; } + public required System.Collections.Generic.IReadOnlyCollection MatchedRules { get; set; } + public required int TotalMatchedRules { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs index 353bb75829a..4abfe242510 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs @@ -82,17 +82,11 @@ public RankEvalRequest(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Requests { get; set; } + public required System.Collections.Generic.ICollection Requests { get; set; } } /// @@ -367,6 +357,11 @@ public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -591,6 +586,11 @@ public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalResponse.g.cs index e33152a361b..d0d7f7b8b14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalResponse.g.cs @@ -42,25 +42,13 @@ internal RankEvalResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The details section contains one entry for every query in the original requests section, keyed by the search request id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Details { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Failures { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Details { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Failures { get; set; } /// /// /// The overall evaluation quality calculated by the defined metric /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double MetricScore { get; set; } + public required double MetricScore { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs index 62e707a9a1e..b13758c5b9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs @@ -200,17 +200,11 @@ public ReindexRequest(Elastic.Clients.Elasticsearch.Core.Reindex.Destination des Dest = dest; Source = source; } -#if NET7_0_OR_GREATER - public ReindexRequest() - { - } -#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 ReindexRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -311,11 +305,7 @@ internal ReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The destination you are copying to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Reindex.Destination Dest { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Reindex.Destination Dest { get; set; } /// /// @@ -341,11 +331,7 @@ internal ReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The source you are copying from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Reindex.Source Source { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Reindex.Source Source { get; set; } } /// @@ -716,6 +702,11 @@ public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor ErrorTrace(bool? v return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1110,6 +1101,11 @@ public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs index 21947737832..a266d92385c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs @@ -58,11 +58,11 @@ public sealed partial class ReindexRethrottleRequest : Elastic.Clients.Elasticse public ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Id taskId) : base(r => r.Required("task_id", taskId)) { } -#if NET7_0_OR_GREATER + public ReindexRethrottleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The task identifier, which can be found by using the tasks API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TaskId { get => P("task_id"); set => PR("task_id", value); } + public required Elastic.Clients.Elasticsearch.Id TaskId { get => P("task_id"); set => PR("task_id", value); } /// /// @@ -175,6 +171,11 @@ public Elastic.Clients.Elasticsearch.ReindexRethrottleRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ReindexRethrottleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleResponse.g.cs index 7f601fb0242..8a4c4aab2f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleResponse.g.cs @@ -37,9 +37,5 @@ internal ReindexRethrottleResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs index 7b22cf0a44b..94e744955ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class RenderSearchTemplateRequestParameters : Elastic.Tran [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.RenderSearchTemplateRequestConverter))] public sealed partial class RenderSearchTemplateRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public RenderSearchTemplateRequest() { } -#endif -#if !NET7_0_OR_GREATER - public RenderSearchTemplateRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -217,6 +211,11 @@ public Elastic.Clients.Elasticsearch.RenderSearchTemplateRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.RenderSearchTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateResponse.g.cs index 5882f135efb..30c0cb7f75b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateResponse.g.cs @@ -37,9 +37,5 @@ internal RenderSearchTemplateResponse(Elastic.Clients.Elasticsearch.Serializatio _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary TemplateOutput { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary TemplateOutput { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs index a4e4468d6c4..f8f9dfadfdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs @@ -63,11 +63,11 @@ public sealed partial class DeleteJobRequest : Elastic.Clients.Elasticsearch.Req public DeleteJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,11 +87,7 @@ internal DeleteJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Identifier for the job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -172,6 +168,11 @@ public Elastic.Clients.Elasticsearch.Rollup.DeleteJobRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.DeleteJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobResponse.g.cs index 94c6c03e6a7..f564326bbdf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobResponse.g.cs @@ -37,10 +37,6 @@ internal DeleteJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } + public required bool Acknowledged { get; set; } public System.Collections.Generic.IReadOnlyCollection? TaskFailures { get; set; } } \ No newline at end of file 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 a4bb262a603..608c00fd674 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs @@ -46,16 +46,11 @@ public sealed partial class GetJobsRequest : Elastic.Clients.Elasticsearch.Reque public GetJobsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public GetJobsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetJobsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetJobsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -146,6 +141,11 @@ public Elastic.Clients.Elasticsearch.Rollup.GetJobsRequestDescriptor ErrorTrace( return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.GetJobsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsResponse.g.cs index 74c4b4aa331..5f8780b8a24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsResponse.g.cs @@ -37,9 +37,5 @@ internal GetJobsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Jobs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Jobs { get; set; } } \ No newline at end of file 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 6a9bc95684c..cf096e75ad7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs @@ -58,16 +58,11 @@ public sealed partial class GetRollupCapsRequest : Elastic.Clients.Elasticsearch public GetRollupCapsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) { } -#if NET7_0_OR_GREATER - public GetRollupCapsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetRollupCapsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRollupCapsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -170,6 +165,11 @@ public Elastic.Clients.Elasticsearch.Rollup.GetRollupCapsRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.GetRollupCapsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsResponse.g.cs index 9edcea193d0..3decf819f41 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsResponse.g.cs @@ -37,9 +37,5 @@ internal GetRollupCapsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Capabilities { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Capabilities { get; set; } } \ No newline at end of file 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 ec67ff104ea..ff09b200e0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class GetRollupIndexCapsRequest : Elastic.Clients.Elastics public GetRollupIndexCapsRequest(Elastic.Clients.Elasticsearch.Ids index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public GetRollupIndexCapsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRollupIndexCapsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +80,7 @@ internal GetRollupIndexCapsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// Wildcard (*) expressions are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ids Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Ids Index { get => P("index"); set => PR("index", value); } } /// @@ -158,6 +154,11 @@ public Elastic.Clients.Elasticsearch.Rollup.GetRollupIndexCapsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.GetRollupIndexCapsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsResponse.g.cs index 4f2651434ba..f4536c722aa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsResponse.g.cs @@ -37,9 +37,5 @@ internal GetRollupIndexCapsResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Capabilities { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Capabilities { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs index 6e37d5f50e1..404f9bcb239 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs @@ -62,11 +62,11 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.Id id, string cron, Elastic.C PageSize = pageSize; RollupIndex = rollupIndex; } -#if NET7_0_OR_GREATER + public PutJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -90,11 +90,7 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// since that could lead to problems with mismatched job configurations. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -105,11 +101,7 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// cron pattern is defined just like a Watcher cron schedule. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Cron { get; set; } + public required string Cron { get; set; } /// /// @@ -120,11 +112,7 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// enough flexibility that you simply need to determine which fields are needed, not in what order they are needed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Rollup.Groupings Groups { get; set; } + public required Elastic.Clients.Elasticsearch.Rollup.Groupings Groups { get; set; } public System.Collections.Generic.IDictionary>? Headers { get; set; } /// @@ -133,11 +121,7 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// rollup the entire index or index-pattern. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string IndexPattern { get; set; } + public required string IndexPattern { get; set; } /// /// @@ -155,22 +139,14 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// rolled up; it is merely used for tweaking the speed or memory cost of the indexer. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int PageSize { get; set; } + public required int PageSize { get; set; } /// /// /// The index that contains the rollup results. The index can be shared with other rollup jobs. The data is stored so that it doesn’t interfere with unrelated jobs. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName RollupIndex { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName RollupIndex { get; set; } /// /// @@ -470,6 +446,11 @@ public Elastic.Clients.Elasticsearch.Rollup.PutJobRequestDescriptor ErrorTrace(b return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.PutJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -763,6 +744,11 @@ public Elastic.Clients.Elasticsearch.Rollup.PutJobRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.PutJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobResponse.g.cs index c5d4b8ae1a7..47dec9fd44d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobResponse.g.cs @@ -42,9 +42,5 @@ internal PutJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 258a748d3b6..bb5a847c553 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs @@ -67,11 +67,11 @@ public partial class RollupSearchRequest : Elastic.Clients.Elasticsearch.Request public RollupSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public RollupSearchRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RollupSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -114,11 +114,7 @@ internal RollupSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -379,6 +375,11 @@ public Elastic.Clients.Elasticsearch.Rollup.RollupSearchRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.RollupSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -609,6 +610,11 @@ public Elastic.Clients.Elasticsearch.Rollup.RollupSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchResponse.g.cs index c7bcd6807b4..2301e122d85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchResponse.g.cs @@ -38,25 +38,9 @@ internal RollupSearchResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo } public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } public bool? TerminatedEarly { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool TimedOut { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Took { get; set; } + public required bool TimedOut { get; set; } + public required long Took { get; set; } } \ No newline at end of file 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 39b8aacc727..ec8eb236155 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class StartJobRequest : Elastic.Clients.Elasticsearch.Requ public StartJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public StartJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StartJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +67,7 @@ internal StartJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Identifier for the rollup job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -132,6 +128,11 @@ public Elastic.Clients.Elasticsearch.Rollup.StartJobRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.StartJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobResponse.g.cs index 581c06c3e63..a50e5a83eb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobResponse.g.cs @@ -37,9 +37,5 @@ internal StartJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Started { get; set; } + public required bool Started { get; set; } } \ No newline at end of file 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 c4941da3cf2..76375629a80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs @@ -71,11 +71,11 @@ public sealed partial class StopJobRequest : Elastic.Clients.Elasticsearch.Reque public StopJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public StopJobRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -95,11 +95,7 @@ internal StopJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Identifier for the rollup job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -215,6 +211,11 @@ public Elastic.Clients.Elasticsearch.Rollup.StopJobRequestDescriptor ErrorTrace( return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Rollup.StopJobRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobResponse.g.cs index 9c9a0247996..ac60e23d4dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobResponse.g.cs @@ -37,9 +37,5 @@ internal StopJobResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Stopped { get; set; } + public required bool Stopped { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs index 2e4183be32f..0a919bbd5db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs @@ -46,16 +46,10 @@ public sealed partial class ScriptsPainlessExecuteRequestParameters : Elastic.Tr [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ScriptsPainlessExecuteRequestConverter))] public sealed partial class ScriptsPainlessExecuteRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ScriptsPainlessExecuteRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ScriptsPainlessExecuteRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptsPainlessExecuteRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -228,6 +222,11 @@ public Elastic.Clients.Elasticsearch.ScriptsPainlessExecuteRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ScriptsPainlessExecuteRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -387,6 +386,11 @@ public Elastic.Clients.Elasticsearch.ScriptsPainlessExecuteRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteResponse.g.cs index a88e0a76bd5..d07f87c2129 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteResponse.g.cs @@ -37,9 +37,5 @@ internal ScriptsPainlessExecuteResponse(Elastic.Clients.Elasticsearch.Serializat _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -TResult Result { get; set; } + public required TResult Result { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs index c26f1c95a74..f38b7da1c5e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs @@ -63,17 +63,11 @@ public ScrollRequest(Elastic.Clients.Elasticsearch.ScrollId scrollId) { ScrollId = scrollId; } -#if NET7_0_OR_GREATER - public ScrollRequest() - { - } -#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 ScrollRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScrollRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -107,11 +101,7 @@ internal ScrollRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The scroll ID of the search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ScrollId ScrollId { get; set; } + public required Elastic.Clients.Elasticsearch.ScrollId ScrollId { get; set; } } /// @@ -201,6 +191,11 @@ public Elastic.Clients.Elasticsearch.ScrollRequestDescriptor ErrorTrace(bool? va return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.ScrollRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollResponse.g.cs index bd27ff52de5..1ac4726853d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollResponse.g.cs @@ -46,11 +46,7 @@ internal ScrollResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The returned documents and metadata. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } public double? MaxScore { get; set; } public long? NumReducePhases { get; set; } public string? PitId { get; set; } @@ -70,11 +66,7 @@ internal ScrollResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// A count of shards used for the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; set; } public bool? TerminatedEarly { get; set; } @@ -83,11 +75,7 @@ internal ScrollResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// If true, the request timed out before completion; returned results may be partial or empty. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool TimedOut { get; set; } + public required bool TimedOut { get; set; } /// /// @@ -133,9 +121,5 @@ internal ScrollResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Took { get; set; } + public required long Took { get; set; } } \ No newline at end of file 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 efc146abb57..16c83b4b0dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class DeleteBehavioralAnalyticsRequest : Elastic.Clients.E public DeleteBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteBehavioralAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal DeleteBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializ /// The name of the analytics collection to be deleted /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.DeleteBehavioralAnalytics return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.DeleteBehavioralAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsResponse.g.cs index a626a7771bb..582b74232a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteBehavioralAnalyticsResponse(Elastic.Clients.Elasticsearch.Seriali /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs index a7a531a2f2a..e79f8c11d5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class DeleteSearchApplicationRequest : Elastic.Clients.Ela public DeleteSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteSearchApplicationRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteSearchApplicationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal DeleteSearchApplicationRequest(Elastic.Clients.Elasticsearch.Serializat /// The name of the search application to delete. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.DeleteSearchApplicationRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.DeleteSearchApplicationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationResponse.g.cs index 3e8d4719fd5..e47419c11cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteSearchApplicationResponse(Elastic.Clients.Elasticsearch.Serializa /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs index 4deb4d76931..d1e5d7421c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs @@ -38,16 +38,11 @@ public sealed partial class GetBehavioralAnalyticsRequest : Elastic.Clients.Elas public GetBehavioralAnalyticsRequest(System.Collections.Generic.ICollection? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetBehavioralAnalyticsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetBehavioralAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -139,6 +134,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.GetBehavioralAnalyticsReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.GetBehavioralAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsResponse.g.cs index 65a0955ec2f..6e830d612f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsResponse.g.cs @@ -37,9 +37,5 @@ internal GetBehavioralAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializat _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Analytics { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Analytics { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs index 40af3d277b6..4f45a4e4ae1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class GetSearchApplicationRequest : Elastic.Clients.Elasti public GetSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public GetSearchApplicationRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSearchApplicationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal GetSearchApplicationRequest(Elastic.Clients.Elasticsearch.Serialization /// The name of the search application /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } } /// @@ -124,6 +120,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.GetSearchApplicationReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.GetSearchApplicationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs index c971dd49f1b..9bd445e5db8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs @@ -49,22 +49,14 @@ internal GetSearchApplicationResponse(Elastic.Clients.Elasticsearch.Serializatio /// Indices that are part of the Search Application. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } /// /// /// Search Application name /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// @@ -78,9 +70,5 @@ internal GetSearchApplicationResponse(Elastic.Clients.Elasticsearch.Serializatio /// Last time the Search Application was updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset UpdatedAtMillis { get; set; } + public required System.DateTimeOffset UpdatedAtMillis { get; set; } } \ No newline at end of file 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 0395ba3a2c1..e798be721a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs @@ -58,16 +58,10 @@ public sealed partial class ListRequestParameters : Elastic.Transport.RequestPar [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.SearchApplication.Json.ListRequestConverter))] public sealed partial class ListRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ListRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ListRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ListRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -182,6 +176,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.ListRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.ListRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs index 66f294c3362..f1a446b46f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs @@ -37,14 +37,6 @@ internal ListResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Results { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Results { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventRequest.g.cs index 2e682920d8b..e7c09d635d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventRequest.g.cs @@ -52,11 +52,11 @@ public PostBehavioralAnalyticsEventRequest(Elastic.Clients.Elasticsearch.Name co { Payload = payload; } -#if NET7_0_OR_GREATER + public PostBehavioralAnalyticsEventRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PostBehavioralAnalyticsEventRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,22 +76,14 @@ internal PostBehavioralAnalyticsEventRequest(Elastic.Clients.Elasticsearch.Seria /// The name of the behavioral analytics collection. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name CollectionName { get => P("collection_name"); set => PR("collection_name", value); } + public required Elastic.Clients.Elasticsearch.Name CollectionName { get => P("collection_name"); set => PR("collection_name", value); } /// /// /// The analytics event type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.SearchApplication.EventType EventType { get => P("event_type"); set => PR("event_type", value); } + public required Elastic.Clients.Elasticsearch.SearchApplication.EventType EventType { get => P("event_type"); set => PR("event_type", value); } /// /// @@ -99,11 +91,7 @@ internal PostBehavioralAnalyticsEventRequest(Elastic.Clients.Elasticsearch.Seria /// /// public bool? Debug { get => Q("debug"); set => Q("debug", value); } - public -#if NET7_0_OR_GREATER - required -#endif - object Payload { get; set; } + public required object Payload { get; set; } } /// @@ -190,6 +178,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.PostBehavioralAnalyticsEv return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.PostBehavioralAnalyticsEventRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventResponse.g.cs index 317dbd51151..b9c8044938f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventResponse.g.cs @@ -37,10 +37,6 @@ internal PostBehavioralAnalyticsEventResponse(Elastic.Clients.Elasticsearch.Seri _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Accepted { get; set; } + public required bool Accepted { get; set; } public object? Event { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs index 0e64a60a277..0900c850170 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs @@ -39,11 +39,11 @@ public sealed partial class PutBehavioralAnalyticsRequest : Elastic.Clients.Elas public PutBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutBehavioralAnalyticsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +63,7 @@ internal PutBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Serializati /// The name of the analytics collection to be created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } } /// @@ -124,6 +120,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.PutBehavioralAnalyticsReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.PutBehavioralAnalyticsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsResponse.g.cs index 88845116866..ead36ea1492 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsResponse.g.cs @@ -42,20 +42,12 @@ internal PutBehavioralAnalyticsResponse(Elastic.Clients.Elasticsearch.Serializat /// 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; } + public required bool Acknowledged { get; set; } /// /// /// The name of the analytics collection created or updated /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs index c487267d439..8f69c25717a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs @@ -52,11 +52,11 @@ public PutSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name, Elas { SearchApplication = searchApplication; } -#if NET7_0_OR_GREATER + public PutSearchApplicationRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutSearchApplicationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal PutSearchApplicationRequest(Elastic.Clients.Elasticsearch.Serialization /// The name of the search application to be created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -88,11 +84,7 @@ internal PutSearchApplicationRequest(Elastic.Clients.Elasticsearch.Serialization /// /// public bool? Create { get => Q("create"); set => Q("create", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters SearchApplication { get; set; } + public required Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters SearchApplication { get; set; } } /// @@ -174,6 +166,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.PutSearchApplicationReque return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.PutSearchApplicationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationResponse.g.cs index 4501daf221d..c3fcc2b1b47 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationResponse.g.cs @@ -37,9 +37,5 @@ internal PutSearchApplicationResponse(Elastic.Clients.Elasticsearch.Serializatio _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } } \ No newline at end of file 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 b7d14f7f46c..73057e50b11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs @@ -47,11 +47,11 @@ public sealed partial class RenderQueryRequest : Elastic.Clients.Elasticsearch.R public RenderQueryRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public RenderQueryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RenderQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -71,11 +71,7 @@ internal RenderQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The name of the search application to render teh query for. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } public System.Collections.Generic.IDictionary? Params { get; set; } } @@ -166,6 +162,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.RenderQueryRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.RenderQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 1b402775a62..0f733e8b1ad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs @@ -49,11 +49,11 @@ public partial class SearchApplicationSearchRequest : Elastic.Clients.Elasticsea public SearchApplicationSearchRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public SearchApplicationSearchRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchApplicationSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -73,11 +73,7 @@ internal SearchApplicationSearchRequest(Elastic.Clients.Elasticsearch.Serializat /// The name of the search application to be searched. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -203,6 +199,11 @@ public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationSearchRe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationSearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchResponse.g.cs index 2fbd985bead..654fde4628e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchResponse.g.cs @@ -46,11 +46,7 @@ internal SearchApplicationSearchResponse(Elastic.Clients.Elasticsearch.Serializa /// The returned documents and metadata. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } public double? MaxScore { get; set; } public long? NumReducePhases { get; set; } public string? PitId { get; set; } @@ -70,11 +66,7 @@ internal SearchApplicationSearchResponse(Elastic.Clients.Elasticsearch.Serializa /// A count of shards used for the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; set; } public bool? TerminatedEarly { get; set; } @@ -83,11 +75,7 @@ internal SearchApplicationSearchResponse(Elastic.Clients.Elasticsearch.Serializa /// If true, the request timed out before completion; returned results may be partial or empty. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool TimedOut { get; set; } + public required bool TimedOut { get; set; } /// /// @@ -133,9 +121,5 @@ internal SearchApplicationSearchResponse(Elastic.Clients.Elasticsearch.Serializa /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Took { get; set; } + public required long Took { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs index 26fb75b61fa..f4c664485c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs @@ -25,6 +25,19 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class SearchMvtRequestParameters : Elastic.Transport.RequestParameters { + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } } /// @@ -184,11 +197,11 @@ public sealed partial class SearchMvtRequest : Elastic.Clients.Elasticsearch.Req public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) : base(r => r.Required("index", indices).Required("field", field).Required("zoom", zoom).Required("x", x).Required("y", y)) { } -#if NET7_0_OR_GREATER + public SearchMvtRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchMvtRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -215,11 +228,7 @@ internal SearchMvtRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// This behavior may change in a future release. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get => P("field"); set => PR("field", value); } + public required Elastic.Clients.Elasticsearch.Field Field { get => P("field"); set => PR("field", value); } /// /// @@ -229,44 +238,42 @@ internal SearchMvtRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// To search a remote cluster, use the <cluster>:<target> syntax. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// /// The X coordinate for the vector tile to search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int X { get => P("x"); set => PR("x", value); } + public required int X { get => P("x"); set => PR("x", value); } /// /// /// The Y coordinate for the vector tile to search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Y { get => P("y"); set => PR("y", value); } + public required int Y { get => P("y"); set => PR("y", value); } /// /// /// The zoom level of the vector tile to search. It accepts 0 to 29. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Zoom { get => P("zoom"); set => PR("zoom", value); } + public required int Zoom { get => P("zoom"); set => PR("zoom", value); } + + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } /// /// @@ -737,6 +744,24 @@ public Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor Zoom(int value) return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// Sub-aggregations for the geotile_grid. @@ -1454,6 +1479,11 @@ public Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1748,6 +1778,24 @@ public Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor Zoom( return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// Sub-aggregations for the geotile_grid. @@ -2323,6 +2371,11 @@ public Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.Converters.g.cs index 73a2b0b9a1f..d30637023af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.Converters.g.cs @@ -40,6 +40,7 @@ public sealed partial class SearchRequestConverter : System.Text.Json.Serializat private static readonly System.Text.Json.JsonEncodedText PropPit = System.Text.Json.JsonEncodedText.Encode("pit"u8); private static readonly System.Text.Json.JsonEncodedText PropPostFilter = System.Text.Json.JsonEncodedText.Encode("post_filter"u8); private static readonly System.Text.Json.JsonEncodedText PropProfile = System.Text.Json.JsonEncodedText.Encode("profile"u8); + private static readonly System.Text.Json.JsonEncodedText PropProjectRouting = System.Text.Json.JsonEncodedText.Encode("project_routing"u8); private static readonly System.Text.Json.JsonEncodedText PropQuery = System.Text.Json.JsonEncodedText.Encode("query"u8); private static readonly System.Text.Json.JsonEncodedText PropRank = System.Text.Json.JsonEncodedText.Encode("rank"u8); private static readonly System.Text.Json.JsonEncodedText PropRescore = System.Text.Json.JsonEncodedText.Encode("rescore"u8); @@ -78,6 +79,7 @@ public override Elastic.Clients.Elasticsearch.SearchRequest Read(ref System.Text LocalJsonValue propPit = default; LocalJsonValue propPostFilter = default; LocalJsonValue propProfile = default; + LocalJsonValue propProjectRouting = default; LocalJsonValue propQuery = default; LocalJsonValue propRank = default; LocalJsonValue?> propRescore = default; @@ -170,6 +172,11 @@ public override Elastic.Clients.Elasticsearch.SearchRequest Read(ref System.Text continue; } + if (propProjectRouting.TryReadProperty(ref reader, options, PropProjectRouting, null)) + { + continue; + } + if (propQuery.TryReadProperty(ref reader, options, PropQuery, null)) { continue; @@ -296,6 +303,7 @@ public override Elastic.Clients.Elasticsearch.SearchRequest Read(ref System.Text Pit = propPit.Value, PostFilter = propPostFilter.Value, Profile = propProfile.Value, + ProjectRouting = propProjectRouting.Value, Query = propQuery.Value, Rank = propRank.Value, Rescore = propRescore.Value, @@ -336,6 +344,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropPit, value.Pit, null, null); writer.WriteProperty(options, PropPostFilter, value.PostFilter, null, 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)); + writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteProperty(options, PropQuery, value.Query, null, null); writer.WriteProperty(options, PropRank, value.Rank, null, null); writer.WriteProperty(options, PropRescore, value.Rescore, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteSingleOrManyCollectionValue(o, v, null)); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index b94e3ae9746..93239d9dfbe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -371,16 +371,11 @@ public partial class SearchRequest : Elastic.Clients.Elasticsearch.Requests.Plai public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public SearchRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public SearchRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -823,6 +818,20 @@ internal SearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// public bool? Profile { get; set; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get; set; } + /// /// /// The search definition using the Query DSL. @@ -2048,6 +2057,24 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor Profile(bool? value return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.SearchRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// The search definition using the Query DSL. @@ -2709,6 +2736,11 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor ErrorTrace(bool? va return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -3697,6 +3729,24 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor Profile( return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.SearchRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// The search definition using the Query DSL. @@ -4239,6 +4289,11 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchResponse.g.cs index cb0dc81b773..1b246b01cca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchResponse.g.cs @@ -46,11 +46,7 @@ internal SearchResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The returned documents and metadata. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } public double? MaxScore { get; set; } public long? NumReducePhases { get; set; } public string? PitId { get; set; } @@ -70,11 +66,7 @@ internal SearchResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// A count of shards used for the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; set; } public bool? TerminatedEarly { get; set; } @@ -83,11 +75,7 @@ internal SearchResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// If true, the request timed out before completion; returned results may be partial or empty. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool TimedOut { get; set; } + public required bool TimedOut { get; set; } /// /// @@ -133,9 +121,5 @@ internal SearchResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Took { get; set; } + public required long Took { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index 984f62240e3..8d72a6d3f78 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -101,16 +101,11 @@ public sealed partial class SearchShardsRequest : Elastic.Clients.Elasticsearch. public SearchShardsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public SearchShardsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public SearchShardsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchShardsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -356,6 +351,11 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor ErrorTrace(bo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -558,6 +558,11 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsResponse.g.cs index e446a552df3..dcb912b3809 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsResponse.g.cs @@ -37,19 +37,7 @@ internal SearchShardsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection> Shards { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs index 01d7db85fb3..ac836f89d36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -73,6 +73,20 @@ public sealed partial class SearchTemplateRequestParameters : Elastic.Transport. /// public string? Preference { get => Q("preference"); set => Q("preference", value); } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } + /// /// /// If true, hits.total is rendered as an integer in the response. @@ -122,16 +136,11 @@ public partial class SearchTemplateRequest : Elastic.Clients.Elasticsearch.Reque public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public SearchTemplateRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public SearchTemplateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -202,6 +211,20 @@ internal SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// public string? Preference { get => Q("preference"); set => Q("preference", value); } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get => Q("project_routing"); set => Q("project_routing", value); } + /// /// /// If true, hits.total is rendered as an integer in the response. @@ -406,6 +429,24 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor Preference( return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// If true, hits.total is rendered as an integer in the response. @@ -576,6 +617,11 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor ErrorTrace( return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -738,6 +784,24 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor return this; } + /// + /// + /// Specifies a subset of projects to target for the search using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// If true, hits.total is rendered as an integer in the response. @@ -908,6 +972,11 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateResponse.g.cs index 69827c644b0..3a0221e8d3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateResponse.g.cs @@ -40,31 +40,15 @@ internal SearchTemplateResponse(Elastic.Clients.Elasticsearch.Serialization.Json public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } public Elastic.Clients.Elasticsearch.ClusterStatistics? Clusters { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Fields { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; set; } public double? MaxScore { get; set; } public long? NumReducePhases { get; set; } public string? PitId { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.Profile? Profile { get; set; } public Elastic.Clients.Elasticsearch.ScrollId? ScrollId { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; set; } public bool? TerminatedEarly { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool TimedOut { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Took { get; set; } + public required bool TimedOut { get; set; } + public required long Took { get; set; } } \ No newline at end of file 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 14b1acd6321..3ce71074cde 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs @@ -42,16 +42,11 @@ public sealed partial class CacheStatsRequest : Elastic.Clients.Elasticsearch.Re public CacheStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) { } -#if NET7_0_OR_GREATER - public CacheStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public CacheStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CacheStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -142,6 +137,11 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.CacheStatsRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchableSnapshots.CacheStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsResponse.g.cs index 757534f4c04..0d358d9b891 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsResponse.g.cs @@ -37,9 +37,5 @@ internal CacheStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } } \ No newline at end of file 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 359e0ef5609..73e54b86b19 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs @@ -62,16 +62,11 @@ public sealed partial class ClearCacheRequest : Elastic.Clients.Elasticsearch.Re public ClearCacheRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public ClearCacheRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ClearCacheRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -224,6 +219,11 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -368,6 +368,11 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheResponse.g.cs index 62ff64741c8..c637a39a0da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheResponse.g.cs @@ -37,9 +37,5 @@ internal ClearCacheResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -object Result { get; set; } + public required object Result { get; set; } } \ No newline at end of file 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 0ec6465646e..6e0601e646a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs @@ -73,11 +73,11 @@ public MountRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clien { Index = index; } -#if NET7_0_OR_GREATER + public MountRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -97,22 +97,14 @@ internal MountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The name of the repository containing the snapshot of the index to mount. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } /// /// /// The name of the snapshot of the index to mount. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } + public required Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } /// /// @@ -150,11 +142,7 @@ internal MountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// If no renamed_index is specified, this name will also be used to create the new index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } /// /// @@ -363,6 +351,11 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.MountRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchableSnapshots.MountRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountResponse.g.cs index 68be7db5f28..79004a9aa19 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountResponse.g.cs @@ -37,9 +37,5 @@ internal MountResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.SearchableSnapshots.MountedSnapshot Snapshot { get; set; } + public required Elastic.Clients.Elasticsearch.SearchableSnapshots.MountedSnapshot Snapshot { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs index aac922cd4f6..2bee790a8a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs @@ -44,16 +44,11 @@ public sealed partial class SearchableSnapshotsStatsRequest : Elastic.Clients.El public SearchableSnapshotsStatsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) { } -#if NET7_0_OR_GREATER - public SearchableSnapshotsStatsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public SearchableSnapshotsStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchableSnapshotsStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -152,6 +147,11 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.SearchableSnapshotsStat return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchableSnapshots.SearchableSnapshotsStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -258,6 +258,11 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.SearchableSnapshotsStat return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SearchableSnapshots.SearchableSnapshotsStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsResponse.g.cs index 0dc3e6b65e6..d4eaabfd1e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsResponse.g.cs @@ -37,14 +37,6 @@ internal SearchableSnapshotsStatsResponse(Elastic.Clients.Elasticsearch.Serializ _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -object Stats { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -object Total { get; set; } + public required object Stats { get; set; } + public required object Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs index 48c19fde0a8..5b817e23ab0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs @@ -57,17 +57,11 @@ public ActivateUserProfileRequest(Elastic.Clients.Elasticsearch.Security.GrantTy { GrantType = grantType; } -#if NET7_0_OR_GREATER - public ActivateUserProfileRequest() - { - } -#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 ActivateUserProfileRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ActivateUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -97,11 +91,7 @@ internal ActivateUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization. /// The type of grant. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.GrantType GrantType { get; set; } + public required Elastic.Clients.Elasticsearch.Security.GrantType GrantType { get; set; } /// /// @@ -227,6 +217,11 @@ public Elastic.Clients.Elasticsearch.Security.ActivateUserProfileRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.ActivateUserProfileRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileResponse.g.cs index 456a331bcf8..7a0f6ee3aae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileResponse.g.cs @@ -37,35 +37,11 @@ internal ActivateUserProfileResponse(Elastic.Clients.Elasticsearch.Serialization _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Data { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Security.UserProfileHitMetadata Doc { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Data { get; set; } + public required Elastic.Clients.Elasticsearch.Security.UserProfileHitMetadata Doc { get; set; } public bool? Enabled { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Labels { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long LastSynchronized { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Uid { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Security.UserProfileUser User { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Labels { get; set; } + public required long LastSynchronized { get; set; } + public required string Uid { get; set; } + public required Elastic.Clients.Elasticsearch.Security.UserProfileUser User { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs index 50055cfd08e..c2a38c5b0db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs @@ -41,16 +41,10 @@ public sealed partial class AuthenticateRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.AuthenticateRequestConverter))] public sealed partial class AuthenticateRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public AuthenticateRequest() { } -#endif -#if !NET7_0_OR_GREATER - public AuthenticateRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AuthenticateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -114,6 +108,11 @@ public Elastic.Clients.Elasticsearch.Security.AuthenticateRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Security.AuthenticateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateResponse.g.cs index 356de204665..590c758f871 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateResponse.g.cs @@ -38,42 +38,14 @@ internal AuthenticateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo } public Elastic.Clients.Elasticsearch.Security.AuthenticateApiKey? ApiKey { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Security.RealmInfo AuthenticationRealm { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string AuthenticationType { get; set; } + public required Elastic.Clients.Elasticsearch.Security.RealmInfo AuthenticationRealm { get; set; } + public required string AuthenticationType { get; set; } public string? Email { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Enabled { get; set; } + public required bool Enabled { get; set; } public string? FullName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Security.RealmInfo LookupRealm { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required Elastic.Clients.Elasticsearch.Security.RealmInfo LookupRealm { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } public Elastic.Clients.Elasticsearch.Security.AuthenticateToken? Token { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Username { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs index 8a8f4b650c1..b163051f2a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs @@ -50,17 +50,11 @@ public BulkDeleteRoleRequest(System.Collections.Generic.ICollection name { Names = names; } -#if NET7_0_OR_GREATER - public BulkDeleteRoleRequest() - { - } -#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 BulkDeleteRoleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BulkDeleteRoleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,11 +81,7 @@ internal BulkDeleteRoleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// An array of role names to delete /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Names { get; set; } + public required System.Collections.Generic.ICollection Names { get; set; } } /// @@ -168,6 +158,11 @@ public Elastic.Clients.Elasticsearch.Security.BulkDeleteRoleRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.BulkDeleteRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs index 26e501215ee..9ed467fcc6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs @@ -50,17 +50,11 @@ public BulkPutRoleRequest(System.Collections.Generic.IDictionary /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IDictionary Roles { get; set; } + public required System.Collections.Generic.IDictionary Roles { get; set; } } /// @@ -246,6 +236,11 @@ public Elastic.Clients.Elasticsearch.Security.BulkPutRoleRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.BulkPutRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -417,6 +412,11 @@ public Elastic.Clients.Elasticsearch.Security.BulkPutRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 7e2413e77e6..f016c6d1d3c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs @@ -63,17 +63,11 @@ public BulkUpdateApiKeysRequest(System.Collections.Generic.ICollection i { Ids = ids; } -#if NET7_0_OR_GREATER - public BulkUpdateApiKeysRequest() - { - } -#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 BulkUpdateApiKeysRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BulkUpdateApiKeysRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -102,11 +96,7 @@ internal BulkUpdateApiKeysRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The API key identifiers. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Ids { get; set; } + public required System.Collections.Generic.ICollection Ids { get; set; } /// /// @@ -408,6 +398,11 @@ public Elastic.Clients.Elasticsearch.Security.BulkUpdateApiKeysRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.BulkUpdateApiKeysRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -698,6 +693,11 @@ public Elastic.Clients.Elasticsearch.Security.BulkUpdateApiKeysRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.BulkUpdateApiKeysRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysResponse.g.cs index 74a075c6ae4..4445a872af8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysResponse.g.cs @@ -38,14 +38,6 @@ internal BulkUpdateApiKeysResponse(Elastic.Clients.Elasticsearch.Serialization.J } public Elastic.Clients.Elasticsearch.Security.BulkError? Errors { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Noops { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Updated { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Noops { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Updated { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs index 9ef5b9f3a67..3dc36bdcaa4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs @@ -47,16 +47,11 @@ public sealed partial class ChangePasswordRequest : Elastic.Clients.Elasticsearc public ChangePasswordRequest(Elastic.Clients.Elasticsearch.Username? username) : base(r => r.Optional("username", username)) { } -#if NET7_0_OR_GREATER - public ChangePasswordRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public ChangePasswordRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChangePasswordRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -202,6 +197,11 @@ public Elastic.Clients.Elasticsearch.Security.ChangePasswordRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.ChangePasswordRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs index f18ab4031e3..75f6623f231 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class ClearApiKeyCacheRequest : Elastic.Clients.Elasticsea public ClearApiKeyCacheRequest(Elastic.Clients.Elasticsearch.Ids ids) : base(r => r.Required("ids", ids)) { } -#if NET7_0_OR_GREATER + public ClearApiKeyCacheRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearApiKeyCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +69,7 @@ internal ClearApiKeyCacheRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Does not support other wildcard patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ids Ids { get => P("ids"); set => PR("ids", value); } + public required Elastic.Clients.Elasticsearch.Ids Ids { get => P("ids"); set => PR("ids", value); } } /// @@ -136,6 +132,11 @@ public Elastic.Clients.Elasticsearch.Security.ClearApiKeyCacheRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.ClearApiKeyCacheRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheResponse.g.cs index 00e7257828c..4bafb495c24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheResponse.g.cs @@ -37,19 +37,7 @@ internal ClearApiKeyCacheResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } } \ No newline at end of file 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 652fe694c78..0102e9c50bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs @@ -43,11 +43,11 @@ public sealed partial class ClearCachedPrivilegesRequest : Elastic.Clients.Elast public ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Names application) : base(r => r.Required("application", application)) { } -#if NET7_0_OR_GREATER + public ClearCachedPrivilegesRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +69,7 @@ internal ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Serializatio /// It does not support other wildcard patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Application { get => P("application"); set => PR("application", value); } + public required Elastic.Clients.Elasticsearch.Names Application { get => P("application"); set => PR("application", value); } } /// @@ -136,6 +132,11 @@ public Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.ClearCachedPrivilegesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesResponse.g.cs index c0ec4d5396a..36a492fcf55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesResponse.g.cs @@ -37,19 +37,7 @@ internal ClearCachedPrivilegesResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs index 66f76a08e60..bc16b3b8923 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class ClearCachedRealmsRequest : Elastic.Clients.Elasticse public ClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Names realms) : base(r => r.Required("realms", realms)) { } -#if NET7_0_OR_GREATER + public ClearCachedRealmsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,11 +81,7 @@ internal ClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// It does not support other wildcard patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Realms { get => P("realms"); set => PR("realms", value); } + public required Elastic.Clients.Elasticsearch.Names Realms { get => P("realms"); set => PR("realms", value); } /// /// @@ -185,6 +181,11 @@ public Elastic.Clients.Elasticsearch.Security.ClearCachedRealmsRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.ClearCachedRealmsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsResponse.g.cs index 8f23a174113..ba1d1295907 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsResponse.g.cs @@ -37,19 +37,7 @@ internal ClearCachedRealmsResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs index 873a0a5280f..555fb63ec57 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class ClearCachedRolesRequest : Elastic.Clients.Elasticsea public ClearCachedRolesRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public ClearCachedRolesRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearCachedRolesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +68,7 @@ internal ClearCachedRolesRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// It does not support other wildcard patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } } /// @@ -134,6 +130,11 @@ public Elastic.Clients.Elasticsearch.Security.ClearCachedRolesRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.ClearCachedRolesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesResponse.g.cs index b1173e49a37..f37b3e0d79f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesResponse.g.cs @@ -37,19 +37,7 @@ internal ClearCachedRolesResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs index 145f7326c93..a83498fcac8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs @@ -48,11 +48,11 @@ public sealed partial class ClearCachedServiceTokensRequest : Elastic.Clients.El public ClearCachedServiceTokensRequest(string @namespace, string service, Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("namespace", @namespace).Required("service", service).Required("name", name)) { } -#if NET7_0_OR_GREATER + public ClearCachedServiceTokensRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearCachedServiceTokensRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,33 +74,21 @@ internal ClearCachedServiceTokensRequest(Elastic.Clients.Elasticsearch.Serializa /// It does not support other wildcard patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// /// The namespace, which is a top-level grouping of service accounts. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Namespace { get => P("namespace"); set => PR("namespace", value); } + public required string Namespace { get => P("namespace"); set => PR("namespace", value); } /// /// /// The name of the service, which must be unique within its namespace. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get => P("service"); set => PR("service", value); } + public required string Service { get => P("service"); set => PR("service", value); } } /// @@ -190,6 +178,11 @@ public Elastic.Clients.Elasticsearch.Security.ClearCachedServiceTokensRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.ClearCachedServiceTokensRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensResponse.g.cs index 928e498b403..dd05118887e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensResponse.g.cs @@ -37,19 +37,7 @@ internal ClearCachedServiceTokensResponse(Elastic.Clients.Elasticsearch.Serializ _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } + public required string ClusterName { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs index 22a6e3793f3..e9307538f88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs @@ -59,16 +59,10 @@ public sealed partial class CreateApiKeyRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.CreateApiKeyRequestConverter))] public sealed partial class CreateApiKeyRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public CreateApiKeyRequest() { } -#endif -#if !NET7_0_OR_GREATER - public CreateApiKeyRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -417,6 +411,11 @@ public Elastic.Clients.Elasticsearch.Security.CreateApiKeyRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.CreateApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -715,6 +714,11 @@ public Elastic.Clients.Elasticsearch.Security.CreateApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyResponse.g.cs index d428bfd1e1a..79863984834 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyResponse.g.cs @@ -42,11 +42,7 @@ internal CreateApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Generated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -55,11 +51,7 @@ internal CreateApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// by a colon (:). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Encoded { get; set; } + public required string Encoded { get; set; } /// /// @@ -73,20 +65,12 @@ internal CreateApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Unique ID for this API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// Specifies the name for this API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyRequest.g.cs index f4c81b3c4b1..420ec47a763 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyRequest.g.cs @@ -64,17 +64,11 @@ public CreateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Security.Ac Access = access; Name = name; } -#if NET7_0_OR_GREATER - public CreateCrossClusterApiKeyRequest() - { - } -#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 CreateCrossClusterApiKeyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -100,11 +94,7 @@ internal CreateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Serializa /// The creation process automatically converts the access specification to a role descriptor which has relevant privileges assigned accordingly. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.Access Access { get; set; } + public required Elastic.Clients.Elasticsearch.Security.Access Access { get; set; } /// /// @@ -137,11 +127,7 @@ internal CreateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Serializa /// Specifies the name for this API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get; set; } + public required Elastic.Clients.Elasticsearch.Name Name { get; set; } } /// @@ -354,6 +340,11 @@ public Elastic.Clients.Elasticsearch.Security.CreateCrossClusterApiKeyRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.CreateCrossClusterApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -584,6 +575,11 @@ public Elastic.Clients.Elasticsearch.Security.CreateCrossClusterApiKeyRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.CreateCrossClusterApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyResponse.g.cs index 3f672edcedf..c56cfda57aa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyResponse.g.cs @@ -42,11 +42,7 @@ internal CreateCrossClusterApiKeyResponse(Elastic.Clients.Elasticsearch.Serializ /// Generated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -55,11 +51,7 @@ internal CreateCrossClusterApiKeyResponse(Elastic.Clients.Elasticsearch.Serializ /// by a colon (:). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Encoded { get; set; } + public required string Encoded { get; set; } /// /// @@ -73,20 +65,12 @@ internal CreateCrossClusterApiKeyResponse(Elastic.Clients.Elasticsearch.Serializ /// Unique ID for this API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// Specifies the name for this API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs index 5e4999fbe48..7a1c490ccfc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs @@ -57,11 +57,11 @@ public CreateServiceTokenRequest(string @namespace, string service, Elastic.Clie public CreateServiceTokenRequest(string @namespace, string service) : base(r => r.Required("namespace", @namespace).Required("service", service)) { } -#if NET7_0_OR_GREATER + public CreateServiceTokenRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateServiceTokenRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -97,22 +97,14 @@ internal CreateServiceTokenRequest(Elastic.Clients.Elasticsearch.Serialization.J /// The name of the namespace, which is a top-level grouping of service accounts. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Namespace { get => P("namespace"); set => PR("namespace", value); } + public required string Namespace { get => P("namespace"); set => PR("namespace", value); } /// /// /// The name of the service. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get => P("service"); set => PR("service", value); } + public required string Service { get => P("service"); set => PR("service", value); } /// /// @@ -230,6 +222,11 @@ public Elastic.Clients.Elasticsearch.Security.CreateServiceTokenRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.CreateServiceTokenRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenResponse.g.cs index cb68b7ac912..b6f98c358ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenResponse.g.cs @@ -37,14 +37,6 @@ internal CreateServiceTokenResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Created { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Security.ServiceToken Token { get; set; } + public required bool Created { get; set; } + public required Elastic.Clients.Elasticsearch.Security.ServiceToken Token { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiRequest.g.cs index 95eca19b537..f6187444377 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiRequest.g.cs @@ -53,17 +53,11 @@ public DelegatePkiRequest(System.Collections.Generic.ICollection x509Cer { X509CertificateChain = x509CertificateChain; } -#if NET7_0_OR_GREATER - public DelegatePkiRequest() - { - } -#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 DelegatePkiRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DelegatePkiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -88,11 +82,7 @@ internal DelegatePkiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// This may be followed by additional certificates; each subsequent certificate is used to certify the previous one. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection X509CertificateChain { get; set; } + public required System.Collections.Generic.ICollection X509CertificateChain { get; set; } } /// @@ -177,6 +167,11 @@ public Elastic.Clients.Elasticsearch.Security.DelegatePkiRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.DelegatePkiRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiResponse.g.cs index ea872f0983b..61f74dd5e4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiResponse.g.cs @@ -42,11 +42,7 @@ internal DelegatePkiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// An access token associated with the subject distinguished name of the client's certificate. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string AccessToken { get; set; } + public required string AccessToken { get; set; } public Elastic.Clients.Elasticsearch.Security.Authentication? Authentication { get; set; } /// @@ -54,20 +50,12 @@ internal DelegatePkiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The amount of time (in seconds) before the token expires. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long ExpiresIn { get; set; } + public required long ExpiresIn { get; set; } /// /// /// The type of token. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs index 3125ea9d04a..a3f497a420a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs @@ -60,11 +60,11 @@ public sealed partial class DeletePrivilegesRequest : Elastic.Clients.Elasticsea public DeletePrivilegesRequest(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("application", application).Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeletePrivilegesRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeletePrivilegesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,22 +85,14 @@ internal DeletePrivilegesRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Application privileges are always associated with exactly one application. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Application { get => P("application"); set => PR("application", value); } + public required Elastic.Clients.Elasticsearch.Name Application { get => P("application"); set => PR("application", value); } /// /// /// The name of the privilege. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("name"); set => PR("name", value); } /// /// @@ -202,6 +194,11 @@ public Elastic.Clients.Elasticsearch.Security.DeletePrivilegesRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.DeletePrivilegesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesResponse.g.cs index c148f2ab099..c7d1d61953b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesResponse.g.cs @@ -37,9 +37,5 @@ internal DeletePrivilegesResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary> Result { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Result { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs index 4d6b0d6fda7..4dfb096db55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class DeleteRoleMappingRequest : Elastic.Clients.Elasticse public DeleteRoleMappingRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteRoleMappingRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteRoleMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -75,11 +75,7 @@ internal DeleteRoleMappingRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -160,6 +156,11 @@ public Elastic.Clients.Elasticsearch.Security.DeleteRoleMappingRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.DeleteRoleMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs index b852d6c6563..8a8ee1f6929 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs @@ -43,9 +43,5 @@ internal DeleteRoleMappingResponse(Elastic.Clients.Elasticsearch.Serialization.J /// Otherwise, found is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs index cdc331114bd..d3278291963 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class DeleteRoleRequest : Elastic.Clients.Elasticsearch.Re public DeleteRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteRoleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteRoleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal DeleteRoleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The name of the role. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -158,6 +154,11 @@ public Elastic.Clients.Elasticsearch.Security.DeleteRoleRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.DeleteRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleResponse.g.cs index 5cbef624939..1770492d8ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleResponse.g.cs @@ -43,9 +43,5 @@ internal DeleteRoleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Otherwise, found is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs index 298068e7250..0168c3fc52c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs @@ -48,11 +48,11 @@ public sealed partial class DeleteServiceTokenRequest : Elastic.Clients.Elastics public DeleteServiceTokenRequest(string @namespace, string service, Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("namespace", @namespace).Required("service", service).Required("name", name)) { } -#if NET7_0_OR_GREATER + public DeleteServiceTokenRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteServiceTokenRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -72,33 +72,21 @@ internal DeleteServiceTokenRequest(Elastic.Clients.Elasticsearch.Serialization.J /// The name of the service account token. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// /// The namespace, which is a top-level grouping of service accounts. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Namespace { get => P("namespace"); set => PR("namespace", value); } + public required string Namespace { get => P("namespace"); set => PR("namespace", value); } /// /// /// The service name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get => P("service"); set => PR("service", value); } + public required string Service { get => P("service"); set => PR("service", value); } /// /// @@ -198,6 +186,11 @@ public Elastic.Clients.Elasticsearch.Security.DeleteServiceTokenRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.DeleteServiceTokenRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs index a7b025b22f1..6cbc9b3a2bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs @@ -43,9 +43,5 @@ internal DeleteServiceTokenResponse(Elastic.Clients.Elasticsearch.Serialization. /// Otherwise, the response will have status code 404 and found is set to false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs index dc86c161f10..e35b822c9e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs @@ -48,11 +48,11 @@ public sealed partial class DeleteUserRequest : Elastic.Clients.Elasticsearch.Re public DeleteUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) { } -#if NET7_0_OR_GREATER + public DeleteUserRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -72,11 +72,7 @@ internal DeleteUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// An identifier for the user. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Username Username { get => P("username"); set => PR("username", value); } + public required Elastic.Clients.Elasticsearch.Username Username { get => P("username"); set => PR("username", value); } /// /// @@ -154,6 +150,11 @@ public Elastic.Clients.Elasticsearch.Security.DeleteUserRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.DeleteUserRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserResponse.g.cs index 64f4d16ca1e..eaf8f4e0b18 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserResponse.g.cs @@ -43,9 +43,5 @@ internal DeleteUserResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Otherwise, found is set to false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs index d20fb9c4cd7..052fcc7cf50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs @@ -59,11 +59,11 @@ public sealed partial class DisableUserProfileRequest : Elastic.Clients.Elastics public DisableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) { } -#if NET7_0_OR_GREATER + public DisableUserProfileRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DisableUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,11 +83,7 @@ internal DisableUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization.J /// Unique identifier for the user profile. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Uid { get => P("uid"); set => PR("uid", value); } + public required string Uid { get => P("uid"); set => PR("uid", value); } /// /// @@ -178,6 +174,11 @@ public Elastic.Clients.Elasticsearch.Security.DisableUserProfileRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.DisableUserProfileRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileResponse.g.cs index 7118ac5b9ce..e6e0382b647 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileResponse.g.cs @@ -42,9 +42,5 @@ internal DisableUserProfileResponse(Elastic.Clients.Elasticsearch.Serialization. /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs index 9c571f37480..cf5baef6328 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class DisableUserRequest : Elastic.Clients.Elasticsearch.R public DisableUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) { } -#if NET7_0_OR_GREATER + public DisableUserRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DisableUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal DisableUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// An identifier for the user. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Username Username { get => P("username"); set => PR("username", value); } + public required Elastic.Clients.Elasticsearch.Username Username { get => P("username"); set => PR("username", value); } /// /// @@ -158,6 +154,11 @@ public Elastic.Clients.Elasticsearch.Security.DisableUserRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.DisableUserRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs index 1bc3b2964a8..6296b6090a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs @@ -60,11 +60,11 @@ public sealed partial class EnableUserProfileRequest : Elastic.Clients.Elasticse public EnableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) { } -#if NET7_0_OR_GREATER + public EnableUserProfileRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EnableUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,11 +84,7 @@ internal EnableUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// A unique identifier for the user profile. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Uid { get => P("uid"); set => PR("uid", value); } + public required string Uid { get => P("uid"); set => PR("uid", value); } /// /// @@ -181,6 +177,11 @@ public Elastic.Clients.Elasticsearch.Security.EnableUserProfileRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.EnableUserProfileRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileResponse.g.cs index 445a66797f4..a8406b96ce5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileResponse.g.cs @@ -42,9 +42,5 @@ internal EnableUserProfileResponse(Elastic.Clients.Elasticsearch.Serialization.J /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs index 2164a212b8d..c9863338b32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs @@ -49,11 +49,11 @@ public sealed partial class EnableUserRequest : Elastic.Clients.Elasticsearch.Re public EnableUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) { } -#if NET7_0_OR_GREATER + public EnableUserRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EnableUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -73,11 +73,7 @@ internal EnableUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// An identifier for the user. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Username Username { get => P("username"); set => PR("username", value); } + public required Elastic.Clients.Elasticsearch.Username Username { get => P("username"); set => PR("username", value); } /// /// @@ -156,6 +152,11 @@ public Elastic.Clients.Elasticsearch.Security.EnableUserRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.EnableUserRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs index 9b37fcf5283..578526580d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs @@ -42,16 +42,10 @@ public sealed partial class EnrollKibanaRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.EnrollKibanaRequestConverter))] public sealed partial class EnrollKibanaRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public EnrollKibanaRequest() { } -#endif -#if !NET7_0_OR_GREATER - public EnrollKibanaRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EnrollKibanaRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -116,6 +110,11 @@ public Elastic.Clients.Elasticsearch.Security.EnrollKibanaRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Security.EnrollKibanaRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaResponse.g.cs index 29a4ffa4c69..558bb5321f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaResponse.g.cs @@ -43,14 +43,6 @@ internal EnrollKibanaResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The certificate is returned as a Base64 encoded string of the ASN.1 DER encoding of the certificate. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string HttpCa { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.KibanaToken Token { get; set; } + public required string HttpCa { get; set; } + public required Elastic.Clients.Elasticsearch.Security.KibanaToken Token { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs index 981333d912d..746c91dd155 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs @@ -42,16 +42,10 @@ public sealed partial class EnrollNodeRequestParameters : Elastic.Transport.Requ [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.EnrollNodeRequestConverter))] public sealed partial class EnrollNodeRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public EnrollNodeRequest() { } -#endif -#if !NET7_0_OR_GREATER - public EnrollNodeRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EnrollNodeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -116,6 +110,11 @@ public Elastic.Clients.Elasticsearch.Security.EnrollNodeRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Security.EnrollNodeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeResponse.g.cs index 6a44726ca43..cfc7111ad70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeResponse.g.cs @@ -42,64 +42,40 @@ internal EnrollNodeResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The CA certificate that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string HttpCaCert { get; set; } + public required string HttpCaCert { get; set; } /// /// /// The CA private key that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string HttpCaKey { get; set; } + public required string HttpCaKey { get; set; } /// /// /// A list of transport addresses in the form of host:port for the nodes that are already members of the cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection NodesAddresses { get; set; } + public required System.Collections.Generic.IReadOnlyCollection NodesAddresses { get; set; } /// /// /// The CA certificate that is used to sign the TLS certificate for the transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string TransportCaCert { get; set; } + public required string TransportCaCert { get; set; } /// /// /// The certificate that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string TransportCert { get; set; } + public required string TransportCert { get; set; } /// /// /// The private key that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string TransportKey { get; set; } + public required string TransportKey { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs index d8be0df5072..5bdb4a08078 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs @@ -104,16 +104,10 @@ public sealed partial class GetApiKeyRequestParameters : Elastic.Transport.Reque [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.GetApiKeyRequestConverter))] public sealed partial class GetApiKeyRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetApiKeyRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetApiKeyRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -338,6 +332,11 @@ public Elastic.Clients.Elasticsearch.Security.GetApiKeyRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyResponse.g.cs index f90839ab1bb..87ee7d5cb17 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyResponse.g.cs @@ -37,9 +37,5 @@ internal GetApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection ApiKeys { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ApiKeys { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs index 0b2729af905..68cdd911bc5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class GetBuiltinPrivilegesRequestParameters : Elastic.Tran [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.GetBuiltinPrivilegesRequestConverter))] public sealed partial class GetBuiltinPrivilegesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetBuiltinPrivilegesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetBuiltinPrivilegesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetBuiltinPrivilegesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.Security.GetBuiltinPrivilegesRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Security.GetBuiltinPrivilegesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.Converters.g.cs index d8a89dc7942..5e0c9721ad6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.Converters.g.cs @@ -34,7 +34,7 @@ public override Elastic.Clients.Elasticsearch.Security.GetBuiltinPrivilegesRespo reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue> propCluster = default; LocalJsonValue> propIndex = default; - LocalJsonValue> propRemoteCluster = default; + LocalJsonValue?> propRemoteCluster = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { if (propCluster.TryReadProperty(ref reader, options, PropCluster, static System.Collections.Generic.IReadOnlyCollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null)!)) @@ -47,7 +47,7 @@ public override Elastic.Clients.Elasticsearch.Security.GetBuiltinPrivilegesRespo continue; } - if (propRemoteCluster.TryReadProperty(ref reader, options, PropRemoteCluster, static System.Collections.Generic.IReadOnlyCollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null)!)) + if (propRemoteCluster.TryReadProperty(ref reader, options, PropRemoteCluster, static System.Collections.Generic.IReadOnlyCollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) { continue; } @@ -75,7 +75,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropCluster, value.Cluster, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection v) => w.WriteCollectionValue(o, v, null)); writer.WriteProperty(options, PropIndex, value.Index, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection v) => w.WriteCollectionValue(o, v, null)); - writer.WriteProperty(options, PropRemoteCluster, value.RemoteCluster, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropRemoteCluster, value.RemoteCluster, 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/Security/GetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs index 83e76c82022..67f8d3cc648 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs @@ -42,31 +42,19 @@ internal GetBuiltinPrivilegesResponse(Elastic.Clients.Elasticsearch.Serializatio /// The list of cluster privileges that are understood by this version of Elasticsearch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Cluster { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Cluster { get; set; } /// /// /// The list of index privileges that are understood by this version of Elasticsearch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Index { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Index { get; set; } /// /// /// The list of remote_cluster privileges that are understood by this version of Elasticsearch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection RemoteCluster { get; set; } + public System.Collections.Generic.IReadOnlyCollection? RemoteCluster { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs index 75da2124c0c..410ace78fca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs @@ -57,16 +57,11 @@ public GetPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? application) : b public GetPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("application", application).Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetPrivilegesRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetPrivilegesRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetPrivilegesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -191,6 +186,11 @@ public Elastic.Clients.Elasticsearch.Security.GetPrivilegesRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetPrivilegesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesResponse.g.cs index 72838f26fc5..49dad4281c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesResponse.g.cs @@ -37,9 +37,5 @@ internal GetPrivilegesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary> Privileges { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Privileges { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs index b6637be2221..523f037e055 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs @@ -43,16 +43,11 @@ public sealed partial class GetRoleMappingRequest : Elastic.Clients.Elasticsearc public GetRoleMappingRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetRoleMappingRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetRoleMappingRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRoleMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -138,6 +133,11 @@ public Elastic.Clients.Elasticsearch.Security.GetRoleMappingRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetRoleMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingResponse.g.cs index 9a5fd203af1..d87fe9f1c7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingResponse.g.cs @@ -37,9 +37,5 @@ internal GetRoleMappingResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary RoleMappings { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary RoleMappings { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs index 09388a11256..83d83324af8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs @@ -43,16 +43,11 @@ public sealed partial class GetRoleRequest : Elastic.Clients.Elasticsearch.Reque public GetRoleRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) { } -#if NET7_0_OR_GREATER - public GetRoleRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetRoleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRoleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -142,6 +137,11 @@ public Elastic.Clients.Elasticsearch.Security.GetRoleRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleResponse.g.cs index 121bc402f1a..6bda2049269 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleResponse.g.cs @@ -37,9 +37,5 @@ internal GetRoleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Roles { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Roles { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsRequest.g.cs index c4f7ed7fa04..376ce347563 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsRequest.g.cs @@ -59,16 +59,10 @@ public sealed partial class GetSecuritySettingsRequestParameters : Elastic.Trans [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.GetSecuritySettingsRequestConverter))] public sealed partial class GetSecuritySettingsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetSecuritySettingsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetSecuritySettingsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSecuritySettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -163,6 +157,11 @@ public Elastic.Clients.Elasticsearch.Security.GetSecuritySettingsRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetSecuritySettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsResponse.g.cs index 435de25e5b3..d8b361eb7de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsResponse.g.cs @@ -42,31 +42,19 @@ internal GetSecuritySettingsResponse(Elastic.Clients.Elasticsearch.Serialization /// Settings for the index used for most security configuration, including native realm users and roles configured with the API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.SecuritySettings Security { get; set; } + public required Elastic.Clients.Elasticsearch.Security.SecuritySettings Security { get; set; } /// /// /// Settings for the index used to store profile information. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.SecuritySettings SecurityProfile { get; set; } + public required Elastic.Clients.Elasticsearch.Security.SecuritySettings SecurityProfile { get; set; } /// /// /// Settings for the index used to store tokens. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.SecuritySettings SecurityTokens { get; set; } + public required Elastic.Clients.Elasticsearch.Security.SecuritySettings SecurityTokens { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs index 9c9a56fdac4..2a137a41360 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs @@ -48,16 +48,11 @@ public GetServiceAccountsRequest(string? @namespace, string? service) : base(r = public GetServiceAccountsRequest(string? @namespace) : base(r => r.Optional("namespace", @namespace)) { } -#if NET7_0_OR_GREATER - public GetServiceAccountsRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetServiceAccountsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetServiceAccountsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -173,6 +168,11 @@ public Elastic.Clients.Elasticsearch.Security.GetServiceAccountsRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetServiceAccountsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsResponse.g.cs index 7049d4d90f3..4b60e4a340b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsResponse.g.cs @@ -37,9 +37,5 @@ internal GetServiceAccountsResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary ServiceAccoutns { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary ServiceAccoutns { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs index a839b1c80ff..6a5d225e0d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs @@ -49,11 +49,11 @@ public sealed partial class GetServiceCredentialsRequest : Elastic.Clients.Elast public GetServiceCredentialsRequest(string @namespace, Elastic.Clients.Elasticsearch.Name service) : base(r => r.Required("namespace", @namespace).Required("service", service)) { } -#if NET7_0_OR_GREATER + public GetServiceCredentialsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetServiceCredentialsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -73,22 +73,14 @@ internal GetServiceCredentialsRequest(Elastic.Clients.Elasticsearch.Serializatio /// The name of the namespace. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Namespace { get => P("namespace"); set => PR("namespace", value); } + public required string Namespace { get => P("namespace"); set => PR("namespace", value); } /// /// /// The service name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Service { get => P("service"); set => PR("service", value); } + public required Elastic.Clients.Elasticsearch.Name Service { get => P("service"); set => PR("service", value); } } /// @@ -166,6 +158,11 @@ public Elastic.Clients.Elasticsearch.Security.GetServiceCredentialsRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetServiceCredentialsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs index 03b79e1256a..2dbb4362a31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs @@ -37,30 +37,14 @@ internal GetServiceCredentialsResponse(Elastic.Clients.Elasticsearch.Serializati _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -int Count { get; set; } + public required int Count { get; set; } /// /// /// Service account credentials collected from all nodes of the cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.NodesCredentials NodesCredentials { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ServiceAccount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary> Tokens { get; set; } + public required Elastic.Clients.Elasticsearch.Security.NodesCredentials NodesCredentials { get; set; } + public required string ServiceAccount { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Tokens { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.g.cs index caabbeef7ab..1941fa0ea4e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class GetStatsRequestParameters : Elastic.Transport.Reques [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.GetStatsRequestConverter))] public sealed partial class GetStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetStatsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetStatsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.g.cs index 099cfc9904c..aacee14600e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.g.cs @@ -42,9 +42,5 @@ internal GetStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// A map of node IDs to security statistics for that node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs index 11ce3d5c999..02fec33efb1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs @@ -52,16 +52,10 @@ public sealed partial class GetTokenRequestParameters : Elastic.Transport.Reques [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.GetTokenRequestConverter))] public sealed partial class GetTokenRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetTokenRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetTokenRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetTokenRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -264,6 +258,11 @@ public Elastic.Clients.Elasticsearch.Security.GetTokenRequestDescriptor ErrorTra return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetTokenRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenResponse.g.cs index cd6cbb9d721..328668219b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenResponse.g.cs @@ -37,27 +37,11 @@ internal GetTokenResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string AccessToken { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Security.AuthenticatedUser Authentication { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long ExpiresIn { get; set; } + public required string AccessToken { get; set; } + public required Elastic.Clients.Elasticsearch.Security.AuthenticatedUser Authentication { get; set; } + public required long ExpiresIn { get; set; } public string? KerberosAuthenticationResponseToken { get; set; } public string? RefreshToken { get; set; } public string? Scope { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs index 3dc247c9173..67d84b120a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs @@ -41,16 +41,10 @@ public sealed partial class GetUserPrivilegesRequestParameters : Elastic.Transpo [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.GetUserPrivilegesRequestConverter))] public sealed partial class GetUserPrivilegesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetUserPrivilegesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetUserPrivilegesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetUserPrivilegesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -114,6 +108,11 @@ public Elastic.Clients.Elasticsearch.Security.GetUserPrivilegesRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.Security.GetUserPrivilegesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs index 2bf77db1604..bd2043c937a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs @@ -37,31 +37,11 @@ internal GetUserPrivilegesResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Applications { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Cluster { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Global { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Applications { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Cluster { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Global { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } public System.Collections.Generic.IReadOnlyCollection? RemoteCluster { get; set; } public System.Collections.Generic.IReadOnlyCollection? RemoteIndices { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection RunAs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection RunAs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs index e1cd09c54fe..670dffbc843 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs @@ -56,11 +56,11 @@ public sealed partial class GetUserProfileRequest : Elastic.Clients.Elasticsearc public GetUserProfileRequest(System.Collections.Generic.ICollection uid) : base(r => r.Required("uid", uid)) { } -#if NET7_0_OR_GREATER + public GetUserProfileRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +80,7 @@ internal GetUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// A unique identifier for the user profile. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Uid { get => P>("uid"); set => PR("uid", value); } + public required System.Collections.Generic.ICollection Uid { get => P>("uid"); set => PR("uid", value); } /// /// @@ -198,6 +194,11 @@ public Elastic.Clients.Elasticsearch.Security.GetUserProfileRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetUserProfileRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileResponse.g.cs index 76c71ae3e6e..6aaba34101a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileResponse.g.cs @@ -46,9 +46,5 @@ internal GetUserProfileResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The content of the data field is not returned by default to avoid deserializing a potential large payload. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Profiles { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Profiles { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs index 494f06aeae0..155adb10918 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs @@ -47,16 +47,11 @@ public sealed partial class GetUserRequest : Elastic.Clients.Elasticsearch.Reque public GetUserRequest(System.Collections.Generic.ICollection? username) : base(r => r.Optional("username", username)) { } -#if NET7_0_OR_GREATER - public GetUserRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetUserRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -169,6 +164,11 @@ public Elastic.Clients.Elasticsearch.Security.GetUserRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GetUserRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserResponse.g.cs index 8705fd6a91f..f8deaefeabf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserResponse.g.cs @@ -37,9 +37,5 @@ internal GetUserResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Users { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Users { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs index 66c2b150a4a..097f479ed55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs @@ -89,17 +89,11 @@ public GrantApiKeyRequest(Elastic.Clients.Elasticsearch.Security.GrantApiKey api ApiKey = apiKey; GrantType = grantType; } -#if NET7_0_OR_GREATER - public GrantApiKeyRequest() - { - } -#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 GrantApiKeyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GrantApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -138,22 +132,14 @@ internal GrantApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.GrantApiKey ApiKey { get; set; } + public required Elastic.Clients.Elasticsearch.Security.GrantApiKey ApiKey { get; set; } /// /// /// The type of grant. Supported grant types are: access_token, password. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.ApiKeyGrantType GrantType { get; set; } + public required Elastic.Clients.Elasticsearch.Security.ApiKeyGrantType GrantType { get; set; } /// /// @@ -365,6 +351,11 @@ public Elastic.Clients.Elasticsearch.Security.GrantApiKeyRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.GrantApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -575,6 +566,11 @@ public Elastic.Clients.Elasticsearch.Security.GrantApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyResponse.g.cs index 58257a3aa03..09b84041627 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyResponse.g.cs @@ -37,25 +37,9 @@ internal GrantApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string ApiKey { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Encoded { get; set; } + public required string ApiKey { get; set; } + public required string Encoded { get; set; } public System.DateTimeOffset? Expiration { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Id { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Name { get; set; } + public required string Id { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs index 6ced7e74f46..07efc7a4732 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs @@ -43,16 +43,11 @@ public sealed partial class HasPrivilegesRequest : Elastic.Clients.Elasticsearch public HasPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? user) : base(r => r.Optional("user", user)) { } -#if NET7_0_OR_GREATER - public HasPrivilegesRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public HasPrivilegesRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HasPrivilegesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -217,6 +212,11 @@ public Elastic.Clients.Elasticsearch.Security.HasPrivilegesRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.HasPrivilegesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesResponse.g.cs index d3aca814bf2..a3cdecd527c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesResponse.g.cs @@ -37,29 +37,9 @@ internal HasPrivilegesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary>> Application { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Cluster { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool HasAllRequested { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary> Index { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Username { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary>> Application { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Cluster { get; set; } + public required bool HasAllRequested { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Index { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs index a74ef791130..fce8c9a314c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs @@ -48,17 +48,11 @@ public HasPrivilegesUserProfileRequest(Elastic.Clients.Elasticsearch.Security.Pr Privileges = privileges; Uids = uids; } -#if NET7_0_OR_GREATER - public HasPrivilegesUserProfileRequest() - { - } -#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 HasPrivilegesUserProfileRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HasPrivilegesUserProfileRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -78,22 +72,14 @@ internal HasPrivilegesUserProfileRequest(Elastic.Clients.Elasticsearch.Serializa /// An object containing all the privileges to be checked. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.PrivilegesCheck Privileges { get; set; } + public required Elastic.Clients.Elasticsearch.Security.PrivilegesCheck Privileges { get; set; } /// /// /// A list of profile IDs. The privileges are checked for associated users of the profiles. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Uids { get; set; } + public required System.Collections.Generic.ICollection Uids { get; set; } } /// @@ -195,6 +181,11 @@ public Elastic.Clients.Elasticsearch.Security.HasPrivilegesUserProfileRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.HasPrivilegesUserProfileRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileResponse.g.cs index 2869acd74d2..d3f3e7fc1fb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileResponse.g.cs @@ -53,9 +53,5 @@ internal HasPrivilegesUserProfileResponse(Elastic.Clients.Elasticsearch.Serializ /// have all the requested privileges. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection HasPrivilegeUids { get; set; } + public required System.Collections.Generic.IReadOnlyCollection HasPrivilegeUids { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs index 52663a95c0a..4ddf1bd1a2e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs @@ -63,16 +63,10 @@ public sealed partial class InvalidateApiKeyRequestParameters : Elastic.Transpor [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.InvalidateApiKeyRequestConverter))] public sealed partial class InvalidateApiKeyRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public InvalidateApiKeyRequest() { } -#endif -#if !NET7_0_OR_GREATER - public InvalidateApiKeyRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InvalidateApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -284,6 +278,11 @@ public Elastic.Clients.Elasticsearch.Security.InvalidateApiKeyRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.InvalidateApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs index f7b6c340c64..80232b83600 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs @@ -42,11 +42,7 @@ internal InvalidateApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The number of errors that were encountered when invalidating the API keys. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ErrorCount { get; set; } + public required int ErrorCount { get; set; } /// /// @@ -61,20 +57,12 @@ internal InvalidateApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The IDs of the API keys that were invalidated as part of this request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection InvalidatedApiKeys { get; set; } + public required System.Collections.Generic.IReadOnlyCollection InvalidatedApiKeys { get; set; } /// /// /// The IDs of the API keys that were already invalidated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection PreviouslyInvalidatedApiKeys { get; set; } + public required System.Collections.Generic.IReadOnlyCollection PreviouslyInvalidatedApiKeys { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs index 654809a67ed..cb811734cbe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs @@ -50,16 +50,10 @@ public sealed partial class InvalidateTokenRequestParameters : Elastic.Transport [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.InvalidateTokenRequestConverter))] public sealed partial class InvalidateTokenRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public InvalidateTokenRequest() { } -#endif -#if !NET7_0_OR_GREATER - public InvalidateTokenRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InvalidateTokenRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -212,6 +206,11 @@ public Elastic.Clients.Elasticsearch.Security.InvalidateTokenRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.InvalidateTokenRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenResponse.g.cs index 92cf8e9543e..8543d77ac6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenResponse.g.cs @@ -42,11 +42,7 @@ internal InvalidateTokenResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The number of errors that were encountered when invalidating the tokens. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long ErrorCount { get; set; } + public required long ErrorCount { get; set; } /// /// @@ -61,20 +57,12 @@ internal InvalidateTokenResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The number of the tokens that were invalidated as part of this request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long InvalidatedTokens { get; set; } + public required long InvalidatedTokens { get; set; } /// /// /// The number of tokens that were already invalidated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long PreviouslyInvalidatedTokens { get; set; } + public required long PreviouslyInvalidatedTokens { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateRequest.g.cs index a018064260c..af0e42058b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateRequest.g.cs @@ -49,17 +49,11 @@ public OidcAuthenticateRequest(string nonce, string redirectUri, string state) RedirectUri = redirectUri; State = state; } -#if NET7_0_OR_GREATER - public OidcAuthenticateRequest() - { - } -#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 OidcAuthenticateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OidcAuthenticateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +74,7 @@ internal OidcAuthenticateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// This value needs to be the same as the one that was provided to the /_security/oidc/prepare API or the one that was generated by Elasticsearch and included in the response to that call. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Nonce { get; set; } + public required string Nonce { get; set; } /// /// @@ -100,11 +90,7 @@ internal OidcAuthenticateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// This URL must be provided as-is (URL encoded), taken from the body of the response or as the value of a location header in the response from the OpenID Connect Provider. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RedirectUri { get; set; } + public required string RedirectUri { get; set; } /// /// @@ -112,11 +98,7 @@ internal OidcAuthenticateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// This value needs to be the same as the one that was provided to the /_security/oidc/prepare API or the one that was generated by Elasticsearch and included in the response to that call. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string State { get; set; } + public required string State { get; set; } } /// @@ -211,6 +193,11 @@ public Elastic.Clients.Elasticsearch.Security.OidcAuthenticateRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.OidcAuthenticateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateResponse.g.cs index 16de08dd460..7e64c858f48 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateResponse.g.cs @@ -42,42 +42,26 @@ internal OidcAuthenticateResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The Elasticsearch access token. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string AccessToken { get; set; } + public required string AccessToken { get; set; } /// /// /// The duration (in seconds) of the tokens. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ExpiresIn { get; set; } + public required int ExpiresIn { get; set; } /// /// /// The Elasticsearch refresh token. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RefreshToken { get; set; } + public required string RefreshToken { get; set; } /// /// /// The type of token. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs index 183883d6e43..1b3c3273c94 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs @@ -50,17 +50,11 @@ public OidcLogoutRequest(string token) { Token = token; } -#if NET7_0_OR_GREATER - public OidcLogoutRequest() - { - } -#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 OidcLogoutRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OidcLogoutRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,11 +81,7 @@ internal OidcLogoutRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The access token to be invalidated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Token { get; set; } + public required string Token { get; set; } } /// @@ -163,6 +153,11 @@ public Elastic.Clients.Elasticsearch.Security.OidcLogoutRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.OidcLogoutRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutResponse.g.cs index d0c2f5a5110..4f3d0fb1e86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutResponse.g.cs @@ -42,9 +42,5 @@ internal OidcLogoutResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// A URI that points to the end session endpoint of the OpenID Connect Provider with all the parameters of the logout request as HTTP GET parameters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Redirect { get; set; } + public required string Redirect { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationRequest.g.cs index 24c48d6869e..2977e5b5a82 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationRequest.g.cs @@ -45,16 +45,10 @@ public sealed partial class OidcPrepareAuthenticationRequestParameters : Elastic [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.OidcPrepareAuthenticationRequestConverter))] public sealed partial class OidcPrepareAuthenticationRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public OidcPrepareAuthenticationRequest() { } -#endif -#if !NET7_0_OR_GREATER - public OidcPrepareAuthenticationRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OidcPrepareAuthenticationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -226,6 +220,11 @@ public Elastic.Clients.Elasticsearch.Security.OidcPrepareAuthenticationRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.OidcPrepareAuthenticationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationResponse.g.cs index 6c178764555..572bb82cf40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationResponse.g.cs @@ -37,30 +37,14 @@ internal OidcPrepareAuthenticationResponse(Elastic.Clients.Elasticsearch.Seriali _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string Nonce { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Realm { get; set; } + public required string Nonce { get; set; } + public required string Realm { get; set; } /// /// /// A URI that points to the authorization endpoint of the OpenID Connect Provider with all the parameters of the authentication request as HTTP GET parameters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Redirect { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string State { get; set; } + public required string Redirect { get; set; } + public required string State { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs index 15679a717de..1f76e9baf08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs @@ -102,17 +102,11 @@ public PutPrivilegesRequest(System.Collections.Generic.IDictionary /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IDictionary> Privileges { get; set; } + public required System.Collections.Generic.IDictionary> Privileges { get; set; } } /// @@ -283,6 +273,11 @@ public Elastic.Clients.Elasticsearch.Security.PutPrivilegesRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.PutPrivilegesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesResponse.g.cs index 602716f3035..d0ec8f10e2f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesResponse.g.cs @@ -37,9 +37,5 @@ internal PutPrivilegesResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary> Result { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Result { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs index 130461fe39b..239577e7529 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs @@ -78,11 +78,11 @@ public sealed partial class PutRoleMappingRequest : Elastic.Clients.Elasticsearc public PutRoleMappingRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutRoleMappingRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutRoleMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -103,11 +103,7 @@ internal PutRoleMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -424,6 +420,11 @@ public Elastic.Clients.Elasticsearch.Security.PutRoleMappingRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.PutRoleMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -716,6 +717,11 @@ public Elastic.Clients.Elasticsearch.Security.PutRoleMappingRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingResponse.g.cs index 1fb999d727a..0a7d5ccfefc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingResponse.g.cs @@ -38,9 +38,5 @@ internal PutRoleMappingResponse(Elastic.Clients.Elasticsearch.Serialization.Json } public bool? Created { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Security.CreatedStatus RoleMapping { get; set; } + public required Elastic.Clients.Elasticsearch.Security.CreatedStatus RoleMapping { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs index bcc79ea7e36..61dc70024ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class PutRoleRequest : Elastic.Clients.Elasticsearch.Reque public PutRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) { } -#if NET7_0_OR_GREATER + public PutRoleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutRoleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal PutRoleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The name of the role that is being created or updated. On Elasticsearch Serverless, the role name must begin with a letter or digit and can only contain letters, digits and the characters '_', '-', and '.'. Each role must have a unique name, as this will serve as the identifier for that role. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("name"); set => PR("name", value); } /// /// @@ -613,6 +609,11 @@ public Elastic.Clients.Elasticsearch.Security.PutRoleRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.PutRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1063,6 +1064,11 @@ public Elastic.Clients.Elasticsearch.Security.PutRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleResponse.g.cs index e4c23160efe..ba391a0c8d0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleResponse.g.cs @@ -42,9 +42,5 @@ internal PutRoleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// When an existing role is updated, created is set to false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.CreatedStatus Role { get; set; } + public required Elastic.Clients.Elasticsearch.Security.CreatedStatus Role { get; set; } } \ 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 19f224e952e..494a40ee1f7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs @@ -51,11 +51,11 @@ public sealed partial class PutUserRequest : Elastic.Clients.Elasticsearch.Reque public PutUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) { } -#if NET7_0_OR_GREATER + public PutUserRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +80,7 @@ internal PutUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// 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); } + public required Elastic.Clients.Elasticsearch.Username Username { get => P("username"); set => PR("username", value); } /// /// @@ -357,6 +353,11 @@ public Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.PutUserRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserResponse.g.cs index 99283b637ad..01b0b3795f7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserResponse.g.cs @@ -43,9 +43,5 @@ internal PutUserResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// When an existing user is updated, created is set to false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Created { get; set; } + public required bool Created { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs index 98d6a935f39..e06b63b1680 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs @@ -68,16 +68,10 @@ public sealed partial class QueryApiKeysRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.QueryApiKeysRequestConverter))] public partial class QueryApiKeysRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public QueryApiKeysRequest() { } -#endif -#if !NET7_0_OR_GREATER - public QueryApiKeysRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryApiKeysRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -529,6 +523,11 @@ public Elastic.Clients.Elasticsearch.Security.QueryApiKeysRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.QueryApiKeysRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -851,6 +850,11 @@ public Elastic.Clients.Elasticsearch.Security.QueryApiKeysRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysResponse.g.cs index 8bb7d4cfc8b..d0c8a700953 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysResponse.g.cs @@ -49,31 +49,19 @@ internal QueryApiKeysResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// A list of API key information. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ApiKeys { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ApiKeys { get; set; } /// /// /// The number of API keys returned in the response. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// The total number of API keys found. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs index 0fae97c0318..34abfe348cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs @@ -42,16 +42,10 @@ public sealed partial class QueryRoleRequestParameters : Elastic.Transport.Reque [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.QueryRoleRequestConverter))] public sealed partial class QueryRoleRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public QueryRoleRequest() { } -#endif -#if !NET7_0_OR_GREATER - public QueryRoleRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryRoleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -331,6 +325,11 @@ public Elastic.Clients.Elasticsearch.Security.QueryRoleRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.QueryRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -547,6 +546,11 @@ public Elastic.Clients.Elasticsearch.Security.QueryRoleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleResponse.g.cs index fa04822c961..0324d25094b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleResponse.g.cs @@ -42,11 +42,7 @@ internal QueryRoleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The number of roles returned in the response. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// @@ -58,20 +54,12 @@ internal QueryRoleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// It contains the array of values that have been used for sorting. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } /// /// /// The total number of roles found. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs index b27f5696618..2a4062630a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs @@ -49,16 +49,10 @@ public sealed partial class QueryUserRequestParameters : Elastic.Transport.Reque [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.QueryUserRequestConverter))] public sealed partial class QueryUserRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public QueryUserRequest() { } -#endif -#if !NET7_0_OR_GREATER - public QueryUserRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryUserRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -348,6 +342,11 @@ public Elastic.Clients.Elasticsearch.Security.QueryUserRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.QueryUserRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -571,6 +570,11 @@ public Elastic.Clients.Elasticsearch.Security.QueryUserRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserResponse.g.cs index a2ce92d8702..de04d333c2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserResponse.g.cs @@ -42,31 +42,19 @@ internal QueryUserResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The number of users returned in the response. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// The total number of users found. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } /// /// /// A list of users that match the query. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Users { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Users { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs index a1e69bae325..de5a0c57da9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs @@ -70,17 +70,11 @@ public SamlAuthenticateRequest(string content, Elastic.Clients.Elasticsearch.Ids Content = content; Ids = ids; } -#if NET7_0_OR_GREATER - public SamlAuthenticateRequest() - { - } -#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 SamlAuthenticateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SamlAuthenticateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -100,22 +94,14 @@ internal SamlAuthenticateRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Content { get; set; } + public required string Content { get; set; } /// /// /// A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ids Ids { get; set; } + public required Elastic.Clients.Elasticsearch.Ids Ids { get; set; } /// /// @@ -224,6 +210,11 @@ public Elastic.Clients.Elasticsearch.Security.SamlAuthenticateRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.SamlAuthenticateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateResponse.g.cs index 1e9e42715f4..0c64675dc07 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateResponse.g.cs @@ -42,22 +42,14 @@ internal SamlAuthenticateResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The access token that was generated by Elasticsearch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string AccessToken { get; set; } + public required string AccessToken { get; set; } /// /// /// The amount of time (in seconds) left until the token expires. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ExpiresIn { get; set; } + public required int ExpiresIn { get; set; } /// /// @@ -71,31 +63,19 @@ internal SamlAuthenticateResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The name of the realm where the user was authenticated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Realm { get; set; } + public required string Realm { get; set; } /// /// /// The refresh token that was generated by Elasticsearch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RefreshToken { get; set; } + public required string RefreshToken { get; set; } /// /// /// The authenticated user's name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Username { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs index 12a7bf9a35d..95d9d3d3e94 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs @@ -55,17 +55,11 @@ public SamlCompleteLogoutRequest(Elastic.Clients.Elasticsearch.Ids ids, string r Ids = ids; Realm = realm; } -#if NET7_0_OR_GREATER - public SamlCompleteLogoutRequest() - { - } -#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 SamlCompleteLogoutRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SamlCompleteLogoutRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -92,11 +86,7 @@ internal SamlCompleteLogoutRequest(Elastic.Clients.Elasticsearch.Serialization.J /// A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ids Ids { get; set; } + public required Elastic.Clients.Elasticsearch.Ids Ids { get; set; } /// /// @@ -110,11 +100,7 @@ internal SamlCompleteLogoutRequest(Elastic.Clients.Elasticsearch.Serialization.J /// The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Realm { get; set; } + public required string Realm { get; set; } } /// @@ -212,6 +198,11 @@ public Elastic.Clients.Elasticsearch.Security.SamlCompleteLogoutRequestDescripto return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.SamlCompleteLogoutRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs index d93d8d8390b..ae1f6978030 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs @@ -53,17 +53,11 @@ public SamlInvalidateRequest(string queryString) { QueryString = queryString; } -#if NET7_0_OR_GREATER - public SamlInvalidateRequest() - { - } -#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 SamlInvalidateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SamlInvalidateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -94,11 +88,7 @@ internal SamlInvalidateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The client application must not attempt to parse or process the string in any way. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string QueryString { get; set; } + public required string QueryString { get; set; } /// /// @@ -195,6 +185,11 @@ public Elastic.Clients.Elasticsearch.Security.SamlInvalidateRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.SamlInvalidateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateResponse.g.cs index efc6c2d546b..f9d19e4d2b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateResponse.g.cs @@ -42,31 +42,19 @@ internal SamlInvalidateResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The number of tokens that were invalidated as part of this logout. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Invalidated { get; set; } + public required int Invalidated { get; set; } /// /// /// The realm name of the SAML realm in Elasticsearch that authenticated the user. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Realm { get; set; } + public required string Realm { get; set; } /// /// /// A SAML logout response as a parameter so that the user can be redirected back to the SAML IdP. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Redirect { get; set; } + public required string Redirect { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs index 77e5893562c..b1f8e50f215 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs @@ -51,17 +51,11 @@ public SamlLogoutRequest(string token) { Token = token; } -#if NET7_0_OR_GREATER - public SamlLogoutRequest() - { - } -#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 SamlLogoutRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SamlLogoutRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -90,11 +84,7 @@ internal SamlLogoutRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Alternatively, the most recent token that was received after refreshing the original one by using a refresh_token. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Token { get; set; } + public required string Token { get; set; } } /// @@ -169,6 +159,11 @@ public Elastic.Clients.Elasticsearch.Security.SamlLogoutRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.SamlLogoutRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutResponse.g.cs index 8d09ceb466e..502be473c81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutResponse.g.cs @@ -43,9 +43,5 @@ internal SamlLogoutResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// You can use this URL to be redirected back to the SAML IdP and to initiate Single Logout. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Redirect { get; set; } + public required string Redirect { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs index 92e555243d8..0a5e9746491 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs @@ -51,16 +51,10 @@ public sealed partial class SamlPrepareAuthenticationRequestParameters : Elastic [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.SamlPrepareAuthenticationRequestConverter))] public sealed partial class SamlPrepareAuthenticationRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public SamlPrepareAuthenticationRequest() { } -#endif -#if !NET7_0_OR_GREATER - public SamlPrepareAuthenticationRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SamlPrepareAuthenticationRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -194,6 +188,11 @@ public Elastic.Clients.Elasticsearch.Security.SamlPrepareAuthenticationRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.SamlPrepareAuthenticationRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs index f313d54a4c8..5d0faa747b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs @@ -42,31 +42,19 @@ internal SamlPrepareAuthenticationResponse(Elastic.Clients.Elasticsearch.Seriali /// A unique identifier for the SAML Request to be stored by the caller of the API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// The name of the Elasticsearch realm that was used to construct the authentication request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Realm { get; set; } + public required string Realm { get; set; } /// /// /// The URL to redirect the user to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Redirect { get; set; } + public required string Redirect { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs index c4cf3ae575a..0c1017a4958 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs @@ -46,11 +46,11 @@ public sealed partial class SamlServiceProviderMetadataRequest : Elastic.Clients public SamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Name realmName) : base(r => r.Required("realm_name", realmName)) { } -#if NET7_0_OR_GREATER + public SamlServiceProviderMetadataRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,11 +70,7 @@ internal SamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Serial /// The name of the SAML realm in Elasticsearch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name RealmName { get => P("realm_name"); set => PR("realm_name", value); } + public required Elastic.Clients.Elasticsearch.Name RealmName { get => P("realm_name"); set => PR("realm_name", value); } } /// @@ -138,6 +134,11 @@ public Elastic.Clients.Elasticsearch.Security.SamlServiceProviderMetadataRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.SamlServiceProviderMetadataRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs index d9fc7b254d0..31a35f1a4af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs @@ -42,9 +42,5 @@ internal SamlServiceProviderMetadataResponse(Elastic.Clients.Elasticsearch.Seria /// An XML string that contains a SAML Service Provider's metadata for the realm. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Metadata { get; set; } + public required string Metadata { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs index a9e6128de79..4d1a9eef0ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs @@ -43,16 +43,10 @@ public sealed partial class SuggestUserProfilesRequestParameters : Elastic.Trans [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.SuggestUserProfilesRequestConverter))] public sealed partial class SuggestUserProfilesRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public SuggestUserProfilesRequest() { } -#endif -#if !NET7_0_OR_GREATER - public SuggestUserProfilesRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SuggestUserProfilesRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -245,6 +239,11 @@ public Elastic.Clients.Elasticsearch.Security.SuggestUserProfilesRequestDescript return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.SuggestUserProfilesRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs index 237e9d7d927..d4edf7446d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs @@ -42,31 +42,19 @@ internal SuggestUserProfilesResponse(Elastic.Clients.Elasticsearch.Serialization /// A list of profile documents, ordered by relevance, that match the search criteria. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Profiles { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Profiles { get; set; } /// /// /// The number of milliseconds it took Elasticsearch to run the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Took { get; set; } + public required long Took { get; set; } /// /// /// Metadata about the number of matching profiles. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.TotalUserProfiles Total { get; set; } + public required Elastic.Clients.Elasticsearch.Security.TotalUserProfiles Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs index 93f6d6f437a..1064dc7e1bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs @@ -64,11 +64,11 @@ public sealed partial class UpdateApiKeyRequest : Elastic.Clients.Elasticsearch. public UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public UpdateApiKeyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -88,11 +88,7 @@ internal UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The ID of the API key to update. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -404,6 +400,11 @@ public Elastic.Clients.Elasticsearch.Security.UpdateApiKeyRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.UpdateApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -694,6 +695,11 @@ public Elastic.Clients.Elasticsearch.Security.UpdateApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyResponse.g.cs index 9430539e68e..e9e0dfe4ed2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyResponse.g.cs @@ -43,9 +43,5 @@ internal UpdateApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// If false, the API key didn't change because no change was detected. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Updated { get; set; } + public required bool Updated { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs index 54609d87f83..53afb3d187d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs @@ -71,11 +71,11 @@ public UpdateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Id id, Elas { Access = access; } -#if NET7_0_OR_GREATER + public UpdateCrossClusterApiKeyRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -95,11 +95,7 @@ internal UpdateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Serializa /// The ID of the cross-cluster API key to update. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -109,11 +105,7 @@ internal UpdateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Serializa /// When specified, the new access assignment fully replaces the previously assigned access. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.Access Access { get; set; } + public required Elastic.Clients.Elasticsearch.Security.Access Access { get; set; } /// /// @@ -360,6 +352,11 @@ public Elastic.Clients.Elasticsearch.Security.UpdateCrossClusterApiKeyRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.UpdateCrossClusterApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -597,6 +594,11 @@ public Elastic.Clients.Elasticsearch.Security.UpdateCrossClusterApiKeyRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.UpdateCrossClusterApiKeyRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyResponse.g.cs index a1ed0ea1029..e0544412df6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyResponse.g.cs @@ -43,9 +43,5 @@ internal UpdateCrossClusterApiKeyResponse(Elastic.Clients.Elasticsearch.Serializ /// If false, the API key didn’t change because no change was detected. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Updated { get; set; } + public required bool Updated { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsRequest.g.cs index 56de5c089af..9a1d64f8527 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsRequest.g.cs @@ -60,16 +60,10 @@ public sealed partial class UpdateSettingsRequestParameters : Elastic.Transport. [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.UpdateSettingsRequestConverter))] public sealed partial class UpdateSettingsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public UpdateSettingsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public UpdateSettingsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -330,6 +324,11 @@ public Elastic.Clients.Elasticsearch.Security.UpdateSettingsRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.UpdateSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -542,6 +541,11 @@ public Elastic.Clients.Elasticsearch.Security.UpdateSettingsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsResponse.g.cs index f912a9a2314..0521e35dda6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsResponse.g.cs @@ -37,9 +37,5 @@ internal UpdateSettingsResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Acknowledged { get; set; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs index dbee1154907..426924606bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs @@ -93,11 +93,11 @@ public sealed partial class UpdateUserProfileDataRequest : Elastic.Clients.Elast public UpdateUserProfileDataRequest(string uid) : base(r => r.Required("uid", uid)) { } -#if NET7_0_OR_GREATER + public UpdateUserProfileDataRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateUserProfileDataRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -117,11 +117,7 @@ internal UpdateUserProfileDataRequest(Elastic.Clients.Elasticsearch.Serializatio /// A unique identifier for the user profile. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Uid { get => P("uid"); set => PR("uid", value); } + public required string Uid { get => P("uid"); set => PR("uid", value); } /// /// @@ -383,6 +379,11 @@ public Elastic.Clients.Elasticsearch.Security.UpdateUserProfileDataRequestDescri return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Security.UpdateUserProfileDataRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataResponse.g.cs index 4ceb39ac2d8..ae99895ed4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataResponse.g.cs @@ -42,9 +42,5 @@ internal UpdateUserProfileDataResponse(Elastic.Clients.Elasticsearch.Serializati /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 1efcf294c90..838b212eace 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs @@ -91,17 +91,11 @@ public IngestRequest(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Docs { get; set; } + public required System.Collections.Generic.ICollection Docs { get; set; } /// /// @@ -589,6 +579,11 @@ public Elastic.Clients.Elasticsearch.Simulate.IngestRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Simulate.IngestRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -976,6 +971,11 @@ public Elastic.Clients.Elasticsearch.Simulate.IngestRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Simulate.IngestRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestResponse.g.cs index fc57fec0b13..e6855149049 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestResponse.g.cs @@ -37,9 +37,5 @@ internal IngestResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Docs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Docs { get; set; } } \ No newline at end of file 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 1cb13feeef6..f26f97515d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs @@ -59,11 +59,11 @@ public sealed partial class CleanupRepositoryRequest : Elastic.Clients.Elasticse public CleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("repository", name)) { } -#if NET7_0_OR_GREATER + public CleanupRepositoryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,11 +83,7 @@ internal CleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The name of the snapshot repository to clean up. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("repository"); set => PR("repository", value); } /// /// @@ -191,6 +187,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryResponse.g.cs index 3cba05f2261..8f4e05cfc6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryResponse.g.cs @@ -42,9 +42,5 @@ internal CleanupRepositoryResponse(Elastic.Clients.Elasticsearch.Serialization.J /// Statistics for cleanup operations. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryResults Results { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryResults Results { get; set; } } \ No newline at end of file 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 52a71f6d54b..d682183cbba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs @@ -57,11 +57,11 @@ public CloneSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elast { Indices = indices; } -#if NET7_0_OR_GREATER + public CloneSnapshotRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CloneSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,33 +81,21 @@ internal CloneSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The name of the snapshot repository that both source and target snapshot belong to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } /// /// /// The source snapshot name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } + public required Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } /// /// /// The target snapshot name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name TargetSnapshot { get => P("target_snapshot"); set => PR("target_snapshot", value); } + public required Elastic.Clients.Elasticsearch.Name TargetSnapshot { get => P("target_snapshot"); set => PR("target_snapshot", value); } /// /// @@ -124,11 +112,7 @@ internal CloneSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Multi-target syntax is supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Indices { get; set; } + public required string Indices { get; set; } } /// @@ -237,6 +221,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.CloneSnapshotRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.CloneSnapshotRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotResponse.g.cs index 7731f1c90fd..14a47b3d309 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotResponse.g.cs @@ -42,9 +42,5 @@ internal CloneSnapshotResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 2439eef70fc..7b1a42dfef5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs @@ -81,11 +81,11 @@ public CreateRepositoryRequest(Elastic.Clients.Elasticsearch.Name name, Elastic. { Repository = repository; } -#if NET7_0_OR_GREATER + public CreateRepositoryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -105,11 +105,7 @@ internal CreateRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The name of the snapshot repository to register or update. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("repository"); set => PR("repository", value); } /// /// @@ -137,11 +133,7 @@ internal CreateRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// public bool? Verify { get => Q("verify"); set => Q("verify", value); } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.IRepository Repository { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.IRepository Repository { get; set; } } /// @@ -260,6 +252,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.CreateRepositoryRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.CreateRepositoryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryResponse.g.cs index 9e284a377a4..d299f1a9bdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryResponse.g.cs @@ -42,9 +42,5 @@ internal CreateRepositoryResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 af03d250632..a4ab54cc985 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class CreateSnapshotRequest : Elastic.Clients.Elasticsearc public CreateSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) { } -#if NET7_0_OR_GREATER + public CreateSnapshotRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,11 +81,7 @@ internal CreateSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The name of the repository for the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } /// /// @@ -94,11 +90,7 @@ internal CreateSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// It must be unique in the repository. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } + public required Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } /// /// @@ -459,6 +451,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.CreateSnapshotRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.CreateSnapshotRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 b81ba2d81cd..9dfc661d9d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs @@ -60,11 +60,11 @@ public sealed partial class DeleteRepositoryRequest : Elastic.Clients.Elasticsea public DeleteRepositoryRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("repository", name)) { } -#if NET7_0_OR_GREATER + public DeleteRepositoryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,11 +85,7 @@ internal DeleteRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// Wildcard (*) patterns are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("repository"); set => PR("repository", value); } /// /// @@ -195,6 +191,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.DeleteRepositoryRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.DeleteRepositoryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryResponse.g.cs index 964f22939d8..c273bba8115 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteRepositoryResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 d42860e6291..f1a58c3afeb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs @@ -55,11 +55,11 @@ public sealed partial class DeleteSnapshotRequest : Elastic.Clients.Elasticsearc 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 + public DeleteSnapshotRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +79,7 @@ internal DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The name of the repository to delete a snapshot from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } /// /// @@ -91,11 +87,7 @@ internal DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// It also accepts wildcards (*). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Snapshot { get => P("snapshot"); set => PR("snapshot", value); } + public required Elastic.Clients.Elasticsearch.Names Snapshot { get => P("snapshot"); set => PR("snapshot", value); } /// /// @@ -206,6 +198,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.DeleteSnapshotRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs index 0b6a21efdbe..26d178f7c1a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteSnapshotResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs index a35268b5c83..2bebbac0419 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs @@ -54,16 +54,11 @@ public sealed partial class GetRepositoryRequest : Elastic.Clients.Elasticsearch public GetRepositoryRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("repository", name)) { } -#if NET7_0_OR_GREATER - public GetRepositoryRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetRepositoryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -194,6 +189,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.GetRepositoryRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.GetRepositoryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryResponse.g.cs index 5fb22f29f0e..cd0d20fbb89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryResponse.g.cs @@ -37,9 +37,5 @@ internal GetRepositoryResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Snapshot.Repositories Repositories { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.Repositories Repositories { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs index 0f7626ff5bc..b81380bc866 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs @@ -159,11 +159,11 @@ public sealed partial class GetSnapshotRequest : Elastic.Clients.Elasticsearch.R public GetSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) { } -#if NET7_0_OR_GREATER + public GetSnapshotRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -184,11 +184,7 @@ internal GetSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Wildcard (*) expressions are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } /// /// @@ -208,11 +204,7 @@ internal GetSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Snapshot { get => P("snapshot"); set => PR("snapshot", value); } + public required Elastic.Clients.Elasticsearch.Names Snapshot { get => P("snapshot"); set => PR("snapshot", value); } /// /// @@ -599,6 +591,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.GetSnapshotRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.GetSnapshotRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs index 416b6cf29a2..af945ffc5b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs @@ -50,11 +50,7 @@ internal GetSnapshotResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The number of remaining snapshots that were not returned due to size limits and that can be fetched by additional requests using the next field value. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Remaining { get; set; } + public required int Remaining { get; set; } public System.Collections.Generic.IReadOnlyCollection? Responses { get; set; } public System.Collections.Generic.IReadOnlyCollection? Snapshots { get; set; } @@ -63,9 +59,5 @@ internal GetSnapshotResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The total number of snapshots that match the request when ignoring the size limit or after query parameter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs index 35f07c2bc12..da6939ef27f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs @@ -274,11 +274,11 @@ public sealed partial class RepositoryAnalyzeRequest : Elastic.Clients.Elasticse public RepositoryAnalyzeRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("repository", name)) { } -#if NET7_0_OR_GREATER + public RepositoryAnalyzeRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RepositoryAnalyzeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -298,11 +298,7 @@ internal RepositoryAnalyzeRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The name of the repository. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("repository"); set => PR("repository", value); } /// /// @@ -767,6 +763,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.RepositoryAnalyzeRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.RepositoryAnalyzeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeResponse.g.cs index 35aeebd3945..d6eb0bfd435 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeResponse.g.cs @@ -42,88 +42,56 @@ internal RepositoryAnalyzeResponse(Elastic.Clients.Elasticsearch.Serialization.J /// The number of blobs written to the repository during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int BlobCount { get; set; } + public required int BlobCount { get; set; } /// /// /// The path in the repository under which all the blobs were written during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string BlobPath { get; set; } + public required string BlobPath { get; set; } /// /// /// The number of write operations performed concurrently during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Concurrency { get; set; } + public required int Concurrency { get; set; } /// /// /// The node that coordinated the analysis and performed the final cleanup. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo CoordinatingNode { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo CoordinatingNode { get; set; } /// /// /// The time it took to delete all the blobs in the container. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration DeleteElapsed { get; set; } + public required Elastic.Clients.Elasticsearch.Duration DeleteElapsed { get; set; } /// /// /// The time it took to delete all the blobs in the container, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan DeleteElapsedNanos { get; set; } + public required System.TimeSpan DeleteElapsedNanos { get; set; } /// /// /// A description of every read and write operation performed during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.DetailsInfo Details { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.DetailsInfo Details { get; set; } /// /// /// The limit on the number of nodes on which early read operations were performed after writing each blob. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int EarlyReadNodeCount { get; set; } + public required int EarlyReadNodeCount { get; set; } /// /// @@ -131,130 +99,82 @@ internal RepositoryAnalyzeResponse(Elastic.Clients.Elasticsearch.Serialization.J /// It is included to emphasize that a successful response does not guarantee correct behaviour in future. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection IssuesDetected { get; set; } + public required System.Collections.Generic.IReadOnlyCollection IssuesDetected { get; set; } /// /// /// The time it took to retrieve a list of all the blobs in the container. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration ListingElapsed { get; set; } + public required Elastic.Clients.Elasticsearch.Duration ListingElapsed { get; set; } /// /// /// The time it took to retrieve a list of all the blobs in the container, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ListingElapsedNanos { get; set; } + public required System.TimeSpan ListingElapsedNanos { get; set; } /// /// /// The limit on the size of a blob written during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize MaxBlobSize { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize MaxBlobSize { get; set; } /// /// /// The limit, in bytes, on the size of a blob written during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MaxBlobSizeBytes { get; set; } + public required long MaxBlobSizeBytes { get; set; } /// /// /// The limit on the total size of all blob written during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize MaxTotalDataSize { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize MaxTotalDataSize { get; set; } /// /// /// The limit, in bytes, on the total size of all blob written during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MaxTotalDataSizeBytes { get; set; } + public required long MaxTotalDataSizeBytes { get; set; } /// /// /// The probability of performing rare actions during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double RareActionProbability { get; set; } + public required double RareActionProbability { get; set; } /// /// /// The limit on the number of nodes on which read operations were performed after writing each blob. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ReadNodeCount { get; set; } + public required int ReadNodeCount { get; set; } /// /// /// The name of the repository that was the subject of the analysis. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Repository { get; set; } + public required string Repository { get; set; } /// /// /// The seed for the pseudo-random number generator used to generate the operations used during the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Seed { get; set; } + public required long Seed { get; set; } /// /// /// A collection of statistics that summarize the results of the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.SummaryInfo Summary { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.SummaryInfo Summary { get; set; } } \ No newline at end of file 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 7c2db45fd2b..91cbeee3a2b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs @@ -166,11 +166,11 @@ public sealed partial class RepositoryVerifyIntegrityRequest : Elastic.Clients.E public RepositoryVerifyIntegrityRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("repository", name)) { } -#if NET7_0_OR_GREATER + public RepositoryVerifyIntegrityRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RepositoryVerifyIntegrityRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -190,11 +190,7 @@ internal RepositoryVerifyIntegrityRequest(Elastic.Clients.Elasticsearch.Serializ /// The name of the snapshot repository. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Name { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Names Name { get => P("repository"); set => PR("repository", value); } /// /// @@ -472,6 +468,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.RepositoryVerifyIntegrityRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.RepositoryVerifyIntegrityRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityResponse.g.cs index 94c43f0b073..0dc9badb6bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityResponse.g.cs @@ -37,9 +37,5 @@ internal RepositoryVerifyIntegrityResponse(Elastic.Clients.Elasticsearch.Seriali _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -object Result { get; set; } + public required object Result { get; set; } } \ No newline at end of file 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 672eb47d525..a6f4a139a41 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs @@ -82,11 +82,11 @@ public sealed partial class RestoreRequest : Elastic.Clients.Elasticsearch.Reque public RestoreRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) { } -#if NET7_0_OR_GREATER + public RestoreRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RestoreRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -106,22 +106,14 @@ internal RestoreRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The name of the repository to restore a snapshot from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Repository { get => P("repository"); set => PR("repository", value); } /// /// /// The name of the snapshot to restore. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } + public required Elastic.Clients.Elasticsearch.Name Snapshot { get => P("snapshot"); set => PR("snapshot", value); } /// /// @@ -677,6 +669,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.RestoreRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.RestoreRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1082,6 +1079,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.RestoreRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 4408b13b513..b7483f59a5e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs @@ -86,16 +86,11 @@ public SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Name? repository) : b public SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot) : base(r => r.Optional("repository", repository).Optional("snapshot", snapshot)) { } -#if NET7_0_OR_GREATER - public SnapshotStatusRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public SnapshotStatusRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -275,6 +270,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.SnapshotStatusRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.SnapshotStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs index 4684a2a5e13..aae31f71a1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs @@ -37,9 +37,5 @@ internal SnapshotStatusResponse(Elastic.Clients.Elasticsearch.Serialization.Json _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Snapshots { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Snapshots { get; set; } } \ No newline at end of file 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 f4673062045..7228f5f8ce2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs @@ -59,11 +59,11 @@ public sealed partial class VerifyRepositoryRequest : Elastic.Clients.Elasticsea public VerifyRepositoryRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("repository", name)) { } -#if NET7_0_OR_GREATER + public VerifyRepositoryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VerifyRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,11 +83,7 @@ internal VerifyRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The name of the snapshot repository to verify. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get => P("repository"); set => PR("repository", value); } + public required Elastic.Clients.Elasticsearch.Name Name { get => P("repository"); set => PR("repository", value); } /// /// @@ -191,6 +187,11 @@ public Elastic.Clients.Elasticsearch.Snapshot.VerifyRepositoryRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Snapshot.VerifyRepositoryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryResponse.g.cs index 8801c81000e..b1a626d9084 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryResponse.g.cs @@ -43,9 +43,5 @@ internal VerifyRepositoryResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// The key is the ID of the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } } \ No newline at end of file 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 c5796e4abed..fbe71b875ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -58,11 +58,11 @@ public sealed partial class DeleteLifecycleRequest : Elastic.Clients.Elasticsear public DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : base(r => r.Required("policy_id", policyId)) { } -#if NET7_0_OR_GREATER + public DeleteLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// The id of the snapshot lifecycle policy to remove /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name PolicyId { get => P("policy_id"); set => PR("policy_id", value); } + public required Elastic.Clients.Elasticsearch.Name PolicyId { get => P("policy_id"); set => PR("policy_id", value); } /// /// @@ -187,6 +183,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.DeleteLifecycle return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.DeleteLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleResponse.g.cs index cf7c62e36f6..c8d5730d182 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 90066f21590..92eced81eea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs @@ -58,11 +58,11 @@ public sealed partial class ExecuteLifecycleRequest : Elastic.Clients.Elasticsea public ExecuteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : base(r => r.Required("policy_id", policyId)) { } -#if NET7_0_OR_GREATER + public ExecuteLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExecuteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal ExecuteLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Jso /// The id of the snapshot lifecycle policy to be executed /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name PolicyId { get => P("policy_id"); set => PR("policy_id", value); } + public required Elastic.Clients.Elasticsearch.Name PolicyId { get => P("policy_id"); set => PR("policy_id", value); } /// /// @@ -187,6 +183,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.ExecuteLifecycl return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.ExecuteLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleResponse.g.cs index 0ad9d42c1b4..2407a19d6fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleResponse.g.cs @@ -37,9 +37,5 @@ internal ExecuteLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string SnapshotName { get; set; } + public required string SnapshotName { get; set; } } \ No newline at end of file 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 201d52a7747..da1c5bf3b88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs @@ -54,16 +54,10 @@ public sealed partial class ExecuteRetentionRequestParameters : Elastic.Transpor [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Json.ExecuteRetentionRequestConverter))] public sealed partial class ExecuteRetentionRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ExecuteRetentionRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ExecuteRetentionRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExecuteRetentionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -165,6 +159,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.ExecuteRetentio return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.ExecuteRetentionRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionResponse.g.cs index 1a780491d82..10ca4d57d60 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionResponse.g.cs @@ -42,9 +42,5 @@ internal ExecuteRetentionResponse(Elastic.Clients.Elasticsearch.Serialization.Js /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 94eeb0d2080..e8674b11f2e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs @@ -56,16 +56,11 @@ public sealed partial class GetLifecycleRequest : Elastic.Clients.Elasticsearch. public GetLifecycleRequest(Elastic.Clients.Elasticsearch.Names? policyId) : base(r => r.Optional("policy_id", policyId)) { } -#if NET7_0_OR_GREATER - public GetLifecycleRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -189,6 +184,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.GetLifecycleReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.GetLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleResponse.g.cs index 4051f630a5f..561c0f2b7b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleResponse.g.cs @@ -37,9 +37,5 @@ internal GetLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Lifecycles { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Lifecycles { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs index d9d46bc21c7..fa4b690086e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs @@ -52,16 +52,10 @@ public sealed partial class GetSlmStatusRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Json.GetSlmStatusRequestConverter))] public sealed partial class GetSlmStatusRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetSlmStatusRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetSlmStatusRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSlmStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -163,6 +157,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.GetSlmStatusReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.GetSlmStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusResponse.g.cs index 21273939799..9eb0bdeb1d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusResponse.g.cs @@ -37,9 +37,5 @@ internal GetSlmStatusResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.LifecycleOperationMode OperationMode { get; set; } + public required Elastic.Clients.Elasticsearch.LifecycleOperationMode OperationMode { get; set; } } \ No newline at end of file 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 c384beaf59d..b95f03b1e6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs @@ -51,16 +51,10 @@ public sealed partial class GetStatsRequestParameters : Elastic.Transport.Reques [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Json.GetStatsRequestConverter))] public sealed partial class GetStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetStatsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetStatsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -157,6 +151,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.GetStatsRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.GetStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsResponse.g.cs index e72dbbac462..aa34dc4329f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsResponse.g.cs @@ -37,54 +37,14 @@ internal GetStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection PolicyStats { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Duration RetentionDeletionTime { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.TimeSpan RetentionDeletionTimeMillis { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long RetentionFailed { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long RetentionRuns { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long RetentionTimedOut { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long TotalSnapshotDeletionFailures { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long TotalSnapshotsDeleted { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long TotalSnapshotsFailed { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long TotalSnapshotsTaken { get; set; } + public required System.Collections.Generic.IReadOnlyCollection PolicyStats { get; set; } + public required Elastic.Clients.Elasticsearch.Duration RetentionDeletionTime { get; set; } + public required System.TimeSpan RetentionDeletionTimeMillis { get; set; } + public required long RetentionFailed { get; set; } + public required long RetentionRuns { get; set; } + public required long RetentionTimedOut { get; set; } + public required long TotalSnapshotDeletionFailures { get; set; } + public required long TotalSnapshotsDeleted { get; set; } + public required long TotalSnapshotsFailed { get; set; } + public required long TotalSnapshotsTaken { get; set; } } \ No newline at end of file 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 bb384c6279d..8c8b24312ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs @@ -61,11 +61,11 @@ public sealed partial class PutLifecycleRequest : Elastic.Clients.Elasticsearch. public PutLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : base(r => r.Required("policy_id", policyId)) { } -#if NET7_0_OR_GREATER + public PutLifecycleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,11 +85,7 @@ internal PutLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The identifier for the snapshot lifecycle policy you want to create or update. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name PolicyId { get => P("policy_id"); set => PR("policy_id", value); } + public required Elastic.Clients.Elasticsearch.Name PolicyId { get => P("policy_id"); set => PR("policy_id", value); } /// /// @@ -318,6 +314,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.PutLifecycleReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.PutLifecycleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleResponse.g.cs index 6b621685268..eeed404b926 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleResponse.g.cs @@ -42,9 +42,5 @@ internal PutLifecycleResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 ad5c6f61ea8..c8aa7278a51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs @@ -56,16 +56,10 @@ public sealed partial class StartSlmRequestParameters : Elastic.Transport.Reques [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Json.StartSlmRequestConverter))] public sealed partial class StartSlmRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public StartSlmRequest() { } -#endif -#if !NET7_0_OR_GREATER - public StartSlmRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StartSlmRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -171,6 +165,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.StartSlmRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.StartSlmRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmResponse.g.cs index e885a2223cf..6e0f65e86eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmResponse.g.cs @@ -42,9 +42,5 @@ internal StartSlmResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 ec922db0bb2..6b894838808 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs @@ -62,16 +62,10 @@ public sealed partial class StopSlmRequestParameters : Elastic.Transport.Request [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Json.StopSlmRequestConverter))] public sealed partial class StopSlmRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public StopSlmRequest() { } -#endif -#if !NET7_0_OR_GREATER - public StopSlmRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopSlmRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -183,6 +177,11 @@ public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.StopSlmRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.StopSlmRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmResponse.g.cs index 7e74ecf5c8b..206ce4ba331 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmResponse.g.cs @@ -42,9 +42,5 @@ internal StopSlmResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs index f5dfb74becf..521bd463306 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs @@ -40,17 +40,11 @@ public ClearCursorRequest(string cursor) { Cursor = cursor; } -#if NET7_0_OR_GREATER - public ClearCursorRequest() - { - } -#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 ClearCursorRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClearCursorRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,11 +64,7 @@ internal ClearCursorRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Cursor to clear. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Cursor { get; set; } + public required string Cursor { get; set; } } /// @@ -125,6 +115,11 @@ public Elastic.Clients.Elasticsearch.Sql.ClearCursorRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Sql.ClearCursorRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorResponse.g.cs index bfe58c39125..45b52d409ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorResponse.g.cs @@ -37,9 +37,5 @@ internal ClearCursorResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Succeeded { get; set; } + public required bool Succeeded { get; set; } } \ No newline at end of file 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 46085731c8d..05c2a83c603 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs @@ -58,11 +58,11 @@ public sealed partial class DeleteAsyncRequest : Elastic.Clients.Elasticsearch.R public DeleteAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteAsyncRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteAsyncRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal DeleteAsyncRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The identifier for the search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -162,6 +158,11 @@ public Elastic.Clients.Elasticsearch.Sql.DeleteAsyncRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Sql.DeleteAsyncRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncResponse.g.cs index 7b19672e2a3..eab7cc4fbd2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteAsyncResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 b02f99e96dd..fa60c1fa2e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs @@ -77,11 +77,11 @@ public sealed partial class GetAsyncRequest : Elastic.Clients.Elasticsearch.Requ public GetAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetAsyncRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetAsyncRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -101,11 +101,7 @@ internal GetAsyncRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The identifier for the search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -250,6 +246,11 @@ public Elastic.Clients.Elasticsearch.Sql.GetAsyncRequestDescriptor ErrorTrace(bo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Sql.GetAsyncRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncResponse.g.cs index 833159e0b75..a4ec04cbb57 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncResponse.g.cs @@ -59,11 +59,7 @@ internal GetAsyncResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// For CSV, TSV, and TXT responses, this value is returned in the Async-ID HTTP header. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// @@ -74,11 +70,7 @@ internal GetAsyncResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsPartial { get; set; } + public required bool IsPartial { get; set; } /// /// @@ -88,20 +80,12 @@ internal GetAsyncResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsRunning { get; set; } + public required bool IsRunning { get; set; } /// /// /// The values for the search results. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Rows { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Rows { get; set; } } \ No newline at end of file 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 7f1cea9089d..b8e225dfb39 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class GetAsyncStatusRequest : Elastic.Clients.Elasticsearc public GetAsyncStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetAsyncStatusRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetAsyncStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal GetAsyncStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The identifier for the search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -130,6 +126,11 @@ public Elastic.Clients.Elasticsearch.Sql.GetAsyncStatusRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Sql.GetAsyncStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs index 528d71ce05a..e55d9fe4e4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs @@ -50,22 +50,14 @@ internal GetAsyncStatusResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ExpirationTimeInMillis { get; set; } + public required System.DateTimeOffset ExpirationTimeInMillis { get; set; } /// /// /// The identifier for the search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// @@ -74,11 +66,7 @@ internal GetAsyncStatusResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// If is_partial is true but is_running is false, the results are partial due to a failure or timeout. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsPartial { get; set; } + public required bool IsPartial { get; set; } /// /// @@ -86,11 +74,7 @@ internal GetAsyncStatusResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// If false, the search has finished. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsRunning { get; set; } + public required bool IsRunning { get; set; } /// /// @@ -98,9 +82,5 @@ internal GetAsyncStatusResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The API returns this property only for running searches. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.Converters.g.cs index dbbcee527d5..2ec024accff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.Converters.g.cs @@ -37,6 +37,7 @@ public sealed partial class QueryRequestConverter : System.Text.Json.Serializati private static readonly System.Text.Json.JsonEncodedText PropKeepOnCompletion = System.Text.Json.JsonEncodedText.Encode("keep_on_completion"u8); private static readonly System.Text.Json.JsonEncodedText PropPageTimeout = System.Text.Json.JsonEncodedText.Encode("page_timeout"u8); private static readonly System.Text.Json.JsonEncodedText PropParams = System.Text.Json.JsonEncodedText.Encode("params"u8); + private static readonly System.Text.Json.JsonEncodedText PropProjectRouting = System.Text.Json.JsonEncodedText.Encode("project_routing"u8); private static readonly System.Text.Json.JsonEncodedText PropQuery = System.Text.Json.JsonEncodedText.Encode("query"u8); private static readonly System.Text.Json.JsonEncodedText PropRequestTimeout = System.Text.Json.JsonEncodedText.Encode("request_timeout"u8); private static readonly System.Text.Json.JsonEncodedText PropRuntimeMappings = System.Text.Json.JsonEncodedText.Encode("runtime_mappings"u8); @@ -58,6 +59,7 @@ public override Elastic.Clients.Elasticsearch.Sql.QueryRequest Read(ref System.T LocalJsonValue propKeepOnCompletion = default; LocalJsonValue propPageTimeout = default; LocalJsonValue?> propParams = default; + LocalJsonValue propProjectRouting = default; LocalJsonValue propQuery = default; LocalJsonValue propRequestTimeout = default; LocalJsonValue?> propRuntimeMappings = default; @@ -125,6 +127,11 @@ public override Elastic.Clients.Elasticsearch.Sql.QueryRequest Read(ref System.T continue; } + if (propProjectRouting.TryReadProperty(ref reader, options, PropProjectRouting, null)) + { + continue; + } + if (propQuery.TryReadProperty(ref reader, options, PropQuery, null)) { continue; @@ -174,6 +181,7 @@ public override Elastic.Clients.Elasticsearch.Sql.QueryRequest Read(ref System.T KeepOnCompletion = propKeepOnCompletion.Value, PageTimeout = propPageTimeout.Value, Params = propParams.Value, + ProjectRouting = propProjectRouting.Value, Query = propQuery.Value, RequestTimeout = propRequestTimeout.Value, RuntimeMappings = propRuntimeMappings.Value, @@ -197,6 +205,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien 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, PropPageTimeout, value.PageTimeout, 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, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))); + writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteProperty(options, PropQuery, value.Query, null, null); writer.WriteProperty(options, PropRequestTimeout, value.RequestTimeout, null, null); writer.WriteProperty(options, PropRuntimeMappings, value.RuntimeMappings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, null)); 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 c39eff7c809..2754fc147cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs @@ -46,16 +46,10 @@ public sealed partial class QueryRequestParameters : Elastic.Transport.RequestPa [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Sql.Json.QueryRequestConverter))] public sealed partial class QueryRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public QueryRequest() { } -#endif -#if !NET7_0_OR_GREATER - public QueryRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -172,6 +166,20 @@ internal QueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// public System.Collections.Generic.ICollection? Params { get; set; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public string? ProjectRouting { get; set; } + /// /// /// The SQL query to run. @@ -427,6 +435,24 @@ public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor Params(params ob return this; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// The SQL query to run. @@ -585,6 +611,11 @@ public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -824,6 +855,24 @@ public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor Param return this; } + /// + /// + /// Specifies a subset of projects to target using project + /// metadata tags in a subset of Lucene query syntax. + /// Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + /// Examples: + /// _alias:my-project + /// _alias:_origin + /// _alias:pr + /// Supported in serverless only. + /// + /// + public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor ProjectRouting(string? value) + { + Instance.ProjectRouting = value; + return this; + } + /// /// /// The SQL query to run. @@ -956,6 +1005,11 @@ public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Sql.QueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryResponse.g.cs index 058ee5cd0d8..dd200e27030 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryResponse.g.cs @@ -87,9 +87,5 @@ internal QueryResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The values for the search results. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Rows { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Rows { get; set; } } \ No newline at end of file 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 fc9eb6b55eb..75105393d8e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs @@ -44,17 +44,11 @@ public TranslateRequest(string query) { Query = query; } -#if NET7_0_OR_GREATER - public TranslateRequest() - { - } -#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 TranslateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TranslateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -88,11 +82,7 @@ internal TranslateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The SQL query to run. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } /// /// @@ -209,6 +199,11 @@ public Elastic.Clients.Elasticsearch.Sql.TranslateRequestDescriptor ErrorTrace(b return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Sql.TranslateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -342,6 +337,11 @@ public Elastic.Clients.Elasticsearch.Sql.TranslateRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Sql.TranslateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsDisableRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsDisableRequest.g.cs index f2807d61608..c9d1bb53603 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsDisableRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsDisableRequest.g.cs @@ -53,16 +53,10 @@ public sealed partial class LogsDisableRequestParameters : Elastic.Transport.Req [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Streams.Json.LogsDisableRequestConverter))] public sealed partial class LogsDisableRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public LogsDisableRequest() { } -#endif -#if !NET7_0_OR_GREATER - public LogsDisableRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LogsDisableRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -163,6 +157,11 @@ public Elastic.Clients.Elasticsearch.Streams.LogsDisableRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Streams.LogsDisableRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsDisableResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsDisableResponse.g.cs index 8ba3ecbff49..6e17e83d9aa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsDisableResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsDisableResponse.g.cs @@ -42,9 +42,5 @@ internal LogsDisableResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsEnableRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsEnableRequest.g.cs index 12aaac5dd37..356f39cb326 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsEnableRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsEnableRequest.g.cs @@ -58,16 +58,10 @@ public sealed partial class LogsEnableRequestParameters : Elastic.Transport.Requ [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Streams.Json.LogsEnableRequestConverter))] public sealed partial class LogsEnableRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public LogsEnableRequest() { } -#endif -#if !NET7_0_OR_GREATER - public LogsEnableRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LogsEnableRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -173,6 +167,11 @@ public Elastic.Clients.Elasticsearch.Streams.LogsEnableRequestDescriptor ErrorTr return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Streams.LogsEnableRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsEnableResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsEnableResponse.g.cs index 1a9d9bfb0dc..3d99ef1cbea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsEnableResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/LogsEnableResponse.g.cs @@ -42,9 +42,5 @@ internal LogsEnableResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusRequest.g.cs index b300cb146cb..776cf919881 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusRequest.g.cs @@ -44,16 +44,10 @@ public sealed partial class StreamsStatusRequestParameters : Elastic.Transport.R [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Streams.Json.StreamsStatusRequestConverter))] public sealed partial class StreamsStatusRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public StreamsStatusRequest() { } -#endif -#if !NET7_0_OR_GREATER - public StreamsStatusRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StreamsStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -132,6 +126,11 @@ public Elastic.Clients.Elasticsearch.Streams.StreamsStatusRequestDescriptor Erro return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Streams.StreamsStatusRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusResponse.g.cs index 2b67b731972..659ae1a035f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusResponse.g.cs @@ -37,9 +37,5 @@ internal StreamsStatusResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Streams.LogsStatus Logs { get; set; } + public required Elastic.Clients.Elasticsearch.Streams.LogsStatus Logs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs index a7b94ce7597..0a790fff603 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs @@ -61,11 +61,11 @@ public sealed partial class DeleteSynonymRequest : Elastic.Clients.Elasticsearch public DeleteSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public DeleteSynonymRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,11 +85,7 @@ internal DeleteSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The synonyms set identifier to delete. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } } /// @@ -168,6 +164,11 @@ public Elastic.Clients.Elasticsearch.Synonyms.DeleteSynonymRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Synonyms.DeleteSynonymRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymResponse.g.cs index c412cec28d4..68076232588 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteSynonymResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 050e69f78ab..cf83128cadf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs @@ -49,11 +49,11 @@ public sealed partial class DeleteSynonymRuleRequest : Elastic.Clients.Elasticse public DeleteSynonymRuleRequest(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId) : base(r => r.Required("set_id", setId).Required("rule_id", ruleId)) { } -#if NET7_0_OR_GREATER + public DeleteSynonymRuleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -73,22 +73,14 @@ internal DeleteSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// The ID of the synonym rule to delete. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } + public required Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } /// /// /// The ID of the synonym set to update. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id SetId { get => P("set_id"); set => PR("set_id", value); } + public required Elastic.Clients.Elasticsearch.Id SetId { get => P("set_id"); set => PR("set_id", value); } /// /// @@ -179,6 +171,11 @@ public Elastic.Clients.Elasticsearch.Synonyms.DeleteSynonymRuleRequestDescriptor return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Synonyms.DeleteSynonymRuleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs index 2fa4238fd4e..f4e504afae7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs @@ -50,9 +50,5 @@ internal DeleteSynonymRuleResponse(Elastic.Clients.Elasticsearch.Serialization.J /// The update operation result. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs index 795bd57196b..4d11f74117f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs @@ -52,11 +52,11 @@ public sealed partial class GetSynonymRequest : Elastic.Clients.Elasticsearch.Re public GetSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) { } -#if NET7_0_OR_GREATER + public GetSynonymRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal GetSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The synonyms set identifier to retrieve. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -173,6 +169,11 @@ public Elastic.Clients.Elasticsearch.Synonyms.GetSynonymRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Synonyms.GetSynonymRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymResponse.g.cs index 4d72b338a18..8f5757b82b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymResponse.g.cs @@ -42,20 +42,12 @@ internal GetSynonymResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The total number of synonyms rules that the synonyms set contains. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// Synonym rule details. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection SynonymsSet { get; set; } + public required System.Collections.Generic.IReadOnlyCollection SynonymsSet { get; set; } } \ No newline at end of file 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 3ddfa875772..f175975fa99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs @@ -42,11 +42,11 @@ public sealed partial class GetSynonymRuleRequest : Elastic.Clients.Elasticsearc public GetSynonymRuleRequest(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId) : base(r => r.Required("set_id", setId).Required("rule_id", ruleId)) { } -#if NET7_0_OR_GREATER + public GetSynonymRuleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,22 +66,14 @@ internal GetSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The ID of the synonym rule to retrieve. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } + public required Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } /// /// /// The ID of the synonym set to retrieve the synonym rule from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id SetId { get => P("set_id"); set => PR("set_id", value); } + public required Elastic.Clients.Elasticsearch.Id SetId { get => P("set_id"); set => PR("set_id", value); } } /// @@ -152,6 +144,11 @@ public Elastic.Clients.Elasticsearch.Synonyms.GetSynonymRuleRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Synonyms.GetSynonymRuleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs index 8334b2e3c65..a0eb07bb96e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs @@ -42,20 +42,12 @@ internal GetSynonymRuleResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// Synonym Rule identifier /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// Synonyms, in Solr format, that conform the synonym rule. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Synonyms { get; set; } + public required string Synonyms { get; set; } } \ No newline at end of file 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 b9072fb2f07..efc1ef16458 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs @@ -51,16 +51,10 @@ public sealed partial class GetSynonymsSetsRequestParameters : Elastic.Transport [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Synonyms.Json.GetSynonymsSetsRequestConverter))] public sealed partial class GetSynonymsSetsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetSynonymsSetsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetSynonymsSetsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetSynonymsSetsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -157,6 +151,11 @@ public Elastic.Clients.Elasticsearch.Synonyms.GetSynonymsSetsRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Synonyms.GetSynonymsSetsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs index 04c12adb352..87ec6cf613c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs @@ -42,20 +42,12 @@ internal GetSynonymsSetsResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// The total number of synonyms sets defined. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// The identifier and total number of defined synonym rules for each synonyms set. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Results { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Results { get; set; } } \ No newline at end of file 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 7688dc9f5e1..c4dde4fdc40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -64,11 +64,11 @@ public PutSynonymRequest(Elastic.Clients.Elasticsearch.Id id, System.Collections { SynonymsSet = synonymsSet; } -#if NET7_0_OR_GREATER + public PutSynonymRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -88,11 +88,7 @@ internal PutSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The ID of the synonyms set to be created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -107,11 +103,7 @@ internal PutSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The synonym rules definitions for the synonyms set. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection SynonymsSet { get; set; } + public required System.Collections.Generic.ICollection SynonymsSet { get; set; } } /// @@ -232,6 +224,11 @@ public Elastic.Clients.Elasticsearch.Synonyms.PutSynonymRequestDescriptor ErrorT return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Synonyms.PutSynonymRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymResponse.g.cs index 74a28cb3324..0225aaaf3b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymResponse.g.cs @@ -50,9 +50,5 @@ internal PutSynonymResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The update operation result. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } } \ No newline at end of file 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 e1fbcd05156..856551ac7a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs @@ -62,11 +62,11 @@ public PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Id setId, Elastic.Cli { Synonyms = synonyms; } -#if NET7_0_OR_GREATER + public PutSynonymRuleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,22 +86,14 @@ internal PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The ID of the synonym rule to be updated or created. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } + public required Elastic.Clients.Elasticsearch.Id RuleId { get => P("rule_id"); set => PR("rule_id", value); } /// /// /// The ID of the synonym set. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id SetId { get => P("set_id"); set => PR("set_id", value); } + public required Elastic.Clients.Elasticsearch.Id SetId { get => P("set_id"); set => PR("set_id", value); } /// /// @@ -116,11 +108,7 @@ internal PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The synonym rule information definition, which must be in Solr format. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Synonyms { get; set; } + public required string Synonyms { get; set; } } /// @@ -222,6 +210,11 @@ public Elastic.Clients.Elasticsearch.Synonyms.PutSynonymRuleRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Synonyms.PutSynonymRuleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs index 9183191d458..eb22a9a8dcb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs @@ -50,9 +50,5 @@ internal PutSynonymRuleResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// The update operation result. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs index 8f789eaa6ad..df11e90d550 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs @@ -79,16 +79,11 @@ public sealed partial class CancelRequest : Elastic.Clients.Elasticsearch.Reques public CancelRequest(Elastic.Clients.Elasticsearch.TaskId? taskId) : base(r => r.Optional("task_id", taskId)) { } -#if NET7_0_OR_GREATER - public CancelRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public CancelRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CancelRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -277,6 +272,11 @@ public Elastic.Clients.Elasticsearch.Tasks.CancelRequestDescriptor ErrorTrace(bo return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Tasks.CancelRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; 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 c59630058ae..f3f72c14042 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs @@ -63,11 +63,11 @@ public sealed partial class GetTasksRequest : Elastic.Clients.Elasticsearch.Requ public GetTasksRequest(Elastic.Clients.Elasticsearch.Id taskId) : base(r => r.Required("task_id", taskId)) { } -#if NET7_0_OR_GREATER + public GetTasksRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetTasksRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,11 +87,7 @@ internal GetTasksRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The task identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TaskId { get => P("task_id"); set => PR("task_id", value); } + public required Elastic.Clients.Elasticsearch.Id TaskId { get => P("task_id"); set => PR("task_id", value); } /// /// @@ -196,6 +192,11 @@ public Elastic.Clients.Elasticsearch.Tasks.GetTasksRequestDescriptor ErrorTrace( return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Tasks.GetTasksRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksResponse.g.cs index dcd5cef62f6..ed9904967ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksResponse.g.cs @@ -37,16 +37,8 @@ internal GetTasksResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstr _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Completed { get; set; } + public required bool Completed { get; set; } public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; set; } public object? Response { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Tasks.TaskInfo Task { get; set; } + public required Elastic.Clients.Elasticsearch.Tasks.TaskInfo Task { get; set; } } \ No newline at end of file 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 cf3b1c3780d..f6bdaa93766 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs @@ -154,16 +154,10 @@ public sealed partial class ListRequestParameters : Elastic.Transport.RequestPar [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Tasks.Json.ListRequestConverter))] public sealed partial class ListRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public ListRequest() { } -#endif -#if !NET7_0_OR_GREATER - public ListRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ListRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -437,6 +431,11 @@ public Elastic.Clients.Elasticsearch.Tasks.ListRequestDescriptor ErrorTrace(bool return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Tasks.ListRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs index a14c48ab957..ef69948e36c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs @@ -125,11 +125,11 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) { } -#if NET7_0_OR_GREATER + public TermVectorsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermVectorsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -156,11 +156,7 @@ internal TermVectorsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The name of the index that contains the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -705,6 +701,11 @@ public Elastic.Clients.Elasticsearch.TermVectorsRequestDescriptor Err return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TermVectorsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsResponse.g.cs index 515e948d290..79a68422226 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsResponse.g.cs @@ -37,26 +37,10 @@ internal TermVectorsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -bool Found { get; set; } + public required bool Found { get; set; } public string? Id { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Index { get; set; } + public required string Index { get; set; } public System.Collections.Generic.IReadOnlyDictionary? TermVectors { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Took { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long Version { get; set; } + public required long Took { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs index 311e7fafd6e..7797db7c73b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs @@ -54,11 +54,11 @@ public TermsEnumRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C { Field = field; } -#if NET7_0_OR_GREATER + public TermsEnumRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermsEnumRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +80,7 @@ internal TermsEnumRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// To search all data streams or indices, omit this parameter or use * or _all. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -98,11 +94,7 @@ internal TermsEnumRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The string to match at the start of indexed terms. If not provided, all terms in the field are considered. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -330,6 +322,11 @@ public Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor ErrorTrace(bool? return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -540,6 +537,11 @@ public Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor Error return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TermsEnumRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumResponse.g.cs index 3ea4ad051d8..cca79e6750b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumResponse.g.cs @@ -43,19 +43,7 @@ internal TermsEnumResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// This can occur due to a few reasons, such as a request timeout or a node error. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Complete { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Terms { get; set; } + public required bool Complete { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Terms { get; set; } } \ No newline at end of file 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 6f53691712d..b91895264d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs @@ -321,16 +321,10 @@ public sealed partial class FindFieldStructureRequestParameters : Elastic.Transp [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.TextStructure.Json.FindFieldStructureRequestConverter))] public sealed partial class FindFieldStructureRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public FindFieldStructureRequest() { } -#endif -#if !NET7_0_OR_GREATER - public FindFieldStructureRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FindFieldStructureRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -1025,6 +1019,11 @@ public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1494,6 +1493,11 @@ public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TextStructure.FindFieldStructureRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureResponse.g.cs index c1260cabe91..393ba538de2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureResponse.g.cs @@ -37,55 +37,19 @@ internal FindFieldStructureResponse(Elastic.Clients.Elasticsearch.Serialization. _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string Charset { get; set; } + public required string Charset { get; set; } public Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? EcsCompatibility { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary FieldStats { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.TextStructure.FormatType Format { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary FieldStats { get; set; } + public required Elastic.Clients.Elasticsearch.TextStructure.FormatType Format { get; set; } public string? GrokPattern { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Ingest.PipelineConfig IngestPipeline { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.PipelineConfig IngestPipeline { get; set; } public System.Collections.Generic.IReadOnlyCollection? JavaTimestampFormats { get; set; } public System.Collections.Generic.IReadOnlyCollection? JodaTimestampFormats { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } public string? MultilineStartPattern { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool NeedClientTimezone { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int NumLinesAnalyzed { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int NumMessagesAnalyzed { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string SampleStart { get; set; } + public required bool NeedClientTimezone { get; set; } + public required int NumLinesAnalyzed { get; set; } + public required int NumMessagesAnalyzed { get; set; } + public required string SampleStart { get; set; } public string? TimestampField { get; set; } } \ No newline at end of file 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 3019cb98729..a0ed7b489dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs @@ -300,17 +300,11 @@ public FindMessageStructureRequest(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Messages { get; set; } + public required System.Collections.Generic.ICollection Messages { get; set; } } /// @@ -961,6 +951,11 @@ public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1398,6 +1393,11 @@ public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TextStructure.FindMessageStructureRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureResponse.g.cs index bf00e8fb31b..4efbde42e50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureResponse.g.cs @@ -37,55 +37,19 @@ internal FindMessageStructureResponse(Elastic.Clients.Elasticsearch.Serializatio _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -string Charset { get; set; } + public required string Charset { get; set; } public Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? EcsCompatibility { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary FieldStats { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.TextStructure.FormatType Format { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary FieldStats { get; set; } + public required Elastic.Clients.Elasticsearch.TextStructure.FormatType Format { get; set; } public string? GrokPattern { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Ingest.PipelineConfig IngestPipeline { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.PipelineConfig IngestPipeline { get; set; } public System.Collections.Generic.IReadOnlyCollection? JavaTimestampFormats { get; set; } public System.Collections.Generic.IReadOnlyCollection? JodaTimestampFormats { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } public string? MultilineStartPattern { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -bool NeedClientTimezone { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int NumLinesAnalyzed { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -int NumMessagesAnalyzed { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string SampleStart { get; set; } + public required bool NeedClientTimezone { get; set; } + public required int NumLinesAnalyzed { get; set; } + public required int NumMessagesAnalyzed { get; set; } + public required string SampleStart { get; set; } public string? TimestampField { get; set; } } \ No newline at end of file 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 5d404ee7c79..b99faa5ad33 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs @@ -53,17 +53,11 @@ public TestGrokPatternRequest(string grokPattern, System.Collections.Generic.ICo GrokPattern = grokPattern; Text = text; } -#if NET7_0_OR_GREATER - public TestGrokPatternRequest() - { - } -#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 TestGrokPatternRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TestGrokPatternRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -92,22 +86,14 @@ internal TestGrokPatternRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// The Grok pattern to run on the text. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string GrokPattern { get; set; } + public required string GrokPattern { get; set; } /// /// /// The lines of text to run the Grok pattern on. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Text { get; set; } + public required System.Collections.Generic.ICollection Text { get; set; } } /// @@ -197,6 +183,11 @@ public Elastic.Clients.Elasticsearch.TextStructure.TestGrokPatternRequestDescrip return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TextStructure.TestGrokPatternRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternResponse.g.cs index 290eb0b5ddf..78d6fc45e6d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternResponse.g.cs @@ -37,9 +37,5 @@ internal TestGrokPatternResponse(Elastic.Clients.Elasticsearch.Serialization.Jso _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Matches { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Matches { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs index c927064e8b3..8777e2aee02 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs @@ -61,11 +61,11 @@ public sealed partial class DeleteTransformRequest : Elastic.Clients.Elasticsear public DeleteTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) : base(r => r.Required("transform_id", transformId)) { } -#if NET7_0_OR_GREATER + public DeleteTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -85,11 +85,7 @@ internal DeleteTransformRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// Identifier for the transform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } + public required Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } /// /// @@ -204,6 +200,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.DeleteTransformRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.DeleteTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformResponse.g.cs index 1b425b98532..e84623d20fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformResponse.g.cs @@ -42,9 +42,5 @@ internal DeleteTransformResponse(Elastic.Clients.Elasticsearch.Serialization.Jso /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetNodeStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetNodeStatsRequest.g.cs index 27a984c8aca..8eb2919546f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetNodeStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetNodeStatsRequest.g.cs @@ -38,16 +38,10 @@ public sealed partial class GetNodeStatsRequestParameters : Elastic.Transport.Re [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.TransformManagement.Json.GetNodeStatsRequestConverter))] public sealed partial class GetNodeStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public GetNodeStatsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public GetNodeStatsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetNodeStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,6 +102,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.GetNodeStatsRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER +, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif +)] public Elastic.Clients.Elasticsearch.TransformManagement.GetNodeStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetNodeStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetNodeStatsResponse.g.cs index dd93e29d69e..6e90ca1bfbe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetNodeStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetNodeStatsResponse.g.cs @@ -43,9 +43,5 @@ internal GetNodeStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// public System.Collections.Generic.IReadOnlyDictionary? Nodes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TransformManagement.TransformNodeStats Total { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.TransformNodeStats Total { get; set; } } \ No newline at end of file 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 f5a3dad4cea..7584f68f746 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs @@ -91,16 +91,11 @@ public sealed partial class GetTransformRequest : Elastic.Clients.Elasticsearch. public GetTransformRequest(Elastic.Clients.Elasticsearch.Names? transformId) : base(r => r.Optional("transform_id", transformId)) { } -#if NET7_0_OR_GREATER - public GetTransformRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public GetTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -308,6 +303,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.GetTransformRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.GetTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformResponse.g.cs index c03d2c8169a..273f1a73592 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformResponse.g.cs @@ -37,14 +37,6 @@ internal GetTransformResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Transforms { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Transforms { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs index 0393e3c2b22..28f68ba60da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs @@ -90,11 +90,11 @@ public sealed partial class GetTransformStatsRequest : Elastic.Clients.Elasticse public GetTransformStatsRequest(Elastic.Clients.Elasticsearch.Names transformId) : base(r => r.Required("transform_id", transformId)) { } -#if NET7_0_OR_GREATER + public GetTransformStatsRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetTransformStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -117,11 +117,7 @@ internal GetTransformStatsRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// <transform_id>. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names TransformId { get => P("transform_id"); set => PR("transform_id", value); } + public required Elastic.Clients.Elasticsearch.Names TransformId { get => P("transform_id"); set => PR("transform_id", value); } /// /// @@ -298,6 +294,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.GetTransformStatsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.GetTransformStatsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsResponse.g.cs index bad77b0fea3..afbfee466f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsResponse.g.cs @@ -37,14 +37,6 @@ internal GetTransformStatsResponse(Elastic.Clients.Elasticsearch.Serialization.J _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -long Count { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Transforms { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Transforms { get; set; } } \ No newline at end of file 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 cc884b93105..89aa12e53c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs @@ -53,16 +53,11 @@ public sealed partial class PreviewTransformRequest : Elastic.Clients.Elasticsea public PreviewTransformRequest(Elastic.Clients.Elasticsearch.Id? transformId) : base(r => r.Optional("transform_id", transformId)) { } -#if NET7_0_OR_GREATER - public PreviewTransformRequest() - { - } -#endif -#if !NET7_0_OR_GREATER + public PreviewTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PreviewTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -524,6 +519,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.PreviewTransformRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.PreviewTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -862,6 +862,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.PreviewTransformRequest return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.PreviewTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformResponse.g.cs index 87a1d374280..44312fe76fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformResponse.g.cs @@ -37,14 +37,6 @@ internal PreviewTransformResponse(Elastic.Clients.Elasticsearch.Serialization.Js _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.IndexManagement.IndexState GeneratedDestIndex { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyCollection Preview { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexState GeneratedDestIndex { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Preview { get; set; } } \ No newline at end of file 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 9b4b5560ae0..28e3aa22ec6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs @@ -91,11 +91,11 @@ public PutTransformRequest(Elastic.Clients.Elasticsearch.Id transformId, Elastic Dest = dest; Source = source; } -#if NET7_0_OR_GREATER + public PutTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PutTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -116,11 +116,7 @@ internal PutTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// hyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } + public required Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } /// /// @@ -152,11 +148,7 @@ internal PutTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The destination for the transform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TransformManagement.Destination Dest { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.Destination Dest { get; set; } /// /// @@ -209,11 +201,7 @@ internal PutTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The source of the data for the transform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TransformManagement.Source Source { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.Source Source { get; set; } /// /// @@ -646,6 +634,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.PutTransformRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.PutTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -1049,6 +1042,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.PutTransformRequestDesc return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.PutTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformResponse.g.cs index a7907020dea..d900d579795 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformResponse.g.cs @@ -42,9 +42,5 @@ internal PutTransformResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs index d6b558a0dcd..8189d578cce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs @@ -57,11 +57,11 @@ public sealed partial class ResetTransformRequest : Elastic.Clients.Elasticsearc public ResetTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) : base(r => r.Required("transform_id", transformId)) { } -#if NET7_0_OR_GREATER + public ResetTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResetTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +82,7 @@ internal ResetTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// hyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } + public required Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } /// /// @@ -186,6 +182,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.ResetTransformRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.ResetTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformResponse.g.cs index 364c55f5870..308599bd3fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformResponse.g.cs @@ -42,9 +42,5 @@ internal ResetTransformResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs index c31819fcbe7..153db4c519a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs @@ -52,11 +52,11 @@ public sealed partial class ScheduleNowTransformRequest : Elastic.Clients.Elasti public ScheduleNowTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) : base(r => r.Required("transform_id", transformId)) { } -#if NET7_0_OR_GREATER + public ScheduleNowTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScheduleNowTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +76,7 @@ internal ScheduleNowTransformRequest(Elastic.Clients.Elasticsearch.Serialization /// Identifier for the transform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } + public required Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } /// /// @@ -162,6 +158,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.ScheduleNowTransformReq return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.ScheduleNowTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformResponse.g.cs index 8c957cb8bff..c57bdf582b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformResponse.g.cs @@ -42,9 +42,5 @@ internal ScheduleNowTransformResponse(Elastic.Clients.Elasticsearch.Serializatio /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 2fbfed3aa6c..d5dee49aed2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeRequest.g.cs @@ -64,16 +64,10 @@ public sealed partial class SetUpgradeModeRequestParameters : Elastic.Transport. [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.TransformManagement.Json.SetUpgradeModeRequestConverter))] public sealed partial class SetUpgradeModeRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public SetUpgradeModeRequest() { } -#endif -#if !NET7_0_OR_GREATER - public SetUpgradeModeRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SetUpgradeModeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -185,6 +179,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.SetUpgradeModeRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.SetUpgradeModeRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeResponse.g.cs index 29c6018afaf..767a5b543c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/SetUpgradeModeResponse.g.cs @@ -42,9 +42,5 @@ internal SetUpgradeModeResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs index 135d03bccc5..c3db74b6b0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs @@ -69,11 +69,11 @@ public sealed partial class StartTransformRequest : Elastic.Clients.Elasticsearc public StartTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) : base(r => r.Required("transform_id", transformId)) { } -#if NET7_0_OR_GREATER + public StartTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StartTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -93,11 +93,7 @@ internal StartTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Identifier for the transform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } + public required Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } /// /// @@ -207,6 +203,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.StartTransformRequestDe return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.StartTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformResponse.g.cs index ed65d5d204b..f71fea6b317 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformResponse.g.cs @@ -42,9 +42,5 @@ internal StartTransformResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 57fd96633ac..44104347fc5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs @@ -89,11 +89,11 @@ public sealed partial class StopTransformRequest : Elastic.Clients.Elasticsearch public StopTransformRequest(Elastic.Clients.Elasticsearch.Name transformId) : base(r => r.Required("transform_id", transformId)) { } -#if NET7_0_OR_GREATER + public StopTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -114,11 +114,7 @@ internal StopTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// To stop all transforms, use _all or * as the identifier. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name TransformId { get => P("transform_id"); set => PR("transform_id", value); } + public required Elastic.Clients.Elasticsearch.Name TransformId { get => P("transform_id"); set => PR("transform_id", value); } /// /// @@ -295,6 +291,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.StopTransformRequestDes return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.StopTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformResponse.g.cs index 352f4697343..5ae8dbf3b19 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformResponse.g.cs @@ -42,9 +42,5 @@ internal StopTransformResponse(Elastic.Clients.Elasticsearch.Serialization.JsonC /// 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; } + public required bool Acknowledged { get; set; } } \ No newline at end of file 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 b6dd793882d..8f2e9cc521b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs @@ -65,11 +65,11 @@ public sealed partial class UpdateTransformRequest : Elastic.Clients.Elasticsear public UpdateTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) : base(r => r.Required("transform_id", transformId)) { } -#if NET7_0_OR_GREATER + public UpdateTransformRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateTransformRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -89,11 +89,7 @@ internal UpdateTransformRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// Identifier for the transform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } + public required Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } /// /// @@ -507,6 +503,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.UpdateTransformRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.UpdateTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -844,6 +845,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.UpdateTransformRequestD return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.UpdateTransformRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformResponse.g.cs index a2d849d7878..6ab59c28d0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformResponse.g.cs @@ -38,45 +38,17 @@ internal UpdateTransformResponse(Elastic.Clients.Elasticsearch.Serialization.Jso } public Elastic.Clients.Elasticsearch.MachineLearning.TransformAuthorization? Authorization { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -long CreateTime { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Description { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Core.Reindex.Destination Dest { get; set; } + public required long CreateTime { get; set; } + public required string Description { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Reindex.Destination Dest { get; set; } public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Id { get; set; } + public required string Id { get; set; } public Elastic.Clients.Elasticsearch.TransformManagement.Latest? Latest { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } public Elastic.Clients.Elasticsearch.TransformManagement.Pivot? Pivot { get; set; } public Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicy? RetentionPolicy { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.TransformManagement.Settings Settings { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Core.Reindex.Source Source { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.Settings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Reindex.Source Source { get; set; } public Elastic.Clients.Elasticsearch.TransformManagement.Sync? Sync { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Version { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs index 301bbbd60de..47bdc8e96ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs @@ -66,16 +66,10 @@ public sealed partial class UpgradeTransformsRequestParameters : Elastic.Transpo [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.TransformManagement.Json.UpgradeTransformsRequestConverter))] public sealed partial class UpgradeTransformsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public UpgradeTransformsRequest() { } -#endif -#if !NET7_0_OR_GREATER - public UpgradeTransformsRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpgradeTransformsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -188,6 +182,11 @@ public Elastic.Clients.Elasticsearch.TransformManagement.UpgradeTransformsReques return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.TransformManagement.UpgradeTransformsRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsResponse.g.cs index 0cd5fd9361b..51fc479e683 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsResponse.g.cs @@ -42,31 +42,19 @@ internal UpgradeTransformsResponse(Elastic.Clients.Elasticsearch.Serialization.J /// The number of transforms that need to be upgraded. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NeedsUpdate { get; set; } + public required int NeedsUpdate { get; set; } /// /// /// The number of transforms that don’t require upgrading. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NoAction { get; set; } + public required int NoAction { get; set; } /// /// /// The number of transforms that have been upgraded. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Updated { get; set; } + public required int Updated { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 0c53e9358b2..e88ad2e360a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -437,11 +437,11 @@ public sealed partial class UpdateByQueryRequest : Elastic.Clients.Elasticsearch public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) { } -#if NET7_0_OR_GREATER + public UpdateByQueryRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -463,11 +463,7 @@ internal UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// To search all data streams or indices, omit this parameter or use * or _all. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.Indices Indices { get => P("index"); set => PR("index", value); } /// /// @@ -1477,6 +1473,11 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor ErrorTrace(b return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; @@ -2229,6 +2230,11 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor E return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs index 2f77de343dd..cac0b8f3e5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs @@ -50,11 +50,11 @@ public sealed partial class UpdateByQueryRethrottleRequest : Elastic.Clients.Ela public UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Id taskId) : base(r => r.Required("task_id", taskId)) { } -#if NET7_0_OR_GREATER + public UpdateByQueryRethrottleRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serializat /// The ID for the task. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id TaskId { get => P("task_id"); set => PR("task_id", value); } + public required Elastic.Clients.Elasticsearch.Id TaskId { get => P("task_id"); set => PR("task_id", value); } /// /// @@ -159,6 +155,11 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRethrottleRequestDescriptor Er return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.UpdateByQueryRethrottleRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs index 113ab8706c4..9bc3c52fb81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs @@ -37,9 +37,5 @@ internal UpdateByQueryRethrottleResponse(Elastic.Clients.Elasticsearch.Serializa _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs index 2fe923270aa..7a3ca73b0c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs @@ -165,11 +165,11 @@ public sealed partial class UpdateRequest : Elastic public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", index).Required("id", id)) { } -#if NET7_0_OR_GREATER + public UpdateRequest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -189,11 +189,7 @@ internal UpdateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// A unique identifier for the document to be updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } + public required Elastic.Clients.Elasticsearch.Id Id { get => P("id"); set => PR("id", value); } /// /// @@ -201,11 +197,7 @@ internal UpdateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// By default, the index is created automatically if it doesn't exist. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } + public required Elastic.Clients.Elasticsearch.IndexName Index { get => P("index"); set => PR("index", value); } /// /// @@ -729,6 +721,11 @@ public Elastic.Clients.Elasticsearch.UpdateRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateResponse.g.cs index a0bba6af871..ead1e49400b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateResponse.g.cs @@ -51,22 +51,14 @@ internal UpdateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The unique identifier for the added document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// The name of the index the document was added to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// @@ -80,11 +72,7 @@ internal UpdateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The result of the indexing operation: created or updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Result Result { get; set; } + public required Elastic.Clients.Elasticsearch.Result Result { get; set; } /// /// @@ -99,20 +87,12 @@ internal UpdateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Information about the replication process of the operation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } /// /// /// The document version, which is incremented each time the document is updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required long Version { get; set; } } \ No newline at end of file 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 1be0968ebd4..302ba295a0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -70,16 +70,10 @@ public sealed partial class XpackInfoRequestParameters : Elastic.Transport.Reque [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Xpack.Json.XpackInfoRequestConverter))] public sealed partial class XpackInfoRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public XpackInfoRequest() { } -#endif -#if !NET7_0_OR_GREATER - public XpackInfoRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal XpackInfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -209,6 +203,11 @@ public Elastic.Clients.Elasticsearch.Xpack.XpackInfoRequestDescriptor ErrorTrace return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Xpack.XpackInfoRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoResponse.g.cs index 426c176224d..5e7c8b56b2c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoResponse.g.cs @@ -37,24 +37,8 @@ internal XpackInfoResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.BuildInformation Build { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Features Features { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.MinimalLicenseInformation License { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -string Tagline { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.BuildInformation Build { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Features Features { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MinimalLicenseInformation License { get; set; } + public required string Tagline { get; set; } } \ No newline at end of file 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 46717fdbfaa..7ee6bba95df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs @@ -47,16 +47,10 @@ public sealed partial class XpackUsageRequestParameters : Elastic.Transport.Requ [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Xpack.Json.XpackUsageRequestConverter))] public sealed partial class XpackUsageRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest { -#if NET7_0_OR_GREATER public XpackUsageRequest() { } -#endif -#if !NET7_0_OR_GREATER - public XpackUsageRequest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal XpackUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -140,6 +134,11 @@ public Elastic.Clients.Elasticsearch.Xpack.XpackUsageRequestDescriptor ErrorTrac return this; } + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] public Elastic.Clients.Elasticsearch.Xpack.XpackUsageRequestDescriptor FilterPath(params string[]? value) { Instance.FilterPath = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageResponse.g.cs index 14f32f5cabd..8c550c59b97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageResponse.g.cs @@ -37,112 +37,32 @@ internal XpackUsageResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Base AggregateMetric { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Analytics Analytics { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Archive Archive { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Ccr Ccr { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Base AggregateMetric { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Analytics Analytics { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Archive Archive { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Ccr Ccr { get; set; } public Elastic.Clients.Elasticsearch.Xpack.Base? DataFrame { get; set; } public Elastic.Clients.Elasticsearch.Xpack.Base? DataScience { get; set; } public Elastic.Clients.Elasticsearch.Xpack.DataStreams? DataStreams { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.DataTiers DataTiers { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.DataTiers DataTiers { get; set; } public Elastic.Clients.Elasticsearch.Xpack.Base? Enrich { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Eql Eql { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Eql Eql { get; set; } public Elastic.Clients.Elasticsearch.Xpack.Flattened? Flattened { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Base Graph { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Base Graph { get; set; } public Elastic.Clients.Elasticsearch.Xpack.HealthStatistics? HealthApi { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Ilm Ilm { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Base Logstash { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.MachineLearning Ml { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Monitoring Monitoring { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Base Rollup { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Ilm Ilm { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Base Logstash { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MachineLearning Ml { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Monitoring Monitoring { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Base Rollup { get; set; } public Elastic.Clients.Elasticsearch.Xpack.RuntimeFieldTypes? RuntimeFields { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.SearchableSnapshots SearchableSnapshots { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Security Security { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Slm Slm { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Base Spatial { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Sql Sql { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Base Transform { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.SearchableSnapshots SearchableSnapshots { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Security Security { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Slm Slm { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Base Spatial { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Sql Sql { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Base Transform { get; set; } public Elastic.Clients.Elasticsearch.Xpack.Vector? Vectors { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Base VotingOnly { get; set; } - public -#if NET7_0_OR_GREATER -required -#endif -Elastic.Clients.Elasticsearch.Xpack.Watcher Watcher { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Base VotingOnly { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Watcher Watcher { get; set; } } \ No newline at end of file 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 8cc26acfaaa..fe5ba93d062 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -1178,6 +1178,52 @@ public virtual Elastic.Clients.Elasticsearch.Inference.PutGooglevertexaiResponse return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.Inference.PutGroqResponse PutGroq(Elastic.Clients.Elasticsearch.Inference.PutGroqRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Inference.PutGroqResponse PutGroq(Elastic.Clients.Elasticsearch.Inference.GroqTaskType taskType, Elastic.Clients.Elasticsearch.Id groqInferenceId) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor(taskType, groqInferenceId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Inference.PutGroqResponse PutGroq(Elastic.Clients.Elasticsearch.Inference.GroqTaskType taskType, Elastic.Clients.Elasticsearch.Id groqInferenceId, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor(taskType, groqInferenceId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task PutGroqAsync(Elastic.Clients.Elasticsearch.Inference.PutGroqRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutGroqAsync(Elastic.Clients.Elasticsearch.Inference.GroqTaskType taskType, Elastic.Clients.Elasticsearch.Id groqInferenceId, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor(taskType, groqInferenceId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutGroqAsync(Elastic.Clients.Elasticsearch.Inference.GroqTaskType taskType, Elastic.Clients.Elasticsearch.Id groqInferenceId, System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutGroqRequestDescriptor(taskType, groqInferenceId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceResponse PutHuggingFace(Elastic.Clients.Elasticsearch.Inference.PutHuggingFaceRequest request) { request.BeforeRequest(); @@ -1362,6 +1408,52 @@ public virtual Elastic.Clients.Elasticsearch.Inference.PutMistralResponse PutMis return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.Inference.PutNvidiaResponse PutNvidia(Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Inference.PutNvidiaResponse PutNvidia(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType taskType, Elastic.Clients.Elasticsearch.Id nvidiaInferenceId) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor(taskType, nvidiaInferenceId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Inference.PutNvidiaResponse PutNvidia(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType taskType, Elastic.Clients.Elasticsearch.Id nvidiaInferenceId, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor(taskType, nvidiaInferenceId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task PutNvidiaAsync(Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutNvidiaAsync(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType taskType, Elastic.Clients.Elasticsearch.Id nvidiaInferenceId, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor(taskType, nvidiaInferenceId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task PutNvidiaAsync(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType taskType, Elastic.Clients.Elasticsearch.Id nvidiaInferenceId, System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.PutNvidiaRequestDescriptor(taskType, nvidiaInferenceId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.Inference.PutOpenaiResponse PutOpenai(Elastic.Clients.Elasticsearch.Inference.PutOpenaiRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Project.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Project.g.cs new file mode 100644 index 00000000000..6ff5cf2367f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Project.g.cs @@ -0,0 +1,86 @@ +// 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.Project; + +public partial class ProjectNamespacedClient : Elastic.Clients.Elasticsearch.NamespacedClientProxy +{ + /// + /// + /// Initializes a new instance of the class for mocking. + /// + /// + protected ProjectNamespacedClient() : base() + { + } + + internal ProjectNamespacedClient(Elastic.Clients.Elasticsearch.ElasticsearchClient client) : base(client) + { + } + + public virtual Elastic.Clients.Elasticsearch.Project.TagsResponse Tags(Elastic.Clients.Elasticsearch.Project.TagsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Project.TagsResponse Tags() + { + var builder = new Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Project.TagsResponse Tags(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task TagsAsync(Elastic.Clients.Elasticsearch.Project.TagsRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task TagsAsync(System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task TagsAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Project.TagsRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index 98483a59e72..0cb9585b763 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -41,6 +41,7 @@ public partial class ElasticsearchClient public virtual Elastic.Clients.Elasticsearch.LicenseManagement.LicenseManagementNamespacedClient LicenseManagement { get; private set; } public virtual Elastic.Clients.Elasticsearch.MachineLearning.MachineLearningNamespacedClient MachineLearning { get; private set; } public virtual Elastic.Clients.Elasticsearch.Nodes.NodesNamespacedClient Nodes { get; private set; } + public virtual Elastic.Clients.Elasticsearch.Project.ProjectNamespacedClient Project { get; private set; } public virtual Elastic.Clients.Elasticsearch.QueryRules.QueryRulesNamespacedClient QueryRules { get; private set; } public virtual Elastic.Clients.Elasticsearch.Rollup.RollupNamespacedClient Rollup { get; private set; } public virtual Elastic.Clients.Elasticsearch.SearchableSnapshots.SearchableSnapshotsNamespacedClient SearchableSnapshots { get; private set; } @@ -75,6 +76,7 @@ private partial void SetupNamespaces() LicenseManagement = new Elastic.Clients.Elasticsearch.LicenseManagement.LicenseManagementNamespacedClient(this); MachineLearning = new Elastic.Clients.Elasticsearch.MachineLearning.MachineLearningNamespacedClient(this); Nodes = new Elastic.Clients.Elasticsearch.Nodes.NodesNamespacedClient(this); + Project = new Elastic.Clients.Elasticsearch.Project.ProjectNamespacedClient(this); QueryRules = new Elastic.Clients.Elasticsearch.QueryRules.QueryRulesNamespacedClient(this); Rollup = new Elastic.Clients.Elasticsearch.Rollup.RollupNamespacedClient(this); SearchableSnapshots = new Elastic.Clients.Elasticsearch.SearchableSnapshots.SearchableSnapshotsNamespacedClient(this); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixAggregate.g.cs index a7452cc1bcd..02aa5a45f49 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixAggregate.g.cs @@ -31,28 +31,18 @@ public AdjacencyMatrixAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "adjacency_matrix"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixAggregation.g.cs index 299e5fff347..468f4ae813b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.AdjacencyMatrixAggregationConverter))] public sealed partial class AdjacencyMatrixAggregation { -#if NET7_0_OR_GREATER public AdjacencyMatrixAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public AdjacencyMatrixAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AdjacencyMatrixAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixBucket.g.cs index 57473cd340c..f036d3e6a12 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AdjacencyMatrixBucket.g.cs @@ -32,17 +32,11 @@ public AdjacencyMatrixBucket(long docCount, string key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public AdjacencyMatrixBucket() - { - } -#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 AdjacencyMatrixBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AdjacencyMatrixBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,14 +49,6 @@ internal AdjacencyMatrixBucket(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Key { get; set; } + public required long DocCount { get; set; } + public required string Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs index c08f0024d75..ce4466cae68 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs @@ -28,16 +28,11 @@ public sealed partial class Aggregation { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Aggregation() - { - } -#endif -#if !NET7_0_OR_GREATER + public Aggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Aggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregationRange.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregationRange.g.cs index ce28ae8c1dc..9ff85766b35 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregationRange.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregationRange.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.AggregationRangeConverter))] public sealed partial class AggregationRange { -#if NET7_0_OR_GREATER public AggregationRange() { } -#endif -#if !NET7_0_OR_GREATER - public AggregationRange() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AggregationRange(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AutoDateHistogramAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AutoDateHistogramAggregate.g.cs index 849f4639fbe..48aa3f56272 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AutoDateHistogramAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AutoDateHistogramAggregate.g.cs @@ -32,33 +32,19 @@ public AutoDateHistogramAggregate(System.Collections.Generic.IReadOnlyCollection Buckets = buckets; Interval = interval; } -#if NET7_0_OR_GREATER - public AutoDateHistogramAggregate() - { - } -#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 AutoDateHistogramAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AutoDateHistogramAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Interval { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required string Interval { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "auto_date_histogram"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs index 17727fee494..db23356c950 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.AutoDateHistogramAggregationConverter))] public sealed partial class AutoDateHistogramAggregation { -#if NET7_0_OR_GREATER public AutoDateHistogramAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public AutoDateHistogramAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AutoDateHistogramAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageAggregate.g.cs index 451ee7a14ca..038f0aec75b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageAggregate.g.cs @@ -31,17 +31,11 @@ public AverageAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public AverageAggregate() - { - } -#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 AverageAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AverageAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,10 +52,6 @@ internal AverageAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageAggregation.g.cs index 2f891890671..5096d48c9f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.AverageAggregationConverter))] public sealed partial class AverageAggregation { -#if NET7_0_OR_GREATER public AverageAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public AverageAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AverageAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs index 07db59d81e8..03470dfc984 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.AverageBucketAggregationConverter))] public sealed partial class AverageBucketAggregation { -#if NET7_0_OR_GREATER public AverageBucketAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public AverageBucketAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AverageBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BoxplotAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BoxplotAggregate.g.cs index 6efa263e782..15f08f54cbb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BoxplotAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BoxplotAggregate.g.cs @@ -37,67 +37,33 @@ public BoxplotAggregate(double lower, double max, double min, double q1, double Q3 = q3; Upper = upper; } -#if NET7_0_OR_GREATER - public BoxplotAggregate() - { - } -#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 BoxplotAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BoxplotAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double Lower { get; set; } + public required double Lower { get; set; } public string? LowerAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Max { get; set; } + public required double Max { get; set; } public string? MaxAsString { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Min { get; set; } + public required double Min { get; set; } public string? MinAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Q1 { get; set; } + public required double Q1 { get; set; } public string? Q1AsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Q2 { get; set; } + public required double Q2 { get; set; } public string? Q2AsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Q3 { get; set; } + public required double Q3 { get; set; } public string? Q3AsString { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "boxplot"; - public -#if NET7_0_OR_GREATER - required -#endif - double Upper { get; set; } + public required double Upper { get; set; } public string? UpperAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BoxplotAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BoxplotAggregation.g.cs index a943100f23c..0c96575cbcb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BoxplotAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BoxplotAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.BoxplotAggregationConverter))] public sealed partial class BoxplotAggregation { -#if NET7_0_OR_GREATER public BoxplotAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public BoxplotAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BoxplotAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs index 24a69e03298..799701c138d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs @@ -36,17 +36,11 @@ public BucketCorrelationAggregation(Elastic.Clients.Elasticsearch.Aggregations.B { Function = function; } -#if NET7_0_OR_GREATER - public BucketCorrelationAggregation() - { - } -#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 BucketCorrelationAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketCorrelationAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +59,7 @@ internal BucketCorrelationAggregation(Elastic.Clients.Elasticsearch.Serializatio /// The correlation function to execute. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationFunction Function { get; set; } + public required Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationFunction Function { get; set; } } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunction.g.cs index f364290e766..1d14b94010c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunction.g.cs @@ -31,17 +31,11 @@ public BucketCorrelationFunction(Elastic.Clients.Elasticsearch.Aggregations.Buck { CountCorrelation = countCorrelation; } -#if NET7_0_OR_GREATER - public BucketCorrelationFunction() - { - } -#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 BucketCorrelationFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketCorrelationFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal BucketCorrelationFunction(Elastic.Clients.Elasticsearch.Serialization.J /// The configuration to calculate a count correlation. This function is designed for determining the correlation of a term value and a given metric. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationFunctionCountCorrelation CountCorrelation { get; set; } + public required Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationFunctionCountCorrelation CountCorrelation { get; set; } } public readonly partial struct BucketCorrelationFunctionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunctionCountCorrelation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunctionCountCorrelation.g.cs index 1db990f879a..58a5e6d5a0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunctionCountCorrelation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunctionCountCorrelation.g.cs @@ -31,17 +31,11 @@ public BucketCorrelationFunctionCountCorrelation(Elastic.Clients.Elasticsearch.A { Indicator = indicator; } -#if NET7_0_OR_GREATER - public BucketCorrelationFunctionCountCorrelation() - { - } -#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 BucketCorrelationFunctionCountCorrelation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketCorrelationFunctionCountCorrelation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal BucketCorrelationFunctionCountCorrelation(Elastic.Clients.Elasticsearch /// The indicator with which to correlate the configured bucket_path values. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationFunctionCountCorrelationIndicator Indicator { get; set; } + public required Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationFunctionCountCorrelationIndicator Indicator { get; set; } } public readonly partial struct BucketCorrelationFunctionCountCorrelationDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunctionCountCorrelationIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunctionCountCorrelationIndicator.g.cs index 8495bf4cac2..d86c010cd65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunctionCountCorrelationIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationFunctionCountCorrelationIndicator.g.cs @@ -32,17 +32,11 @@ public BucketCorrelationFunctionCountCorrelationIndicator(int docCount, System.C DocCount = docCount; Expectations = expectations; } -#if NET7_0_OR_GREATER - public BucketCorrelationFunctionCountCorrelationIndicator() - { - } -#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 BucketCorrelationFunctionCountCorrelationIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketCorrelationFunctionCountCorrelationIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,11 +50,7 @@ internal BucketCorrelationFunctionCountCorrelationIndicator(Elastic.Clients.Elas /// to which the term values are correlated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DocCount { get; set; } + public required int DocCount { get; set; } /// /// @@ -68,11 +58,7 @@ internal BucketCorrelationFunctionCountCorrelationIndicator(Elastic.Clients.Elas /// The length of this value must always equal the number of buckets returned by the bucket_path. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Expectations { get; set; } + public required System.Collections.Generic.ICollection Expectations { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs index 086ac7f8dfd..65c9dbef4b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs @@ -39,16 +39,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.BucketKsAggregationConverter))] public sealed partial class BucketKsAggregation { -#if NET7_0_OR_GREATER public BucketKsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public BucketKsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketKsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketMetricValueAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketMetricValueAggregate.g.cs index 75a6b59f744..101f4c148db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketMetricValueAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketMetricValueAggregate.g.cs @@ -32,28 +32,18 @@ public BucketMetricValueAggregate(System.Collections.Generic.IReadOnlyCollection Keys = keys; Value = value; } -#if NET7_0_OR_GREATER - public BucketMetricValueAggregate() - { - } -#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 BucketMetricValueAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketMetricValueAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Keys { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Keys { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "bucket_metric_value"; @@ -64,10 +54,6 @@ internal BucketMetricValueAggregate(Elastic.Clients.Elasticsearch.Serialization. /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs index 4759dcc1087..0dbd7ef7f49 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.BucketScriptAggregationConverter))] public sealed partial class BucketScriptAggregation { -#if NET7_0_OR_GREATER public BucketScriptAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public BucketScriptAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketScriptAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs index 07046f9bae0..d3c6c07cd53 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.BucketSelectorAggregationConverter))] public sealed partial class BucketSelectorAggregation { -#if NET7_0_OR_GREATER public BucketSelectorAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public BucketSelectorAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketSelectorAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSortAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSortAggregation.g.cs index 7fdbf43f659..3e79a094b43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSortAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSortAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.BucketSortAggregationConverter))] public sealed partial class BucketSortAggregation { -#if NET7_0_OR_GREATER public BucketSortAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public BucketSortAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketSortAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CardinalityAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CardinalityAggregate.g.cs index 92ef76fcf16..83266902ff7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CardinalityAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CardinalityAggregate.g.cs @@ -31,17 +31,11 @@ public CardinalityAggregate(long value) { Value = value; } -#if NET7_0_OR_GREATER - public CardinalityAggregate() - { - } -#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 CardinalityAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CardinalityAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,9 +46,5 @@ internal CardinalityAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonCo string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "cardinality"; - public -#if NET7_0_OR_GREATER - required -#endif - long Value { get; set; } + public required long Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CardinalityAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CardinalityAggregation.g.cs index a212f072e03..ac6c7d7aa1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CardinalityAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CardinalityAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CardinalityAggregationConverter))] public sealed partial class CardinalityAggregation { -#if NET7_0_OR_GREATER public CardinalityAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CardinalityAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CardinalityAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.g.cs index fe87022d404..332844397ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CartesianBoundsAggregateConverter))] public sealed partial class CartesianBoundsAggregate : Elastic.Clients.Elasticsearch.Aggregations.IAggregate { -#if NET7_0_OR_GREATER public CartesianBoundsAggregate() { } -#endif -#if !NET7_0_OR_GREATER - public CartesianBoundsAggregate() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CartesianBoundsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.g.cs index 8f5de3facc0..018e132d1de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CartesianBoundsAggregationConverter))] public sealed partial class CartesianBoundsAggregation { -#if NET7_0_OR_GREATER public CartesianBoundsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CartesianBoundsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.g.cs index f4c45a8595b..0b40dae5a9a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.g.cs @@ -31,28 +31,18 @@ public CartesianCentroidAggregate(long count) { Count = count; } -#if NET7_0_OR_GREATER - public CartesianCentroidAggregate() - { - } -#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 CartesianCentroidAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CartesianCentroidAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } public Elastic.Clients.Elasticsearch.CartesianPoint? Location { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.g.cs index 85e634139b8..c6a057f9978 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CartesianCentroidAggregationConverter))] public sealed partial class CartesianCentroidAggregation { -#if NET7_0_OR_GREATER public CartesianCentroidAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CartesianCentroidAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CategorizeTextAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CategorizeTextAggregation.g.cs index bf5c9dad576..eaa003d8703 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CategorizeTextAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CategorizeTextAggregation.g.cs @@ -39,17 +39,11 @@ public CategorizeTextAggregation(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public CategorizeTextAggregation() - { - } -#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 CategorizeTextAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CategorizeTextAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,11 +77,7 @@ internal CategorizeTextAggregation(Elastic.Clients.Elasticsearch.Serialization.J /// The semi-structured text field to categorize. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.g.cs index 4f657e0ac0e..47acffa7bc0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.g.cs @@ -31,17 +31,11 @@ public ChangePointAggregate(Elastic.Clients.Elasticsearch.Aggregations.ChangeTyp { Type = type; } -#if NET7_0_OR_GREATER - public ChangePointAggregate() - { - } -#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 ChangePointAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChangePointAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,11 +44,7 @@ internal ChangePointAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonCo public Elastic.Clients.Elasticsearch.Aggregations.ChangePointBucket? Bucket { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Aggregations.ChangeType Type { get; set; } + public required Elastic.Clients.Elasticsearch.Aggregations.ChangeType Type { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "change_point"; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.g.cs index 85516127794..a8f2acf2abc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ChangePointAggregationConverter))] public sealed partial class ChangePointAggregation { -#if NET7_0_OR_GREATER public ChangePointAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ChangePointAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChangePointAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.g.cs index a402968ceac..3f9848229e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.g.cs @@ -32,17 +32,11 @@ public ChangePointBucket(long docCount, Elastic.Clients.Elasticsearch.FieldValue DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public ChangePointBucket() - { - } -#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 ChangePointBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChangePointBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,14 +49,6 @@ internal ChangePointBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.FieldValue Key { get; set; } + public required long DocCount { get; set; } + public required Elastic.Clients.Elasticsearch.FieldValue Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.g.cs index 40e31dcefe9..530e7b2dc36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.g.cs @@ -28,16 +28,11 @@ public sealed partial class ChangeType { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public ChangeType() - { - } -#endif -#if !NET7_0_OR_GREATER + public ChangeType() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChangeType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChiSquareHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChiSquareHeuristic.g.cs index 4f58db2b3d2..8cf7ce3a541 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChiSquareHeuristic.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChiSquareHeuristic.g.cs @@ -32,17 +32,11 @@ public ChiSquareHeuristic(bool backgroundIsSuperset, bool includeNegatives) BackgroundIsSuperset = backgroundIsSuperset; IncludeNegatives = includeNegatives; } -#if NET7_0_OR_GREATER - public ChiSquareHeuristic() - { - } -#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 ChiSquareHeuristic() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChiSquareHeuristic(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal ChiSquareHeuristic(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Set to false if you defined a custom background filter that represents a different set of documents that you want to compare to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool BackgroundIsSuperset { get; set; } + public required bool BackgroundIsSuperset { get; set; } /// /// /// Set to false to filter out the terms that appear less often in the subset than in documents outside the subset. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IncludeNegatives { get; set; } + public required bool IncludeNegatives { get; set; } } public readonly partial struct ChiSquareHeuristicDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChildrenAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChildrenAggregate.g.cs index 9e222e0b7cf..5f99c4e64f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChildrenAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChildrenAggregate.g.cs @@ -31,17 +31,11 @@ public ChildrenAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public ChildrenAggregate() - { - } -#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 ChildrenAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChildrenAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal ChildrenAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "children"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChildrenAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChildrenAggregation.g.cs index a02f17b8bf5..2e9af9c35c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChildrenAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChildrenAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ChildrenAggregationConverter))] public sealed partial class ChildrenAggregation { -#if NET7_0_OR_GREATER public ChildrenAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ChildrenAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChildrenAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregate.g.cs index 11ad98d7a43..4778cee549f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregate.g.cs @@ -31,17 +31,11 @@ public CompositeAggregate(System.Collections.Generic.IReadOnlyCollection? AfterKey { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "composite"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs index df81db7b9f5..98461dbd1c3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CompositeAggregationConverter))] public sealed partial class CompositeAggregation { -#if NET7_0_OR_GREATER public CompositeAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CompositeAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompositeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregationSource.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregationSource.g.cs index 4e259268560..1ec5d7984d0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregationSource.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregationSource.g.cs @@ -28,16 +28,11 @@ public sealed partial class CompositeAggregationSource { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public CompositeAggregationSource() - { - } -#endif -#if !NET7_0_OR_GREATER + public CompositeAggregationSource() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompositeAggregationSource(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeBucket.g.cs index 44a80f38af9..b432927764f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeBucket.g.cs @@ -32,17 +32,11 @@ public CompositeBucket(long docCount, System.Collections.Generic.IReadOnlyDictio DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public CompositeBucket() - { - } -#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 CompositeBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompositeBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,14 +49,6 @@ internal CompositeBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Key { get; set; } + public required long DocCount { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs index b67bb89ba8c..5aa4849dabd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CompositeDateHistogramAggregationConverter))] public sealed partial class CompositeDateHistogramAggregation { -#if NET7_0_OR_GREATER public CompositeDateHistogramAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CompositeDateHistogramAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompositeDateHistogramAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs index a8c24a7d1bc..bbb7c3332a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CompositeGeoTileGridAggregationConverter))] public sealed partial class CompositeGeoTileGridAggregation { -#if NET7_0_OR_GREATER public CompositeGeoTileGridAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CompositeGeoTileGridAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompositeGeoTileGridAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs index 27761520435..8fa14da5182 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs @@ -31,17 +31,11 @@ public CompositeHistogramAggregation(double interval) { Interval = interval; } -#if NET7_0_OR_GREATER - public CompositeHistogramAggregation() - { - } -#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 CompositeHistogramAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompositeHistogramAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal CompositeHistogramAggregation(Elastic.Clients.Elasticsearch.Serializati /// /// public Elastic.Clients.Elasticsearch.Field? Field { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Interval { get; set; } + public required double Interval { get; set; } public bool? MissingBucket { get; set; } public Elastic.Clients.Elasticsearch.Aggregations.MissingOrder? MissingOrder { get; set; } public Elastic.Clients.Elasticsearch.SortOrder? Order { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs index c773ad68d09..47a5531f84d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CompositeTermsAggregationConverter))] public sealed partial class CompositeTermsAggregation { -#if NET7_0_OR_GREATER public CompositeTermsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CompositeTermsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompositeTermsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregate.g.cs index f65dc128cb2..31ab0aa1546 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregate.g.cs @@ -36,17 +36,11 @@ public CumulativeCardinalityAggregate(long value) { Value = value; } -#if NET7_0_OR_GREATER - public CumulativeCardinalityAggregate() - { - } -#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 CumulativeCardinalityAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CumulativeCardinalityAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,10 +51,6 @@ internal CumulativeCardinalityAggregate(Elastic.Clients.Elasticsearch.Serializat string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "simple_long_value"; - public -#if NET7_0_OR_GREATER - required -#endif - long Value { get; set; } + public required long Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs index 6bfe0511d25..19113556117 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CumulativeCardinalityAggregationConverter))] public sealed partial class CumulativeCardinalityAggregation { -#if NET7_0_OR_GREATER public CumulativeCardinalityAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CumulativeCardinalityAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CumulativeCardinalityAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs index dab416e4d20..771dfdf1341 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CumulativeSumAggregationConverter))] public sealed partial class CumulativeSumAggregation { -#if NET7_0_OR_GREATER public CumulativeSumAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public CumulativeSumAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CumulativeSumAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CustomCategorizeTextAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CustomCategorizeTextAnalyzer.g.cs index 1c0428535a4..6d78923f4c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CustomCategorizeTextAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CustomCategorizeTextAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CustomCategorizeTextAnalyzerConverter))] public sealed partial class CustomCategorizeTextAnalyzer { -#if NET7_0_OR_GREATER public CustomCategorizeTextAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public CustomCategorizeTextAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CustomCategorizeTextAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregate.g.cs index a4761355a77..7f5cd6e0af6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregate.g.cs @@ -31,28 +31,18 @@ public DateHistogramAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "date_histogram"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs index e68d5930369..bed2093b1c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.DateHistogramAggregationConverter))] public sealed partial class DateHistogramAggregation { -#if NET7_0_OR_GREATER public DateHistogramAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public DateHistogramAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateHistogramAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramBucket.g.cs index 9a833bd74b7..1f93167fad8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramBucket.g.cs @@ -32,17 +32,11 @@ public DateHistogramBucket(long docCount, System.DateTimeOffset key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public DateHistogramBucket() - { - } -#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 DateHistogramBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateHistogramBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,15 +49,7 @@ internal DateHistogramBucket(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Key { get; set; } + public required long DocCount { get; set; } + public required System.DateTimeOffset Key { get; set; } public string? KeyAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregate.g.cs index a800d42a728..1e5a446a4ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregate.g.cs @@ -37,28 +37,18 @@ public DateRangeAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "date_range"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregation.g.cs index a5ab145ab00..f10f98fa4a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.DateRangeAggregationConverter))] public sealed partial class DateRangeAggregation { -#if NET7_0_OR_GREATER public DateRangeAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public DateRangeAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateRangeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeExpression.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeExpression.g.cs index 1b86f71ee47..b604c83244d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeExpression.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeExpression.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.DateRangeExpressionConverter))] public sealed partial class DateRangeExpression { -#if NET7_0_OR_GREATER public DateRangeExpression() { } -#endif -#if !NET7_0_OR_GREATER - public DateRangeExpression() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateRangeExpression(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregate.g.cs index a9f1da3d72f..65af64de730 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregate.g.cs @@ -31,17 +31,11 @@ public DerivativeAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public DerivativeAggregate() - { - } -#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 DerivativeAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DerivativeAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,10 +54,6 @@ internal DerivativeAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs index 967b004671b..9ee98072d90 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.DerivativeAggregationConverter))] public sealed partial class DerivativeAggregation { -#if NET7_0_OR_GREATER public DerivativeAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public DerivativeAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DerivativeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Dip.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Dip.g.cs index e561efcb89b..d043d29861d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Dip.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Dip.g.cs @@ -32,31 +32,17 @@ public Dip(int changePoint, double pValue) ChangePoint = changePoint; PValue = pValue; } -#if NET7_0_OR_GREATER - public Dip() - { - } -#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 Dip() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Dip(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ChangePoint { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double PValue { get; set; } + public required int ChangePoint { get; set; } + public required double PValue { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DistributionChange.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DistributionChange.g.cs index 9fb6eaf51ec..1e186119f76 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DistributionChange.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DistributionChange.g.cs @@ -32,31 +32,17 @@ public DistributionChange(int changePoint, double pValue) ChangePoint = changePoint; PValue = pValue; } -#if NET7_0_OR_GREATER - public DistributionChange() - { - } -#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 DistributionChange() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DistributionChange(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ChangePoint { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double PValue { get; set; } + public required int ChangePoint { get; set; } + public required double PValue { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs index 28db858247b..0b25d8bba08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.DiversifiedSamplerAggregationConverter))] public sealed partial class DiversifiedSamplerAggregation { -#if NET7_0_OR_GREATER public DiversifiedSamplerAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public DiversifiedSamplerAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DiversifiedSamplerAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DoubleTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DoubleTermsAggregate.g.cs index 3d97ef37d7c..dd7072d6c5e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DoubleTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DoubleTermsAggregate.g.cs @@ -36,28 +36,18 @@ public DoubleTermsAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public long? DocCountErrorUpperBound { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } public long? SumOtherDocCount { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs index f47415d8979..84181198b28 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs @@ -32,17 +32,11 @@ public DoubleTermsBucket(long docCount, double key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public DoubleTermsBucket() - { - } -#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 DoubleTermsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DoubleTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,16 +49,8 @@ internal DoubleTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public long? DocCountErrorUpperBound { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Key { get; set; } + public required double Key { get; set; } public string? KeyAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedBounds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedBounds.g.cs index dc30579192d..67f37190b68 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedBounds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedBounds.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ExtendedBoundsConverterFactory))] public sealed partial class ExtendedBounds { -#if NET7_0_OR_GREATER public ExtendedBounds() { } -#endif -#if !NET7_0_OR_GREATER - public ExtendedBounds() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedBounds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsAggregate.g.cs index fc108e5f563..d99febce568 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsAggregate.g.cs @@ -42,96 +42,42 @@ public ExtendedStatsAggregate(double? avg, long count, double? max, double? min, VariancePopulation = variancePopulation; VarianceSampling = varianceSampling; } -#if NET7_0_OR_GREATER - public ExtendedStatsAggregate() - { - } -#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 ExtendedStatsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedStatsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Avg { get; set; } + public required double? Avg { get; set; } public string? AvgAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Max { get; set; } + public required long Count { get; set; } + public required double? Max { get; set; } public string? MaxAsString { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Min { get; set; } + public required double? Min { get; set; } public string? MinAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? StdDeviation { get; set; } + public required double? StdDeviation { get; set; } public string? StdDeviationAsString { get; set; } public Elastic.Clients.Elasticsearch.Aggregations.StandardDeviationBounds? StdDeviationBounds { get; set; } public Elastic.Clients.Elasticsearch.Aggregations.StandardDeviationBoundsAsString? StdDeviationBoundsAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? StdDeviationPopulation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? StdDeviationSampling { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Sum { get; set; } + public required double? StdDeviationPopulation { get; set; } + public required double? StdDeviationSampling { get; set; } + public required double Sum { get; set; } public string? SumAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? SumOfSquares { get; set; } + public required double? SumOfSquares { get; set; } public string? SumOfSquaresAsString { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "extended_stats"; - public -#if NET7_0_OR_GREATER - required -#endif - double? Variance { get; set; } + public required double? Variance { get; set; } public string? VarianceAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? VariancePopulation { get; set; } + public required double? VariancePopulation { get; set; } public string? VariancePopulationAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? VarianceSampling { get; set; } + public required double? VarianceSampling { get; set; } public string? VarianceSamplingAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs index c2e9fc36c58..305ad083639 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ExtendedStatsAggregationConverter))] public sealed partial class ExtendedStatsAggregation { -#if NET7_0_OR_GREATER public ExtendedStatsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ExtendedStatsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedStatsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregate.g.cs index fbaa06abe53..ce8e8f2c4ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregate.g.cs @@ -42,96 +42,42 @@ public ExtendedStatsBucketAggregate(double? avg, long count, double? max, double VariancePopulation = variancePopulation; VarianceSampling = varianceSampling; } -#if NET7_0_OR_GREATER - public ExtendedStatsBucketAggregate() - { - } -#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 ExtendedStatsBucketAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedStatsBucketAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Avg { get; set; } + public required double? Avg { get; set; } public string? AvgAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Max { get; set; } + public required long Count { get; set; } + public required double? Max { get; set; } public string? MaxAsString { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Min { get; set; } + public required double? Min { get; set; } public string? MinAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? StdDeviation { get; set; } + public required double? StdDeviation { get; set; } public string? StdDeviationAsString { get; set; } public Elastic.Clients.Elasticsearch.Aggregations.StandardDeviationBounds? StdDeviationBounds { get; set; } public Elastic.Clients.Elasticsearch.Aggregations.StandardDeviationBoundsAsString? StdDeviationBoundsAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? StdDeviationPopulation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? StdDeviationSampling { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Sum { get; set; } + public required double? StdDeviationPopulation { get; set; } + public required double? StdDeviationSampling { get; set; } + public required double Sum { get; set; } public string? SumAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? SumOfSquares { get; set; } + public required double? SumOfSquares { get; set; } public string? SumOfSquaresAsString { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "extended_stats_bucket"; - public -#if NET7_0_OR_GREATER - required -#endif - double? Variance { get; set; } + public required double? Variance { get; set; } public string? VarianceAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? VariancePopulation { get; set; } + public required double? VariancePopulation { get; set; } public string? VariancePopulationAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? VarianceSampling { get; set; } + public required double? VarianceSampling { get; set; } public string? VarianceSamplingAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs index 840e601b8a0..cf3993fee20 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ExtendedStatsBucketAggregationConverter))] public sealed partial class ExtendedStatsBucketAggregation { -#if NET7_0_OR_GREATER public ExtendedStatsBucketAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ExtendedStatsBucketAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedStatsBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FilterAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FilterAggregate.g.cs index b58f2f85adf..466e2db21dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FilterAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FilterAggregate.g.cs @@ -31,17 +31,11 @@ public FilterAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public FilterAggregate() - { - } -#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 FilterAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FilterAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal FilterAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "filter"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersAggregate.g.cs index 75f6b14d5a9..1b9cd219c82 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersAggregate.g.cs @@ -31,28 +31,18 @@ public FiltersAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "filters"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersAggregation.g.cs index 2b71542af1a..aaf334d3eb4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.FiltersAggregationConverter))] public sealed partial class FiltersAggregation { -#if NET7_0_OR_GREATER public FiltersAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public FiltersAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FiltersAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersBucket.g.cs index 63d112791bb..73d396c9944 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FiltersBucket.g.cs @@ -31,17 +31,11 @@ public FiltersBucket(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public FiltersBucket() - { - } -#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 FiltersBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FiltersBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,10 +48,6 @@ internal FiltersBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public string? Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsAggregate.g.cs index d653c5c8672..d2368b8ed1c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsAggregate.g.cs @@ -31,28 +31,18 @@ public FrequentItemSetsAggregate(System.Collections.Generic.IReadOnlyCollection< { Buckets = buckets; } -#if NET7_0_OR_GREATER - public FrequentItemSetsAggregate() - { - } -#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 FrequentItemSetsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FrequentItemSetsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "frequent_item_sets"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsAggregation.g.cs index 2c6dca18d00..76ce3ca27ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsAggregation.g.cs @@ -31,17 +31,11 @@ public FrequentItemSetsAggregation(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Fields { get; set; } + public required System.Collections.Generic.ICollection Fields { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsBucket.g.cs index 050950610fa..04fbd2ee3e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsBucket.g.cs @@ -33,17 +33,11 @@ public FrequentItemSetsBucket(long docCount, System.Collections.Generic.IReadOnl Key = key; Support = support; } -#if NET7_0_OR_GREATER - public FrequentItemSetsBucket() - { - } -#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 FrequentItemSetsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FrequentItemSetsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,19 +50,7 @@ internal FrequentItemSetsBucket(Elastic.Clients.Elasticsearch.Serialization.Json /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary> Key { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Support { get; set; } + public required long DocCount { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Key { get; set; } + public required double Support { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsField.g.cs index 6b4863d7961..e1200667812 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FrequentItemSetsField.g.cs @@ -31,17 +31,11 @@ public FrequentItemSetsField(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public FrequentItemSetsField() - { - } -#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 FrequentItemSetsField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FrequentItemSetsField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal FrequentItemSetsField(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// public Elastic.Clients.Elasticsearch.Aggregations.TermsExclude? Exclude { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoBoundsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoBoundsAggregate.g.cs index a270d7e4d53..5a0d061a2a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoBoundsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoBoundsAggregate.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.GeoBoundsAggregateConverter))] public sealed partial class GeoBoundsAggregate : Elastic.Clients.Elasticsearch.Aggregations.IAggregate { -#if NET7_0_OR_GREATER public GeoBoundsAggregate() { } -#endif -#if !NET7_0_OR_GREATER - public GeoBoundsAggregate() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoBoundsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs index 86710ec3558..a86058626c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.GeoBoundsAggregationConverter))] public sealed partial class GeoBoundsAggregation { -#if NET7_0_OR_GREATER public GeoBoundsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public GeoBoundsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoCentroidAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoCentroidAggregate.g.cs index 97a52782fc2..b16d2931ffb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoCentroidAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoCentroidAggregate.g.cs @@ -31,28 +31,18 @@ public GeoCentroidAggregate(long count) { Count = count; } -#if NET7_0_OR_GREATER - public GeoCentroidAggregate() - { - } -#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 GeoCentroidAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoCentroidAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } public Elastic.Clients.Elasticsearch.GeoLocation? Location { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs index 1c421b5d9d8..3877fb1cd7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.GeoCentroidAggregationConverter))] public sealed partial class GeoCentroidAggregation { -#if NET7_0_OR_GREATER public GeoCentroidAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public GeoCentroidAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoDistanceAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoDistanceAggregate.g.cs index 096956d6bfd..3e08800457d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoDistanceAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoDistanceAggregate.g.cs @@ -36,28 +36,18 @@ public GeoDistanceAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "geo_distance"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoDistanceAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoDistanceAggregation.g.cs index f3419e63555..f04fd210a42 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoDistanceAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoDistanceAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.GeoDistanceAggregationConverter))] public sealed partial class GeoDistanceAggregation { -#if NET7_0_OR_GREATER public GeoDistanceAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public GeoDistanceAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoDistanceAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineAggregate.g.cs index 1abda8c8dfc..4f7b2a19cab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineAggregate.g.cs @@ -33,39 +33,21 @@ public GeoLineAggregate(Elastic.Clients.Elasticsearch.GeoLine geometry, object p Properties = properties; Type = type; } -#if NET7_0_OR_GREATER - public GeoLineAggregate() - { - } -#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 GeoLineAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoLineAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GeoLine Geometry { get; set; } + public required Elastic.Clients.Elasticsearch.GeoLine Geometry { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - object Properties { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required object Properties { get; set; } + public required string Type { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "geo_line"; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineAggregation.g.cs index 944376f44ad..3eace19f879 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineAggregation.g.cs @@ -31,17 +31,11 @@ public GeoLineAggregation(Elastic.Clients.Elasticsearch.Aggregations.GeoLinePoin { Point = point; } -#if NET7_0_OR_GREATER - public GeoLineAggregation() - { - } -#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 GeoLineAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoLineAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal GeoLineAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The name of the geo_point field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Aggregations.GeoLinePoint Point { get; set; } + public required Elastic.Clients.Elasticsearch.Aggregations.GeoLinePoint Point { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLinePoint.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLinePoint.g.cs index eced6fda414..90bb620bb8e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLinePoint.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLinePoint.g.cs @@ -31,17 +31,11 @@ public GeoLinePoint(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public GeoLinePoint() - { - } -#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 GeoLinePoint() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoLinePoint(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal GeoLinePoint(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The name of the geo_point field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } } public readonly partial struct GeoLinePointDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineSort.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineSort.g.cs index 2bdc1e5ba99..f2fa7ffb0c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeoLineSort.g.cs @@ -31,17 +31,11 @@ public GeoLineSort(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public GeoLineSort() - { - } -#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 GeoLineSort() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoLineSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal GeoLineSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The name of the numeric field to use as the sort key for ordering the points. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } } public readonly partial struct GeoLineSortDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridAggregate.g.cs index c94e880c378..b11f2332e96 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridAggregate.g.cs @@ -31,28 +31,18 @@ public GeohashGridAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "geohash_grid"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridAggregation.g.cs index 55d03e51af4..3c4c558fd2c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.GeohashGridAggregationConverter))] public sealed partial class GeohashGridAggregation { -#if NET7_0_OR_GREATER public GeohashGridAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public GeohashGridAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeohashGridAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridBucket.g.cs index 8c340ce43fe..c0c4c5d7407 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohashGridBucket.g.cs @@ -32,17 +32,11 @@ public GeohashGridBucket(long docCount, string key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public GeohashGridBucket() - { - } -#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 GeohashGridBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeohashGridBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,14 +49,6 @@ internal GeohashGridBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Key { get; set; } + public required long DocCount { get; set; } + public required string Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridAggregate.g.cs index ca6d2f99c98..70c9c2da2dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridAggregate.g.cs @@ -31,28 +31,18 @@ public GeohexGridAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "geohex_grid"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridAggregation.g.cs index 9bb71c2e330..45d1edbac34 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridAggregation.g.cs @@ -31,17 +31,11 @@ public GeohexGridAggregation(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public GeohexGridAggregation() - { - } -#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 GeohexGridAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeohexGridAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal GeohexGridAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonC /// If the field contains an array, geohex_grid aggregates all array values. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridBucket.g.cs index 806c3412d65..0b78ed73151 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeohexGridBucket.g.cs @@ -32,17 +32,11 @@ public GeohexGridBucket(long docCount, string key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public GeohexGridBucket() - { - } -#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 GeohexGridBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeohexGridBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,14 +49,6 @@ internal GeohexGridBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Key { get; set; } + public required long DocCount { get; set; } + public required string Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregate.g.cs index b89e0dc8433..0d0fae83533 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregate.g.cs @@ -31,28 +31,18 @@ public GeotileGridAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "geotile_grid"; 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 2a2793e723b..be4051efb69 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.GeotileGridAggregationConverter))] public sealed partial class GeotileGridAggregation { -#if NET7_0_OR_GREATER public GeotileGridAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public GeotileGridAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeotileGridAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridBucket.g.cs index b124042f16f..c99df9f75f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GeotileGridBucket.g.cs @@ -32,17 +32,11 @@ public GeotileGridBucket(long docCount, string key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public GeotileGridBucket() - { - } -#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 GeotileGridBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeotileGridBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,14 +49,6 @@ internal GeotileGridBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Key { get; set; } + public required long DocCount { get; set; } + public required string Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GlobalAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GlobalAggregate.g.cs index 9c361b2656d..564f7e8cf83 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GlobalAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GlobalAggregate.g.cs @@ -31,17 +31,11 @@ public GlobalAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public GlobalAggregate() - { - } -#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 GlobalAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GlobalAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal GlobalAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "global"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GlobalAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GlobalAggregation.g.cs index 05d6ab77add..092db272e36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GlobalAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GlobalAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.GlobalAggregationConverter))] public sealed partial class GlobalAggregation { -#if NET7_0_OR_GREATER public GlobalAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public GlobalAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GlobalAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GoogleNormalizedDistanceHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GoogleNormalizedDistanceHeuristic.g.cs index 5b600e8ad8f..1f7b9318050 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GoogleNormalizedDistanceHeuristic.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/GoogleNormalizedDistanceHeuristic.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.GoogleNormalizedDistanceHeuristicConverter))] public sealed partial class GoogleNormalizedDistanceHeuristic { -#if NET7_0_OR_GREATER public GoogleNormalizedDistanceHeuristic() { } -#endif -#if !NET7_0_OR_GREATER - public GoogleNormalizedDistanceHeuristic() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GoogleNormalizedDistanceHeuristic(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrMethod.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrMethod.g.cs index 8ca7f06a52e..c965b926d5b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrMethod.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrMethod.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.HdrMethodConverter))] public sealed partial class HdrMethod { -#if NET7_0_OR_GREATER public HdrMethod() { } -#endif -#if !NET7_0_OR_GREATER - public HdrMethod() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HdrMethod(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs index c064345fb19..974a8cd3105 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs @@ -31,17 +31,11 @@ public HdrPercentileRanksAggregate(System.Collections.Generic.IReadOnlyCollectio { Values = values; } -#if NET7_0_OR_GREATER - public HdrPercentileRanksAggregate() - { - } -#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 HdrPercentileRanksAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HdrPercentileRanksAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,9 +46,5 @@ internal HdrPercentileRanksAggregate(Elastic.Clients.Elasticsearch.Serialization string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "hdr_percentile_ranks"; - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Values { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Values { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs index fc1e53f5735..7b707d39c11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs @@ -31,17 +31,11 @@ public HdrPercentilesAggregate(System.Collections.Generic.IReadOnlyCollection "hdr_percentiles"; - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Values { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Values { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregate.g.cs index 01b24803ed5..30a1dafcf5b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregate.g.cs @@ -31,28 +31,18 @@ public HistogramAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "histogram"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregation.g.cs index 3fa25c359c2..feeaddaca70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.HistogramAggregationConverter))] public sealed partial class HistogramAggregation { -#if NET7_0_OR_GREATER public HistogramAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public HistogramAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HistogramAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramBucket.g.cs index 9b98fd11dec..26b0464d56b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramBucket.g.cs @@ -32,17 +32,11 @@ public HistogramBucket(long docCount, double key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public HistogramBucket() - { - } -#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 HistogramBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HistogramBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,15 +49,7 @@ internal HistogramBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Key { get; set; } + public required long DocCount { get; set; } + public required double Key { get; set; } public string? KeyAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Indeterminable.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Indeterminable.g.cs index 5dc54027a5d..38b7d260d69 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Indeterminable.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Indeterminable.g.cs @@ -31,26 +31,16 @@ public Indeterminable(string reason) { Reason = reason; } -#if NET7_0_OR_GREATER - public Indeterminable() - { - } -#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 Indeterminable() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Indeterminable(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Reason { get; set; } + public required string Reason { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregate.g.cs index fff6593fc63..d81db1f9ce8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregate.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.InferenceAggregateConverter))] public sealed partial class InferenceAggregate : Elastic.Clients.Elasticsearch.Aggregations.IAggregate { -#if NET7_0_OR_GREATER public InferenceAggregate() { } -#endif -#if !NET7_0_OR_GREATER - public InferenceAggregate() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs index 144fe0d85a7..af59a2a28da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs @@ -31,17 +31,11 @@ public InferenceAggregation(Elastic.Clients.Elasticsearch.Name modelId) { ModelId = modelId; } -#if NET7_0_OR_GREATER - public InferenceAggregation() - { - } -#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 InferenceAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +76,7 @@ internal InferenceAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The ID or alias for the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name ModelId { get; set; } + public required Elastic.Clients.Elasticsearch.Name ModelId { get; set; } } public readonly partial struct InferenceAggregationDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceClassImportance.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceClassImportance.g.cs index c9014d1cfd6..580dff49b16 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceClassImportance.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceClassImportance.g.cs @@ -32,31 +32,17 @@ public InferenceClassImportance(string className, double importance) ClassName = className; Importance = importance; } -#if NET7_0_OR_GREATER - public InferenceClassImportance() - { - } -#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 InferenceClassImportance() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceClassImportance(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string ClassName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Importance { get; set; } + public required string ClassName { get; set; } + public required double Importance { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceConfig.g.cs index b7e0ec39afb..59f9fe608d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceConfig.g.cs @@ -28,16 +28,11 @@ public sealed partial class InferenceConfig { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public InferenceConfig() - { - } -#endif -#if !NET7_0_OR_GREATER + public InferenceConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceFeatureImportance.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceFeatureImportance.g.cs index c23a3af062a..e524f7dc47f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceFeatureImportance.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceFeatureImportance.g.cs @@ -31,17 +31,11 @@ public InferenceFeatureImportance(string featureName) { FeatureName = featureName; } -#if NET7_0_OR_GREATER - public InferenceFeatureImportance() - { - } -#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 InferenceFeatureImportance() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceFeatureImportance(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,10 +43,6 @@ internal InferenceFeatureImportance(Elastic.Clients.Elasticsearch.Serialization. } public System.Collections.Generic.IReadOnlyCollection? Classes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string FeatureName { get; set; } + public required string FeatureName { get; set; } public double? Importance { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceTopClassEntry.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceTopClassEntry.g.cs index fcf8fd5aa57..c169f0f6787 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceTopClassEntry.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceTopClassEntry.g.cs @@ -33,36 +33,18 @@ public InferenceTopClassEntry(Elastic.Clients.Elasticsearch.FieldValue className ClassProbability = classProbability; ClassScore = classScore; } -#if NET7_0_OR_GREATER - public InferenceTopClassEntry() - { - } -#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 InferenceTopClassEntry() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceTopClassEntry(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.FieldValue ClassName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double ClassProbability { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double ClassScore { get; set; } + public required Elastic.Clients.Elasticsearch.FieldValue ClassName { get; set; } + public required double ClassProbability { get; set; } + public required double ClassScore { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixAggregate.g.cs index 5b92cd4ce82..b0913110462 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixAggregate.g.cs @@ -31,28 +31,18 @@ public IpPrefixAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "ip_prefix"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixAggregation.g.cs index 82cf06fd3d1..4b3633b869c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixAggregation.g.cs @@ -32,17 +32,11 @@ public IpPrefixAggregation(Elastic.Clients.Elasticsearch.Field field, int prefix Field = field; PrefixLength = prefixLength; } -#if NET7_0_OR_GREATER - public IpPrefixAggregation() - { - } -#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 IpPrefixAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpPrefixAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal IpPrefixAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The IP address field to aggregation on. The field mapping type must be ip. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -87,11 +77,7 @@ internal IpPrefixAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// For IPv6 addresses the accepted range is [0, 128]. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int PrefixLength { get; set; } + public required int PrefixLength { get; set; } } public readonly partial struct IpPrefixAggregationDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixBucket.g.cs index 56365ecea6b..a9f38b5bd2b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpPrefixBucket.g.cs @@ -34,17 +34,11 @@ public IpPrefixBucket(long docCount, bool isIpv6, string key, int prefixLength) Key = key; PrefixLength = prefixLength; } -#if NET7_0_OR_GREATER - public IpPrefixBucket() - { - } -#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 IpPrefixBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpPrefixBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,25 +51,9 @@ internal IpPrefixBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool IsIpv6 { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Key { get; set; } + public required long DocCount { get; set; } + public required bool IsIpv6 { get; set; } + public required string Key { get; set; } public string? Netmask { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int PrefixLength { get; set; } + public required int PrefixLength { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregate.g.cs index c8119353fa3..b176569d0ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregate.g.cs @@ -31,28 +31,18 @@ public IpRangeAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "ip_range"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregation.g.cs index c0501b20771..bede944de69 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.IpRangeAggregationConverter))] public sealed partial class IpRangeAggregation { -#if NET7_0_OR_GREATER public IpRangeAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public IpRangeAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpRangeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregationRange.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregationRange.g.cs index 70d9a41272f..7343253f318 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregationRange.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregationRange.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.IpRangeAggregationRangeConverter))] public sealed partial class IpRangeAggregationRange { -#if NET7_0_OR_GREATER public IpRangeAggregationRange() { } -#endif -#if !NET7_0_OR_GREATER - public IpRangeAggregationRange() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpRangeAggregationRange(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeBucket.g.cs index c8323fecfdc..3a2ae857933 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeBucket.g.cs @@ -31,17 +31,11 @@ public IpRangeBucket(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public IpRangeBucket() - { - } -#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 IpRangeBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpRangeBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal IpRangeBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public string? From { get; set; } public string? Key { get; set; } public string? To { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongRareTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongRareTermsAggregate.g.cs index 2d82691a220..4e2b4a8a755 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongRareTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongRareTermsAggregate.g.cs @@ -36,28 +36,18 @@ public LongRareTermsAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "lrareterms"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongRareTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongRareTermsBucket.g.cs index 08279380950..7ea6f1f7d7f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongRareTermsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongRareTermsBucket.g.cs @@ -32,17 +32,11 @@ public LongRareTermsBucket(long docCount, long key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public LongRareTermsBucket() - { - } -#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 LongRareTermsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LongRareTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,15 +49,7 @@ internal LongRareTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Key { get; set; } + public required long DocCount { get; set; } + public required long Key { get; set; } public string? KeyAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongTermsAggregate.g.cs index 3a58afc8e95..cd0b63dd9f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongTermsAggregate.g.cs @@ -36,28 +36,18 @@ public LongTermsAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public long? DocCountErrorUpperBound { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } public long? SumOtherDocCount { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongTermsBucket.g.cs index b9da33f4d27..7e77582b9f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongTermsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/LongTermsBucket.g.cs @@ -32,17 +32,11 @@ public LongTermsBucket(long docCount, long key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public LongTermsBucket() - { - } -#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 LongTermsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LongTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,16 +49,8 @@ internal LongTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public long? DocCountErrorUpperBound { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Key { get; set; } + public required long Key { get; set; } public string? KeyAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsAggregate.g.cs index 59db5fed9e2..8d7c78bbe55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsAggregate.g.cs @@ -31,28 +31,18 @@ public MatrixStatsAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public MatrixStatsAggregate() - { - } -#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 MatrixStatsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatrixStatsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyCollection? Fields { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs index d6eac7b4613..8ee5cab24ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MatrixStatsAggregationConverter))] public sealed partial class MatrixStatsAggregation { -#if NET7_0_OR_GREATER public MatrixStatsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MatrixStatsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatrixStatsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsFields.g.cs index f4c8370c36a..82b82fb449b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MatrixStatsFields.g.cs @@ -38,61 +38,23 @@ public MatrixStatsFields(System.Collections.Generic.IReadOnlyDictionary Correlation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Covariance { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Kurtosis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Mean { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Skewness { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Variance { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Correlation { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Covariance { get; set; } + public required double Kurtosis { get; set; } + public required double Mean { get; set; } + public required string Name { get; set; } + public required double Skewness { get; set; } + public required double Variance { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxAggregate.g.cs index 37a3f40e27d..82542b17181 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxAggregate.g.cs @@ -31,17 +31,11 @@ public MaxAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public MaxAggregate() - { - } -#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 MaxAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MaxAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,10 +52,6 @@ internal MaxAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxAggregation.g.cs index e213192caec..06cc9c393af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MaxAggregationConverter))] public sealed partial class MaxAggregation { -#if NET7_0_OR_GREATER public MaxAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MaxAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MaxAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs index 5c73e9182cc..1b554f76192 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MaxBucketAggregationConverter))] public sealed partial class MaxBucketAggregation { -#if NET7_0_OR_GREATER public MaxBucketAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MaxBucketAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MaxBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregate.g.cs index 07d098d7ebf..581dbc354b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregate.g.cs @@ -31,17 +31,11 @@ public MedianAbsoluteDeviationAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public MedianAbsoluteDeviationAggregate() - { - } -#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 MedianAbsoluteDeviationAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MedianAbsoluteDeviationAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,10 +52,6 @@ internal MedianAbsoluteDeviationAggregate(Elastic.Clients.Elasticsearch.Serializ /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs index a5870c606e8..a0324ccfa85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MedianAbsoluteDeviationAggregationConverter))] public sealed partial class MedianAbsoluteDeviationAggregation { -#if NET7_0_OR_GREATER public MedianAbsoluteDeviationAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MedianAbsoluteDeviationAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MedianAbsoluteDeviationAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinAggregate.g.cs index d8a3fdf059a..4b6ea8e70b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinAggregate.g.cs @@ -31,17 +31,11 @@ public MinAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public MinAggregate() - { - } -#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 MinAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MinAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,10 +52,6 @@ internal MinAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinAggregation.g.cs index 59f36ca87ec..155f97a4f5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MinAggregationConverter))] public sealed partial class MinAggregation { -#if NET7_0_OR_GREATER public MinAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MinAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MinAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs index b2b400cb2b9..e37fefc8635 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MinBucketAggregationConverter))] public sealed partial class MinBucketAggregation { -#if NET7_0_OR_GREATER public MinBucketAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MinBucketAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MinBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MissingAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MissingAggregate.g.cs index 70a8ab7f1bb..3430b12346d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MissingAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MissingAggregate.g.cs @@ -31,17 +31,11 @@ public MissingAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public MissingAggregate() - { - } -#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 MissingAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MissingAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal MissingAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "missing"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MissingAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MissingAggregation.g.cs index 033563a21ef..9e5941e4371 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MissingAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MissingAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MissingAggregationConverter))] public sealed partial class MissingAggregation { -#if NET7_0_OR_GREATER public MissingAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MissingAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MissingAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs index 24606bd4434..4fda1f9e582 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MovingFunctionAggregationConverter))] public sealed partial class MovingFunctionAggregation { -#if NET7_0_OR_GREATER public MovingFunctionAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MovingFunctionAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MovingFunctionAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs index 8b822f3223f..a620ed06956 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MovingPercentilesAggregationConverter))] public sealed partial class MovingPercentilesAggregation { -#if NET7_0_OR_GREATER public MovingPercentilesAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public MovingPercentilesAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MovingPercentilesAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermLookup.g.cs index 191a9d007d6..8293e58c2f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermLookup.g.cs @@ -31,17 +31,11 @@ public MultiTermLookup(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public MultiTermLookup() - { - } -#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 MultiTermLookup() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiTermLookup(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal MultiTermLookup(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// A fields from which to retrieve terms. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregate.g.cs index c896db3e61e..8b93621f4fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregate.g.cs @@ -31,28 +31,18 @@ public MultiTermsAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public long? DocCountErrorUpperBound { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } public long? SumOtherDocCount { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs index 47cddfda921..aa3f268359f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs @@ -31,17 +31,11 @@ public MultiTermsAggregation(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Terms { get; set; } + public required System.Collections.Generic.ICollection Terms { get; set; } } public readonly partial struct MultiTermsAggregationDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsBucket.g.cs index 550ea285f80..901f747125b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsBucket.g.cs @@ -32,17 +32,11 @@ public MultiTermsBucket(long docCount, System.Collections.Generic.IReadOnlyColle DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public MultiTermsBucket() - { - } -#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 MultiTermsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,16 +49,8 @@ internal MultiTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public long? DocCountErrorUpperBound { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Key { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Key { get; set; } public string? KeyAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MutualInformationHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MutualInformationHeuristic.g.cs index 5076b931287..c532cbab45f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MutualInformationHeuristic.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MutualInformationHeuristic.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.MutualInformationHeuristicConverter))] public sealed partial class MutualInformationHeuristic { -#if NET7_0_OR_GREATER public MutualInformationHeuristic() { } -#endif -#if !NET7_0_OR_GREATER - public MutualInformationHeuristic() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MutualInformationHeuristic(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NestedAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NestedAggregate.g.cs index 63a07a9ea04..9c13a0f0e5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NestedAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NestedAggregate.g.cs @@ -31,17 +31,11 @@ public NestedAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public NestedAggregate() - { - } -#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 NestedAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NestedAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal NestedAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "nested"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NestedAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NestedAggregation.g.cs index a62744c951a..e5e3d1a965c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NestedAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NestedAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.NestedAggregationConverter))] public sealed partial class NestedAggregation { -#if NET7_0_OR_GREATER public NestedAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public NestedAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NestedAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NonStationary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NonStationary.g.cs index 34d6c85c0c2..971ba7217f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NonStationary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NonStationary.g.cs @@ -33,36 +33,18 @@ public NonStationary(double pValue, double rValue, string trend) RValue = rValue; Trend = trend; } -#if NET7_0_OR_GREATER - public NonStationary() - { - } -#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 NonStationary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NonStationary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double PValue { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double RValue { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Trend { get; set; } + public required double PValue { get; set; } + public required double RValue { get; set; } + public required string Trend { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs index d4faee53861..8a836622445 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.NormalizeAggregationConverter))] public sealed partial class NormalizeAggregation { -#if NET7_0_OR_GREATER public NormalizeAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public NormalizeAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NormalizeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PValueHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PValueHeuristic.g.cs index 10b308173c2..da86b042e72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PValueHeuristic.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PValueHeuristic.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.PValueHeuristicConverter))] public sealed partial class PValueHeuristic { -#if NET7_0_OR_GREATER public PValueHeuristic() { } -#endif -#if !NET7_0_OR_GREATER - public PValueHeuristic() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PValueHeuristic(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ParentAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ParentAggregate.g.cs index fe5cfe8b4df..3df9805b40b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ParentAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ParentAggregate.g.cs @@ -31,17 +31,11 @@ public ParentAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public ParentAggregate() - { - } -#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 ParentAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ParentAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal ParentAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "parent"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ParentAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ParentAggregation.g.cs index aa9509ce647..48b87f754f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ParentAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ParentAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ParentAggregationConverter))] public sealed partial class ParentAggregation { -#if NET7_0_OR_GREATER public ParentAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ParentAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ParentAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentageScoreHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentageScoreHeuristic.g.cs index def8c617e12..d75cb19ed26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentageScoreHeuristic.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentageScoreHeuristic.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.PercentageScoreHeuristicConverter))] public sealed partial class PercentageScoreHeuristic { -#if NET7_0_OR_GREATER public PercentageScoreHeuristic() { } -#endif -#if !NET7_0_OR_GREATER - public PercentageScoreHeuristic() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PercentageScoreHeuristic(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs index 58cdd79fddb..372a2fc8cec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.PercentileRanksAggregationConverter))] public sealed partial class PercentileRanksAggregation { -#if NET7_0_OR_GREATER public PercentileRanksAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public PercentileRanksAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PercentileRanksAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesAggregation.g.cs index d650650a0ef..ab086c0322f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.PercentilesAggregationConverter))] public sealed partial class PercentilesAggregation { -#if NET7_0_OR_GREATER public PercentilesAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public PercentilesAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PercentilesAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregate.g.cs index 02dbd2a5c1d..48f436e3f7c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregate.g.cs @@ -31,17 +31,11 @@ public PercentilesBucketAggregate(System.Collections.Generic.IReadOnlyCollection { Values = values; } -#if NET7_0_OR_GREATER - public PercentilesBucketAggregate() - { - } -#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 PercentilesBucketAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PercentilesBucketAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,9 +46,5 @@ internal PercentilesBucketAggregate(Elastic.Clients.Elasticsearch.Serialization. string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "percentiles_bucket"; - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Values { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Values { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs index c0fa850887a..4873fa0355e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.PercentilesBucketAggregationConverter))] public sealed partial class PercentilesBucketAggregation { -#if NET7_0_OR_GREATER public PercentilesBucketAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public PercentilesBucketAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PercentilesBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesItem.g.cs index 3da06978160..c93b7350e33 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesItem.g.cs @@ -32,32 +32,18 @@ public PercentilesItem(double key, double? value) Key = key; Value = value; } -#if NET7_0_OR_GREATER - public PercentilesItem() - { - } -#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 PercentilesItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PercentilesItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double Key { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double Key { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RandomSamplerAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RandomSamplerAggregation.g.cs index b5fdef79beb..b08bdd2fd8f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RandomSamplerAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RandomSamplerAggregation.g.cs @@ -31,17 +31,11 @@ public RandomSamplerAggregation(double probability) { Probability = probability; } -#if NET7_0_OR_GREATER - public RandomSamplerAggregation() - { - } -#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 RandomSamplerAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RandomSamplerAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal RandomSamplerAggregation(Elastic.Clients.Elasticsearch.Serialization.Js /// The lower the probability, the fewer documents are matched. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Probability { get; set; } + public required double Probability { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregate.g.cs index eb812bebbd1..d3a516964b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregate.g.cs @@ -31,28 +31,18 @@ public RangeAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "range"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregation.g.cs index b13eb8d6f49..f409593dc79 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.RangeAggregationConverter))] public sealed partial class RangeAggregation { -#if NET7_0_OR_GREATER public RangeAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public RangeAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RangeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeBucket.g.cs index 8740c22e8ad..30d70aa5af5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeBucket.g.cs @@ -31,17 +31,11 @@ public RangeBucket(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public RangeBucket() - { - } -#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 RangeBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RangeBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal RangeBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public double? From { get; set; } public string? FromAsString { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RareTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RareTermsAggregation.g.cs index 532d5a247b6..468318d9840 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RareTermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RareTermsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.RareTermsAggregationConverter))] public sealed partial class RareTermsAggregation { -#if NET7_0_OR_GREATER public RareTermsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public RareTermsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RareTermsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RateAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RateAggregate.g.cs index c30ff35c2ff..3d8b261d323 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RateAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RateAggregate.g.cs @@ -31,17 +31,11 @@ public RateAggregate(double value) { Value = value; } -#if NET7_0_OR_GREATER - public RateAggregate() - { - } -#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 RateAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RateAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,10 +46,6 @@ internal RateAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "rate"; - public -#if NET7_0_OR_GREATER - required -#endif - double Value { get; set; } + public required double Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RateAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RateAggregation.g.cs index 9f7ce4448a0..bd40fa513c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RateAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RateAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.RateAggregationConverter))] public sealed partial class RateAggregation { -#if NET7_0_OR_GREATER public RateAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public RateAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RateAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ReverseNestedAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ReverseNestedAggregate.g.cs index fa14b89f45b..7ec5ebbd3d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ReverseNestedAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ReverseNestedAggregate.g.cs @@ -31,17 +31,11 @@ public ReverseNestedAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public ReverseNestedAggregate() - { - } -#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 ReverseNestedAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReverseNestedAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal ReverseNestedAggregate(Elastic.Clients.Elasticsearch.Serialization.Json /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "reverse_nested"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ReverseNestedAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ReverseNestedAggregation.g.cs index 32b34b97d5a..5fbcc41af64 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ReverseNestedAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ReverseNestedAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ReverseNestedAggregationConverter))] public sealed partial class ReverseNestedAggregation { -#if NET7_0_OR_GREATER public ReverseNestedAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ReverseNestedAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReverseNestedAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SamplerAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SamplerAggregate.g.cs index 5dcdd3d1102..9dc42e03738 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SamplerAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SamplerAggregate.g.cs @@ -31,17 +31,11 @@ public SamplerAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public SamplerAggregate() - { - } -#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 SamplerAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SamplerAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal SamplerAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "sampler"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SamplerAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SamplerAggregation.g.cs index 7b3f5fe70b3..fe5d1b8bcf1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SamplerAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SamplerAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.SamplerAggregationConverter))] public sealed partial class SamplerAggregation { -#if NET7_0_OR_GREATER public SamplerAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public SamplerAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SamplerAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs index 2c99d2c0add..8e90889b835 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs @@ -31,28 +31,18 @@ public ScriptedHeuristic(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public ScriptedHeuristic() - { - } -#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 ScriptedHeuristic() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptedHeuristic(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } } public readonly partial struct ScriptedHeuristicDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedMetricAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedMetricAggregate.g.cs index e15bf8b2ee3..97b48f02056 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedMetricAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedMetricAggregate.g.cs @@ -31,17 +31,11 @@ public ScriptedMetricAggregate(object value) { Value = value; } -#if NET7_0_OR_GREATER - public ScriptedMetricAggregate() - { - } -#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 ScriptedMetricAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptedMetricAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,9 +46,5 @@ internal ScriptedMetricAggregate(Elastic.Clients.Elasticsearch.Serialization.Jso string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "scripted_metric"; - public -#if NET7_0_OR_GREATER - required -#endif - object Value { get; set; } + public required object Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs index 952a0a8ae3e..fd0d04fcacf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ScriptedMetricAggregationConverter))] public sealed partial class ScriptedMetricAggregation { -#if NET7_0_OR_GREATER public ScriptedMetricAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ScriptedMetricAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptedMetricAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs index a3fbf4e81a6..f6412265a89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.SerialDifferencingAggregationConverter))] public sealed partial class SerialDifferencingAggregation { -#if NET7_0_OR_GREATER public SerialDifferencingAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public SerialDifferencingAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SerialDifferencingAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantLongTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantLongTermsAggregate.g.cs index d88d04af5ea..60b6b2dcb97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantLongTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantLongTermsAggregate.g.cs @@ -31,17 +31,11 @@ public SignificantLongTermsAggregate(System.Collections.Generic.IReadOnlyCollect { Buckets = buckets; } -#if NET7_0_OR_GREATER - public SignificantLongTermsAggregate() - { - } -#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 SignificantLongTermsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SignificantLongTermsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal SignificantLongTermsAggregate(Elastic.Clients.Elasticsearch.Serializati } public long? BgCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public long? DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantLongTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantLongTermsBucket.g.cs index d87f74fec18..cc734deb739 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantLongTermsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantLongTermsBucket.g.cs @@ -34,17 +34,11 @@ public SignificantLongTermsBucket(long bgCount, long docCount, long key, double Key = key; Score = score; } -#if NET7_0_OR_GREATER - public SignificantLongTermsBucket() - { - } -#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 SignificantLongTermsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SignificantLongTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,25 +51,9 @@ internal SignificantLongTermsBucket(Elastic.Clients.Elasticsearch.Serialization. /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BgCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Key { get; set; } + public required long BgCount { get; set; } + public required long DocCount { get; set; } + public required long Key { get; set; } public string? KeyAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Score { get; set; } + public required double Score { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantStringTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantStringTermsAggregate.g.cs index 22ec9fb1abd..8cf6e79af14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantStringTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantStringTermsAggregate.g.cs @@ -31,17 +31,11 @@ public SignificantStringTermsAggregate(System.Collections.Generic.IReadOnlyColle { Buckets = buckets; } -#if NET7_0_OR_GREATER - public SignificantStringTermsAggregate() - { - } -#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 SignificantStringTermsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SignificantStringTermsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal SignificantStringTermsAggregate(Elastic.Clients.Elasticsearch.Serializa } public long? BgCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public long? DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantStringTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantStringTermsBucket.g.cs index 1be9e216af6..43826e4d0cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantStringTermsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantStringTermsBucket.g.cs @@ -34,17 +34,11 @@ public SignificantStringTermsBucket(long bgCount, long docCount, string key, dou Key = key; Score = score; } -#if NET7_0_OR_GREATER - public SignificantStringTermsBucket() - { - } -#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 SignificantStringTermsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SignificantStringTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,24 +51,8 @@ internal SignificantStringTermsBucket(Elastic.Clients.Elasticsearch.Serializatio /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BgCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Key { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Score { get; set; } + public required long BgCount { get; set; } + public required long DocCount { get; set; } + public required string Key { get; set; } + public required double Score { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantTermsAggregation.g.cs index 1ce9db259ec..25dd84312fb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantTermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantTermsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.SignificantTermsAggregationConverter))] public sealed partial class SignificantTermsAggregation { -#if NET7_0_OR_GREATER public SignificantTermsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public SignificantTermsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SignificantTermsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs index d678c5c6dac..7495d689edd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.SignificantTextAggregationConverter))] public sealed partial class SignificantTextAggregation { -#if NET7_0_OR_GREATER public SignificantTextAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public SignificantTextAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SignificantTextAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SimpleValueAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SimpleValueAggregate.g.cs index 3b5e9c9a70b..82474114be6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SimpleValueAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SimpleValueAggregate.g.cs @@ -31,17 +31,11 @@ public SimpleValueAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public SimpleValueAggregate() - { - } -#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 SimpleValueAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimpleValueAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,10 +52,6 @@ internal SimpleValueAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Spike.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Spike.g.cs index 7221ea4cba5..7562b7bf38e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Spike.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Spike.g.cs @@ -32,31 +32,17 @@ public Spike(int changePoint, double pValue) ChangePoint = changePoint; PValue = pValue; } -#if NET7_0_OR_GREATER - public Spike() - { - } -#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 Spike() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Spike(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ChangePoint { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double PValue { get; set; } + public required int ChangePoint { get; set; } + public required double PValue { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StandardDeviationBounds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StandardDeviationBounds.g.cs index 5cb79aa885a..61ddec4d060 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StandardDeviationBounds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StandardDeviationBounds.g.cs @@ -36,51 +36,21 @@ public StandardDeviationBounds(double? lower, double? lowerPopulation, double? l UpperPopulation = upperPopulation; UpperSampling = upperSampling; } -#if NET7_0_OR_GREATER - public StandardDeviationBounds() - { - } -#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 StandardDeviationBounds() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StandardDeviationBounds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Lower { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? LowerPopulation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? LowerSampling { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Upper { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? UpperPopulation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? UpperSampling { get; set; } + public required double? Lower { get; set; } + public required double? LowerPopulation { get; set; } + public required double? LowerSampling { get; set; } + public required double? Upper { get; set; } + public required double? UpperPopulation { get; set; } + public required double? UpperSampling { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StandardDeviationBoundsAsString.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StandardDeviationBoundsAsString.g.cs index 7f38862362f..54b27cab4d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StandardDeviationBoundsAsString.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StandardDeviationBoundsAsString.g.cs @@ -36,51 +36,21 @@ public StandardDeviationBoundsAsString(string lower, string lowerPopulation, str UpperPopulation = upperPopulation; UpperSampling = upperSampling; } -#if NET7_0_OR_GREATER - public StandardDeviationBoundsAsString() - { - } -#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 StandardDeviationBoundsAsString() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StandardDeviationBoundsAsString(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Lower { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string LowerPopulation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string LowerSampling { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Upper { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string UpperPopulation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string UpperSampling { get; set; } + public required string Lower { get; set; } + public required string LowerPopulation { get; set; } + public required string LowerSampling { get; set; } + public required string Upper { get; set; } + public required string UpperPopulation { get; set; } + public required string UpperSampling { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Stationary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Stationary.g.cs index f8b81da6d16..b8d98f57264 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Stationary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Stationary.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.StationaryConverter))] public sealed partial class Stationary { -#if NET7_0_OR_GREATER public Stationary() { } -#endif -#if !NET7_0_OR_GREATER - public Stationary() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Stationary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsAggregate.g.cs index f0a90a14a4c..2b404c3fda1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsAggregate.g.cs @@ -41,52 +41,26 @@ public StatsAggregate(double? avg, long count, double? max, double? min, double Min = min; Sum = sum; } -#if NET7_0_OR_GREATER - public StatsAggregate() - { - } -#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 StatsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StatsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Avg { get; set; } + public required double? Avg { get; set; } public string? AvgAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Max { get; set; } + public required long Count { get; set; } + public required double? Max { get; set; } public string? MaxAsString { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Min { get; set; } + public required double? Min { get; set; } public string? MinAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Sum { get; set; } + public required double Sum { get; set; } public string? SumAsString { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "stats"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsAggregation.g.cs index 818fb92daa0..1d0a0edef9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.StatsAggregationConverter))] public sealed partial class StatsAggregation { -#if NET7_0_OR_GREATER public StatsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public StatsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StatsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregate.g.cs index 952c5fe5aa7..1ea80cff4ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregate.g.cs @@ -35,52 +35,26 @@ public StatsBucketAggregate(double? avg, long count, double? max, double? min, d Min = min; Sum = sum; } -#if NET7_0_OR_GREATER - public StatsBucketAggregate() - { - } -#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 StatsBucketAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StatsBucketAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Avg { get; set; } + public required double? Avg { get; set; } public string? AvgAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Max { get; set; } + public required long Count { get; set; } + public required double? Max { get; set; } public string? MaxAsString { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Min { get; set; } + public required double? Min { get; set; } public string? MinAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Sum { get; set; } + public required double Sum { get; set; } public string? SumAsString { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "stats_bucket"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs index c7f5818bf3a..967325fd90c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.StatsBucketAggregationConverter))] public sealed partial class StatsBucketAggregation { -#if NET7_0_OR_GREATER public StatsBucketAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public StatsBucketAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StatsBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StepChange.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StepChange.g.cs index ccf06b62e18..18bde18c60f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StepChange.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StepChange.g.cs @@ -32,31 +32,17 @@ public StepChange(int changePoint, double pValue) ChangePoint = changePoint; PValue = pValue; } -#if NET7_0_OR_GREATER - public StepChange() - { - } -#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 StepChange() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StepChange(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ChangePoint { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double PValue { get; set; } + public required int ChangePoint { get; set; } + public required double PValue { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringRareTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringRareTermsAggregate.g.cs index ee42e85ab51..4d5c4b646f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringRareTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringRareTermsAggregate.g.cs @@ -36,28 +36,18 @@ public StringRareTermsAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "srareterms"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringRareTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringRareTermsBucket.g.cs index 7f4153655ad..9bb6f3ede46 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringRareTermsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringRareTermsBucket.g.cs @@ -32,17 +32,11 @@ public StringRareTermsBucket(long docCount, string key) DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public StringRareTermsBucket() - { - } -#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 StringRareTermsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StringRareTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,14 +49,6 @@ internal StringRareTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Key { get; set; } + public required long DocCount { get; set; } + public required string Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringStatsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringStatsAggregate.g.cs index e33264b88ae..f2947f93e22 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringStatsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringStatsAggregate.g.cs @@ -35,52 +35,26 @@ public StringStatsAggregate(double? avgLength, long count, double? entropy, int? MaxLength = maxLength; MinLength = minLength; } -#if NET7_0_OR_GREATER - public StringStatsAggregate() - { - } -#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 StringStatsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StringStatsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double? AvgLength { get; set; } + public required double? AvgLength { get; set; } public string? AvgLengthAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Distribution { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double? Entropy { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int? MaxLength { get; set; } + public required double? Entropy { get; set; } + public required int? MaxLength { get; set; } public string? MaxLengthAsString { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int? MinLength { get; set; } + public required int? MinLength { get; set; } public string? MinLengthAsString { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "string_stats"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringStatsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringStatsAggregation.g.cs index 6deabe3bb7b..5601b5e5fbc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringStatsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringStatsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.StringStatsAggregationConverter))] public sealed partial class StringStatsAggregation { -#if NET7_0_OR_GREATER public StringStatsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public StringStatsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StringStatsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringTermsAggregate.g.cs index 18f74be5fb3..eb7485b582a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringTermsAggregate.g.cs @@ -36,28 +36,18 @@ public StringTermsAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public long? DocCountErrorUpperBound { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } public long? SumOtherDocCount { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringTermsBucket.g.cs index c0541d2fd41..127f82dae32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringTermsBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StringTermsBucket.g.cs @@ -32,17 +32,11 @@ public StringTermsBucket(long docCount, Elastic.Clients.Elasticsearch.FieldValue DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public StringTermsBucket() - { - } -#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 StringTermsBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StringTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,15 +49,7 @@ internal StringTermsBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public long? DocCountErrorUpperBound { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.FieldValue Key { get; set; } + public required Elastic.Clients.Elasticsearch.FieldValue Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumAggregate.g.cs index 05ad66a7a50..41514a8296b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumAggregate.g.cs @@ -36,17 +36,11 @@ public SumAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public SumAggregate() - { - } -#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 SumAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SumAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,10 +57,6 @@ internal SumAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumAggregation.g.cs index 74636094297..0a467e12c32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.SumAggregationConverter))] public sealed partial class SumAggregation { -#if NET7_0_OR_GREATER public SumAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public SumAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SumAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs index 9a3cfa98b2d..1c31e82a46d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.SumBucketAggregationConverter))] public sealed partial class SumBucketAggregation { -#if NET7_0_OR_GREATER public SumBucketAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public SumBucketAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SumBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigest.g.cs index 0e1349c44da..d57ffed8f24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigest.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.TDigestConverter))] public sealed partial class TDigest { -#if NET7_0_OR_GREATER public TDigest() { } -#endif -#if !NET7_0_OR_GREATER - public TDigest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TDigest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigestPercentileRanksAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigestPercentileRanksAggregate.g.cs index 71f6737ed55..a43eebcaf36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigestPercentileRanksAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigestPercentileRanksAggregate.g.cs @@ -31,17 +31,11 @@ public TDigestPercentileRanksAggregate(System.Collections.Generic.IReadOnlyColle { Values = values; } -#if NET7_0_OR_GREATER - public TDigestPercentileRanksAggregate() - { - } -#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 TDigestPercentileRanksAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TDigestPercentileRanksAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,9 +46,5 @@ internal TDigestPercentileRanksAggregate(Elastic.Clients.Elasticsearch.Serializa string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "tdigest_percentile_ranks"; - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Values { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Values { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigestPercentilesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigestPercentilesAggregate.g.cs index 8e89b98bd5d..115081545b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigestPercentilesAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TDigestPercentilesAggregate.g.cs @@ -31,17 +31,11 @@ public TDigestPercentilesAggregate(System.Collections.Generic.IReadOnlyCollectio { Values = values; } -#if NET7_0_OR_GREATER - public TDigestPercentilesAggregate() - { - } -#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 TDigestPercentilesAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TDigestPercentilesAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,9 +46,5 @@ internal TDigestPercentilesAggregate(Elastic.Clients.Elasticsearch.Serialization string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "tdigest_percentiles"; - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Values { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Values { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TTestAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TTestAggregate.g.cs index 2c15dcce0bc..d17ff139dcb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TTestAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TTestAggregate.g.cs @@ -31,17 +31,11 @@ public TTestAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public TTestAggregate() - { - } -#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 TTestAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TTestAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,10 +46,6 @@ internal TTestAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "t_test"; - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TTestAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TTestAggregation.g.cs index 17c31f93ebe..80ed703b6c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TTestAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TTestAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.TTestAggregationConverter))] public sealed partial class TTestAggregation { -#if NET7_0_OR_GREATER public TTestAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public TTestAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TTestAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs index 6e2e644fc93..e1202e611f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.TermsAggregationConverter))] public sealed partial class TermsAggregation { -#if NET7_0_OR_GREATER public TermsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public TermsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsPartition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsPartition.g.cs index f04d6ee99c9..fa47f5e8b28 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsPartition.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsPartition.g.cs @@ -32,17 +32,11 @@ public TermsPartition(long numPartitions, long partition) NumPartitions = numPartitions; Partition = partition; } -#if NET7_0_OR_GREATER - public TermsPartition() - { - } -#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 TermsPartition() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermsPartition(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal TermsPartition(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The number of partitions. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long NumPartitions { get; set; } + public required long NumPartitions { get; set; } /// /// /// The partition number for this request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Partition { get; set; } + public required long Partition { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TestPopulation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TestPopulation.g.cs index 9f82ddccabf..0360e041a06 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TestPopulation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TestPopulation.g.cs @@ -31,17 +31,11 @@ public TestPopulation(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public TestPopulation() - { - } -#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 TestPopulation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TestPopulation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal TestPopulation(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The field to aggregate. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs index b8cc73d4771..edd59ea0657 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs @@ -31,28 +31,18 @@ public TimeSeriesAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "time_series"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregation.g.cs index 75327294a33..372032c6113 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.TimeSeriesAggregationConverter))] public sealed partial class TimeSeriesAggregation { -#if NET7_0_OR_GREATER public TimeSeriesAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public TimeSeriesAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TimeSeriesAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs index c0a0223047d..c22c3edc315 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs @@ -32,17 +32,11 @@ public TimeSeriesBucket(long docCount, System.Collections.Generic.IReadOnlyDicti DocCount = docCount; Key = key; } -#if NET7_0_OR_GREATER - public TimeSeriesBucket() - { - } -#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 TimeSeriesBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TimeSeriesBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,14 +49,6 @@ internal TimeSeriesBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Key { get; set; } + public required long DocCount { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Key { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregate.g.cs index fbc40c7206f..3ba33be319f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregate.g.cs @@ -31,28 +31,18 @@ public TopHitsAggregate(Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "top_hits"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregation.g.cs index 9d451527d1d..7b066aff653 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.TopHitsAggregationConverter))] public sealed partial class TopHitsAggregation { -#if NET7_0_OR_GREATER public TopHitsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public TopHitsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TopHitsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetrics.g.cs index a15311ef4e3..08e50bbffbf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetrics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetrics.g.cs @@ -32,31 +32,17 @@ public TopMetrics(System.Collections.Generic.IReadOnlyDictionary Metrics { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Sort { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metrics { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Sort { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregate.g.cs index 87be61b2dd1..7aef2610a1d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregate.g.cs @@ -31,17 +31,11 @@ public TopMetricsAggregate(System.Collections.Generic.IReadOnlyCollection? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Top { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Top { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "top_metrics"; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs index 32554d5cad9..d91b9884911 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.TopMetricsAggregationConverter))] public sealed partial class TopMetricsAggregation { -#if NET7_0_OR_GREATER public TopMetricsAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public TopMetricsAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TopMetricsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsValue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsValue.g.cs index dcfafc48d16..a21866c41ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsValue.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsValue.g.cs @@ -31,17 +31,11 @@ public TopMetricsValue(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public TopMetricsValue() - { - } -#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 TopMetricsValue() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TopMetricsValue(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal TopMetricsValue(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// A field to return as a metric. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } } public readonly partial struct TopMetricsValueDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TrendChange.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TrendChange.g.cs index 0af67ccfdc8..666f9403816 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TrendChange.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TrendChange.g.cs @@ -33,36 +33,18 @@ public TrendChange(int changePoint, double pValue, double rValue) PValue = pValue; RValue = rValue; } -#if NET7_0_OR_GREATER - public TrendChange() - { - } -#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 TrendChange() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrendChange(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ChangePoint { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double PValue { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double RValue { get; set; } + public required int ChangePoint { get; set; } + public required double PValue { get; set; } + public required double RValue { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedRareTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedRareTermsAggregate.g.cs index 50fb89ff8ad..8b739e5ba16 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedRareTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedRareTermsAggregate.g.cs @@ -36,28 +36,18 @@ public UnmappedRareTermsAggregate(System.Collections.Generic.IReadOnlyCollection { Buckets = buckets; } -#if NET7_0_OR_GREATER - public UnmappedRareTermsAggregate() - { - } -#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 UnmappedRareTermsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UnmappedRareTermsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "umrareterms"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedSamplerAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedSamplerAggregate.g.cs index 086957648c1..8ec5f4f8cee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedSamplerAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedSamplerAggregate.g.cs @@ -31,17 +31,11 @@ public UnmappedSamplerAggregate(long docCount) { DocCount = docCount; } -#if NET7_0_OR_GREATER - public UnmappedSamplerAggregate() - { - } -#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 UnmappedSamplerAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UnmappedSamplerAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal UnmappedSamplerAggregate(Elastic.Clients.Elasticsearch.Serialization.Js /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } + public required long DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "unmapped_sampler"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedSignificantTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedSignificantTermsAggregate.g.cs index 35cf75e5792..edecd76b064 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedSignificantTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedSignificantTermsAggregate.g.cs @@ -36,17 +36,11 @@ public UnmappedSignificantTermsAggregate(System.Collections.Generic.IReadOnlyCol { Buckets = buckets; } -#if NET7_0_OR_GREATER - public UnmappedSignificantTermsAggregate() - { - } -#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 UnmappedSignificantTermsAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UnmappedSignificantTermsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal UnmappedSignificantTermsAggregate(Elastic.Clients.Elasticsearch.Seriali } public long? BgCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public long? DocCount { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedTermsAggregate.g.cs index d0c9548e24b..6c79ed27961 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedTermsAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/UnmappedTermsAggregate.g.cs @@ -36,28 +36,18 @@ public UnmappedTermsAggregate(System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public long? DocCountErrorUpperBound { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } public long? SumOtherDocCount { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ValueCountAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ValueCountAggregate.g.cs index 71442d6c844..d92e4eeaccb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ValueCountAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ValueCountAggregate.g.cs @@ -36,17 +36,11 @@ public ValueCountAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public ValueCountAggregate() - { - } -#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 ValueCountAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ValueCountAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,10 +57,6 @@ internal ValueCountAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ValueCountAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ValueCountAggregation.g.cs index a2968946129..d6f925a3bb7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ValueCountAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ValueCountAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ValueCountAggregationConverter))] public sealed partial class ValueCountAggregation { -#if NET7_0_OR_GREATER public ValueCountAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ValueCountAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ValueCountAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramAggregate.g.cs index a55f3dc2143..c2c5225d1cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramAggregate.g.cs @@ -31,28 +31,18 @@ public VariableWidthHistogramAggregate(System.Collections.Generic.IReadOnlyColle { Buckets = buckets; } -#if NET7_0_OR_GREATER - public VariableWidthHistogramAggregate() - { - } -#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 VariableWidthHistogramAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VariableWidthHistogramAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Buckets { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "variable_width_histogram"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs index b076d1372ff..54be2cca934 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.VariableWidthHistogramAggregationConverter))] public sealed partial class VariableWidthHistogramAggregation { -#if NET7_0_OR_GREATER public VariableWidthHistogramAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public VariableWidthHistogramAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VariableWidthHistogramAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramBucket.g.cs index ba9d7558eae..4bfe7fcd59d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/VariableWidthHistogramBucket.g.cs @@ -34,17 +34,11 @@ public VariableWidthHistogramBucket(long docCount, double key, double max, doubl Max = max; Min = min; } -#if NET7_0_OR_GREATER - public VariableWidthHistogramBucket() - { - } -#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 VariableWidthHistogramBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VariableWidthHistogramBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,27 +51,11 @@ internal VariableWidthHistogramBucket(Elastic.Clients.Elasticsearch.Serializatio /// /// public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Key { get; set; } + public required long DocCount { get; set; } + public required double Key { get; set; } public string? KeyAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Max { get; set; } + public required double Max { get; set; } public string? MaxAsString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Min { get; set; } + public required double Min { get; set; } public string? MinAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageAggregate.g.cs index 9d2f5819db8..afe92c2afdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageAggregate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageAggregate.g.cs @@ -36,17 +36,11 @@ public WeightedAverageAggregate(double? value) { Value = value; } -#if NET7_0_OR_GREATER - public WeightedAverageAggregate() - { - } -#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 WeightedAverageAggregate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WeightedAverageAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,10 +57,6 @@ internal WeightedAverageAggregate(Elastic.Clients.Elasticsearch.Serialization.Js /// unless specified otherwise. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double? Value { get; set; } + public required double? Value { get; set; } public string? ValueAsString { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageAggregation.g.cs index 69f43709732..b84341a490a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.WeightedAverageAggregationConverter))] public sealed partial class WeightedAverageAggregation { -#if NET7_0_OR_GREATER public WeightedAverageAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public WeightedAverageAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WeightedAverageAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageValue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageValue.g.cs index a9409ad8a97..dddcf480c71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageValue.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/WeightedAverageValue.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.WeightedAverageValueConverter))] public sealed partial class WeightedAverageValue { -#if NET7_0_OR_GREATER public WeightedAverageValue() { } -#endif -#if !NET7_0_OR_GREATER - public WeightedAverageValue() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WeightedAverageValue(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ApostropheTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ApostropheTokenFilter.g.cs index 34c0b5093f5..9eb28ee5d8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ApostropheTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ApostropheTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ApostropheTokenFilterConverter))] public sealed partial class ApostropheTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ApostropheTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ApostropheTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApostropheTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs index 22c605c3545..643561de41f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ArabicAnalyzerConverter))] public sealed partial class ArabicAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public ArabicAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public ArabicAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ArabicAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicNormalizationTokenFilter.g.cs index 5567706d283..cf4a9ffd7b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ArabicNormalizationTokenFilterConverter))] public sealed partial class ArabicNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ArabicNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ArabicNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ArabicNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicStemTokenFilter.g.cs index a623b40a32a..35f03aab41b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ArabicStemTokenFilterConverter))] public sealed partial class ArabicStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ArabicStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ArabicStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ArabicStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs index 1cdd899cb34..af884bae6d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ArmenianAnalyzerConverter))] public sealed partial class ArmenianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public ArmenianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public ArmenianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ArmenianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs index b508cbb66c5..c67989bff62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.AsciiFoldingTokenFilterConverter))] public sealed partial class AsciiFoldingTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public AsciiFoldingTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public AsciiFoldingTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AsciiFoldingTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs index 4e0fa9726c7..012d7f85ace 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.BasqueAnalyzerConverter))] public sealed partial class BasqueAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public BasqueAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public BasqueAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BasqueAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs index 1a5471260a7..190716d0811 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.BengaliAnalyzerConverter))] public sealed partial class BengaliAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public BengaliAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public BengaliAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BengaliAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliNormalizationTokenFilter.g.cs index 64d58469e6a..721335e391b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.BengaliNormalizationTokenFilterConverter))] public sealed partial class BengaliNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public BengaliNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public BengaliNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BengaliNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs index 39cd0c22a09..88ddbb12221 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.BrazilianAnalyzerConverter))] public sealed partial class BrazilianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public BrazilianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public BrazilianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BrazilianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianStemTokenFilter.g.cs index ca14ace9691..71a3fa0f07c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.BrazilianStemTokenFilterConverter))] public sealed partial class BrazilianStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public BrazilianStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public BrazilianStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BrazilianStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs index 19e0d2202df..0d90c79d13b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.BulgarianAnalyzerConverter))] public sealed partial class BulgarianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public BulgarianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public BulgarianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BulgarianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs index 195933086b8..ecfa58bcdb6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.CatalanAnalyzerConverter))] public sealed partial class CatalanAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public CatalanAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public CatalanAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CatalanAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CharGroupTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CharGroupTokenizer.g.cs index 67d03a24da3..8439e29fe7a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CharGroupTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CharGroupTokenizer.g.cs @@ -31,17 +31,11 @@ public CharGroupTokenizer(System.Collections.Generic.ICollection tokeniz { TokenizeOnChars = tokenizeOnChars; } -#if NET7_0_OR_GREATER - public CharGroupTokenizer() - { - } -#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 CharGroupTokenizer() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CharGroupTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal CharGroupTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonCons } public int? MaxTokenLength { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection TokenizeOnChars { get; set; } + public required System.Collections.Generic.ICollection TokenizeOnChars { get; set; } public string Type => "char_group"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs index 5322058698f..19b1fc7b4d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ChineseAnalyzerConverter))] public sealed partial class ChineseAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public ChineseAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public ChineseAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChineseAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs index 3e5f260b17a..95d5a394f3c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.CjkAnalyzerConverter))] public sealed partial class CjkAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public CjkAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public CjkAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CjkAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkBigramTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkBigramTokenFilter.g.cs index c51c13d5c82..5e161616ee4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkBigramTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkBigramTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.CjkBigramTokenFilterConverter))] public sealed partial class CjkBigramTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public CjkBigramTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public CjkBigramTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CjkBigramTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkWidthTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkWidthTokenFilter.g.cs index d8f4b2bc1a8..586f48f5173 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkWidthTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkWidthTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.CjkWidthTokenFilterConverter))] public sealed partial class CjkWidthTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public CjkWidthTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public CjkWidthTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CjkWidthTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenFilter.g.cs index 9986eb0b32d..1879b239d8f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ClassicTokenFilterConverter))] public sealed partial class ClassicTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ClassicTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ClassicTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClassicTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenizer.g.cs index f6a21dde5a9..dcdedf81a5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ClassicTokenizerConverter))] public sealed partial class ClassicTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public ClassicTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public ClassicTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClassicTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs index a44c51d0b20..0a035dd7559 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.CommonGramsTokenFilterConverter))] public sealed partial class CommonGramsTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public CommonGramsTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public CommonGramsTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CommonGramsTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs index a8c67833aa7..e6d13652c71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs @@ -32,17 +32,11 @@ public ConditionTokenFilter(System.Collections.Generic.ICollection filte Filter = filter; Script = script; } -#if NET7_0_OR_GREATER - public ConditionTokenFilter() - { - } -#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 ConditionTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ConditionTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal ConditionTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Array of token filters. If a token matches the predicate script in the script parameter, these filters are applied to the token in the order provided. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Filter { get; set; } + public required System.Collections.Generic.ICollection Filter { get; set; } /// /// /// Predicate script used to apply token filters. If a token matches this script, the filters in the filter parameter are applied to the token. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } public string Type => "condition"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomAnalyzer.g.cs index a0e5d7dcc07..b7369f2f682 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomAnalyzer.g.cs @@ -31,17 +31,11 @@ public CustomAnalyzer(string tokenizer) { Tokenizer = tokenizer; } -#if NET7_0_OR_GREATER - public CustomAnalyzer() - { - } -#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 CustomAnalyzer() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CustomAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,11 +46,7 @@ internal CustomAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc public System.Collections.Generic.ICollection? Filter { get; set; } public int? PositionIncrementGap { get; set; } public int? PositionOffsetGap { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Tokenizer { get; set; } + public required string Tokenizer { get; set; } public string Type => "custom"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomNormalizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomNormalizer.g.cs index b928ed43dfb..07ae3684aaa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomNormalizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomNormalizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.CustomNormalizerConverter))] public sealed partial class CustomNormalizer : Elastic.Clients.Elasticsearch.Analysis.INormalizer { -#if NET7_0_OR_GREATER public CustomNormalizer() { } -#endif -#if !NET7_0_OR_GREATER - public CustomNormalizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CustomNormalizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs index 04747261ab6..5896c54a14f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.CzechAnalyzerConverter))] public sealed partial class CzechAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public CzechAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public CzechAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CzechAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechStemTokenFilter.g.cs index 5e143128163..d5e2fbb6bc0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.CzechStemTokenFilterConverter))] public sealed partial class CzechStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public CzechStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public CzechStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CzechStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs index 56653c1ad36..561113ea711 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.DanishAnalyzerConverter))] public sealed partial class DanishAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public DanishAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public DanishAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DanishAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DecimalDigitTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DecimalDigitTokenFilter.g.cs index 34f9ff3997e..8c675722f7a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DecimalDigitTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DecimalDigitTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.DecimalDigitTokenFilterConverter))] public sealed partial class DecimalDigitTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public DecimalDigitTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public DecimalDigitTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DecimalDigitTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs index 1b3e67fd571..415c0b86543 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.DelimitedPayloadTokenFilterConverter))] public sealed partial class DelimitedPayloadTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public DelimitedPayloadTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public DelimitedPayloadTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DelimitedPayloadTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs index d567494e22a..b83f8cb61ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.DictionaryDecompounderTokenFilterConverter))] public sealed partial class DictionaryDecompounderTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public DictionaryDecompounderTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public DictionaryDecompounderTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DictionaryDecompounderTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs index 28b1b75a353..9fc0433b43c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.DutchAnalyzerConverter))] public sealed partial class DutchAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public DutchAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public DutchAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DutchAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchStemTokenFilter.g.cs index f43e923e196..d0eb6c15d0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.DutchStemTokenFilterConverter))] public sealed partial class DutchStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public DutchStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public DutchStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DutchStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs index 0182066b4c4..b63297af793 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.EdgeNGramTokenFilterConverter))] public sealed partial class EdgeNGramTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public EdgeNGramTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public EdgeNGramTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EdgeNGramTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs index b0c604fbc9b..edd387044b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.EdgeNGramTokenizerConverter))] public sealed partial class EdgeNGramTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public EdgeNGramTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public EdgeNGramTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EdgeNGramTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs index addd04aef08..93834862208 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ElisionTokenFilterConverter))] public sealed partial class ElisionTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ElisionTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ElisionTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ElisionTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs index 93b78d60748..7faecfe3079 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.EnglishAnalyzerConverter))] public sealed partial class EnglishAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public EnglishAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public EnglishAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EnglishAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs index 73a5a35cbcc..1ff95c058a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.EstonianAnalyzerConverter))] public sealed partial class EstonianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public EstonianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public EstonianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EstonianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs index 426200d80bb..285bbdfc82f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.FingerprintAnalyzerConverter))] public sealed partial class FingerprintAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public FingerprintAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public FingerprintAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FingerprintAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs index 61d98387096..e9b30a52b06 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.FingerprintTokenFilterConverter))] public sealed partial class FingerprintTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public FingerprintTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public FingerprintTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FingerprintTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs index 0db5adb9ef1..7f6c2390731 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.FinnishAnalyzerConverter))] public sealed partial class FinnishAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public FinnishAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public FinnishAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FinnishAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FlattenGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FlattenGraphTokenFilter.g.cs index 302911e3cfe..405ba7de59b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FlattenGraphTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FlattenGraphTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.FlattenGraphTokenFilterConverter))] public sealed partial class FlattenGraphTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public FlattenGraphTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public FlattenGraphTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FlattenGraphTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs index 25bccb0ae09..682d8644642 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.FrenchAnalyzerConverter))] public sealed partial class FrenchAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public FrenchAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public FrenchAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FrenchAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchStemTokenFilter.g.cs index 241392cdad7..c37a8fc9dce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.FrenchStemTokenFilterConverter))] public sealed partial class FrenchStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public FrenchStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public FrenchStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FrenchStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs index bc3ab65d03e..8abe4d47068 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.GalicianAnalyzerConverter))] public sealed partial class GalicianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public GalicianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public GalicianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GalicianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs index a6ddbab502e..0ca83374e3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.GermanAnalyzerConverter))] public sealed partial class GermanAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public GermanAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public GermanAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GermanAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanNormalizationTokenFilter.g.cs index 7d1636b9d02..85bb08f2194 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.GermanNormalizationTokenFilterConverter))] public sealed partial class GermanNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public GermanNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public GermanNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GermanNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanStemTokenFilter.g.cs index 6017fdc91d6..e10fdef9151 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.GermanStemTokenFilterConverter))] public sealed partial class GermanStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public GermanStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public GermanStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GermanStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs index 14d2264ae65..2a5c9873a4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.GreekAnalyzerConverter))] public sealed partial class GreekAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public GreekAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public GreekAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GreekAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs index 1b212b3462e..c240a62138a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.HindiAnalyzerConverter))] public sealed partial class HindiAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public HindiAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public HindiAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HindiAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiNormalizationTokenFilter.g.cs index d6e3bd1655e..802bca7392e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.HindiNormalizationTokenFilterConverter))] public sealed partial class HindiNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public HindiNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public HindiNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HindiNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HtmlStripCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HtmlStripCharFilter.g.cs index a73fd51ecc9..1efd50ccf8c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HtmlStripCharFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HtmlStripCharFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.HtmlStripCharFilterConverter))] public sealed partial class HtmlStripCharFilter : Elastic.Clients.Elasticsearch.Analysis.ICharFilter { -#if NET7_0_OR_GREATER public HtmlStripCharFilter() { } -#endif -#if !NET7_0_OR_GREATER - public HtmlStripCharFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HtmlStripCharFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs index b0316def14c..209934df3a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.HungarianAnalyzerConverter))] public sealed partial class HungarianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public HungarianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public HungarianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HungarianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HunspellTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HunspellTokenFilter.g.cs index 22eef111a6c..55d9cc66a30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HunspellTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HunspellTokenFilter.g.cs @@ -31,17 +31,11 @@ public HunspellTokenFilter(string locale) { Locale = locale; } -#if NET7_0_OR_GREATER - public HunspellTokenFilter() - { - } -#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 HunspellTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HunspellTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +62,7 @@ internal HunspellTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Locale directory used to specify the .aff and .dic files for a Hunspell dictionary. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Locale { get; set; } + public required string Locale { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs index 885ce9a2e08..c3e3e263536 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs @@ -31,17 +31,11 @@ public HyphenationDecompounderTokenFilter(string hyphenationPatternsPath) { HyphenationPatternsPath = hyphenationPatternsPath; } -#if NET7_0_OR_GREATER - public HyphenationDecompounderTokenFilter() - { - } -#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 HyphenationDecompounderTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HyphenationDecompounderTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal HyphenationDecompounderTokenFilter(Elastic.Clients.Elasticsearch.Serial /// This path must be absolute or relative to the config location. Only FOP v1.2 compatible files are supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string HyphenationPatternsPath { get; set; } + public required string HyphenationPatternsPath { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuAnalyzer.g.cs index 4150f83550a..3a55095940c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuAnalyzer.g.cs @@ -32,33 +32,19 @@ public IcuAnalyzer(Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationType m Method = method; Mode = mode; } -#if NET7_0_OR_GREATER - public IcuAnalyzer() - { - } -#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 IcuAnalyzer() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IcuAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationType Method { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationMode Mode { get; set; } + public required Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationType Method { get; set; } + public required Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationMode Mode { get; set; } public string Type => "icu_analyzer"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs index 63053ec906a..3fe5867cbe4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.IcuCollationTokenFilterConverter))] public sealed partial class IcuCollationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public IcuCollationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public IcuCollationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IcuCollationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuFoldingTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuFoldingTokenFilter.g.cs index 029411c5c13..f36160ac5d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuFoldingTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuFoldingTokenFilter.g.cs @@ -31,17 +31,11 @@ public IcuFoldingTokenFilter(string unicodeSetFilter) { UnicodeSetFilter = unicodeSetFilter; } -#if NET7_0_OR_GREATER - public IcuFoldingTokenFilter() - { - } -#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 IcuFoldingTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IcuFoldingTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,11 +44,7 @@ internal IcuFoldingTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonC public string Type => "icu_folding"; - public -#if NET7_0_OR_GREATER - required -#endif - string UnicodeSetFilter { get; set; } + public required string UnicodeSetFilter { get; set; } public string? Version { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs index cbea94f886b..5cfc0b472fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.IcuNormalizationCharFilterConverter))] public sealed partial class IcuNormalizationCharFilter : Elastic.Clients.Elasticsearch.Analysis.ICharFilter { -#if NET7_0_OR_GREATER public IcuNormalizationCharFilter() { } -#endif -#if !NET7_0_OR_GREATER - public IcuNormalizationCharFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IcuNormalizationCharFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationTokenFilter.g.cs index 7da9c930281..3b9960bf739 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationTokenFilter.g.cs @@ -31,28 +31,18 @@ public IcuNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Analysis.IcuNor { Name = name; } -#if NET7_0_OR_GREATER - public IcuNormalizationTokenFilter() - { - } -#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 IcuNormalizationTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IcuNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationType Name { get; set; } + public required Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationType Name { get; set; } public string Type => "icu_normalizer"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuTokenizer.g.cs index 404f552deef..11b5a886715 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuTokenizer.g.cs @@ -31,28 +31,18 @@ public IcuTokenizer(string ruleFiles) { RuleFiles = ruleFiles; } -#if NET7_0_OR_GREATER - public IcuTokenizer() - { - } -#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 IcuTokenizer() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IcuTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string RuleFiles { get; set; } + public required string RuleFiles { get; set; } public string Type => "icu_tokenizer"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuTransformTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuTransformTokenFilter.g.cs index f72089ff4d2..705b1f7dbdc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuTransformTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuTransformTokenFilter.g.cs @@ -31,17 +31,11 @@ public IcuTransformTokenFilter(string id) { Id = id; } -#if NET7_0_OR_GREATER - public IcuTransformTokenFilter() - { - } -#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 IcuTransformTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IcuTransformTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal IcuTransformTokenFilter(Elastic.Clients.Elasticsearch.Serialization.Jso } public Elastic.Clients.Elasticsearch.Analysis.IcuTransformDirection? Dir { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } public string Type => "icu_transform"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndicNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndicNormalizationTokenFilter.g.cs index dce49a51ac2..aaabb34047e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndicNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndicNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.IndicNormalizationTokenFilterConverter))] public sealed partial class IndicNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public IndicNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public IndicNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndicNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs index 40cd7078fb0..ee195e6692f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.IndonesianAnalyzerConverter))] public sealed partial class IndonesianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public IndonesianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public IndonesianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndonesianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs index 17f974b6ff9..77a8833ba15 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.IrishAnalyzerConverter))] public sealed partial class IrishAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public IrishAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public IrishAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IrishAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs index da902ab3017..077532c8beb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ItalianAnalyzerConverter))] public sealed partial class ItalianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public ItalianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public ItalianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ItalianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/JaStopTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/JaStopTokenFilter.g.cs index 1d86ffeedc4..c08fc70aeac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/JaStopTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/JaStopTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.JaStopTokenFilterConverter))] public sealed partial class JaStopTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public JaStopTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public JaStopTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JaStopTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KStemTokenFilter.g.cs index d3af6877598..d64c25651bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.KStemTokenFilterConverter))] public sealed partial class KStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public KStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public KStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs index 7701a40d791..5ccb9f4a7dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs @@ -31,17 +31,11 @@ public KeepTypesTokenFilter(System.Collections.Generic.ICollection types { Types = types; } -#if NET7_0_OR_GREATER - public KeepTypesTokenFilter() - { - } -#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 KeepTypesTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeepTypesTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal KeepTypesTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// List of token types to keep or remove. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Types { get; set; } + public required System.Collections.Generic.ICollection Types { get; set; } public string? Version { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs index a468f51e285..14c8c36856f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.KeepWordsTokenFilterConverter))] public sealed partial class KeepWordsTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public KeepWordsTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public KeepWordsTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeepWordsTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordAnalyzer.g.cs index a67dd6e246a..0838378f9c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.KeywordAnalyzerConverter))] public sealed partial class KeywordAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public KeywordAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public KeywordAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeywordAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs index 01fdee858c9..525409fb67c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.KeywordMarkerTokenFilterConverter))] public sealed partial class KeywordMarkerTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public KeywordMarkerTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public KeywordMarkerTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeywordMarkerTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordRepeatTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordRepeatTokenFilter.g.cs index be2340985e0..f0eb508a8f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordRepeatTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordRepeatTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.KeywordRepeatTokenFilterConverter))] public sealed partial class KeywordRepeatTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public KeywordRepeatTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public KeywordRepeatTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeywordRepeatTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordTokenizer.g.cs index 97799609e43..16793467e81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.KeywordTokenizerConverter))] public sealed partial class KeywordTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public KeywordTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public KeywordTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeywordTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiAnalyzer.g.cs index 92557ff71d4..bb136d51d5f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.KuromojiAnalyzerConverter))] public sealed partial class KuromojiAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public KuromojiAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public KuromojiAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KuromojiAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiIterationMarkCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiIterationMarkCharFilter.g.cs index 5c92a120d61..660cfb13ab2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiIterationMarkCharFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiIterationMarkCharFilter.g.cs @@ -32,33 +32,19 @@ public KuromojiIterationMarkCharFilter(bool normalizeKana, bool normalizeKanji) NormalizeKana = normalizeKana; NormalizeKanji = normalizeKanji; } -#if NET7_0_OR_GREATER - public KuromojiIterationMarkCharFilter() - { - } -#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 KuromojiIterationMarkCharFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KuromojiIterationMarkCharFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool NormalizeKana { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool NormalizeKanji { get; set; } + public required bool NormalizeKana { get; set; } + public required bool NormalizeKanji { get; set; } public string Type => "kuromoji_iteration_mark"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs index e9c4ca0bcc2..39a0402594f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs @@ -31,28 +31,18 @@ public KuromojiPartOfSpeechTokenFilter(System.Collections.Generic.ICollection Stoptags { get; set; } + public required System.Collections.Generic.ICollection Stoptags { get; set; } public string Type => "kuromoji_part_of_speech"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiReadingFormTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiReadingFormTokenFilter.g.cs index 26104d01384..8ba1e867bdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiReadingFormTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiReadingFormTokenFilter.g.cs @@ -31,17 +31,11 @@ public KuromojiReadingFormTokenFilter(bool useRomaji) { UseRomaji = useRomaji; } -#if NET7_0_OR_GREATER - public KuromojiReadingFormTokenFilter() - { - } -#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 KuromojiReadingFormTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KuromojiReadingFormTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,11 +44,7 @@ internal KuromojiReadingFormTokenFilter(Elastic.Clients.Elasticsearch.Serializat public string Type => "kuromoji_readingform"; - public -#if NET7_0_OR_GREATER - required -#endif - bool UseRomaji { get; set; } + public required bool UseRomaji { get; set; } public string? Version { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiStemmerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiStemmerTokenFilter.g.cs index 38324024bc7..9ff9c0f4e0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiStemmerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiStemmerTokenFilter.g.cs @@ -31,28 +31,18 @@ public KuromojiStemmerTokenFilter(int minimumLength) { MinimumLength = minimumLength; } -#if NET7_0_OR_GREATER - public KuromojiStemmerTokenFilter() - { - } -#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 KuromojiStemmerTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KuromojiStemmerTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int MinimumLength { get; set; } + public required int MinimumLength { get; set; } public string Type => "kuromoji_stemmer"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiTokenizer.g.cs index e429d4a1e9e..b2b7909c65a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiTokenizer.g.cs @@ -31,17 +31,11 @@ public KuromojiTokenizer(Elastic.Clients.Elasticsearch.Analysis.KuromojiTokeniza { Mode = mode; } -#if NET7_0_OR_GREATER - public KuromojiTokenizer() - { - } -#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 KuromojiTokenizer() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KuromojiTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,11 +44,7 @@ internal KuromojiTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConst public bool? DiscardCompoundToken { get; set; } public bool? DiscardPunctuation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Analysis.KuromojiTokenizationMode Mode { get; set; } + public required Elastic.Clients.Elasticsearch.Analysis.KuromojiTokenizationMode Mode { get; set; } public int? NbestCost { get; set; } public string? NbestExamples { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs index a8a13a34b37..651ff212e6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.LatvianAnalyzerConverter))] public sealed partial class LatvianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public LatvianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public LatvianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LatvianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LengthTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LengthTokenFilter.g.cs index 4ef9ecdc70d..e63003dcebe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LengthTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LengthTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.LengthTokenFilterConverter))] public sealed partial class LengthTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public LengthTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public LengthTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LengthTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LetterTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LetterTokenizer.g.cs index 845bd5b7973..15864d085ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LetterTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LetterTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.LetterTokenizerConverter))] public sealed partial class LetterTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public LetterTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public LetterTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LetterTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs index 7c2300eadde..4125ff97a4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.LimitTokenCountTokenFilterConverter))] public sealed partial class LimitTokenCountTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public LimitTokenCountTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public LimitTokenCountTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LimitTokenCountTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs index 1c1980a1877..16d714436ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.LithuanianAnalyzerConverter))] public sealed partial class LithuanianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public LithuanianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public LithuanianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LithuanianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseNormalizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseNormalizer.g.cs index ac6b403e8b0..9da0e86851c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseNormalizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseNormalizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.LowercaseNormalizerConverter))] public sealed partial class LowercaseNormalizer : Elastic.Clients.Elasticsearch.Analysis.INormalizer { -#if NET7_0_OR_GREATER public LowercaseNormalizer() { } -#endif -#if !NET7_0_OR_GREATER - public LowercaseNormalizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LowercaseNormalizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs index 13e33c615c1..49e0818af89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.LowercaseTokenFilterConverter))] public sealed partial class LowercaseTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public LowercaseTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public LowercaseTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LowercaseTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenizer.g.cs index bfc5c97b232..d2b373aeb11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.LowercaseTokenizerConverter))] public sealed partial class LowercaseTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public LowercaseTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public LowercaseTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LowercaseTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MappingCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MappingCharFilter.g.cs index 2ea77d9dd1a..aa81eb1e67b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MappingCharFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MappingCharFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.MappingCharFilterConverter))] public sealed partial class MappingCharFilter : Elastic.Clients.Elasticsearch.Analysis.ICharFilter { -#if NET7_0_OR_GREATER public MappingCharFilter() { } -#endif -#if !NET7_0_OR_GREATER - public MappingCharFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingCharFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MinHashTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MinHashTokenFilter.g.cs index 5e3fa814345..fb9473170e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MinHashTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MinHashTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.MinHashTokenFilterConverter))] public sealed partial class MinHashTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public MinHashTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public MinHashTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MinHashTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs index 6d8140b268a..7ae5eb08d12 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs @@ -31,17 +31,11 @@ public MultiplexerTokenFilter(System.Collections.Generic.ICollection fil { Filters = filters; } -#if NET7_0_OR_GREATER - public MultiplexerTokenFilter() - { - } -#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 MultiplexerTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiplexerTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal MultiplexerTokenFilter(Elastic.Clients.Elasticsearch.Serialization.Json /// A list of token filters to apply to incoming tokens. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Filters { get; set; } + public required System.Collections.Generic.ICollection Filters { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenFilter.g.cs index 4d06e64b3e9..fd2e0bf6b60 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.NGramTokenFilterConverter))] public sealed partial class NGramTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public NGramTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public NGramTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NGramTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs index 9af20067b9f..c058bbb624c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.NGramTokenizerConverter))] public sealed partial class NGramTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public NGramTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public NGramTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NGramTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriAnalyzer.g.cs index ac801286c37..b94dec2d886 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.NoriAnalyzerConverter))] public sealed partial class NoriAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public NoriAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public NoriAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NoriAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs index ed82cde23f4..2b43a6db8fb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.NoriPartOfSpeechTokenFilterConverter))] public sealed partial class NoriPartOfSpeechTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public NoriPartOfSpeechTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public NoriPartOfSpeechTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NoriPartOfSpeechTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriTokenizer.g.cs index d3fe810e835..c728cc997cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.NoriTokenizerConverter))] public sealed partial class NoriTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public NoriTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public NoriTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NoriTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs index 6228f048052..96201a0fcd2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.NorwegianAnalyzerConverter))] public sealed partial class NorwegianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public NorwegianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public NorwegianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NorwegianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PathHierarchyTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PathHierarchyTokenizer.g.cs index d4f53eeab3f..dc41721217c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PathHierarchyTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PathHierarchyTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.PathHierarchyTokenizerConverter))] public sealed partial class PathHierarchyTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public PathHierarchyTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public PathHierarchyTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PathHierarchyTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs index c8a6b350677..65248de5f7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.PatternAnalyzerConverter))] public sealed partial class PatternAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public PatternAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public PatternAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PatternAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs index 5527f5659d1..13d42dbcbee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs @@ -31,17 +31,11 @@ public PatternCaptureTokenFilter(System.Collections.Generic.ICollection { Patterns = patterns; } -#if NET7_0_OR_GREATER - public PatternCaptureTokenFilter() - { - } -#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 PatternCaptureTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PatternCaptureTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal PatternCaptureTokenFilter(Elastic.Clients.Elasticsearch.Serialization.J /// A list of regular expressions to match. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Patterns { get; set; } + public required System.Collections.Generic.ICollection Patterns { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceCharFilter.g.cs index dab6d324b2f..4c0b1b2f203 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceCharFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceCharFilter.g.cs @@ -31,17 +31,11 @@ public PatternReplaceCharFilter(string pattern) { Pattern = pattern; } -#if NET7_0_OR_GREATER - public PatternReplaceCharFilter() - { - } -#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 PatternReplaceCharFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PatternReplaceCharFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal PatternReplaceCharFilter(Elastic.Clients.Elasticsearch.Serialization.Js } public string? Flags { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Pattern { get; set; } + public required string Pattern { get; set; } public string? Replacement { get; set; } public string Type => "pattern_replace"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs index fbf26ab2a3a..f76c5babe9b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs @@ -31,17 +31,11 @@ public PatternReplaceTokenFilter(string pattern) { Pattern = pattern; } -#if NET7_0_OR_GREATER - public PatternReplaceTokenFilter() - { - } -#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 PatternReplaceTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PatternReplaceTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal PatternReplaceTokenFilter(Elastic.Clients.Elasticsearch.Serialization.J /// Regular expression, written in Java’s regular expression syntax. The filter replaces token substrings matching this pattern with the substring in the replacement parameter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Pattern { get; set; } + public required string Pattern { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternTokenizer.g.cs index 5ddf5eca599..6cc67f2dbdc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.PatternTokenizerConverter))] public sealed partial class PatternTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public PatternTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public PatternTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PatternTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs index 5735fcdfd1e..f577eb3c094 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.PersianAnalyzerConverter))] public sealed partial class PersianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public PersianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public PersianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PersianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianNormalizationTokenFilter.g.cs index 5bff390cdda..a9b938b566f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.PersianNormalizationTokenFilterConverter))] public sealed partial class PersianNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public PersianNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public PersianNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PersianNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianStemTokenFilter.g.cs index 6c0c7046371..e17bd6142dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.PersianStemTokenFilterConverter))] public sealed partial class PersianStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public PersianStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public PersianStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PersianStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs index 2a24598858a..a33d579890f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs @@ -31,28 +31,18 @@ public PhoneticTokenFilter(Elastic.Clients.Elasticsearch.Analysis.PhoneticEncode { Encoder = encoder; } -#if NET7_0_OR_GREATER - public PhoneticTokenFilter() - { - } -#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 PhoneticTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PhoneticTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Analysis.PhoneticEncoder Encoder { get; set; } + public required Elastic.Clients.Elasticsearch.Analysis.PhoneticEncoder Encoder { get; set; } public System.Collections.Generic.ICollection? Languageset { get; set; } public int? MaxCodeLen { get; set; } public Elastic.Clients.Elasticsearch.Analysis.PhoneticNameType? NameType { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PorterStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PorterStemTokenFilter.g.cs index 0559c4954a7..83b346f0952 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PorterStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PorterStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.PorterStemTokenFilterConverter))] public sealed partial class PorterStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public PorterStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public PorterStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PorterStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs index 9471b725704..ea53b581d6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.PortugueseAnalyzerConverter))] public sealed partial class PortugueseAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public PortugueseAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public PortugueseAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PortugueseAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PredicateTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PredicateTokenFilter.g.cs index 1defe159077..1785848315b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PredicateTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PredicateTokenFilter.g.cs @@ -31,17 +31,11 @@ public PredicateTokenFilter(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public PredicateTokenFilter() - { - } -#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 PredicateTokenFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PredicateTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal PredicateTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Script containing a condition used to filter incoming tokens. Only tokens that match this script are included in the output. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } public string Type => "predicate_token_filter"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RemoveDuplicatesTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RemoveDuplicatesTokenFilter.g.cs index aac4d93891f..b6795dfbfd3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RemoveDuplicatesTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RemoveDuplicatesTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.RemoveDuplicatesTokenFilterConverter))] public sealed partial class RemoveDuplicatesTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public RemoveDuplicatesTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public RemoveDuplicatesTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoveDuplicatesTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ReverseTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ReverseTokenFilter.g.cs index 07b38ecaca5..ad8766bef1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ReverseTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ReverseTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ReverseTokenFilterConverter))] public sealed partial class ReverseTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ReverseTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ReverseTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReverseTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs index 5ffc5fdf27c..0b96d3f8761 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.RomanianAnalyzerConverter))] public sealed partial class RomanianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public RomanianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public RomanianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RomanianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs index fec97cdaf8c..37069e77b6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.RussianAnalyzerConverter))] public sealed partial class RussianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public RussianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public RussianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RussianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianStemTokenFilter.g.cs index 4ca454614b3..c6f858b58b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianStemTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianStemTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.RussianStemTokenFilterConverter))] public sealed partial class RussianStemTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public RussianStemTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public RussianStemTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RussianStemTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianFoldingTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianFoldingTokenFilter.g.cs index de6c21d8f6f..e736d54c662 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianFoldingTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianFoldingTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ScandinavianFoldingTokenFilterConverter))] public sealed partial class ScandinavianFoldingTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ScandinavianFoldingTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ScandinavianFoldingTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScandinavianFoldingTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianNormalizationTokenFilter.g.cs index b23185f5298..4509fc751b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ScandinavianNormalizationTokenFilterConverter))] public sealed partial class ScandinavianNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ScandinavianNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ScandinavianNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScandinavianNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs index 732bd2760c6..49f7fe2cbe7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SerbianAnalyzerConverter))] public sealed partial class SerbianAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public SerbianAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public SerbianAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SerbianAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianNormalizationTokenFilter.g.cs index a72a10ea555..03cc908053d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SerbianNormalizationTokenFilterConverter))] public sealed partial class SerbianNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public SerbianNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public SerbianNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SerbianNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ShingleTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ShingleTokenFilter.g.cs index cccc89374d6..9adf8daf999 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ShingleTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ShingleTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ShingleTokenFilterConverter))] public sealed partial class ShingleTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public ShingleTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public ShingleTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShingleTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimpleAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimpleAnalyzer.g.cs index ec92e17d680..1b44dfaf626 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimpleAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimpleAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SimpleAnalyzerConverter))] public sealed partial class SimpleAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public SimpleAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public SimpleAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimpleAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs index 34c33fc8752..952b216ea5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SimplePatternSplitTokenizerConverter))] public sealed partial class SimplePatternSplitTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public SimplePatternSplitTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public SimplePatternSplitTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimplePatternSplitTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs index 66544c01b24..268407875b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SimplePatternTokenizerConverter))] public sealed partial class SimplePatternTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public SimplePatternTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public SimplePatternTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimplePatternTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs index 048d7e3a2ea..3e60ae72044 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs @@ -31,28 +31,18 @@ public SnowballAnalyzer(Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage { Language = language; } -#if NET7_0_OR_GREATER - public SnowballAnalyzer() - { - } -#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 SnowballAnalyzer() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnowballAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage Language { get; set; } + public required Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage Language { get; set; } public Elastic.Clients.Elasticsearch.Union>? Stopwords { get; set; } public string Type => "snowball"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballTokenFilter.g.cs index aa8eb80642d..9cf75fc597e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SnowballTokenFilterConverter))] public sealed partial class SnowballTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public SnowballTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public SnowballTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnowballTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs index ee6a1298129..74e549ba718 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SoraniAnalyzerConverter))] public sealed partial class SoraniAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public SoraniAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public SoraniAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SoraniAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniNormalizationTokenFilter.g.cs index 9257a0a56a9..6eb095e8313 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniNormalizationTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniNormalizationTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SoraniNormalizationTokenFilterConverter))] public sealed partial class SoraniNormalizationTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public SoraniNormalizationTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public SoraniNormalizationTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SoraniNormalizationTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs index e8cf0c4a86c..553ae58bb0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SpanishAnalyzerConverter))] public sealed partial class SpanishAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public SpanishAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public SpanishAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanishAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs index 82379a34218..8c09cf9ed86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.StandardAnalyzerConverter))] public sealed partial class StandardAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public StandardAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public StandardAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StandardAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardTokenizer.g.cs index e6aa10aa7e0..c5fc022a12f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.StandardTokenizerConverter))] public sealed partial class StandardTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public StandardTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public StandardTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StandardTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs index 4d86f0842fb..12f5e7da871 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.StemmerOverrideTokenFilterConverter))] public sealed partial class StemmerOverrideTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public StemmerOverrideTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public StemmerOverrideTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StemmerOverrideTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerTokenFilter.g.cs index 67307700218..f686683354d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.StemmerTokenFilterConverter))] public sealed partial class StemmerTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public StemmerTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public StemmerTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StemmerTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs index 0239e03698f..13bfe37141b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.StopAnalyzerConverter))] public sealed partial class StopAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public StopAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public StopAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs index 8ac165fef83..c57c9d02cbc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.StopTokenFilterConverter))] public sealed partial class StopTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public StopTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public StopTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StopTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs index 2d0a8efb4a2..6b8e79b61a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SwedishAnalyzerConverter))] public sealed partial class SwedishAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public SwedishAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public SwedishAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SwedishAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs index 82a9f66f640..aa3ce04a15e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SynonymGraphTokenFilterConverter))] public sealed partial class SynonymGraphTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public SynonymGraphTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public SynonymGraphTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SynonymGraphTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs index c2e77ae4a40..4acd5c9f4fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.SynonymTokenFilterConverter))] public sealed partial class SynonymTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public SynonymTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public SynonymTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SynonymTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs index 620af080bdc..31bd6ea3f5b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ThaiAnalyzerConverter))] public sealed partial class ThaiAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public ThaiAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public ThaiAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ThaiAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiTokenizer.g.cs index b8072fcdc19..ea428740575 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.ThaiTokenizerConverter))] public sealed partial class ThaiTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public ThaiTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public ThaiTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ThaiTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TrimTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TrimTokenFilter.g.cs index aed3dc5281c..b6bcd531076 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TrimTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TrimTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.TrimTokenFilterConverter))] public sealed partial class TrimTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public TrimTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public TrimTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrimTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TruncateTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TruncateTokenFilter.g.cs index 88cd038663d..beccf2c1f5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TruncateTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TruncateTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.TruncateTokenFilterConverter))] public sealed partial class TruncateTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public TruncateTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public TruncateTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TruncateTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs index 1bcda451eb3..a2dcc61cd45 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.TurkishAnalyzerConverter))] public sealed partial class TurkishAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public TurkishAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public TurkishAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TurkishAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UaxEmailUrlTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UaxEmailUrlTokenizer.g.cs index 89dadd887eb..8f09e2123d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UaxEmailUrlTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UaxEmailUrlTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.UaxEmailUrlTokenizerConverter))] public sealed partial class UaxEmailUrlTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public UaxEmailUrlTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public UaxEmailUrlTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UaxEmailUrlTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UniqueTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UniqueTokenFilter.g.cs index 119246f1669..cca2e19fb48 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UniqueTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UniqueTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.UniqueTokenFilterConverter))] public sealed partial class UniqueTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public UniqueTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public UniqueTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UniqueTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UppercaseTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UppercaseTokenFilter.g.cs index abccf99f304..fd731b5b96b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UppercaseTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UppercaseTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.UppercaseTokenFilterConverter))] public sealed partial class UppercaseTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public UppercaseTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public UppercaseTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UppercaseTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WhitespaceAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WhitespaceAnalyzer.g.cs index cd8bdce582e..2f9d090ccc0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WhitespaceAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WhitespaceAnalyzer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.WhitespaceAnalyzerConverter))] public sealed partial class WhitespaceAnalyzer : Elastic.Clients.Elasticsearch.Analysis.IAnalyzer { -#if NET7_0_OR_GREATER public WhitespaceAnalyzer() { } -#endif -#if !NET7_0_OR_GREATER - public WhitespaceAnalyzer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WhitespaceAnalyzer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WhitespaceTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WhitespaceTokenizer.g.cs index 30301fbda7c..14ec521fdc8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WhitespaceTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WhitespaceTokenizer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.WhitespaceTokenizerConverter))] public sealed partial class WhitespaceTokenizer : Elastic.Clients.Elasticsearch.Analysis.ITokenizer { -#if NET7_0_OR_GREATER public WhitespaceTokenizer() { } -#endif -#if !NET7_0_OR_GREATER - public WhitespaceTokenizer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WhitespaceTokenizer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs index 64f836e0ebf..40156ba1ad8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.WordDelimiterGraphTokenFilterConverter))] public sealed partial class WordDelimiterGraphTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public WordDelimiterGraphTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public WordDelimiterGraphTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WordDelimiterGraphTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs index 6bbc468f63c..54df28d9a7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Analysis; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Analysis.Json.WordDelimiterTokenFilterConverter))] public sealed partial class WordDelimiterTokenFilter : Elastic.Clients.Elasticsearch.Analysis.ITokenFilter { -#if NET7_0_OR_GREATER public WordDelimiterTokenFilter() { } -#endif -#if !NET7_0_OR_GREATER - public WordDelimiterTokenFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WordDelimiterTokenFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs index 8fc1e268c99..f3d1c0778c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs @@ -34,17 +34,11 @@ public AsyncSearch(Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata? Fields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } public double? MaxScore { get; set; } /// @@ -83,21 +73,9 @@ internal AsyncSearch(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Note that in order for shard results to be included in the search response, they need to be reduced first. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; set; } public bool? TerminatedEarly { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool TimedOut { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Took { get; set; } + public required bool TimedOut { get; set; } + public required long Took { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkIndexByScrollFailure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkIndexByScrollFailure.g.cs index 1a967f318d2..88439b1e8ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkIndexByScrollFailure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkIndexByScrollFailure.g.cs @@ -34,41 +34,19 @@ public BulkIndexByScrollFailure(Elastic.Clients.Elasticsearch.ErrorCause cause, Index = index; Status = status; } -#if NET7_0_OR_GREATER - public BulkIndexByScrollFailure() - { - } -#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 BulkIndexByScrollFailure() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BulkIndexByScrollFailure(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ErrorCause Cause { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Status { get; set; } + public required Elastic.Clients.Elasticsearch.ErrorCause Cause { get; set; } + public required string Id { get; set; } + public required string Index { get; set; } + public required int Status { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkStats.g.cs index 9fdd9cd4670..eec99a6baed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkStats.g.cs @@ -35,17 +35,11 @@ public BulkStats(long avgSizeInBytes, System.TimeSpan avgTimeInMillis, long tota TotalSizeInBytes = totalSizeInBytes; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public BulkStats() - { - } -#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 BulkStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BulkStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,32 +47,12 @@ internal BulkStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe } public Elastic.Clients.Elasticsearch.ByteSize? AvgSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long AvgSizeInBytes { get; set; } + public required long AvgSizeInBytes { get; set; } public Elastic.Clients.Elasticsearch.Duration? AvgTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan AvgTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalOperations { get; set; } + public required System.TimeSpan AvgTimeInMillis { get; set; } + public required long TotalOperations { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeInBytes { get; set; } + public required long TotalSizeInBytes { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CartesianPoint.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CartesianPoint.g.cs index dfb8cd5e00e..f3be732e9a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CartesianPoint.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CartesianPoint.g.cs @@ -32,31 +32,17 @@ public CartesianPoint(double x, double y) X = x; Y = y; } -#if NET7_0_OR_GREATER - public CartesianPoint() - { - } -#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 CartesianPoint() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CartesianPoint(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double X { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Y { get; set; } + public required double X { get; set; } + public required double Y { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ChunkRescorer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ChunkRescorer.g.cs index bf9308b3e62..3515f6ba3c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ChunkRescorer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ChunkRescorer.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ChunkRescorerConverter))] public sealed partial class ChunkRescorer { -#if NET7_0_OR_GREATER public ChunkRescorer() { } -#endif -#if !NET7_0_OR_GREATER - public ChunkRescorer() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChunkRescorer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs index ebbf93f0a93..08c4a944c12 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs @@ -33,36 +33,18 @@ public AllocationDecision(string decider, Elastic.Clients.Elasticsearch.Cluster. Decision = decision; Explanation = explanation; } -#if NET7_0_OR_GREATER - public AllocationDecision() - { - } -#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 AllocationDecision() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AllocationDecision(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Decider { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.AllocationExplainDecision Decision { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Explanation { get; set; } + public required string Decider { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.AllocationExplainDecision Decision { get; set; } + public required string Explanation { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs index 4965d5e10c5..d9805f86a70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs @@ -36,51 +36,21 @@ public AllocationStore(string allocationId, bool found, bool inSync, long matchi MatchingSyncId = matchingSyncId; StoreException = storeException; } -#if NET7_0_OR_GREATER - public AllocationStore() - { - } -#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 AllocationStore() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AllocationStore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string AllocationId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool InSync { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MatchingSizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool MatchingSyncId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string StoreException { get; set; } + public required string AllocationId { get; set; } + public required bool Found { get; set; } + public required bool InSync { get; set; } + public required long MatchingSizeInBytes { get; set; } + public required bool MatchingSyncId { get; set; } + public required string StoreException { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSStats.g.cs index c3e290c6376..867c736c606 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSStats.g.cs @@ -31,17 +31,11 @@ public CCSStats(Elastic.Clients.Elasticsearch.Cluster.CCSUsageStats search) { Search = search; } -#if NET7_0_OR_GREATER - public CCSStats() - { - } -#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 CCSStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CCSStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,9 +63,5 @@ internal CCSStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// Information about cross-cluster search usage. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.CCSUsageStats Search { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.CCSUsageStats Search { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageClusterStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageClusterStats.g.cs index 21eb678fd26..566cf2d6710 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageClusterStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageClusterStats.g.cs @@ -33,17 +33,11 @@ public CCSUsageClusterStats(int skipped, Elastic.Clients.Elasticsearch.Cluster.C Took = took; Total = total; } -#if NET7_0_OR_GREATER - public CCSUsageClusterStats() - { - } -#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 CCSUsageClusterStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CCSUsageClusterStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal CCSUsageClusterStats(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The total number of cross-cluster search requests for which this cluster was skipped. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Skipped { get; set; } + public required int Skipped { get; set; } /// /// /// Statistics about the time taken to execute requests against this cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.CCSUsageTimeValue Took { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.CCSUsageTimeValue Took { get; set; } /// /// /// The total number of successful (not skipped) cross-cluster search requests that were executed against this cluster. This may include requests where partial results were returned, but not requests in which the cluster has been skipped entirely. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageStats.g.cs index b400f0763c4..dea21031a0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageStats.g.cs @@ -40,17 +40,11 @@ public CCSUsageStats(System.Collections.Generic.IReadOnlyDictionary Took = took; Total = total; } -#if NET7_0_OR_GREATER - public CCSUsageStats() - { - } -#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 CCSUsageStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CCSUsageStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,99 +56,63 @@ internal CCSUsageStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Statistics about the clients that executed cross-cluster search requests. The keys are the names of the clients, and the values are the number of requests that were executed by that client. Only known clients (such as kibana or elasticsearch) are counted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Clients { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Clients { get; set; } /// /// /// Statistics about the clusters that were queried in cross-cluster search requests. The keys are cluster names, and the values are per-cluster telemetry data. This also includes the local cluster itself, which uses the name (local). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Clusters { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Clusters { get; set; } /// /// /// Statistics about the reasons for cross-cluster search request failures. The keys are the failure reason names and the values are the number of requests that failed for that reason. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary FailureReasons { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary FailureReasons { get; set; } /// /// /// The keys are the names of the search feature, and the values are the number of requests that used that feature. Single request can use more than one feature (e.g. both async and wildcard). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Features { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Features { get; set; } /// /// /// The average number of remote clusters that were queried in a single cross-cluster search request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double RemotesPerSearchAvg { get; set; } + public required double RemotesPerSearchAvg { get; set; } /// /// /// The maximum number of remote clusters that were queried in a single cross-cluster search request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int RemotesPerSearchMax { get; set; } + public required int RemotesPerSearchMax { get; set; } /// /// /// The total number of cross-cluster search requests (successful or failed) that had at least one remote cluster skipped. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Skipped { get; set; } + public required int Skipped { get; set; } /// /// /// The total number of cross-cluster search requests that have been successfully executed by the cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Success { get; set; } + public required int Success { get; set; } /// /// /// Statistics about the time taken to execute cross-cluster search requests. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.CCSUsageTimeValue Took { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.CCSUsageTimeValue Took { get; set; } /// /// @@ -175,9 +133,5 @@ internal CCSUsageStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The total number of cross-cluster search requests that have been executed by the cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageTimeValue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageTimeValue.g.cs index fb3ba4c9ebc..138bf30d059 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageTimeValue.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageTimeValue.g.cs @@ -33,17 +33,11 @@ public CCSUsageTimeValue(System.TimeSpan avg, System.TimeSpan max, System.TimeSp Max = max; P90 = p90; } -#if NET7_0_OR_GREATER - public CCSUsageTimeValue() - { - } -#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 CCSUsageTimeValue() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CCSUsageTimeValue(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal CCSUsageTimeValue(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The average time taken to execute a request, in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan Avg { get; set; } + public required System.TimeSpan Avg { get; set; } /// /// /// The maximum time taken to execute a request, in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan Max { get; set; } + public required System.TimeSpan Max { get; set; } /// /// /// The 90th percentile of the time taken to execute requests, in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan P90 { get; set; } + public required System.TimeSpan P90 { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs index f8b74f7f1d5..4c241e74f3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs @@ -39,17 +39,11 @@ public CharFilterTypes(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection AnalyzerTypes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection AnalyzerTypes { get; set; } /// /// /// Contains statistics about built-in analyzers used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection BuiltInAnalyzers { get; set; } + public required System.Collections.Generic.IReadOnlyCollection BuiltInAnalyzers { get; set; } /// /// /// Contains statistics about built-in character filters used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection BuiltInCharFilters { get; set; } + public required System.Collections.Generic.IReadOnlyCollection BuiltInCharFilters { get; set; } /// /// /// Contains statistics about built-in token filters used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection BuiltInFilters { get; set; } + public required System.Collections.Generic.IReadOnlyCollection BuiltInFilters { get; set; } /// /// /// Contains statistics about built-in tokenizers used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection BuiltInTokenizers { get; set; } + public required System.Collections.Generic.IReadOnlyCollection BuiltInTokenizers { get; set; } /// /// /// Contains statistics about character filter types used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection CharFilterTypes2 { get; set; } + public required System.Collections.Generic.IReadOnlyCollection CharFilterTypes2 { get; set; } /// /// /// Contains statistics about token filter types used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection FilterTypes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection FilterTypes { get; set; } /// /// /// Contains statistics about synonyms types used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Synonyms { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Synonyms { get; set; } /// /// /// Contains statistics about tokenizer types used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection TokenizerTypes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection TokenizerTypes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs index 9a86e54015b..ebfcdfc5f32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Cluster; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.ClusterFileSystemConverter))] public sealed partial class ClusterFileSystem { -#if NET7_0_OR_GREATER public ClusterFileSystem() { } -#endif -#if !NET7_0_OR_GREATER - public ClusterFileSystem() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterFileSystem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs index 8b1fea046e3..251f0f80f5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs @@ -41,17 +41,11 @@ public ClusterIndices(Elastic.Clients.Elasticsearch.CompletionStats completion, SparseVector = sparseVector; Store = store; } -#if NET7_0_OR_GREATER - public ClusterIndices() - { - } -#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 ClusterIndices() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterIndices(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,55 +64,35 @@ internal ClusterIndices(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Contains statistics about memory used for completion in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.CompletionStats Completion { get; set; } + public required Elastic.Clients.Elasticsearch.CompletionStats Completion { get; set; } /// /// /// Total number of indices with shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } /// /// /// Contains statistics about indexed dense vector /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.DenseVectorStats DenseVector { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.DenseVectorStats DenseVector { get; set; } /// /// /// Contains counts for documents in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DocStats Docs { get; set; } + public required Elastic.Clients.Elasticsearch.DocStats Docs { get; set; } /// /// /// Contains statistics about the field data cache of selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.FielddataStats Fielddata { get; set; } + public required Elastic.Clients.Elasticsearch.FielddataStats Fielddata { get; set; } /// /// @@ -132,11 +106,7 @@ internal ClusterIndices(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Contains statistics about the query cache of selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryCacheStats QueryCache { get; set; } + public required Elastic.Clients.Elasticsearch.QueryCacheStats QueryCache { get; set; } /// /// @@ -145,55 +115,35 @@ internal ClusterIndices(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// accumulate stats for the entire cluster and return them as part of the ClusterStatsResponse. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.SearchUsageStats Search { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.SearchUsageStats Search { get; set; } /// /// /// Contains statistics about segments in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.SegmentsStats Segments { get; set; } + public required Elastic.Clients.Elasticsearch.SegmentsStats Segments { get; set; } /// /// /// Contains statistics about indices with shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterIndicesShards Shards { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterIndicesShards Shards { get; set; } /// /// /// Contains statistics about indexed sparse vector /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.SparseVectorStats SparseVector { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.SparseVectorStats SparseVector { get; set; } /// /// /// Contains statistics about the size of shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.StoreStats Store { get; set; } + public required Elastic.Clients.Elasticsearch.StoreStats Store { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs index 82656e2ebe5..0bbe306cda9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.Cluster; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.ClusterIndicesShardsConverter))] public sealed partial class ClusterIndicesShards { -#if NET7_0_OR_GREATER public ClusterIndicesShards() { } -#endif -#if !NET7_0_OR_GREATER - public ClusterIndicesShards() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterIndicesShards(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs index 4c033920144..b09a7f6ac5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs @@ -33,17 +33,11 @@ public ClusterIndicesShardsIndex(Elastic.Clients.Elasticsearch.Cluster.ClusterSh Replication = replication; Shards = shards; } -#if NET7_0_OR_GREATER - public ClusterIndicesShardsIndex() - { - } -#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 ClusterIndicesShardsIndex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterIndicesShardsIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal ClusterIndicesShardsIndex(Elastic.Clients.Elasticsearch.Serialization.J /// Contains statistics about the number of primary shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Primaries { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Primaries { get; set; } /// /// /// Contains statistics about the number of replication shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Replication { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Replication { get; set; } /// /// /// Contains statistics about the number of shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs index 5600e5989ab..cf523e3a66a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs @@ -34,42 +34,20 @@ public ClusterInfo(System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ReservedSizes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ReservedSizes { get; set; } public System.Collections.Generic.IReadOnlyDictionary? ShardDataSetSizes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary ShardPaths { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary ShardSizes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary ShardPaths { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary ShardSizes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs index 3f33efecbd1..36ecea28d75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs @@ -32,31 +32,17 @@ public ClusterIngest(int numberOfPipelines, System.Collections.Generic.IReadOnly NumberOfPipelines = numberOfPipelines; ProcessorStats = processorStats; } -#if NET7_0_OR_GREATER - public ClusterIngest() - { - } -#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 ClusterIngest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterIngest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int NumberOfPipelines { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary ProcessorStats { get; set; } + public required int NumberOfPipelines { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary ProcessorStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs index ce852e85145..b705c46888f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs @@ -34,17 +34,11 @@ public ClusterJvm(System.TimeSpan maxUptimeInMillis, Elastic.Clients.Elasticsear Threads = threads; Versions = versions; } -#if NET7_0_OR_GREATER - public ClusterJvm() - { - } -#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 ClusterJvm() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterJvm(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,42 +57,26 @@ internal ClusterJvm(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Uptime duration, in milliseconds, since JVM last started. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan MaxUptimeInMillis { get; set; } + public required System.TimeSpan MaxUptimeInMillis { get; set; } /// /// /// Contains statistics about memory used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterJvmMemory Mem { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterJvmMemory Mem { get; set; } /// /// /// Number of active threads in use by JVM across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Threads { get; set; } + public required long Threads { get; set; } /// /// /// Contains statistics about the JVM versions used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Versions { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Versions { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs index 63b2f04c702..55d73d9a6da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs @@ -32,17 +32,11 @@ public ClusterJvmMemory(long heapMaxInBytes, long heapUsedInBytes) HeapMaxInBytes = heapMaxInBytes; HeapUsedInBytes = heapUsedInBytes; } -#if NET7_0_OR_GREATER - public ClusterJvmMemory() - { - } -#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 ClusterJvmMemory() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterJvmMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal ClusterJvmMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Maximum amount of memory, in bytes, available for use by the heap across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long HeapMaxInBytes { get; set; } + public required long HeapMaxInBytes { get; set; } /// /// @@ -79,9 +69,5 @@ internal ClusterJvmMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Memory, in bytes, currently in use by the heap across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long HeapUsedInBytes { get; set; } + public required long HeapUsedInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs index fcfd3bbe1f9..7336376c955 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs @@ -37,17 +37,11 @@ public ClusterJvmVersion(bool bundledJdk, int count, bool usingBundledJdk, strin VmVendor = vmVendor; VmVersion = vmVersion; } -#if NET7_0_OR_GREATER - public ClusterJvmVersion() - { - } -#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 ClusterJvmVersion() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterJvmVersion(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,66 +53,42 @@ internal ClusterJvmVersion(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Always true. All distributions come with a bundled Java Development Kit (JDK). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool BundledJdk { get; set; } + public required bool BundledJdk { get; set; } /// /// /// Total number of selected nodes using JVM. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// If true, a bundled JDK is in use by JVM. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool UsingBundledJdk { get; set; } + public required bool UsingBundledJdk { get; set; } /// /// /// Version of JVM used by one or more selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required string Version { get; set; } /// /// /// Name of the JVM. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string VmName { get; set; } + public required string VmName { get; set; } /// /// /// Vendor of the JVM. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string VmVendor { get; set; } + public required string VmVendor { get; set; } /// /// @@ -126,9 +96,5 @@ internal ClusterJvmVersion(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The full version number includes a plus sign (+) followed by the build number. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string VmVersion { get; set; } + public required string VmVersion { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs index 590541fa516..c6d79db7f26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs @@ -32,17 +32,11 @@ public ClusterNetworkTypes(System.Collections.Generic.IReadOnlyDictionary /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary HttpTypes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary HttpTypes { get; set; } /// /// /// Contains statistics about the transport network types used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary TransportTypes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary TransportTypes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs index f2896748f39..bd2e6c6361e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs @@ -31,17 +31,11 @@ public ClusterNodeCount(int total) { Total = total; } -#if NET7_0_OR_GREATER - public ClusterNodeCount() - { - } -#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 ClusterNodeCount() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterNodeCount(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal ClusterNodeCount(Elastic.Clients.Elasticsearch.Serialization.JsonConstr public int? Ml { get; set; } public int? RemoteClusterClient { get; set; } public int? Search { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } public int? Transform { get; set; } public int? VotingOnly { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs index 12b4696cb9f..c3c79b48749 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs @@ -42,17 +42,11 @@ public ClusterNodes(Elastic.Clients.Elasticsearch.Cluster.ClusterNodeCount count Process = process; Versions = versions; } -#if NET7_0_OR_GREATER - public ClusterNodes() - { - } -#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 ClusterNodes() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterNodes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,87 +58,51 @@ internal ClusterNodes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// Contains counts for nodes selected by the request’s node filters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterNodeCount Count { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterNodeCount Count { get; set; } /// /// /// Contains statistics about the discovery types used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary DiscoveryTypes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary DiscoveryTypes { get; set; } /// /// /// Contains statistics about file stores by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterFileSystem Fs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.IndexingPressure IndexingPressure { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterIngest Ingest { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterFileSystem Fs { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.IndexingPressure IndexingPressure { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterIngest Ingest { get; set; } /// /// /// Contains statistics about the Java Virtual Machines (JVMs) used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterJvm Jvm { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterJvm Jvm { get; set; } /// /// /// Contains statistics about the transport and HTTP networks used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterNetworkTypes NetworkTypes { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterNetworkTypes NetworkTypes { get; set; } /// /// /// Contains statistics about the operating systems used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterOperatingSystem Os { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterOperatingSystem Os { get; set; } /// /// /// Contains statistics about Elasticsearch distributions installed on selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection PackagingTypes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection PackagingTypes { get; set; } /// /// @@ -152,31 +110,19 @@ internal ClusterNodes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// If no plugins or modules are installed, this array is empty. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Plugins { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Plugins { get; set; } /// /// /// Contains statistics about processes used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterProcess Process { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterProcess Process { get; set; } /// /// /// Array of Elasticsearch versions used on selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Versions { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Versions { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs index 5b5396b2ed7..9cb955d4336 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs @@ -35,17 +35,11 @@ public ClusterOperatingSystem(int allocatedProcessors, int availableProcessors, Names = names; PrettyNames = prettyNames; } -#if NET7_0_OR_GREATER - public ClusterOperatingSystem() - { - } -#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 ClusterOperatingSystem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterOperatingSystem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,11 +53,7 @@ internal ClusterOperatingSystem(Elastic.Clients.Elasticsearch.Serialization.Json /// In both cases, this number will never be larger than 32. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int AllocatedProcessors { get; set; } + public required int AllocatedProcessors { get; set; } /// /// @@ -77,42 +67,26 @@ internal ClusterOperatingSystem(Elastic.Clients.Elasticsearch.Serialization.Json /// Number of processors available to JVM across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int AvailableProcessors { get; set; } + public required int AvailableProcessors { get; set; } /// /// /// Contains statistics about memory used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.OperatingSystemMemoryInfo Mem { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.OperatingSystemMemoryInfo Mem { get; set; } /// /// /// Contains statistics about operating systems used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Names { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Names { get; set; } /// /// /// Contains statistics about operating systems used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection PrettyNames { get; set; } + public required System.Collections.Generic.IReadOnlyCollection PrettyNames { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs index 3cd10efa898..fc89b0ff4c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs @@ -32,17 +32,11 @@ public ClusterOperatingSystemArchitecture(string arch, int count) Arch = arch; Count = count; } -#if NET7_0_OR_GREATER - public ClusterOperatingSystemArchitecture() - { - } -#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 ClusterOperatingSystemArchitecture() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterOperatingSystemArchitecture(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal ClusterOperatingSystemArchitecture(Elastic.Clients.Elasticsearch.Serial /// Name of an architecture used by one or more selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Arch { get; set; } + public required string Arch { get; set; } /// /// /// Number of selected nodes using the architecture. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs index cd8db5b6b28..d95cbaff4b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs @@ -32,17 +32,11 @@ public ClusterOperatingSystemName(int count, string name) Count = count; Name = name; } -#if NET7_0_OR_GREATER - public ClusterOperatingSystemName() - { - } -#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 ClusterOperatingSystemName() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterOperatingSystemName(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal ClusterOperatingSystemName(Elastic.Clients.Elasticsearch.Serialization. /// Number of selected nodes using the operating system. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// Name of an operating system used by one or more selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs index 2bd2f8a19d8..abf97b95695 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs @@ -32,17 +32,11 @@ public ClusterOperatingSystemPrettyName(int count, string prettyName) Count = count; PrettyName = prettyName; } -#if NET7_0_OR_GREATER - public ClusterOperatingSystemPrettyName() - { - } -#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 ClusterOperatingSystemPrettyName() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterOperatingSystemPrettyName(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal ClusterOperatingSystemPrettyName(Elastic.Clients.Elasticsearch.Serializ /// Number of selected nodes using the operating system. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// Human-readable name of an operating system used by one or more selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string PrettyName { get; set; } + public required string PrettyName { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs index da1e9ec6358..f6f9c0ce839 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs @@ -32,17 +32,11 @@ public ClusterProcess(Elastic.Clients.Elasticsearch.Cluster.ClusterProcessCpu cp Cpu = cpu; OpenFileDescriptors = openFileDescriptors; } -#if NET7_0_OR_GREATER - public ClusterProcess() - { - } -#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 ClusterProcess() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterProcess(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal ClusterProcess(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Contains statistics about CPU used by selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterProcessCpu Cpu { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterProcessCpu Cpu { get; set; } /// /// /// Contains statistics about open file descriptors in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ClusterProcessOpenFileDescriptors OpenFileDescriptors { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ClusterProcessOpenFileDescriptors OpenFileDescriptors { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs index d0f6d8ede9a..d2a7b0ee466 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs @@ -31,17 +31,11 @@ public ClusterProcessCpu(int percent) { Percent = percent; } -#if NET7_0_OR_GREATER - public ClusterProcessCpu() - { - } -#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 ClusterProcessCpu() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterProcessCpu(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,9 +48,5 @@ internal ClusterProcessCpu(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Returns -1 if not supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Percent { get; set; } + public required int Percent { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs index c334cc662b2..0e4708a1a55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs @@ -33,17 +33,11 @@ public ClusterProcessOpenFileDescriptors(long avg, long max, long min) Max = max; Min = min; } -#if NET7_0_OR_GREATER - public ClusterProcessOpenFileDescriptors() - { - } -#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 ClusterProcessOpenFileDescriptors() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterProcessOpenFileDescriptors(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,11 +50,7 @@ internal ClusterProcessOpenFileDescriptors(Elastic.Clients.Elasticsearch.Seriali /// Returns -1 if not supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Avg { get; set; } + public required long Avg { get; set; } /// /// @@ -68,11 +58,7 @@ internal ClusterProcessOpenFileDescriptors(Elastic.Clients.Elasticsearch.Seriali /// Returns -1 if not supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Max { get; set; } + public required long Max { get; set; } /// /// @@ -80,9 +66,5 @@ internal ClusterProcessOpenFileDescriptors(Elastic.Clients.Elasticsearch.Seriali /// Returns -1 if not supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Min { get; set; } + public required long Min { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs index 4b89705cdc3..56133b615b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs @@ -34,42 +34,20 @@ public ClusterProcessor(long count, long current, long failed, System.TimeSpan t Failed = failed; TimeInMillis = timeInMillis; } -#if NET7_0_OR_GREATER - public ClusterProcessor() - { - } -#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 ClusterProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Current { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Failed { get; set; } + public required long Count { get; set; } + public required long Current { get; set; } + public required long Failed { get; set; } public Elastic.Clients.Elasticsearch.Duration? Time { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInMillis { get; set; } + public required System.TimeSpan TimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs index b82974a5949..299bf34e968 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs @@ -33,17 +33,11 @@ public ClusterShardMetrics(double avg, double max, double min) Max = max; Min = min; } -#if NET7_0_OR_GREATER - public ClusterShardMetrics() - { - } -#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 ClusterShardMetrics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterShardMetrics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal ClusterShardMetrics(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Mean number of shards in an index, counting only shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Avg { get; set; } + public required double Avg { get; set; } /// /// /// Maximum number of shards in an index, counting only shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Max { get; set; } + public required double Max { get; set; } /// /// /// Minimum number of shards in an index, counting only shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Min { get; set; } + public required double Min { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterSnapshotStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterSnapshotStats.g.cs index 5d47786a2b6..1100d68d320 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterSnapshotStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterSnapshotStats.g.cs @@ -32,31 +32,17 @@ public ClusterSnapshotStats(Elastic.Clients.Elasticsearch.Cluster.SnapshotCurren CurrentCounts = currentCounts; Repositories = repositories; } -#if NET7_0_OR_GREATER - public ClusterSnapshotStats() - { - } -#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 ClusterSnapshotStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterSnapshotStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.SnapshotCurrentCounts CurrentCounts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Repositories { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.SnapshotCurrentCounts CurrentCounts { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Repositories { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplate.g.cs index 49afecc42c9..54d5fab87fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplate.g.cs @@ -32,31 +32,17 @@ public ComponentTemplate(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplate ComponentTemplateNode = componentTemplateNode; Name = name; } -#if NET7_0_OR_GREATER - public ComponentTemplate() - { - } -#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 ComponentTemplate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ComponentTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode ComponentTemplateNode { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode ComponentTemplateNode { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs index fad5cb231ef..eb0b381bce5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs @@ -31,17 +31,11 @@ public ComponentTemplateNode(Elastic.Clients.Elasticsearch.Cluster.ComponentTemp { Template = template; } -#if NET7_0_OR_GREATER - public ComponentTemplateNode() - { - } -#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 ComponentTemplateNode() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ComponentTemplateNode(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -77,11 +71,7 @@ internal ComponentTemplateNode(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// public System.DateTimeOffset? ModifiedDateMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary Template { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary Template { get; set; } public long? Version { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs index 9b04faa4203..d1f2a5a43b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Cluster; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.ComponentTemplateSummaryConverter))] public sealed partial class ComponentTemplateSummary { -#if NET7_0_OR_GREATER public ComponentTemplateSummary() { } -#endif -#if !NET7_0_OR_GREATER - public ComponentTemplateSummary() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ComponentTemplateSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs index 3c3018ea716..500ff6f22d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs @@ -36,51 +36,21 @@ public CurrentNode(System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int WeightRanking { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required string Id { get; set; } + public required string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required string TransportAddress { get; set; } + public required int WeightRanking { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DenseVectorOffHeapStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DenseVectorOffHeapStats.g.cs index 324e1cf0050..09e685e6e75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DenseVectorOffHeapStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DenseVectorOffHeapStats.g.cs @@ -37,17 +37,11 @@ public DenseVectorOffHeapStats(long totalCenifSizeBytes, long totalClivfSizeByte TotalVeqSizeBytes = totalVeqSizeBytes; TotalVexSizeBytes = totalVexSizeBytes; } -#if NET7_0_OR_GREATER - public DenseVectorOffHeapStats() - { - } -#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 DenseVectorOffHeapStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DenseVectorOffHeapStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,45 +50,17 @@ internal DenseVectorOffHeapStats(Elastic.Clients.Elasticsearch.Serialization.Jso public System.Collections.Generic.IReadOnlyDictionary>? Fielddata { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalCenifSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalCenifSizeBytes { get; set; } + public required long TotalCenifSizeBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalClivfSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalClivfSizeBytes { get; set; } + public required long TotalClivfSizeBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeBytes { get; set; } + public required long TotalSizeBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalVebSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalVebSizeBytes { get; set; } + public required long TotalVebSizeBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalVecSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalVecSizeBytes { get; set; } + public required long TotalVecSizeBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalVeqSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalVeqSizeBytes { get; set; } + public required long TotalVeqSizeBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalVexSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalVexSizeBytes { get; set; } + public required long TotalVexSizeBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DenseVectorStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DenseVectorStats.g.cs index c197bcfdfee..8032a8d9784 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DenseVectorStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DenseVectorStats.g.cs @@ -31,17 +31,11 @@ public DenseVectorStats(long valueCount) { ValueCount = valueCount; } -#if NET7_0_OR_GREATER - public DenseVectorStats() - { - } -#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 DenseVectorStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DenseVectorStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal DenseVectorStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstr } public Elastic.Clients.Elasticsearch.Cluster.DenseVectorOffHeapStats? OffHeap { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ValueCount { get; set; } + public required long ValueCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs index ec7d1c941e4..e5a36c4481b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs @@ -36,51 +36,21 @@ public DiskUsage(long freeBytes, double freeDiskPercent, string path, long total UsedBytes = usedBytes; UsedDiskPercent = usedDiskPercent; } -#if NET7_0_OR_GREATER - public DiskUsage() - { - } -#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 DiskUsage() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DiskUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long FreeBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double FreeDiskPercent { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Path { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long UsedBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double UsedDiskPercent { get; set; } + public required long FreeBytes { get; set; } + public required double FreeDiskPercent { get; set; } + public required string Path { get; set; } + public required long TotalBytes { get; set; } + public required long UsedBytes { get; set; } + public required double UsedDiskPercent { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedRetrieversSearchUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedRetrieversSearchUsage.g.cs index 6ac7e07c753..951b9dd6f8e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedRetrieversSearchUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedRetrieversSearchUsage.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Cluster; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.ExtendedRetrieversSearchUsageConverter))] public sealed partial class ExtendedRetrieversSearchUsage { -#if NET7_0_OR_GREATER public ExtendedRetrieversSearchUsage() { } -#endif -#if !NET7_0_OR_GREATER - public ExtendedRetrieversSearchUsage() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedRetrieversSearchUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedSearchUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedSearchUsage.g.cs index 790673d3965..64aaac5871c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedSearchUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedSearchUsage.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Cluster; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.ExtendedSearchUsageConverter))] public sealed partial class ExtendedSearchUsage { -#if NET7_0_OR_GREATER public ExtendedSearchUsage() { } -#endif -#if !NET7_0_OR_GREATER - public ExtendedSearchUsage() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedSearchUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedTextSimilarityRetrieverUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedTextSimilarityRetrieverUsage.g.cs index a996a90dc99..99fd7e15f0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedTextSimilarityRetrieverUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ExtendedTextSimilarityRetrieverUsage.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Cluster; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.ExtendedTextSimilarityRetrieverUsageConverter))] public sealed partial class ExtendedTextSimilarityRetrieverUsage { -#if NET7_0_OR_GREATER public ExtendedTextSimilarityRetrieverUsage() { } -#endif -#if !NET7_0_OR_GREATER - public ExtendedTextSimilarityRetrieverUsage() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedTextSimilarityRetrieverUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs index 8b8550f3c8e..0e853b546f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs @@ -33,17 +33,11 @@ public FieldTypes(int count, int indexCount, string name) IndexCount = indexCount; Name = name; } -#if NET7_0_OR_GREATER - public FieldTypes() - { - } -#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 FieldTypes() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldTypes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,22 +49,14 @@ internal FieldTypes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The number of occurrences of the field type in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// The number of indices containing the field type in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int IndexCount { get; set; } + public required int IndexCount { get; set; } /// /// @@ -98,11 +84,7 @@ internal FieldTypes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The name for the field type in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs index 2a682e7a8e6..47f804305e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs @@ -33,17 +33,11 @@ public FieldTypesMappings(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection FieldTypes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection FieldTypes { get; set; } /// /// /// Contains statistics about runtime field data types used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection RuntimeFieldTypes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection RuntimeFieldTypes { get; set; } /// /// /// Source mode usage count. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary SourceModes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary SourceModes { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexHealthStats.g.cs index 77d1b599823..4272d55e44b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexHealthStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexHealthStats.g.cs @@ -39,67 +39,25 @@ public IndexHealthStats(int activePrimaryShards, int activeShards, int initializ UnassignedPrimaryShards = unassignedPrimaryShards; UnassignedShards = unassignedShards; } -#if NET7_0_OR_GREATER - public IndexHealthStats() - { - } -#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 IndexHealthStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexHealthStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ActivePrimaryShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int ActiveShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int InitializingShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int NumberOfReplicas { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int NumberOfShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int RelocatingShards { get; set; } + public required int ActivePrimaryShards { get; set; } + public required int ActiveShards { get; set; } + public required int InitializingShards { get; set; } + public required int NumberOfReplicas { get; set; } + public required int NumberOfShards { get; set; } + public required int RelocatingShards { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int UnassignedPrimaryShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int UnassignedShards { get; set; } + public required Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } + public required int UnassignedPrimaryShards { get; set; } + public required int UnassignedShards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs index bb7f803f23a..2d67aead715 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs @@ -31,26 +31,16 @@ public IndexingPressure(Elastic.Clients.Elasticsearch.Nodes.IndexingPressureMemo { Memory = memory; } -#if NET7_0_OR_GREATER - public IndexingPressure() - { - } -#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 IndexingPressure() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexingPressure(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.IndexingPressureMemory Memory { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.IndexingPressureMemory Memory { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs index 5dcd4cf2e14..c448e5e5d99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs @@ -34,42 +34,20 @@ public IndicesVersions(int indexCount, int primaryShardCount, long totalPrimaryB TotalPrimaryBytes = totalPrimaryBytes; Version = version; } -#if NET7_0_OR_GREATER - public IndicesVersions() - { - } -#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 IndicesVersions() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndicesVersions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int IndexCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int PrimaryShardCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalPrimaryBytes { get; set; } + public required int IndexCount { get; set; } + public required int PrimaryShardCount { get; set; } + public required long TotalPrimaryBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalPrimarySize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs index ebcb8852259..ad983b56404 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs @@ -36,17 +36,11 @@ public NodeAllocationExplanation(System.Collections.Generic.IReadOnlyDictionary< Roles = roles; TransportAddress = transportAddress; } -#if NET7_0_OR_GREATER - public NodeAllocationExplanation() - { - } -#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 NodeAllocationExplanation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeAllocationExplanation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,36 +48,12 @@ internal NodeAllocationExplanation(Elastic.Clients.Elasticsearch.Serialization.J } public System.Collections.Generic.IReadOnlyCollection? Deciders { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary NodeAttributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.Decision NodeDecision { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary NodeAttributes { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.Decision NodeDecision { get; set; } + public required string NodeId { get; set; } + public required string NodeName { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } public Elastic.Clients.Elasticsearch.Cluster.AllocationStore? Store { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } + public required string TransportAddress { get; set; } public int? WeightRanking { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs index 8cdfea1d861..f63d357abf3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs @@ -33,36 +33,18 @@ public NodeDiskUsage(Elastic.Clients.Elasticsearch.Cluster.DiskUsage leastAvaila MostAvailable = mostAvailable; NodeName = nodeName; } -#if NET7_0_OR_GREATER - public NodeDiskUsage() - { - } -#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 NodeDiskUsage() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeDiskUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.DiskUsage LeastAvailable { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.DiskUsage MostAvailable { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeName { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.DiskUsage LeastAvailable { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.DiskUsage MostAvailable { get; set; } + public required string NodeName { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs index fdb77ad5210..507ee1e29a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs @@ -33,17 +33,11 @@ public NodePackagingType(int count, string flavor, string type) Flavor = flavor; Type = type; } -#if NET7_0_OR_GREATER - public NodePackagingType() - { - } -#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 NodePackagingType() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodePackagingType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal NodePackagingType(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Number of selected nodes using the distribution flavor and file type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// Type of Elasticsearch distribution. This is always default. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Flavor { get; set; } + public required string Flavor { get; set; } /// /// /// File type (such as tar or zip) used for the distribution package. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs index b85f9b8f9c1..dc79ae537bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs @@ -35,17 +35,11 @@ public OperatingSystemMemoryInfo(long freeInBytes, int freePercent, long totalIn UsedInBytes = usedInBytes; UsedPercent = usedPercent; } -#if NET7_0_OR_GREATER - public OperatingSystemMemoryInfo() - { - } -#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 OperatingSystemMemoryInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OperatingSystemMemoryInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -78,22 +72,14 @@ internal OperatingSystemMemoryInfo(Elastic.Clients.Elasticsearch.Serialization.J /// Amount, in bytes, of free physical memory across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FreeInBytes { get; set; } + public required long FreeInBytes { get; set; } /// /// /// Percentage of free physical memory across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int FreePercent { get; set; } + public required int FreePercent { get; set; } /// /// @@ -107,11 +93,7 @@ internal OperatingSystemMemoryInfo(Elastic.Clients.Elasticsearch.Serialization.J /// Total amount, in bytes, of physical memory across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TotalInBytes { get; set; } + public required long TotalInBytes { get; set; } /// /// @@ -125,20 +107,12 @@ internal OperatingSystemMemoryInfo(Elastic.Clients.Elasticsearch.Serialization.J /// Amount, in bytes, of physical memory in use across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long UsedInBytes { get; set; } + public required long UsedInBytes { get; set; } /// /// /// Percentage of physical memory in use across all selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int UsedPercent { get; set; } + public required int UsedPercent { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs index acdbff3afdd..827268f94ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs @@ -35,17 +35,11 @@ public PendingTask(bool executing, int insertOrder, string priority, string sour Source = source; TimeInQueueMillis = timeInQueueMillis; } -#if NET7_0_OR_GREATER - public PendingTask() - { - } -#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 PendingTask() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PendingTask(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,22 +51,14 @@ internal PendingTask(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Indicates whether the pending tasks are currently executing or not. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Executing { get; set; } + public required bool Executing { get; set; } /// /// /// The number that represents when the task has been inserted into the task queue. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int InsertOrder { get; set; } + public required int InsertOrder { get; set; } /// /// @@ -80,22 +66,14 @@ internal PendingTask(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The valid priorities in descending priority order are: IMMEDIATE > URGENT > HIGH > NORMAL > LOW > LANGUID. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Priority { get; set; } + public required string Priority { get; set; } /// /// /// A general description of the cluster task that may include a reason and origin. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Source { get; set; } + public required string Source { get; set; } /// /// @@ -109,9 +87,5 @@ internal PendingTask(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The time expressed in milliseconds since the task is waiting for being performed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInQueueMillis { get; set; } + public required System.TimeSpan TimeInQueueMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PerRepositoryStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PerRepositoryStats.g.cs index b43a3123fed..7cd3e82dfe5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PerRepositoryStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PerRepositoryStats.g.cs @@ -33,37 +33,19 @@ public PerRepositoryStats(Elastic.Clients.Elasticsearch.Cluster.RepositoryStatsC OldestStartTimeMillis = oldestStartTimeMillis; Type = type; } -#if NET7_0_OR_GREATER - public PerRepositoryStats() - { - } -#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 PerRepositoryStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PerRepositoryStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.RepositoryStatsCurrentCounts CurrentCounts { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.RepositoryStatsCurrentCounts CurrentCounts { get; set; } public string? OldestStartTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long OldestStartTimeMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required long OldestStartTimeMillis { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RemoteClusterInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RemoteClusterInfo.g.cs index aec1eccf50b..bea1832d220 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RemoteClusterInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RemoteClusterInfo.g.cs @@ -42,17 +42,11 @@ public RemoteClusterInfo(string clusterUuid, int indicesCount, long indicesTotal TransportCompress = transportCompress; Version = version; } -#if NET7_0_OR_GREATER - public RemoteClusterInfo() - { - } -#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 RemoteClusterInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoteClusterInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,22 +58,14 @@ internal RemoteClusterInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The UUID of the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterUuid { get; set; } + public required string ClusterUuid { get; set; } /// /// /// The total number of indices in the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int IndicesCount { get; set; } + public required int IndicesCount { get; set; } /// /// @@ -93,11 +79,7 @@ internal RemoteClusterInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Total data set size, in bytes, of all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long IndicesTotalSizeInBytes { get; set; } + public required long IndicesTotalSizeInBytes { get; set; } /// /// @@ -111,11 +93,7 @@ internal RemoteClusterInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Maximum amount of memory, in bytes, available for use by the heap across the nodes of the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MaxHeapInBytes { get; set; } + public required long MaxHeapInBytes { get; set; } /// /// @@ -129,86 +107,54 @@ internal RemoteClusterInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Total amount, in bytes, of physical memory across the nodes of the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MemTotalInBytes { get; set; } + public required long MemTotalInBytes { get; set; } /// /// /// The connection mode used to communicate with the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Mode { get; set; } + public required string Mode { get; set; } /// /// /// The total count of nodes in the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NodesCount { get; set; } + public required int NodesCount { get; set; } /// /// /// The total number of shards in the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ShardsCount { get; set; } + public required int ShardsCount { get; set; } /// /// /// The skip_unavailable setting used for this remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool SkipUnavailable { get; set; } + public required bool SkipUnavailable { get; set; } /// /// /// Health status of the cluster, based on the state of its primary and replica shards. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } + public required Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } /// /// /// Transport compression setting used for this remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string TransportCompress { get; set; } + public required string TransportCompress { get; set; } /// /// /// The list of Elasticsearch versions used by the nodes on the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Version { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RepositoryStatsCurrentCounts.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RepositoryStatsCurrentCounts.g.cs index 382732c6938..c559e0ac66c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RepositoryStatsCurrentCounts.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RepositoryStatsCurrentCounts.g.cs @@ -37,56 +37,22 @@ public RepositoryStatsCurrentCounts(int activeDeletions, int clones, int deletio SnapshotDeletions = snapshotDeletions; Snapshots = snapshots; } -#if NET7_0_OR_GREATER - public RepositoryStatsCurrentCounts() - { - } -#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 RepositoryStatsCurrentCounts() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RepositoryStatsCurrentCounts(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ActiveDeletions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Clones { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Deletions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Finalizations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.RepositoryStatsShards Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int SnapshotDeletions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Snapshots { get; set; } + public required int ActiveDeletions { get; set; } + public required int Clones { get; set; } + public required int Deletions { get; set; } + public required int Finalizations { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.RepositoryStatsShards Shards { get; set; } + public required int SnapshotDeletions { get; set; } + public required int Snapshots { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RepositoryStatsShards.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RepositoryStatsShards.g.cs index a7a68f3e94f..f2eea27640b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RepositoryStatsShards.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RepositoryStatsShards.g.cs @@ -34,41 +34,19 @@ public RepositoryStatsShards(int complete, int incomplete, System.Collections.Ge States = states; Total = total; } -#if NET7_0_OR_GREATER - public RepositoryStatsShards() - { - } -#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 RepositoryStatsShards() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RepositoryStatsShards(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Complete { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Incomplete { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary States { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Complete { get; set; } + public required int Incomplete { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary States { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs index 6acfa3c17b6..9ebd6e14d0d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs @@ -34,41 +34,19 @@ public ReservedSize(string nodeId, string path, System.Collections.Generic.IRead Shards = shards; Total = total; } -#if NET7_0_OR_GREATER - public ReservedSize() - { - } -#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 ReservedSize() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReservedSize(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Path { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required string NodeId { get; set; } + public required string Path { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Shards { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs index 07c662942d0..a3c42aae582 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs @@ -44,17 +44,11 @@ public RuntimeFieldTypes(int charsMax, int charsTotal, int count, int docMax, in SourceMax = sourceMax; SourceTotal = sourceTotal; } -#if NET7_0_OR_GREATER - public RuntimeFieldTypes() - { - } -#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 RuntimeFieldTypes() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RuntimeFieldTypes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,152 +60,96 @@ internal RuntimeFieldTypes(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Maximum number of characters for a single runtime field script. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int CharsMax { get; set; } + public required int CharsMax { get; set; } /// /// /// Total number of characters for the scripts that define the current runtime field data type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int CharsTotal { get; set; } + public required int CharsTotal { get; set; } /// /// /// Number of runtime fields mapped to the field data type in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// Maximum number of accesses to doc_values for a single runtime field script /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DocMax { get; set; } + public required int DocMax { get; set; } /// /// /// Total number of accesses to doc_values for the scripts that define the current runtime field data type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DocTotal { get; set; } + public required int DocTotal { get; set; } /// /// /// Number of indices containing a mapping of the runtime field data type in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int IndexCount { get; set; } + public required int IndexCount { get; set; } /// /// /// Script languages used for the runtime fields scripts. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Lang { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Lang { get; set; } /// /// /// Maximum number of lines for a single runtime field script. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int LinesMax { get; set; } + public required int LinesMax { get; set; } /// /// /// Total number of lines for the scripts that define the current runtime field data type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int LinesTotal { get; set; } + public required int LinesTotal { get; set; } /// /// /// Field data type used in selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// /// Number of runtime fields that don’t declare a script. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ScriptlessCount { get; set; } + public required int ScriptlessCount { get; set; } /// /// /// Number of runtime fields that shadow an indexed field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ShadowedCount { get; set; } + public required int ShadowedCount { get; set; } /// /// /// Maximum number of accesses to _source for a single runtime field script. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int SourceMax { get; set; } + public required int SourceMax { get; set; } /// /// /// Total number of accesses to _source for the scripts that define the current runtime field data type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int SourceTotal { get; set; } + public required int SourceTotal { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SearchUsageStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SearchUsageStats.g.cs index 42f68be5a81..7a6af4214dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SearchUsageStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SearchUsageStats.g.cs @@ -36,51 +36,21 @@ public SearchUsageStats(Elastic.Clients.Elasticsearch.Cluster.ExtendedSearchUsag Sections = sections; Total = total; } -#if NET7_0_OR_GREATER - public SearchUsageStats() - { - } -#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 SearchUsageStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchUsageStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.ExtendedSearchUsage Extended { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Queries { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Rescorers { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Retrievers { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Sections { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.ExtendedSearchUsage Extended { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Queries { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Rescorers { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Retrievers { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Sections { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ShardHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ShardHealthStats.g.cs index 51e5217675c..55bf9ebb28a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ShardHealthStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ShardHealthStats.g.cs @@ -37,56 +37,22 @@ public ShardHealthStats(int activeShards, int initializingShards, bool primaryAc UnassignedPrimaryShards = unassignedPrimaryShards; UnassignedShards = unassignedShards; } -#if NET7_0_OR_GREATER - public ShardHealthStats() - { - } -#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 ShardHealthStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardHealthStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ActiveShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int InitializingShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool PrimaryActive { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int RelocatingShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int UnassignedPrimaryShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int UnassignedShards { get; set; } + public required int ActiveShards { get; set; } + public required int InitializingShards { get; set; } + public required bool PrimaryActive { get; set; } + public required int RelocatingShards { get; set; } + public required Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } + public required int UnassignedPrimaryShards { get; set; } + public required int UnassignedShards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SnapshotCurrentCounts.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SnapshotCurrentCounts.g.cs index 1f05103aeef..761a3af5f2b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SnapshotCurrentCounts.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SnapshotCurrentCounts.g.cs @@ -35,17 +35,11 @@ public SnapshotCurrentCounts(int cleanups, int concurrentOperations, int shardSn SnapshotDeletions = snapshotDeletions; Snapshots = snapshots; } -#if NET7_0_OR_GREATER - public SnapshotCurrentCounts() - { - } -#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 SnapshotCurrentCounts() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotCurrentCounts(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,53 +51,33 @@ internal SnapshotCurrentCounts(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Cleanups in progress, not counted in concurrent_operations as they are not concurrent /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Cleanups { get; set; } + public required int Cleanups { get; set; } /// /// /// Sum of snapshots and snapshot_deletions /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ConcurrentOperations { get; set; } + public required int ConcurrentOperations { get; set; } /// /// /// Incomplete shard snapshots /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ShardSnapshots { get; set; } + public required int ShardSnapshots { get; set; } /// /// /// Snapshots deletions in progress /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int SnapshotDeletions { get; set; } + public required int SnapshotDeletions { get; set; } /// /// /// Snapshots currently in progress /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Snapshots { get; set; } + public required int Snapshots { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SparseVectorStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SparseVectorStats.g.cs index c482f0e9762..08ef164c3bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SparseVectorStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SparseVectorStats.g.cs @@ -31,26 +31,16 @@ public SparseVectorStats(long valueCount) { ValueCount = valueCount; } -#if NET7_0_OR_GREATER - public SparseVectorStats() - { - } -#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 SparseVectorStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SparseVectorStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long ValueCount { get; set; } + public required long ValueCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SynonymsStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SynonymsStats.g.cs index 317957196ca..0b052665813 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SynonymsStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/SynonymsStats.g.cs @@ -32,31 +32,17 @@ public SynonymsStats(int count, int indexCount) Count = count; IndexCount = indexCount; } -#if NET7_0_OR_GREATER - public SynonymsStats() - { - } -#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 SynonymsStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SynonymsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int IndexCount { get; set; } + public required int Count { get; set; } + public required int IndexCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/UnassignedInformation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/UnassignedInformation.g.cs index 9f9c03bf859..725f97f8c75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/UnassignedInformation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/UnassignedInformation.g.cs @@ -32,17 +32,11 @@ public UnassignedInformation(System.DateTimeOffset at, Elastic.Clients.Elasticse At = at; Reason = reason; } -#if NET7_0_OR_GREATER - public UnassignedInformation() - { - } -#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 UnassignedInformation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UnassignedInformation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,18 +44,10 @@ internal UnassignedInformation(Elastic.Clients.Elasticsearch.Serialization.JsonC } public string? AllocationStatus { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset At { get; set; } + public required System.DateTimeOffset At { get; set; } public bool? Delayed { get; set; } public string? Details { get; set; } public int? FailedAllocationAttempts { get; set; } public string? LastAllocationStatus { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Cluster.UnassignedInformationReason Reason { get; set; } + public required Elastic.Clients.Elasticsearch.Cluster.UnassignedInformationReason Reason { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterDetails.g.cs index 3bc255bd2c5..2b36bcbb183 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterDetails.g.cs @@ -33,17 +33,11 @@ public ClusterDetails(string indices, Elastic.Clients.Elasticsearch.ClusterSearc Status = status; TimedOut = timedOut; } -#if NET7_0_OR_GREATER - public ClusterDetails() - { - } -#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 ClusterDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,21 +45,9 @@ internal ClusterDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc } public System.Collections.Generic.IReadOnlyCollection? Failures { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Indices { get; set; } + public required string Indices { get; set; } public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ClusterSearchStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool TimedOut { get; set; } + public required Elastic.Clients.Elasticsearch.ClusterSearchStatus Status { get; set; } + public required bool TimedOut { get; set; } public System.TimeSpan? Took { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterStatistics.g.cs index db40852155d..932ad46b0f7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterStatistics.g.cs @@ -36,17 +36,11 @@ public ClusterStatistics(int failed, int partial, int running, int skipped, int Successful = successful; Total = total; } -#if NET7_0_OR_GREATER - public ClusterStatistics() - { - } -#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 ClusterStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,34 +48,10 @@ internal ClusterStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConst } public System.Collections.Generic.IReadOnlyDictionary? Details { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Failed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Partial { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Running { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Skipped { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Successful { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Failed { get; set; } + public required int Partial { get; set; } + public required int Running { get; set; } + public required int Skipped { get; set; } + public required int Successful { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CompletionStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CompletionStats.g.cs index 7acc4031103..153721f8d70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CompletionStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CompletionStats.g.cs @@ -31,17 +31,11 @@ public CompletionStats(long sizeInBytes) { SizeInBytes = sizeInBytes; } -#if NET7_0_OR_GREATER - public CompletionStats() - { - } -#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 CompletionStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,9 +56,5 @@ internal CompletionStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Total amount, in bytes, of memory used for completion across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } + public required long SizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CoordsGeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CoordsGeoBounds.g.cs index 31358b5587c..1fe00eb8472 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CoordsGeoBounds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CoordsGeoBounds.g.cs @@ -34,43 +34,21 @@ public CoordsGeoBounds(double bottom, double left, double right, double top) Right = right; Top = top; } -#if NET7_0_OR_GREATER - public CoordsGeoBounds() - { - } -#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 CoordsGeoBounds() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CoordsGeoBounds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double Bottom { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Left { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Right { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Top { get; set; } + public required double Bottom { get; set; } + public required double Left { get; set; } + public required double Right { get; set; } + public required double Top { get; set; } } public readonly partial struct CoordsGeoBoundsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs index 5b1e1f3886f..4ca86471000 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs @@ -31,17 +31,11 @@ public ResponseItem(string index, int status) Index = index; Status = status; } -#if NET7_0_OR_GREATER - public ResponseItem() - { - } -#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 ResponseItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResponseItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -72,11 +66,7 @@ internal ResponseItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// If the operation targeted a data stream, this is the backing index into which the document was written. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// @@ -114,11 +104,7 @@ internal ResponseItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The HTTP status code returned for the operation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Status { get; set; } + public required int Status { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Capabilities/FailedNodeException.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Capabilities/FailedNodeException.g.cs index 01e0cb8c663..36c6d5c7579 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Capabilities/FailedNodeException.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Capabilities/FailedNodeException.g.cs @@ -31,26 +31,16 @@ public FailedNodeException(string nodeId) { NodeId = nodeId; } -#if NET7_0_OR_GREATER - public FailedNodeException() - { - } -#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 FailedNodeException() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FailedNodeException(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } + public required string NodeId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Explain/Explanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Explain/Explanation.g.cs index aeba6f28602..29c49a832a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Explain/Explanation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Explain/Explanation.g.cs @@ -33,36 +33,18 @@ public Explanation(string description, System.Collections.Generic.IReadOnlyColle Details = details; Value = value; } -#if NET7_0_OR_GREATER - public Explanation() - { - } -#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 Explanation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Explanation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Details { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - float Value { get; set; } + public required string Description { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Details { get; set; } + public required float Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Explain/ExplanationDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Explain/ExplanationDetail.g.cs index db51140eab8..38f0f913590 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Explain/ExplanationDetail.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Explain/ExplanationDetail.g.cs @@ -32,32 +32,18 @@ public ExplanationDetail(string description, float value) Description = description; Value = value; } -#if NET7_0_OR_GREATER - public ExplanationDetail() - { - } -#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 ExplanationDetail() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExplanationDetail(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } + public required string Description { get; set; } public System.Collections.Generic.IReadOnlyCollection? Details { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - float Value { get; set; } + public required float Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/FieldCaps/FieldCapability.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/FieldCaps/FieldCapability.g.cs index 05ab43bd359..ca50ea59edd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/FieldCaps/FieldCapability.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/FieldCaps/FieldCapability.g.cs @@ -33,17 +33,11 @@ public FieldCapability(bool aggregatable, bool searchable, string type) Searchable = searchable; Type = type; } -#if NET7_0_OR_GREATER - public FieldCapability() - { - } -#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 FieldCapability() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldCapability(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal FieldCapability(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Whether this field can be aggregated on all indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Aggregatable { get; set; } + public required bool Aggregatable { get; set; } /// /// @@ -117,11 +107,7 @@ internal FieldCapability(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Whether this field is indexed for search on all indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Searchable { get; set; } + public required bool Searchable { get; set; } /// /// @@ -137,9 +123,5 @@ internal FieldCapability(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetric { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs index 652b950312e..61daafd5177 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs @@ -33,17 +33,11 @@ public GetResult(bool found, string id, string index) Id = id; Index = index; } -#if NET7_0_OR_GREATER - public GetResult() - { - } -#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 GetResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,22 +56,14 @@ internal GetResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// Indicates whether the document exists. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } /// /// /// The unique identifier for the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } public System.Collections.Generic.IReadOnlyCollection? Ignored { get; set; } /// @@ -85,11 +71,7 @@ internal GetResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// The name of the index the document belongs to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/Context.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/Context.g.cs index 5ca90383a26..4b9fc718243 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/Context.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/Context.g.cs @@ -32,31 +32,17 @@ public Context(System.Collections.Generic.IReadOnlyCollection Methods { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Methods { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/ContextMethod.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/ContextMethod.g.cs index 8e43e384908..33af93eb03b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/ContextMethod.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/ContextMethod.g.cs @@ -33,36 +33,18 @@ public ContextMethod(string name, System.Collections.Generic.IReadOnlyCollection Params = @params; ReturnType = returnType; } -#if NET7_0_OR_GREATER - public ContextMethod() - { - } -#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 ContextMethod() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ContextMethod(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Params { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ReturnType { get; set; } + public required string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Params { get; set; } + public required string ReturnType { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/ContextMethodParam.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/ContextMethodParam.g.cs index a94883cb1ab..36d90c9abf1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/ContextMethodParam.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptContext/ContextMethodParam.g.cs @@ -32,31 +32,17 @@ public ContextMethodParam(string name, string type) Name = name; Type = type; } -#if NET7_0_OR_GREATER - public ContextMethodParam() - { - } -#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 ContextMethodParam() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ContextMethodParam(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Name { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptLanguages/LanguageContext.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptLanguages/LanguageContext.g.cs index 5dcf35ac47f..ae7d9ef5d92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptLanguages/LanguageContext.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/GetScriptLanguages/LanguageContext.g.cs @@ -32,31 +32,17 @@ public LanguageContext(System.Collections.Generic.IReadOnlyCollection co Contexts = contexts; Language = language; } -#if NET7_0_OR_GREATER - public LanguageContext() - { - } -#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 LanguageContext() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LanguageContext(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Contexts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ScriptLanguage Language { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Contexts { get; set; } + public required Elastic.Clients.Elasticsearch.ScriptLanguage Language { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs index 0f3800cf8a8..e284120ba26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs @@ -32,17 +32,11 @@ public DataStreamLifecycleDetails(int stagnatingBackingIndicesCount, int totalBa StagnatingBackingIndicesCount = stagnatingBackingIndicesCount; TotalBackingIndicesInError = totalBackingIndicesInError; } -#if NET7_0_OR_GREATER - public DataStreamLifecycleDetails() - { - } -#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 DataStreamLifecycleDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamLifecycleDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,14 +44,6 @@ internal DataStreamLifecycleDetails(Elastic.Clients.Elasticsearch.Serialization. } public System.Collections.Generic.IReadOnlyCollection? StagnatingBackingIndices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int StagnatingBackingIndicesCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int TotalBackingIndicesInError { get; set; } + public required int StagnatingBackingIndicesCount { get; set; } + public required int TotalBackingIndicesInError { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs index 9f7b1e166cc..322ec17f62d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs @@ -37,17 +37,11 @@ public DataStreamLifecycleIndicator(Elastic.Clients.Elasticsearch.Core.HealthRep Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public DataStreamLifecycleIndicator() - { - } -#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 DataStreamLifecycleIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamLifecycleIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal DataStreamLifecycleIndicator(Elastic.Clients.Elasticsearch.Serializatio public Elastic.Clients.Elasticsearch.Core.HealthReport.DataStreamLifecycleDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Diagnosis.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Diagnosis.g.cs index 0882092822c..8e95bda656b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Diagnosis.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Diagnosis.g.cs @@ -35,46 +35,20 @@ public Diagnosis(string action, Elastic.Clients.Elasticsearch.Core.HealthReport. HelpUrl = helpUrl; Id = id; } -#if NET7_0_OR_GREATER - public Diagnosis() - { - } -#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 Diagnosis() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Diagnosis(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Action { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.DiagnosisAffectedResources AffectedResources { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Cause { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string HelpUrl { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Action { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.DiagnosisAffectedResources AffectedResources { get; set; } + public required string Cause { get; set; } + public required string HelpUrl { get; set; } + public required string Id { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiagnosisAffectedResources.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiagnosisAffectedResources.g.cs index 944ce31eedc..b72901415e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiagnosisAffectedResources.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiagnosisAffectedResources.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.HealthReport; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.HealthReport.Json.DiagnosisAffectedResourcesConverter))] public sealed partial class DiagnosisAffectedResources { -#if NET7_0_OR_GREATER public DiagnosisAffectedResources() { } -#endif -#if !NET7_0_OR_GREATER - public DiagnosisAffectedResources() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DiagnosisAffectedResources(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiskIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiskIndicator.g.cs index 0f8b42eaac0..98ac8731c7e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiskIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiskIndicator.g.cs @@ -37,17 +37,11 @@ public DiskIndicator(Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHe Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public DiskIndicator() - { - } -#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 DiskIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DiskIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal DiskIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct public Elastic.Clients.Elasticsearch.Core.HealthReport.DiskIndicatorDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiskIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiskIndicatorDetails.g.cs index 605a1381f8d..1a619dd037f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiskIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DiskIndicatorDetails.g.cs @@ -35,46 +35,20 @@ public DiskIndicatorDetails(long indicesWithReadonlyBlock, long nodesOverFloodSt NodesWithEnoughDiskSpace = nodesWithEnoughDiskSpace; NodesWithUnknownDiskStatus = nodesWithUnknownDiskStatus; } -#if NET7_0_OR_GREATER - public DiskIndicatorDetails() - { - } -#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 DiskIndicatorDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DiskIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndicesWithReadonlyBlock { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NodesOverFloodStageWatermark { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NodesOverHighWatermark { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NodesWithEnoughDiskSpace { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NodesWithUnknownDiskStatus { get; set; } + public required long IndicesWithReadonlyBlock { get; set; } + public required long NodesOverFloodStageWatermark { get; set; } + public required long NodesOverHighWatermark { get; set; } + public required long NodesWithEnoughDiskSpace { get; set; } + public required long NodesWithUnknownDiskStatus { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs index a8a064cbc23..d26f3b8840d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs @@ -37,17 +37,11 @@ public FileSettingsIndicator(Elastic.Clients.Elasticsearch.Core.HealthReport.Ind Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public FileSettingsIndicator() - { - } -#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 FileSettingsIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FileSettingsIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal FileSettingsIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonC public Elastic.Clients.Elasticsearch.Core.HealthReport.FileSettingsIndicatorDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs index 18e26684ed1..9d652d992e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs @@ -32,31 +32,17 @@ public FileSettingsIndicatorDetails(long failureStreak, string mostRecentFailure FailureStreak = failureStreak; MostRecentFailure = mostRecentFailure; } -#if NET7_0_OR_GREATER - public FileSettingsIndicatorDetails() - { - } -#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 FileSettingsIndicatorDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FileSettingsIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long FailureStreak { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string MostRecentFailure { get; set; } + public required long FailureStreak { get; set; } + public required string MostRecentFailure { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IlmIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IlmIndicator.g.cs index 9f4eecca617..a2e2d0763bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IlmIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IlmIndicator.g.cs @@ -37,17 +37,11 @@ public IlmIndicator(Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHea Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public IlmIndicator() - { - } -#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 IlmIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IlmIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal IlmIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo public Elastic.Clients.Elasticsearch.Core.HealthReport.IlmIndicatorDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs index 00c95000fe4..fa782446858 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs @@ -33,36 +33,18 @@ public IlmIndicatorDetails(Elastic.Clients.Elasticsearch.LifecycleOperationMode Policies = policies; StagnatingIndices = stagnatingIndices; } -#if NET7_0_OR_GREATER - public IlmIndicatorDetails() - { - } -#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 IlmIndicatorDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IlmIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.LifecycleOperationMode IlmStatus { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Policies { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int StagnatingIndices { get; set; } + public required Elastic.Clients.Elasticsearch.LifecycleOperationMode IlmStatus { get; set; } + public required long Policies { get; set; } + public required int StagnatingIndices { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Impact.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Impact.g.cs index 8ec70ce9945..fa4be626b50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Impact.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Impact.g.cs @@ -34,41 +34,19 @@ public Impact(string description, string id, System.Collections.Generic.IReadOnl ImpactAreas = impactAreas; Severity = severity; } -#if NET7_0_OR_GREATER - public Impact() - { - } -#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 Impact() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Impact(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ImpactAreas { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Severity { get; set; } + public required string Description { get; set; } + public required string Id { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ImpactAreas { get; set; } + public required int Severity { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IndicatorNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IndicatorNode.g.cs index 0a569875e25..38030739fc3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IndicatorNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/IndicatorNode.g.cs @@ -32,31 +32,17 @@ public IndicatorNode(string? name, string? nodeId) Name = name; NodeId = nodeId; } -#if NET7_0_OR_GREATER - public IndicatorNode() - { - } -#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 IndicatorNode() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndicatorNode(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string? Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string? NodeId { get; set; } + public required string? Name { get; set; } + public required string? NodeId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs index 62bda50f357..9396f6bc5f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.HealthReport; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.HealthReport.Json.IndicatorsConverter))] public sealed partial class Indicators { -#if NET7_0_OR_GREATER public Indicators() { } -#endif -#if !NET7_0_OR_GREATER - public Indicators() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Indicators(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicator.g.cs index ce3a4c8f554..7648b5c089a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicator.g.cs @@ -37,17 +37,11 @@ public MasterIsStableIndicator(Elastic.Clients.Elasticsearch.Core.HealthReport.I Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public MasterIsStableIndicator() - { - } -#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 MasterIsStableIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MasterIsStableIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal MasterIsStableIndicator(Elastic.Clients.Elasticsearch.Serialization.Jso public Elastic.Clients.Elasticsearch.Core.HealthReport.MasterIsStableIndicatorDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorClusterFormationNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorClusterFormationNode.g.cs index 3acba17b3f5..998a8790391 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorClusterFormationNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorClusterFormationNode.g.cs @@ -32,32 +32,18 @@ public MasterIsStableIndicatorClusterFormationNode(string clusterFormationMessag ClusterFormationMessage = clusterFormationMessage; NodeId = nodeId; } -#if NET7_0_OR_GREATER - public MasterIsStableIndicatorClusterFormationNode() - { - } -#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 MasterIsStableIndicatorClusterFormationNode() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MasterIsStableIndicatorClusterFormationNode(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterFormationMessage { get; set; } + public required string ClusterFormationMessage { get; set; } public string? Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } + public required string NodeId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorDetails.g.cs index dae3fd6a43c..d40b6ea17b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorDetails.g.cs @@ -32,17 +32,11 @@ public MasterIsStableIndicatorDetails(Elastic.Clients.Elasticsearch.Core.HealthR CurrentMaster = currentMaster; RecentMasters = recentMasters; } -#if NET7_0_OR_GREATER - public MasterIsStableIndicatorDetails() - { - } -#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 MasterIsStableIndicatorDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MasterIsStableIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,15 +44,7 @@ internal MasterIsStableIndicatorDetails(Elastic.Clients.Elasticsearch.Serializat } public System.Collections.Generic.IReadOnlyCollection? ClusterFormation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorNode CurrentMaster { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorNode CurrentMaster { get; set; } public Elastic.Clients.Elasticsearch.Core.HealthReport.MasterIsStableIndicatorExceptionFetchingHistory? ExceptionFetchingHistory { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection RecentMasters { get; set; } + public required System.Collections.Generic.IReadOnlyCollection RecentMasters { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorExceptionFetchingHistory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorExceptionFetchingHistory.g.cs index b2270861176..125eb8039db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorExceptionFetchingHistory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorExceptionFetchingHistory.g.cs @@ -32,31 +32,17 @@ public MasterIsStableIndicatorExceptionFetchingHistory(string message, string st Message = message; StackTrace = stackTrace; } -#if NET7_0_OR_GREATER - public MasterIsStableIndicatorExceptionFetchingHistory() - { - } -#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 MasterIsStableIndicatorExceptionFetchingHistory() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MasterIsStableIndicatorExceptionFetchingHistory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Message { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string StackTrace { get; set; } + public required string Message { get; set; } + public required string StackTrace { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicator.g.cs index 0a8d96e0baa..9cd506faba7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicator.g.cs @@ -37,17 +37,11 @@ public RepositoryIntegrityIndicator(Elastic.Clients.Elasticsearch.Core.HealthRep Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public RepositoryIntegrityIndicator() - { - } -#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 RepositoryIntegrityIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RepositoryIntegrityIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal RepositoryIntegrityIndicator(Elastic.Clients.Elasticsearch.Serializatio public Elastic.Clients.Elasticsearch.Core.HealthReport.RepositoryIntegrityIndicatorDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicatorDetails.g.cs index c29464a41cc..54cda8260ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicatorDetails.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.HealthReport; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.HealthReport.Json.RepositoryIntegrityIndicatorDetailsConverter))] public sealed partial class RepositoryIntegrityIndicatorDetails { -#if NET7_0_OR_GREATER public RepositoryIntegrityIndicatorDetails() { } -#endif -#if !NET7_0_OR_GREATER - public RepositoryIntegrityIndicatorDetails() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RepositoryIntegrityIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicator.g.cs index af1cb7f7320..a69223dd96e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicator.g.cs @@ -37,17 +37,11 @@ public ShardsAvailabilityIndicator(Elastic.Clients.Elasticsearch.Core.HealthRepo Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public ShardsAvailabilityIndicator() - { - } -#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 ShardsAvailabilityIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsAvailabilityIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal ShardsAvailabilityIndicator(Elastic.Clients.Elasticsearch.Serialization public Elastic.Clients.Elasticsearch.Core.HealthReport.ShardsAvailabilityIndicatorDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs index 029eeed1cff..fa0d1822aa1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs @@ -40,71 +40,25 @@ public ShardsAvailabilityIndicatorDetails(long creatingPrimaries, long creatingR UnassignedPrimaries = unassignedPrimaries; UnassignedReplicas = unassignedReplicas; } -#if NET7_0_OR_GREATER - public ShardsAvailabilityIndicatorDetails() - { - } -#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 ShardsAvailabilityIndicatorDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsAvailabilityIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long CreatingPrimaries { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CreatingReplicas { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long InitializingPrimaries { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long InitializingReplicas { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RestartingPrimaries { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RestartingReplicas { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long StartedPrimaries { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long StartedReplicas { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long UnassignedPrimaries { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long UnassignedReplicas { get; set; } + public required long CreatingPrimaries { get; set; } + public required long CreatingReplicas { get; set; } + public required long InitializingPrimaries { get; set; } + public required long InitializingReplicas { get; set; } + public required long RestartingPrimaries { get; set; } + public required long RestartingReplicas { get; set; } + public required long StartedPrimaries { get; set; } + public required long StartedReplicas { get; set; } + public required long UnassignedPrimaries { get; set; } + public required long UnassignedReplicas { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicator.g.cs index 5fbbccf0fbc..d747f03a2ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicator.g.cs @@ -37,17 +37,11 @@ public ShardsCapacityIndicator(Elastic.Clients.Elasticsearch.Core.HealthReport.I Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public ShardsCapacityIndicator() - { - } -#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 ShardsCapacityIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsCapacityIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal ShardsCapacityIndicator(Elastic.Clients.Elasticsearch.Serialization.Jso public Elastic.Clients.Elasticsearch.Core.HealthReport.ShardsCapacityIndicatorDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorDetails.g.cs index 0b51f892fc1..805ce9b71c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorDetails.g.cs @@ -32,31 +32,17 @@ public ShardsCapacityIndicatorDetails(Elastic.Clients.Elasticsearch.Core.HealthR Data = data; Frozen = frozen; } -#if NET7_0_OR_GREATER - public ShardsCapacityIndicatorDetails() - { - } -#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 ShardsCapacityIndicatorDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsCapacityIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.ShardsCapacityIndicatorTierDetail Data { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.ShardsCapacityIndicatorTierDetail Frozen { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.ShardsCapacityIndicatorTierDetail Data { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.ShardsCapacityIndicatorTierDetail Frozen { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorTierDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorTierDetail.g.cs index cf0baaf8835..c1a12420dae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorTierDetail.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorTierDetail.g.cs @@ -31,17 +31,11 @@ public ShardsCapacityIndicatorTierDetail(int maxShardsInCluster) { MaxShardsInCluster = maxShardsInCluster; } -#if NET7_0_OR_GREATER - public ShardsCapacityIndicatorTierDetail() - { - } -#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 ShardsCapacityIndicatorTierDetail() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsCapacityIndicatorTierDetail(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal ShardsCapacityIndicatorTierDetail(Elastic.Clients.Elasticsearch.Seriali } public int? CurrentUsedShards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MaxShardsInCluster { get; set; } + public required int MaxShardsInCluster { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicator.g.cs index d4d1985ba0a..3c15beac83b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicator.g.cs @@ -37,17 +37,11 @@ public SlmIndicator(Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHea Status = status; Symptom = symptom; } -#if NET7_0_OR_GREATER - public SlmIndicator() - { - } -#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 SlmIndicator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlmIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,14 +51,6 @@ internal SlmIndicator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo public Elastic.Clients.Elasticsearch.Core.HealthReport.SlmIndicatorDetails? Details { get; set; } public System.Collections.Generic.IReadOnlyCollection? Diagnosis { get; set; } public System.Collections.Generic.IReadOnlyCollection? Impacts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Symptom { get; set; } + public required Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; set; } + public required string Symptom { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs index a1c7f2ce925..d83343033b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs @@ -32,32 +32,18 @@ public SlmIndicatorDetails(long policies, Elastic.Clients.Elasticsearch.Lifecycl Policies = policies; SlmStatus = slmStatus; } -#if NET7_0_OR_GREATER - public SlmIndicatorDetails() - { - } -#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 SlmIndicatorDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlmIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Policies { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.LifecycleOperationMode SlmStatus { get; set; } + public required long Policies { get; set; } + public required Elastic.Clients.Elasticsearch.LifecycleOperationMode SlmStatus { get; set; } public Elastic.Clients.Elasticsearch.Core.HealthReport.SlmIndicatorUnhealthyPolicies? UnhealthyPolicies { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicatorUnhealthyPolicies.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicatorUnhealthyPolicies.g.cs index e7950dfcd99..89f7822e6a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicatorUnhealthyPolicies.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/SlmIndicatorUnhealthyPolicies.g.cs @@ -31,27 +31,17 @@ public SlmIndicatorUnhealthyPolicies(long count) { Count = count; } -#if NET7_0_OR_GREATER - public SlmIndicatorUnhealthyPolicies() - { - } -#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 SlmIndicatorUnhealthyPolicies() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlmIndicatorUnhealthyPolicies(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } public System.Collections.Generic.IReadOnlyDictionary? InvocationsSinceLastSuccess { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs index 0339df7b2bc..5e2b2ba2aa8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs @@ -33,36 +33,18 @@ public StagnatingBackingIndices(long firstOccurrenceTimestamp, string indexName, IndexName = indexName; RetryCount = retryCount; } -#if NET7_0_OR_GREATER - public StagnatingBackingIndices() - { - } -#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 StagnatingBackingIndices() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StagnatingBackingIndices(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long FirstOccurrenceTimestamp { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IndexName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int RetryCount { get; set; } + public required long FirstOccurrenceTimestamp { get; set; } + public required string IndexName { get; set; } + public required int RetryCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MGet/MultiGetError.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MGet/MultiGetError.g.cs index fa1028ac258..f2886ef532d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MGet/MultiGetError.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MGet/MultiGetError.g.cs @@ -33,36 +33,18 @@ public MultiGetError(Elastic.Clients.Elasticsearch.ErrorCause error, string id, Id = id; Index = index; } -#if NET7_0_OR_GREATER - public MultiGetError() - { - } -#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 MultiGetError() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiGetError(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ErrorCause Error { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required Elastic.Clients.Elasticsearch.ErrorCause Error { get; set; } + public required string Id { get; set; } + public required string Index { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MGet/MultiGetOperation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MGet/MultiGetOperation.g.cs index 376221e6474..aa8a3589fa4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MGet/MultiGetOperation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MGet/MultiGetOperation.g.cs @@ -31,17 +31,11 @@ public MultiGetOperation(Elastic.Clients.Elasticsearch.Id id) { Id = id; } -#if NET7_0_OR_GREATER - public MultiGetOperation() - { - } -#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 MultiGetOperation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiGetOperation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal MultiGetOperation(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The unique document ID. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs index 14edff2d879..844f43220d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs @@ -34,17 +34,11 @@ public MultiSearchItem(Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; set; } public double? MaxScore { get; set; } public long? NumReducePhases { get; set; } public string? PitId { get; set; } @@ -84,11 +74,7 @@ internal MultiSearchItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// A count of shards used for the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } public int? Status { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; set; } public bool? TerminatedEarly { get; set; } @@ -98,11 +84,7 @@ internal MultiSearchItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// If true, the request timed out before completion; returned results may be partial or empty. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool TimedOut { get; set; } + public required bool TimedOut { get; set; } /// /// @@ -148,9 +130,5 @@ internal MultiSearchItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Took { get; set; } + public required long Took { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs index ade39d01368..9cba42d378b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.MSearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.MSearch.Json.MultisearchBodyConverter))] public sealed partial class MultisearchBody { -#if NET7_0_OR_GREATER public MultisearchBody() { } -#endif -#if !NET7_0_OR_GREATER - public MultisearchBody() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultisearchBody(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs index 2b0d0469179..9b7c751b82c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.Core.MSearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.MSearch.Json.MultisearchHeaderConverter))] public sealed partial class MultisearchHeader { -#if NET7_0_OR_GREATER public MultisearchHeader() { } -#endif -#if !NET7_0_OR_GREATER - public MultisearchHeader() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultisearchHeader(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs index 2c8526318b7..b2e5317207b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.MSearchTemplate; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.MSearchTemplate.Json.TemplateConfigConverter))] public sealed partial class TemplateConfig { -#if NET7_0_OR_GREATER public TemplateConfig() { } -#endif -#if !NET7_0_OR_GREATER - public TemplateConfig() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TemplateConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs index 8c9237087ff..ba72dc7923c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Mtermvectors; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Mtermvectors.Json.MultiTermVectorsOperationConverter))] public sealed partial class MultiTermVectorsOperation { -#if NET7_0_OR_GREATER public MultiTermVectorsOperation() { } -#endif -#if !NET7_0_OR_GREATER - public MultiTermVectorsOperation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiTermVectorsOperation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs index 7e6cc7f5f6a..74ae8233263 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs @@ -31,17 +31,11 @@ public MultiTermVectorsResult(string index) { Index = index; } -#if NET7_0_OR_GREATER - public MultiTermVectorsResult() - { - } -#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 MultiTermVectorsResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiTermVectorsResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,11 +45,7 @@ internal MultiTermVectorsResult(Elastic.Clients.Elasticsearch.Serialization.Json public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; set; } public bool? Found { get; set; } public string? Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } public System.Collections.Generic.IReadOnlyDictionary? TermVectors { get; set; } public long? Took { get; set; } public long? Version { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/DocumentRating.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/DocumentRating.g.cs index f49775b830d..987ffbf5cf8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/DocumentRating.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/DocumentRating.g.cs @@ -33,17 +33,11 @@ public DocumentRating(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elast Index = index; Rating = rating; } -#if NET7_0_OR_GREATER - public DocumentRating() - { - } -#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 DocumentRating() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DocumentRating(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,33 +49,21 @@ internal DocumentRating(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The document ID. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } /// /// /// The document’s index. For data streams, this should be the document’s backing index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } /// /// /// The document’s relevance with regard to this search request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Rating { get; set; } + public required int Rating { get; set; } } public readonly partial struct DocumentRatingDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalHit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalHit.g.cs index 675751a4edc..5239ce89ee2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalHit.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalHit.g.cs @@ -33,36 +33,18 @@ public RankEvalHit(string id, string index, double score) Index = index; Score = score; } -#if NET7_0_OR_GREATER - public RankEvalHit() - { - } -#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 RankEvalHit() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalHit(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Score { get; set; } + public required string Id { get; set; } + public required string Index { get; set; } + public required double Score { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalHitItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalHitItem.g.cs index 9696075ab3a..cf896c2a957 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalHitItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalHitItem.g.cs @@ -31,27 +31,17 @@ public RankEvalHitItem(Elastic.Clients.Elasticsearch.Core.RankEval.RankEvalHit h { Hit = hit; } -#if NET7_0_OR_GREATER - public RankEvalHitItem() - { - } -#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 RankEvalHitItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalHitItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.RankEval.RankEvalHit Hit { get; set; } + public required Elastic.Clients.Elasticsearch.Core.RankEval.RankEvalHit Hit { get; set; } public double? Rating { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetric.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetric.g.cs index 4e7e08c9151..cc5cbbd9072 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetric.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetric.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.RankEval.Json.RankEvalMetricConverter))] public sealed partial class RankEvalMetric { -#if NET7_0_OR_GREATER public RankEvalMetric() { } -#endif -#if !NET7_0_OR_GREATER - public RankEvalMetric() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalMetric(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDetail.g.cs index 00f0167db89..69d8d5d73f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDetail.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDetail.g.cs @@ -34,17 +34,11 @@ public RankEvalMetricDetail(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Hits { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Hits { get; set; } /// /// /// The metric_details give additional information about the calculated quality metric (e.g. how many of the retrieved documents were relevant). The content varies for each metric but allows for better interpretation of the results /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary> MetricDetails { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> MetricDetails { get; set; } /// /// /// The metric_score in the details section shows the contribution of this query to the global quality metric score /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double MetricScore { get; set; } + public required double MetricScore { get; set; } /// /// /// The unrated_docs section contains an _index and _id entry for each document in the search result for this query that didn’t have a ratings value. This can be used to ask the user to supply ratings for these documents /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection UnratedDocs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection UnratedDocs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs index 693d4527f19..e205ae0a0bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs @@ -32,16 +32,10 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.RankEval.Json.RankEvalMetricDiscountedCumulativeGainConverter))] public sealed partial class RankEvalMetricDiscountedCumulativeGain { -#if NET7_0_OR_GREATER public RankEvalMetricDiscountedCumulativeGain() { } -#endif -#if !NET7_0_OR_GREATER - public RankEvalMetricDiscountedCumulativeGain() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalMetricDiscountedCumulativeGain(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs index 6adc54c6fed..38524a051ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs @@ -37,17 +37,11 @@ public RankEvalMetricExpectedReciprocalRank(int maximumRelevance) { MaximumRelevance = maximumRelevance; } -#if NET7_0_OR_GREATER - public RankEvalMetricExpectedReciprocalRank() - { - } -#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 RankEvalMetricExpectedReciprocalRank() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalMetricExpectedReciprocalRank(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +60,7 @@ internal RankEvalMetricExpectedReciprocalRank(Elastic.Clients.Elasticsearch.Seri /// The highest relevance grade used in the user-supplied relevance judgments. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MaximumRelevance { get; set; } + public required int MaximumRelevance { get; set; } } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs index 584df83c814..c44e8d6b5af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs @@ -32,16 +32,10 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.RankEval.Json.RankEvalMetricMeanReciprocalRankConverter))] public sealed partial class RankEvalMetricMeanReciprocalRank { -#if NET7_0_OR_GREATER public RankEvalMetricMeanReciprocalRank() { } -#endif -#if !NET7_0_OR_GREATER - public RankEvalMetricMeanReciprocalRank() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalMetricMeanReciprocalRank(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs index ae6004ae5a7..210b9d0fcc9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs @@ -32,16 +32,10 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.RankEval.Json.RankEvalMetricPrecisionConverter))] public sealed partial class RankEvalMetricPrecision { -#if NET7_0_OR_GREATER public RankEvalMetricPrecision() { } -#endif -#if !NET7_0_OR_GREATER - public RankEvalMetricPrecision() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalMetricPrecision(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs index 656ab8e73d6..c9639805820 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs @@ -32,16 +32,10 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.RankEval.Json.RankEvalMetricRecallConverter))] public sealed partial class RankEvalMetricRecall { -#if NET7_0_OR_GREATER public RankEvalMetricRecall() { } -#endif -#if !NET7_0_OR_GREATER - public RankEvalMetricRecall() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalMetricRecall(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalQuery.g.cs index fb47bf9c838..32093338824 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalQuery.g.cs @@ -31,28 +31,18 @@ public RankEvalQuery(Elastic.Clients.Elasticsearch.QueryDsl.Query query) { Query = query; } -#if NET7_0_OR_GREATER - public RankEvalQuery() - { - } -#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 RankEvalQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } public int? Size { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs index 9fb027697bb..485dbe9e0aa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs @@ -32,17 +32,11 @@ public RankEvalRequestItem(Elastic.Clients.Elasticsearch.Id id, System.Collectio Id = id; Ratings = ratings; } -#if NET7_0_OR_GREATER - public RankEvalRequestItem() - { - } -#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 RankEvalRequestItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankEvalRequestItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal RankEvalRequestItem(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The search request’s ID, used to group result details later. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } /// /// @@ -72,11 +62,7 @@ internal RankEvalRequestItem(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// List of document ratings /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Ratings { get; set; } + public required System.Collections.Generic.ICollection Ratings { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/UnratedDocument.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/UnratedDocument.g.cs index da84d0bcea8..d1861b97d8f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/UnratedDocument.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/UnratedDocument.g.cs @@ -32,31 +32,17 @@ public UnratedDocument(string id, string index) Id = id; Index = index; } -#if NET7_0_OR_GREATER - public UnratedDocument() - { - } -#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 UnratedDocument() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UnratedDocument(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Id { get; set; } + public required string Index { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs index 1b52bedbaa8..3dc8b780e27 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs @@ -31,17 +31,11 @@ public Destination(Elastic.Clients.Elasticsearch.IndexName index) { Index = index; } -#if NET7_0_OR_GREATER - public Destination() - { - } -#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 Destination() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Destination(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal Destination(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The name of the data stream, index, or index alias you are copying to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs index cd2fa9724b3..39100cd965c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs @@ -31,17 +31,11 @@ public RemoteSource(string host) { Host = host; } -#if NET7_0_OR_GREATER - public RemoteSource() - { - } -#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 RemoteSource() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoteSource(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +70,7 @@ internal RemoteSource(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// This information is required when you're indexing from remote. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Host { get; set; } + public required string Host { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs index c824d31fc29..2755a05919d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs @@ -31,17 +31,11 @@ public Source(Elastic.Clients.Elasticsearch.Indices indices) { Indices = indices; } -#if NET7_0_OR_GREATER - public Source() - { - } -#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 Source() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Source(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal Source(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// It accepts a comma-separated list to reindex from multiple sources. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get; set; } + public required Elastic.Clients.Elasticsearch.Indices Indices { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs index ac4d5365c3a..f16bf48cb4f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs @@ -36,52 +36,22 @@ public ReindexNode(System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Host { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Ip { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required string Host { get; set; } + public required string Ip { get; set; } + public required string Name { get; set; } public System.Collections.Generic.IReadOnlyCollection? Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Tasks { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Tasks { get; set; } + public required string TransportAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs index e2b25799b71..c9324345558 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs @@ -41,17 +41,11 @@ public ReindexStatus(long batches, long created, long deleted, long noops, float Updated = updated; VersionConflicts = versionConflicts; } -#if NET7_0_OR_GREATER - public ReindexStatus() - { - } -#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 ReindexStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReindexStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,66 +57,42 @@ internal ReindexStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The number of scroll responses pulled back by the reindex. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Batches { get; set; } + public required long Batches { get; set; } /// /// /// The number of documents that were successfully created. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Created { get; set; } + public required long Created { get; set; } /// /// /// The number of documents that were successfully deleted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Deleted { get; set; } + public required long Deleted { get; set; } /// /// /// The number of documents that were ignored because the script used for the reindex returned a noop value for ctx.op. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Noops { get; set; } + public required long Noops { get; set; } /// /// /// The number of requests per second effectively executed during the reindex. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - float RequestsPerSecond { get; set; } + public required float RequestsPerSecond { get; set; } /// /// /// The number of retries attempted by reindex. bulk is the number of bulk actions retried and search is the number of search actions retried. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Retries Retries { get; set; } + public required Elastic.Clients.Elasticsearch.Retries Retries { get; set; } public Elastic.Clients.Elasticsearch.Duration? Throttled { get; set; } /// @@ -130,11 +100,7 @@ internal ReindexStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Number of milliseconds the request slept to conform to requests_per_second. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ThrottledMillis { get; set; } + public required System.TimeSpan ThrottledMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? ThrottledUntil { get; set; } /// @@ -143,42 +109,26 @@ internal ReindexStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to requests_per_second. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ThrottledUntilMillis { get; set; } + public required System.TimeSpan ThrottledUntilMillis { get; set; } /// /// /// The number of documents that were successfully processed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Total { get; set; } /// /// /// The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Updated { get; set; } + public required long Updated { get; set; } /// /// /// The number of version conflicts that reindex hits. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long VersionConflicts { get; set; } + public required long VersionConflicts { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs index cc283d331e1..275f3aee31f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs @@ -40,71 +40,25 @@ public ReindexTask(string action, bool cancellable, string description, System.C Status = status; Type = type; } -#if NET7_0_OR_GREATER - public ReindexTask() - { - } -#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 ReindexTask() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReindexTask(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Action { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Cancellable { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary> Headers { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan RunningTimeInNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.ReindexRethrottle.ReindexStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Action { get; set; } + public required bool Cancellable { get; set; } + public required string Description { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Headers { get; set; } + public required long Id { get; set; } + public required string Node { get; set; } + public required System.TimeSpan RunningTimeInNanos { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } + public required Elastic.Clients.Elasticsearch.Core.ReindexRethrottle.ReindexStatus Status { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs index fa6cf786642..6cf5285d4b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs @@ -32,17 +32,11 @@ public PainlessContextSetup(object document, Elastic.Clients.Elasticsearch.Index Document = document; Index = index; } -#if NET7_0_OR_GREATER - public PainlessContextSetup() - { - } -#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 PainlessContextSetup() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PainlessContextSetup(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal PainlessContextSetup(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Document that's temporarily indexed in-memory and accessible from the script. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object Document { get; set; } + public required object Document { get; set; } /// /// @@ -72,11 +62,7 @@ internal PainlessContextSetup(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The expression *:myindex will return the error "No such remote cluster" and the expression logs* or remote1:logs* will return the error "index not found". /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationBreakdown.g.cs index e51de94e49f..9e16cc9efc1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationBreakdown.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationBreakdown.g.cs @@ -40,73 +40,27 @@ public AggregationBreakdown(long buildAggregation, long buildAggregationCount, l Reduce = reduce; ReduceCount = reduceCount; } -#if NET7_0_OR_GREATER - public AggregationBreakdown() - { - } -#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 AggregationBreakdown() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AggregationBreakdown(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildAggregation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildAggregationCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildLeafCollector { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildLeafCollectorCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Collect { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CollectCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Initialize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long InitializeCount { get; set; } + public required long BuildAggregation { get; set; } + public required long BuildAggregationCount { get; set; } + public required long BuildLeafCollector { get; set; } + public required long BuildLeafCollectorCount { get; set; } + public required long Collect { get; set; } + public required long CollectCount { get; set; } + public required long Initialize { get; set; } + public required long InitializeCount { get; set; } public long? PostCollection { get; set; } public long? PostCollectionCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Reduce { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ReduceCount { get; set; } + public required long Reduce { get; set; } + public required long ReduceCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfile.g.cs index 3a89139ba92..c267b9614be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfile.g.cs @@ -34,43 +34,21 @@ public AggregationProfile(Elastic.Clients.Elasticsearch.Core.Search.AggregationB TimeInNanos = timeInNanos; Type = type; } -#if NET7_0_OR_GREATER - public AggregationProfile() - { - } -#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 AggregationProfile() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AggregationProfile(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.AggregationBreakdown Breakdown { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.AggregationBreakdown Breakdown { get; set; } public System.Collections.Generic.IReadOnlyCollection? Children { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.AggregationProfileDebug? Debug { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Description { get; set; } + public required System.TimeSpan TimeInNanos { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs index 721e3afabf0..d00f5e5e01e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.AggregationProfileDebugConverter))] public sealed partial class AggregationProfileDebug { -#if NET7_0_OR_GREATER public AggregationProfileDebug() { } -#endif -#if !NET7_0_OR_GREATER - public AggregationProfileDebug() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AggregationProfileDebug(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDelegateDebugFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDelegateDebugFilter.g.cs index a9ef581635c..8eae8bd0d18 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDelegateDebugFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDelegateDebugFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.AggregationProfileDelegateDebugFilterConverter))] public sealed partial class AggregationProfileDelegateDebugFilter { -#if NET7_0_OR_GREATER public AggregationProfileDelegateDebugFilter() { } -#endif -#if !NET7_0_OR_GREATER - public AggregationProfileDelegateDebugFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AggregationProfileDelegateDebugFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Collector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Collector.g.cs index 810bd5a01b0..3309d76face 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Collector.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Collector.g.cs @@ -33,17 +33,11 @@ public Collector(string name, string reason, System.TimeSpan timeInNanos) Reason = reason; TimeInNanos = timeInNanos; } -#if NET7_0_OR_GREATER - public Collector() - { - } -#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 Collector() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Collector(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,19 +45,7 @@ internal Collector(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe } public System.Collections.Generic.IReadOnlyCollection? Children { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Reason { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInNanos { get; set; } + public required string Name { get; set; } + public required string Reason { get; set; } + public required System.TimeSpan TimeInNanos { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs index 0a8dead806e..9812889c12a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs @@ -31,17 +31,11 @@ public CompletionContext(Elastic.Clients.Elasticsearch.Core.Search.Context conte { Context = context; } -#if NET7_0_OR_GREATER - public CompletionContext() - { - } -#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 CompletionContext() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionContext(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal CompletionContext(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The value of the category to filter/boost on. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.Context Context { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.Context Context { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggest.g.cs index 433c3cabf6d..40b591c8e8e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggest.g.cs @@ -34,43 +34,21 @@ public CompletionSuggest(int length, int offset, System.Collections.Generic.ICol Options = options; Text = text; } -#if NET7_0_OR_GREATER - public CompletionSuggest() - { - } -#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 CompletionSuggest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionSuggest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Length { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Offset { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection> Options { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Text { get; set; } + public required int Length { get; set; } + public required int Offset { get; set; } + public required System.Collections.Generic.ICollection> Options { get; set; } + public required string Text { get; set; } string Elastic.Clients.Elasticsearch.Core.Search.ISuggest.Type => "completion"; } \ No newline at end of file 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 2405178ce73..4495558413e 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 @@ -31,17 +31,11 @@ public CompletionSuggestOption(string text) { Text = text; } -#if NET7_0_OR_GREATER - public CompletionSuggestOption() - { - } -#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 CompletionSuggestOption() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionSuggestOption(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,9 +51,5 @@ internal CompletionSuggestOption(Elastic.Clients.Elasticsearch.Serialization.Jso public double? Score { get; set; } public double? Score0 { get; set; } public TDocument? Source { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Text { get; set; } + public required string Text { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs index e740fa55ff6..16dc7d3b203 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs @@ -31,17 +31,11 @@ public CompletionSuggester(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public CompletionSuggester() - { - } -#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 CompletionSuggester() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +63,7 @@ internal CompletionSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Needs to be set globally or per suggestion. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsKnnProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsKnnProfile.g.cs index 4e36d34342a..93a8c0231dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsKnnProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsKnnProfile.g.cs @@ -33,37 +33,19 @@ public DfsKnnProfile(System.Collections.Generic.IReadOnlyCollection Collector { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Query { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RewriteTime { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Collector { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Query { get; set; } + public required long RewriteTime { get; set; } public long? VectorOperationsCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsProfile.g.cs index cca5df608bf..35b53b40d03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsProfile.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.DfsProfileConverter))] public sealed partial class DfsProfile { -#if NET7_0_OR_GREATER public DfsProfile() { } -#endif -#if !NET7_0_OR_GREATER - public DfsProfile() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DfsProfile(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs index 67bfac8e3f8..f417deac794 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs @@ -38,61 +38,23 @@ public DfsStatisticsBreakdown(long collectionStatistics, long collectionStatisti TermStatistics = termStatistics; TermStatisticsCount = termStatisticsCount; } -#if NET7_0_OR_GREATER - public DfsStatisticsBreakdown() - { - } -#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 DfsStatisticsBreakdown() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DfsStatisticsBreakdown(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long CollectionStatistics { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CollectionStatisticsCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CreateWeight { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CreateWeightCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Rewrite { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RewriteCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TermStatistics { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TermStatisticsCount { get; set; } + public required long CollectionStatistics { get; set; } + public required long CollectionStatisticsCount { get; set; } + public required long CreateWeight { get; set; } + public required long CreateWeightCount { get; set; } + public required long Rewrite { get; set; } + public required long RewriteCount { get; set; } + public required long TermStatistics { get; set; } + public required long TermStatisticsCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs index 70a353f3cf3..cc971cbd393 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs @@ -34,44 +34,22 @@ public DfsStatisticsProfile(Elastic.Clients.Elasticsearch.Core.Search.DfsStatist TimeInNanos = timeInNanos; Type = type; } -#if NET7_0_OR_GREATER - public DfsStatisticsProfile() - { - } -#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 DfsStatisticsProfile() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DfsStatisticsProfile(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.DfsStatisticsBreakdown Breakdown { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.DfsStatisticsBreakdown Breakdown { get; set; } public System.Collections.Generic.IReadOnlyCollection? Children { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Debug { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } + public required string Description { get; set; } public Elastic.Clients.Elasticsearch.Duration? Time { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required System.TimeSpan TimeInNanos { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DirectGenerator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DirectGenerator.g.cs index 57709cf9442..9c6ec02fb6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DirectGenerator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DirectGenerator.g.cs @@ -31,17 +31,11 @@ public DirectGenerator(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public DirectGenerator() - { - } -#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 DirectGenerator() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DirectGenerator(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal DirectGenerator(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Needs to be set globally or per suggestion. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfile.g.cs index d33a9b795e1..c4d1b32be0a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfile.g.cs @@ -34,43 +34,21 @@ public FetchProfile(Elastic.Clients.Elasticsearch.Core.Search.FetchProfileBreakd TimeInNanos = timeInNanos; Type = type; } -#if NET7_0_OR_GREATER - public FetchProfile() - { - } -#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 FetchProfile() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FetchProfile(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.FetchProfileBreakdown Breakdown { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.FetchProfileBreakdown Breakdown { get; set; } public System.Collections.Generic.IReadOnlyCollection? Children { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.FetchProfileDebug? Debug { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Description { get; set; } + public required System.TimeSpan TimeInNanos { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfileBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfileBreakdown.g.cs index 6c882fd5f82..31f581f89b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfileBreakdown.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfileBreakdown.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.FetchProfileBreakdownConverter))] public sealed partial class FetchProfileBreakdown { -#if NET7_0_OR_GREATER public FetchProfileBreakdown() { } -#endif -#if !NET7_0_OR_GREATER - public FetchProfileBreakdown() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FetchProfileBreakdown(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfileDebug.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfileDebug.g.cs index bcc401a0c14..28af28c6343 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfileDebug.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FetchProfileDebug.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.FetchProfileDebugConverter))] public sealed partial class FetchProfileDebug { -#if NET7_0_OR_GREATER public FetchProfileDebug() { } -#endif -#if !NET7_0_OR_GREATER - public FetchProfileDebug() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FetchProfileDebug(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldCollapse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldCollapse.g.cs index 1d9960915d3..d042617ecad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldCollapse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldCollapse.g.cs @@ -31,17 +31,11 @@ public FieldCollapse(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public FieldCollapse() - { - } -#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 FieldCollapse() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldCollapse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal FieldCollapse(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The field to collapse the result set on /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldSuggester.g.cs index 4e69b734ca5..b7f9e5a901a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldSuggester.g.cs @@ -28,16 +28,11 @@ public sealed partial class FieldSuggester { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public FieldSuggester() - { - } -#endif -#if !NET7_0_OR_GREATER + public FieldSuggester() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Highlight.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Highlight.g.cs index 6a063ef3102..2cff3b46d80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Highlight.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Highlight.g.cs @@ -31,17 +31,11 @@ public Highlight(System.Collections.Generic.ICollection public string? BoundaryScannerLocale { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.HighlighterEncoder? Encoder { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection> Fields { get; set; } + public required System.Collections.Generic.ICollection> Fields { get; set; } public bool? ForceSource { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs index 080c88c31d6..a7dee3ecd14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.HighlightFieldConverter))] public sealed partial class HighlightField { -#if NET7_0_OR_GREATER public HighlightField() { } -#endif -#if !NET7_0_OR_GREATER - public HighlightField() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HighlightField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Hit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Hit.g.cs index 10a4384e069..c0ae594a427 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Hit.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Hit.g.cs @@ -32,17 +32,11 @@ public Hit(string id, string index) Id = id; Index = index; } -#if NET7_0_OR_GREATER - public Hit() - { - } -#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 Hit() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Hit(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,18 +46,10 @@ internal Hit(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel public Elastic.Clients.Elasticsearch.Core.Explain.Explanation? Explanation { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Fields { get; set; } public System.Collections.Generic.IReadOnlyDictionary>? Highlight { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } public System.Collections.Generic.IReadOnlyCollection? Ignored { get; set; } public System.Collections.Generic.IReadOnlyDictionary>? IgnoredFieldValues { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } public System.Collections.Generic.IReadOnlyDictionary? InnerHits { get; set; } public Elastic.Clients.Elasticsearch.Union, System.Collections.Generic.IReadOnlyDictionary>? MatchedQueries { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.NestedIdentity? Nested { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HitsMetadata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HitsMetadata.g.cs index ae601f75ff1..1af694419b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HitsMetadata.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HitsMetadata.g.cs @@ -31,28 +31,18 @@ public HitsMetadata(System.Collections.Generic.IReadOnlyCollection> Hits { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> Hits { get; set; } public double? MaxScore { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs index 203a04b3c5b..fe9f39fafc2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.InnerHitsConverter))] public sealed partial class InnerHits { -#if NET7_0_OR_GREATER public InnerHits() { } -#endif -#if !NET7_0_OR_GREATER - public InnerHits() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InnerHits(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHitsResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHitsResult.g.cs index 837e252ca71..50f41708c27 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHitsResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHitsResult.g.cs @@ -31,26 +31,16 @@ public InnerHitsResult(Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnCollectorResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnCollectorResult.g.cs index 978da5a9c5d..42e70d6c571 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnCollectorResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnCollectorResult.g.cs @@ -33,17 +33,11 @@ public KnnCollectorResult(string name, string reason, System.TimeSpan timeInNano Reason = reason; TimeInNanos = timeInNanos; } -#if NET7_0_OR_GREATER - public KnnCollectorResult() - { - } -#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 KnnCollectorResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KnnCollectorResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,20 +45,8 @@ internal KnnCollectorResult(Elastic.Clients.Elasticsearch.Serialization.JsonCons } public System.Collections.Generic.IReadOnlyCollection? Children { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Reason { get; set; } + public required string Name { get; set; } + public required string Reason { get; set; } public Elastic.Clients.Elasticsearch.Duration? Time { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInNanos { get; set; } + public required System.TimeSpan TimeInNanos { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs index 5f4ca6da9cb..86e1be5183b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs @@ -50,121 +50,35 @@ public KnnQueryProfileBreakdown(long advance, long advanceCount, long buildScore ShallowAdvance = shallowAdvance; ShallowAdvanceCount = shallowAdvanceCount; } -#if NET7_0_OR_GREATER - public KnnQueryProfileBreakdown() - { - } -#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 KnnQueryProfileBreakdown() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KnnQueryProfileBreakdown(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Advance { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long AdvanceCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildScorer { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildScorerCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ComputeMaxScore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ComputeMaxScoreCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CountWeight { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CountWeightCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CreateWeight { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CreateWeightCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Match { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MatchCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NextDoc { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NextDocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Score { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ScoreCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SetMinCompetitiveScore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SetMinCompetitiveScoreCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ShallowAdvance { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ShallowAdvanceCount { get; set; } + public required long Advance { get; set; } + public required long AdvanceCount { get; set; } + public required long BuildScorer { get; set; } + public required long BuildScorerCount { get; set; } + public required long ComputeMaxScore { get; set; } + public required long ComputeMaxScoreCount { get; set; } + public required long CountWeight { get; set; } + public required long CountWeightCount { get; set; } + public required long CreateWeight { get; set; } + public required long CreateWeightCount { get; set; } + public required long Match { get; set; } + public required long MatchCount { get; set; } + public required long NextDoc { get; set; } + public required long NextDocCount { get; set; } + public required long Score { get; set; } + public required long ScoreCount { get; set; } + public required long SetMinCompetitiveScore { get; set; } + public required long SetMinCompetitiveScoreCount { get; set; } + public required long ShallowAdvance { get; set; } + public required long ShallowAdvanceCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs index ad6a8a9f92a..8029abaee7d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs @@ -34,44 +34,22 @@ public KnnQueryProfileResult(Elastic.Clients.Elasticsearch.Core.Search.KnnQueryP TimeInNanos = timeInNanos; Type = type; } -#if NET7_0_OR_GREATER - public KnnQueryProfileResult() - { - } -#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 KnnQueryProfileResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KnnQueryProfileResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.KnnQueryProfileBreakdown Breakdown { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.KnnQueryProfileBreakdown Breakdown { get; set; } public System.Collections.Generic.IReadOnlyCollection? Children { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Debug { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } + public required string Description { get; set; } public Elastic.Clients.Elasticsearch.Duration? Time { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required System.TimeSpan TimeInNanos { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs index 7b1bcd959b6..a8bc2798246 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs @@ -31,17 +31,11 @@ public LaplaceSmoothingModel(double alpha) { Alpha = alpha; } -#if NET7_0_OR_GREATER - public LaplaceSmoothingModel() - { - } -#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 LaplaceSmoothingModel() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LaplaceSmoothingModel(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal LaplaceSmoothingModel(Elastic.Clients.Elasticsearch.Serialization.JsonC /// A constant that is added to all counts to balance weights. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Alpha { get; set; } + public required double Alpha { get; set; } } public readonly partial struct LaplaceSmoothingModelDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LearningToRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LearningToRank.g.cs index 8d6123dd5d2..45ee2e24b97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LearningToRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LearningToRank.g.cs @@ -31,17 +31,11 @@ public LearningToRank(string modelId) { ModelId = modelId; } -#if NET7_0_OR_GREATER - public LearningToRank() - { - } -#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 LearningToRank() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LearningToRank(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal LearningToRank(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The unique identifier of the trained model uploaded to Elasticsearch /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LinearInterpolationSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LinearInterpolationSmoothingModel.g.cs index d57e904a9e4..880a4cb681e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LinearInterpolationSmoothingModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LinearInterpolationSmoothingModel.g.cs @@ -33,38 +33,20 @@ public LinearInterpolationSmoothingModel(double bigramLambda, double trigramLamb TrigramLambda = trigramLambda; UnigramLambda = unigramLambda; } -#if NET7_0_OR_GREATER - public LinearInterpolationSmoothingModel() - { - } -#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 LinearInterpolationSmoothingModel() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LinearInterpolationSmoothingModel(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double BigramLambda { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double TrigramLambda { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double UnigramLambda { get; set; } + public required double BigramLambda { get; set; } + public required double TrigramLambda { get; set; } + public required double UnigramLambda { get; set; } } public readonly partial struct LinearInterpolationSmoothingModelDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/NestedIdentity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/NestedIdentity.g.cs index c933cab47d9..2ef3b597d17 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/NestedIdentity.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/NestedIdentity.g.cs @@ -32,32 +32,18 @@ public NestedIdentity(string field, int offset) Field = field; Offset = offset; } -#if NET7_0_OR_GREATER - public NestedIdentity() - { - } -#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 NestedIdentity() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NestedIdentity(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } + public required string Field { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.NestedIdentity? Nested { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Offset { get; set; } + public required int Offset { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggest.g.cs index 629561767a9..db4ff3e9fca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggest.g.cs @@ -34,43 +34,21 @@ public PhraseSuggest(int length, int offset, System.Collections.Generic.ICollect Options = options; Text = text; } -#if NET7_0_OR_GREATER - public PhraseSuggest() - { - } -#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 PhraseSuggest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PhraseSuggest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Length { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Offset { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Options { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Text { get; set; } + public required int Length { get; set; } + public required int Offset { get; set; } + public required System.Collections.Generic.ICollection Options { get; set; } + public required string Text { get; set; } string Elastic.Clients.Elasticsearch.Core.Search.ISuggest.Type => "phrase"; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs index 6e452e1ec52..f9c911750f7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs @@ -31,17 +31,11 @@ public PhraseSuggestCollate(Elastic.Clients.Elasticsearch.Core.Search.PhraseSugg { Query = query; } -#if NET7_0_OR_GREATER - public PhraseSuggestCollate() - { - } -#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 PhraseSuggestCollate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PhraseSuggestCollate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +61,7 @@ internal PhraseSuggestCollate(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// A collate query that is run once for every suggestion. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestCollateQuery Query { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestCollateQuery Query { get; set; } } public readonly partial struct PhraseSuggestCollateDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs index e9d602978cc..b43aaa5bdf8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.PhraseSuggestCollateQueryConverter))] public sealed partial class PhraseSuggestCollateQuery { -#if NET7_0_OR_GREATER public PhraseSuggestCollateQuery() { } -#endif -#if !NET7_0_OR_GREATER - public PhraseSuggestCollateQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PhraseSuggestCollateQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs index b8c6ba424ad..075e6df8fa3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs @@ -32,17 +32,11 @@ public PhraseSuggestHighlight(string postTag, string preTag) PostTag = postTag; PreTag = preTag; } -#if NET7_0_OR_GREATER - public PhraseSuggestHighlight() - { - } -#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 PhraseSuggestHighlight() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PhraseSuggestHighlight(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal PhraseSuggestHighlight(Elastic.Clients.Elasticsearch.Serialization.Json /// Use in conjunction with pre_tag to define the HTML tags to use for the highlighted text. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string PostTag { get; set; } + public required string PostTag { get; set; } /// /// /// Use in conjunction with post_tag to define the HTML tags to use for the highlighted text. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string PreTag { get; set; } + public required string PreTag { get; set; } } public readonly partial struct PhraseSuggestHighlightDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestOption.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestOption.g.cs index 1f675fd79c8..02eff548939 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestOption.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestOption.g.cs @@ -32,17 +32,11 @@ public PhraseSuggestOption(double score, string text) Score = score; Text = text; } -#if NET7_0_OR_GREATER - public PhraseSuggestOption() - { - } -#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 PhraseSuggestOption() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PhraseSuggestOption(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,14 +45,6 @@ internal PhraseSuggestOption(Elastic.Clients.Elasticsearch.Serialization.JsonCon public bool? CollateMatch { get; set; } public string? Highlighted { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Score { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Text { get; set; } + public required double Score { get; set; } + public required string Text { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs index 64fcab2544a..6efb213c378 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs @@ -31,17 +31,11 @@ public PhraseSuggester(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public PhraseSuggester() - { - } -#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 PhraseSuggester() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PhraseSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,11 +78,7 @@ internal PhraseSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Needs to be set globally or per suggestion. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public bool? ForceUnigrams { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PointInTimeReference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PointInTimeReference.g.cs index efc7bab3b95..9aa201b3600 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PointInTimeReference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PointInTimeReference.g.cs @@ -31,28 +31,18 @@ public PointInTimeReference(string id) { Id = id; } -#if NET7_0_OR_GREATER - public PointInTimeReference() - { - } -#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 PointInTimeReference() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PointInTimeReference(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Profile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Profile.g.cs index 50f5257d028..cda873e9d09 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Profile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Profile.g.cs @@ -31,26 +31,16 @@ public Profile(System.Collections.Generic.IReadOnlyCollection Shards { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryBreakdown.g.cs index 77ce8e77ef6..87b2482b704 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryBreakdown.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryBreakdown.g.cs @@ -50,121 +50,35 @@ public QueryBreakdown(long advance, long advanceCount, long buildScorer, long bu ShallowAdvance = shallowAdvance; ShallowAdvanceCount = shallowAdvanceCount; } -#if NET7_0_OR_GREATER - public QueryBreakdown() - { - } -#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 QueryBreakdown() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryBreakdown(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Advance { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long AdvanceCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildScorer { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildScorerCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ComputeMaxScore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ComputeMaxScoreCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CountWeight { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CountWeightCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CreateWeight { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CreateWeightCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Match { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MatchCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NextDoc { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NextDocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Score { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ScoreCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SetMinCompetitiveScore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SetMinCompetitiveScoreCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ShallowAdvance { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ShallowAdvanceCount { get; set; } + public required long Advance { get; set; } + public required long AdvanceCount { get; set; } + public required long BuildScorer { get; set; } + public required long BuildScorerCount { get; set; } + public required long ComputeMaxScore { get; set; } + public required long ComputeMaxScoreCount { get; set; } + public required long CountWeight { get; set; } + public required long CountWeightCount { get; set; } + public required long CreateWeight { get; set; } + public required long CreateWeightCount { get; set; } + public required long Match { get; set; } + public required long MatchCount { get; set; } + public required long NextDoc { get; set; } + public required long NextDocCount { get; set; } + public required long Score { get; set; } + public required long ScoreCount { get; set; } + public required long SetMinCompetitiveScore { get; set; } + public required long SetMinCompetitiveScoreCount { get; set; } + public required long ShallowAdvance { get; set; } + public required long ShallowAdvanceCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryProfile.g.cs index 0328aea6b9a..5899d317b85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryProfile.g.cs @@ -34,42 +34,20 @@ public QueryProfile(Elastic.Clients.Elasticsearch.Core.Search.QueryBreakdown bre TimeInNanos = timeInNanos; Type = type; } -#if NET7_0_OR_GREATER - public QueryProfile() - { - } -#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 QueryProfile() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryProfile(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.QueryBreakdown Breakdown { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.QueryBreakdown Breakdown { get; set; } public System.Collections.Generic.IReadOnlyCollection? Children { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Description { get; set; } + public required System.TimeSpan TimeInNanos { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RegexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RegexOptions.g.cs index d441c43551f..f4338e3528f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RegexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RegexOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.RegexOptionsConverter))] public sealed partial class RegexOptions { -#if NET7_0_OR_GREATER public RegexOptions() { } -#endif -#if !NET7_0_OR_GREATER - public RegexOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RegexOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Rescore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Rescore.g.cs index 5cce0766633..57027c9531c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Rescore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Rescore.g.cs @@ -28,16 +28,11 @@ public sealed partial class Rescore { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Rescore() - { - } -#endif -#if !NET7_0_OR_GREATER + public Rescore() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Rescore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RescoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RescoreQuery.g.cs index abd45311829..0ec67333330 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RescoreQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RescoreQuery.g.cs @@ -31,17 +31,11 @@ public RescoreQuery(Elastic.Clients.Elasticsearch.QueryDsl.Query query) { Query = query; } -#if NET7_0_OR_GREATER - public RescoreQuery() - { - } -#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 RescoreQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RescoreQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal RescoreQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// This query is only run on the Top-K results returned by the query and post_filter phases. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ScriptRescore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ScriptRescore.g.cs index 2fe98d57630..a5402159894 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ScriptRescore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ScriptRescore.g.cs @@ -31,28 +31,18 @@ public ScriptRescore(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public ScriptRescore() - { - } -#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 ScriptRescore() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptRescore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } } public readonly partial struct ScriptRescoreDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SearchProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SearchProfile.g.cs index 6a95c1f252d..d1daf68633a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SearchProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SearchProfile.g.cs @@ -33,36 +33,18 @@ public SearchProfile(System.Collections.Generic.IReadOnlyCollection Collector { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Query { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RewriteTime { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Collector { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Query { get; set; } + public required long RewriteTime { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs index 99b18da604d..0acfe31b683 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs @@ -37,58 +37,24 @@ public ShardProfile(System.Collections.Generic.IReadOnlyCollection Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Cluster { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Aggregations { get; set; } + public required string Cluster { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.DfsProfile? Dfs { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.FetchProfile? Fetch { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Searches { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int ShardId { get; set; } + public required string Id { get; set; } + public required string Index { get; set; } + public required string NodeId { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Searches { get; set; } + public required int ShardId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SmoothingModel.g.cs index 1f793fc1049..fcaa370a595 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SmoothingModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SmoothingModel.g.cs @@ -28,16 +28,11 @@ public sealed partial class SmoothingModel { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public SmoothingModel() - { - } -#endif -#if !NET7_0_OR_GREATER + public SmoothingModel() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SmoothingModel(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SourceFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SourceFilter.g.cs index a9d982a9b14..b97866bb50c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SourceFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SourceFilter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.SourceFilterConverter))] public sealed partial class SourceFilter { -#if NET7_0_OR_GREATER public SourceFilter() { } -#endif -#if !NET7_0_OR_GREATER - public SourceFilter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SourceFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs index 4398e37a9e3..a17423ae75d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs @@ -31,17 +31,11 @@ public StupidBackoffSmoothingModel(double discount) { Discount = discount; } -#if NET7_0_OR_GREATER - public StupidBackoffSmoothingModel() - { - } -#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 StupidBackoffSmoothingModel() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StupidBackoffSmoothingModel(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal StupidBackoffSmoothingModel(Elastic.Clients.Elasticsearch.Serialization /// A constant factor that the lower order n-gram model is discounted by. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Discount { get; set; } + public required double Discount { get; set; } } public readonly partial struct StupidBackoffSmoothingModelDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SuggestFuzziness.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SuggestFuzziness.g.cs index f2f3d290bb3..f6d3a46bd6d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SuggestFuzziness.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SuggestFuzziness.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.SuggestFuzzinessConverter))] public sealed partial class SuggestFuzziness { -#if NET7_0_OR_GREATER public SuggestFuzziness() { } -#endif -#if !NET7_0_OR_GREATER - public SuggestFuzziness() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SuggestFuzziness(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Suggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Suggester.g.cs index e07c70c8e78..2daec4726e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Suggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Suggester.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.SuggesterConverter))] public sealed partial class Suggester { -#if NET7_0_OR_GREATER public Suggester() { } -#endif -#if !NET7_0_OR_GREATER - public Suggester() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Suggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggest.g.cs index edd0f74169c..01c3281e971 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggest.g.cs @@ -34,43 +34,21 @@ public TermSuggest(int length, int offset, System.Collections.Generic.ICollectio Options = options; Text = text; } -#if NET7_0_OR_GREATER - public TermSuggest() - { - } -#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 TermSuggest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermSuggest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Length { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Offset { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Options { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Text { get; set; } + public required int Length { get; set; } + public required int Offset { get; set; } + public required System.Collections.Generic.ICollection Options { get; set; } + public required string Text { get; set; } string Elastic.Clients.Elasticsearch.Core.Search.ISuggest.Type => "term"; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggestOption.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggestOption.g.cs index 570c2593f8a..21e07286cb1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggestOption.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggestOption.g.cs @@ -33,17 +33,11 @@ public TermSuggestOption(long freq, double score, string text) Score = score; Text = text; } -#if NET7_0_OR_GREATER - public TermSuggestOption() - { - } -#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 TermSuggestOption() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermSuggestOption(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,20 +45,8 @@ internal TermSuggestOption(Elastic.Clients.Elasticsearch.Serialization.JsonConst } public bool? CollateMatch { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Freq { get; set; } + public required long Freq { get; set; } public string? Highlighted { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Score { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Text { get; set; } + public required double Score { get; set; } + public required string Text { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs index 2e173807c45..9a6386bb90c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs @@ -31,17 +31,11 @@ public TermSuggester(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public TermSuggester() - { - } -#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 TermSuggester() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal TermSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Needs to be set globally or per suggestion. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public bool? LowercaseTerms { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TotalHits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TotalHits.g.cs index 4c53d35dea1..0fbb9688cbf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TotalHits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TotalHits.g.cs @@ -32,31 +32,17 @@ public TotalHits(Elastic.Clients.Elasticsearch.Core.Search.TotalHitsRelation rel Relation = relation; Value = value; } -#if NET7_0_OR_GREATER - public TotalHits() - { - } -#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 TotalHits() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TotalHits(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Search.TotalHitsRelation Relation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Value { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Search.TotalHitsRelation Relation { get; set; } + public required long Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/SearchShardsNodeAttributes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/SearchShardsNodeAttributes.g.cs index 5376ada340d..3b2480fa91d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/SearchShardsNodeAttributes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/SearchShardsNodeAttributes.g.cs @@ -39,17 +39,11 @@ public SearchShardsNodeAttributes(System.Collections.Generic.IReadOnlyDictionary TransportAddress = transportAddress; Version = version; } -#if NET7_0_OR_GREATER - public SearchShardsNodeAttributes() - { - } -#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 SearchShardsNodeAttributes() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchShardsNodeAttributes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,67 +55,31 @@ internal SearchShardsNodeAttributes(Elastic.Clients.Elasticsearch.Serialization. /// Lists node attributes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } /// /// /// The ephemeral ID of the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string EphemeralId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ExternalId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MaxIndexVersion { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MinIndexVersion { get; set; } + public required string EphemeralId { get; set; } + public required string ExternalId { get; set; } + public required int MaxIndexVersion { get; set; } + public required int MinIndexVersion { get; set; } /// /// /// The human-readable identifier of the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } /// /// /// The host and port where transport HTTP connections are accepted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required string TransportAddress { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/ShardStoreIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/ShardStoreIndex.g.cs index ecd652ec3e1..9e783554516 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/ShardStoreIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/ShardStoreIndex.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.SearchShards; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.SearchShards.Json.ShardStoreIndexConverter))] public sealed partial class ShardStoreIndex { -#if NET7_0_OR_GREATER public ShardStoreIndex() { } -#endif -#if !NET7_0_OR_GREATER - public ShardStoreIndex() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardStoreIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs index 8be24c0247f..5635c63b3f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs @@ -33,36 +33,18 @@ public FieldStatistics(int docCount, long sumDocFreq, long sumTtf) SumDocFreq = sumDocFreq; SumTtf = sumTtf; } -#if NET7_0_OR_GREATER - public FieldStatistics() - { - } -#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 FieldStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SumDocFreq { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SumTtf { get; set; } + public required int DocCount { get; set; } + public required long SumDocFreq { get; set; } + public required long SumTtf { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs index e431573e7b6..3f09f522883 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Core.TermVectors; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.TermVectors.Json.FilterConverter))] public sealed partial class Filter { -#if NET7_0_OR_GREATER public Filter() { } -#endif -#if !NET7_0_OR_GREATER - public Filter() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Filter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Term.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Term.g.cs index 1c4cd1f5d21..8aeae74a029 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Term.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Term.g.cs @@ -31,17 +31,11 @@ public Term(int termFreq) { TermFreq = termFreq; } -#if NET7_0_OR_GREATER - public Term() - { - } -#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 Term() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Term(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,11 +44,7 @@ internal Term(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentine public int? DocFreq { get; set; } public double? Score { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int TermFreq { get; set; } + public required int TermFreq { get; set; } public System.Collections.Generic.IReadOnlyCollection? Tokens { get; set; } public int? Ttf { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/TermVector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/TermVector.g.cs index ee8f69ccd00..ef2af45d58d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/TermVector.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/TermVector.g.cs @@ -31,17 +31,11 @@ public TermVector(System.Collections.Generic.IReadOnlyDictionary Terms { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Terms { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Token.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Token.g.cs index 92de9c46a41..fd26e6b2117 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Token.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Token.g.cs @@ -31,17 +31,11 @@ public Token(int position) { Position = position; } -#if NET7_0_OR_GREATER - public Token() - { - } -#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 Token() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Token(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,10 +44,6 @@ internal Token(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentin public int? EndOffset { get; set; } public string? Payload { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Position { get; set; } + public required int Position { get; set; } public int? StartOffset { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs index 8b6630f5ab4..982891d4ee9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs @@ -36,52 +36,22 @@ public UpdateByQueryRethrottleNode(System.Collections.Generic.IReadOnlyDictionar Tasks = tasks; TransportAddress = transportAddress; } -#if NET7_0_OR_GREATER - public UpdateByQueryRethrottleNode() - { - } -#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 UpdateByQueryRethrottleNode() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdateByQueryRethrottleNode(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Host { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Ip { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required string Host { get; set; } + public required string Ip { get; set; } + public required string Name { get; set; } public System.Collections.Generic.IReadOnlyCollection? Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Tasks { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Tasks { get; set; } + public required string TransportAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowPattern.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowPattern.g.cs index 2d0249a7fb0..e27ab3bf45f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowPattern.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowPattern.g.cs @@ -32,31 +32,17 @@ public AutoFollowPattern(string name, Elastic.Clients.Elasticsearch.CrossCluster Name = name; Pattern = pattern; } -#if NET7_0_OR_GREATER - public AutoFollowPattern() - { - } -#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 AutoFollowPattern() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AutoFollowPattern(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.CrossClusterReplication.AutoFollowPatternSummary Pattern { get; set; } + public required string Name { get; set; } + public required Elastic.Clients.Elasticsearch.CrossClusterReplication.AutoFollowPatternSummary Pattern { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowPatternSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowPatternSummary.g.cs index ae0fc1e4824..a0b5f2d1350 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowPatternSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowPatternSummary.g.cs @@ -35,28 +35,18 @@ public AutoFollowPatternSummary(bool active, System.Collections.Generic.IReadOnl MaxOutstandingReadRequests = maxOutstandingReadRequests; RemoteCluster = remoteCluster; } -#if NET7_0_OR_GREATER - public AutoFollowPatternSummary() - { - } -#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 AutoFollowPatternSummary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AutoFollowPatternSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Active { get; set; } + public required bool Active { get; set; } /// /// @@ -70,42 +60,26 @@ internal AutoFollowPatternSummary(Elastic.Clients.Elasticsearch.Serialization.Js /// An array of simple index patterns that can be used to exclude indices from being auto-followed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection LeaderIndexExclusionPatterns { get; set; } + public required System.Collections.Generic.IReadOnlyCollection LeaderIndexExclusionPatterns { get; set; } /// /// /// An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection LeaderIndexPatterns { get; set; } + public required System.Collections.Generic.IReadOnlyCollection LeaderIndexPatterns { get; set; } /// /// /// The maximum number of outstanding reads requests from the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MaxOutstandingReadRequests { get; set; } + public required int MaxOutstandingReadRequests { get; set; } /// /// /// The remote cluster containing the leader indices to match against. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RemoteCluster { get; set; } + public required string RemoteCluster { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowStats.g.cs index 8335a909a9b..2741fc4a511 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowStats.g.cs @@ -35,28 +35,18 @@ public AutoFollowStats(System.Collections.Generic.IReadOnlyCollection AutoFollowedClusters { get; set; } + public required System.Collections.Generic.IReadOnlyCollection AutoFollowedClusters { get; set; } /// /// @@ -64,42 +54,26 @@ internal AutoFollowStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The causes of recent failures are captured in the logs of the elected master node and in the auto_follow_stats.recent_auto_follow_errors field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long NumberOfFailedFollowIndices { get; set; } + public required long NumberOfFailedFollowIndices { get; set; } /// /// /// The number of times that the auto-follow coordinator failed to retrieve the cluster state from a remote cluster registered in a collection of auto-follow patterns. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long NumberOfFailedRemoteClusterStateRequests { get; set; } + public required long NumberOfFailedRemoteClusterStateRequests { get; set; } /// /// /// The number of indices that the auto-follow coordinator successfully followed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long NumberOfSuccessfulFollowIndices { get; set; } + public required long NumberOfSuccessfulFollowIndices { get; set; } /// /// /// An array of objects representing failures by the auto-follow coordinator. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection RecentAutoFollowErrors { get; set; } + public required System.Collections.Generic.IReadOnlyCollection RecentAutoFollowErrors { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowedCluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowedCluster.g.cs index 3c5809187fb..7fe7ec181d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowedCluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowedCluster.g.cs @@ -33,36 +33,18 @@ public AutoFollowedCluster(string clusterName, long lastSeenMetadataVersion, Sys LastSeenMetadataVersion = lastSeenMetadataVersion; TimeSinceLastCheckMillis = timeSinceLastCheckMillis; } -#if NET7_0_OR_GREATER - public AutoFollowedCluster() - { - } -#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 AutoFollowedCluster() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AutoFollowedCluster(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string ClusterName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long LastSeenMetadataVersion { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeSinceLastCheckMillis { get; set; } + public required string ClusterName { get; set; } + public required long LastSeenMetadataVersion { get; set; } + public required System.TimeSpan TimeSinceLastCheckMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowIndexStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowIndexStats.g.cs index 2846af09e3d..c680549e5e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowIndexStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowIndexStats.g.cs @@ -32,17 +32,11 @@ public FollowIndexStats(string index, System.Collections.Generic.IReadOnlyCollec Index = index; Shards = shards; } -#if NET7_0_OR_GREATER - public FollowIndexStats() - { - } -#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 FollowIndexStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FollowIndexStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal FollowIndexStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The name of the follower index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// /// An array of shard-level following task statistics. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Shards { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowStats.g.cs index 6e396c5c844..0f0f1ed6b03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowStats.g.cs @@ -31,26 +31,16 @@ public FollowStats(System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndex.g.cs index fb28ff44160..7627aeb1c78 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndex.g.cs @@ -34,17 +34,11 @@ public FollowerIndex(string followerIndexValue, string leaderIndex, string remot RemoteCluster = remoteCluster; Status = status; } -#if NET7_0_OR_GREATER - public FollowerIndex() - { - } -#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 FollowerIndex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FollowerIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,22 +50,14 @@ internal FollowerIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The name of the follower index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string FollowerIndexValue { get; set; } + public required string FollowerIndexValue { get; set; } /// /// /// The name of the index in the leader cluster that is followed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string LeaderIndex { get; set; } + public required string LeaderIndex { get; set; } /// /// @@ -85,20 +71,12 @@ internal FollowerIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The remote cluster that contains the leader index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RemoteCluster { get; set; } + public required string RemoteCluster { get; set; } /// /// /// The status of the index following: active or paused. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowerIndexStatus Status { get; set; } + public required Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowerIndexStatus Status { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs index 501068a875f..a1f7cbc16df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.CrossClusterReplication.Json.FollowerIndexParametersConverter))] public sealed partial class FollowerIndexParameters { -#if NET7_0_OR_GREATER public FollowerIndexParameters() { } -#endif -#if !NET7_0_OR_GREATER - public FollowerIndexParameters() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FollowerIndexParameters(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ReadException.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ReadException.g.cs index 8c0120313c5..353bfa27fda 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ReadException.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ReadException.g.cs @@ -33,17 +33,11 @@ public ReadException(Elastic.Clients.Elasticsearch.ErrorCause exception, long fr FromSeqNo = fromSeqNo; Retries = retries; } -#if NET7_0_OR_GREATER - public ReadException() - { - } -#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 ReadException() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReadException(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal ReadException(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The exception that caused the read to fail. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ErrorCause Exception { get; set; } + public required Elastic.Clients.Elasticsearch.ErrorCause Exception { get; set; } /// /// /// The starting sequence number of the batch requested from the leader. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FromSeqNo { get; set; } + public required long FromSeqNo { get; set; } /// /// /// The number of times the batch has been retried. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Retries { get; set; } + public required int Retries { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ShardStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ShardStats.g.cs index 45fd73f1932..ac253229d3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ShardStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ShardStats.g.cs @@ -58,17 +58,11 @@ public ShardStats(long bytesRead, long failedReadRequests, long failedWriteReque WriteBufferOperationCount = writeBufferOperationCount; WriteBufferSizeInBytes = writeBufferSizeInBytes; } -#if NET7_0_OR_GREATER - public ShardStats() - { - } -#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 ShardStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -81,33 +75,21 @@ internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// This is only an estimate and does not account for compression if enabled. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long BytesRead { get; set; } + public required long BytesRead { get; set; } /// /// /// The number of failed reads. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FailedReadRequests { get; set; } + public required long FailedReadRequests { get; set; } /// /// /// The number of failed bulk write requests on the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FailedWriteRequests { get; set; } + public required long FailedWriteRequests { get; set; } public Elastic.Clients.Elasticsearch.ErrorCause? FatalException { get; set; } /// @@ -115,11 +97,7 @@ internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The index aliases version the follower is synced up to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FollowerAliasesVersion { get; set; } + public required long FollowerAliasesVersion { get; set; } /// /// @@ -127,198 +105,126 @@ internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The difference between the leader_global_checkpoint and the follower_global_checkpoint is an indication of how much the follower is lagging the leader. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FollowerGlobalCheckpoint { get; set; } + public required long FollowerGlobalCheckpoint { get; set; } /// /// /// The name of the follower index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string FollowerIndex { get; set; } + public required string FollowerIndex { get; set; } /// /// /// The mapping version the follower is synced up to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FollowerMappingVersion { get; set; } + public required long FollowerMappingVersion { get; set; } /// /// /// The current maximum sequence number on the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FollowerMaxSeqNo { get; set; } + public required long FollowerMaxSeqNo { get; set; } /// /// /// The index settings version the follower is synced up to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FollowerSettingsVersion { get; set; } + public required long FollowerSettingsVersion { get; set; } /// /// /// The starting sequence number of the last batch of operations requested from the leader. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long LastRequestedSeqNo { get; set; } + public required long LastRequestedSeqNo { get; set; } /// /// /// The current global checkpoint on the leader known to the follower task. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long LeaderGlobalCheckpoint { get; set; } + public required long LeaderGlobalCheckpoint { get; set; } /// /// /// The name of the index in the leader cluster being followed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string LeaderIndex { get; set; } + public required string LeaderIndex { get; set; } /// /// /// The current maximum sequence number on the leader known to the follower task. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long LeaderMaxSeqNo { get; set; } + public required long LeaderMaxSeqNo { get; set; } /// /// /// The total number of operations read from the leader. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long OperationsRead { get; set; } + public required long OperationsRead { get; set; } /// /// /// The number of operations written on the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long OperationsWritten { get; set; } + public required long OperationsWritten { get; set; } /// /// /// The number of active read requests from the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int OutstandingReadRequests { get; set; } + public required int OutstandingReadRequests { get; set; } /// /// /// The number of active bulk write requests on the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int OutstandingWriteRequests { get; set; } + public required int OutstandingWriteRequests { get; set; } /// /// /// An array of objects representing failed reads. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ReadExceptions { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ReadExceptions { get; set; } /// /// /// The remote cluster containing the leader index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RemoteCluster { get; set; } + public required string RemoteCluster { get; set; } /// /// /// The numerical shard ID, with values from 0 to one less than the number of replicas. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ShardId { get; set; } + public required int ShardId { get; set; } /// /// /// The number of successful fetches. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long SuccessfulReadRequests { get; set; } + public required long SuccessfulReadRequests { get; set; } /// /// /// The number of bulk write requests run on the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long SuccessfulWriteRequests { get; set; } + public required long SuccessfulWriteRequests { get; set; } public Elastic.Clients.Elasticsearch.Duration? TimeSinceLastRead { get; set; } /// @@ -327,11 +233,7 @@ internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// When the follower is caught up to the leader, this number will increase up to the configured read_poll_timeout at which point another read request will be sent to the leader. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeSinceLastReadMillis { get; set; } + public required System.TimeSpan TimeSinceLastReadMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalReadRemoteExecTime { get; set; } /// @@ -339,11 +241,7 @@ internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The total time reads spent running on the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalReadRemoteExecTimeMillis { get; set; } + public required System.TimeSpan TotalReadRemoteExecTimeMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalReadTime { get; set; } /// @@ -351,11 +249,7 @@ internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The total time reads were outstanding, measured from the time a read was sent to the leader to the time a reply was returned to the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalReadTimeMillis { get; set; } + public required System.TimeSpan TotalReadTimeMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalWriteTime { get; set; } /// @@ -363,31 +257,19 @@ internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The total time spent writing on the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalWriteTimeMillis { get; set; } + public required System.TimeSpan TotalWriteTimeMillis { get; set; } /// /// /// The number of write operations queued on the follower. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long WriteBufferOperationCount { get; set; } + public required long WriteBufferOperationCount { get; set; } /// /// /// The total number of bytes of operations currently queued for writing. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize WriteBufferSizeInBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize WriteBufferSizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs index 2ec33a5dde2..378d2875ace 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs @@ -34,41 +34,19 @@ public DanglingIndex(System.DateTimeOffset creationDateMillis, string indexName, IndexUuid = indexUuid; NodeIds = nodeIds; } -#if NET7_0_OR_GREATER - public DanglingIndex() - { - } -#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 DanglingIndex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DanglingIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset CreationDateMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IndexName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IndexUuid { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection NodeIds { get; set; } + public required System.DateTimeOffset CreationDateMillis { get; set; } + public required string IndexName { get; set; } + public required string IndexUuid { get; set; } + public required System.Collections.Generic.ICollection NodeIds { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DiversifyRetriever.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DiversifyRetriever.Converters.g.cs index d703e5e0b88..8a394d4509d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DiversifyRetriever.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DiversifyRetriever.Converters.g.cs @@ -31,6 +31,7 @@ public sealed partial class DiversifyRetrieverConverter : System.Text.Json.Seria private static readonly System.Text.Json.JsonEncodedText PropMinScore = System.Text.Json.JsonEncodedText.Encode("min_score"u8); private static readonly System.Text.Json.JsonEncodedText PropName = System.Text.Json.JsonEncodedText.Encode("_name"u8); private static readonly System.Text.Json.JsonEncodedText PropQueryVector = System.Text.Json.JsonEncodedText.Encode("query_vector"u8); + private static readonly System.Text.Json.JsonEncodedText PropQueryVectorBuilder = System.Text.Json.JsonEncodedText.Encode("query_vector_builder"u8); private static readonly System.Text.Json.JsonEncodedText PropRankWindowSize = System.Text.Json.JsonEncodedText.Encode("rank_window_size"u8); private static readonly System.Text.Json.JsonEncodedText PropRetriever = System.Text.Json.JsonEncodedText.Encode("retriever"u8); private static readonly System.Text.Json.JsonEncodedText PropSize = System.Text.Json.JsonEncodedText.Encode("size"u8); @@ -45,6 +46,7 @@ public override Elastic.Clients.Elasticsearch.DiversifyRetriever Read(ref System LocalJsonValue propMinScore = default; LocalJsonValue propName = default; LocalJsonValue?> propQueryVector = default; + LocalJsonValue propQueryVectorBuilder = default; LocalJsonValue propRankWindowSize = default; LocalJsonValue propRetriever = default; LocalJsonValue propSize = default; @@ -81,6 +83,11 @@ public override Elastic.Clients.Elasticsearch.DiversifyRetriever Read(ref System continue; } + if (propQueryVectorBuilder.TryReadProperty(ref reader, options, PropQueryVectorBuilder, null)) + { + continue; + } + if (propRankWindowSize.TryReadProperty(ref reader, options, PropRankWindowSize, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; @@ -119,6 +126,7 @@ public override Elastic.Clients.Elasticsearch.DiversifyRetriever Read(ref System MinScore = propMinScore.Value, Name = propName.Value, QueryVector = propQueryVector.Value, + QueryVectorBuilder = propQueryVectorBuilder.Value, RankWindowSize = propRankWindowSize.Value, Retriever = propRetriever.Value, Size = propSize.Value, @@ -135,6 +143,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropMinScore, value.MinScore, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, float? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropName, value.Name, null, null); writer.WriteProperty(options, PropQueryVector, value.QueryVector, 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, PropQueryVectorBuilder, value.QueryVectorBuilder, null, null); writer.WriteProperty(options, PropRankWindowSize, value.RankWindowSize, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropRetriever, value.Retriever, null, null); writer.WriteProperty(options, PropSize, value.Size, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DiversifyRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DiversifyRetriever.g.cs index 4f4d544bcb6..ed48a1042f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DiversifyRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DiversifyRetriever.g.cs @@ -33,17 +33,11 @@ public DiversifyRetriever(string field, Elastic.Clients.Elasticsearch.Retriever Retriever = retriever; Type = type; } -#if NET7_0_OR_GREATER - public DiversifyRetriever() - { - } -#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 DiversifyRetriever() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DiversifyRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal DiversifyRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The document field on which to diversify results on. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } + public required string Field { get; set; } /// /// @@ -96,6 +86,13 @@ internal DiversifyRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// public System.Collections.Generic.ICollection? QueryVector { get; set; } + /// + /// + /// a dense vector query vector builder to use instead of a static query_vector + /// + /// + public Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilder { get; set; } + /// /// /// The number of top documents from the nested retriever to consider for diversification. @@ -108,11 +105,7 @@ internal DiversifyRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The nested retriever whose results will be diversified. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + public required Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } /// /// @@ -126,11 +119,7 @@ internal DiversifyRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The diversification strategy to apply. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DiversifyRetrieverTypes Type { get; set; } + public required Elastic.Clients.Elasticsearch.DiversifyRetrieverTypes Type { get; set; } } public readonly partial struct DiversifyRetrieverDescriptor @@ -257,6 +246,28 @@ public Elastic.Clients.Elasticsearch.DiversifyRetrieverDescriptor Que return this; } + /// + /// + /// a dense vector query vector builder to use instead of a static query_vector + /// + /// + public Elastic.Clients.Elasticsearch.DiversifyRetrieverDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.QueryVectorBuilder? value) + { + Instance.QueryVectorBuilder = value; + return this; + } + + /// + /// + /// a dense vector query vector builder to use instead of a static query_vector + /// + /// + public Elastic.Clients.Elasticsearch.DiversifyRetrieverDescriptor QueryVectorBuilder(System.Action action) + { + Instance.QueryVectorBuilder = Elastic.Clients.Elasticsearch.QueryVectorBuilderDescriptor.Build(action); + return this; + } + /// /// /// The number of top documents from the nested retriever to consider for diversification. @@ -462,6 +473,28 @@ public Elastic.Clients.Elasticsearch.DiversifyRetrieverDescriptor QueryVector(pa return this; } + /// + /// + /// a dense vector query vector builder to use instead of a static query_vector + /// + /// + public Elastic.Clients.Elasticsearch.DiversifyRetrieverDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.QueryVectorBuilder? value) + { + Instance.QueryVectorBuilder = value; + return this; + } + + /// + /// + /// a dense vector query vector builder to use instead of a static query_vector + /// + /// + public Elastic.Clients.Elasticsearch.DiversifyRetrieverDescriptor QueryVectorBuilder(System.Action action) + { + Instance.QueryVectorBuilder = Elastic.Clients.Elasticsearch.QueryVectorBuilderDescriptor.Build(action); + return this; + } + /// /// /// The number of top documents from the nested retriever to consider for diversification. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DocStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DocStats.g.cs index 68fe8a1a3dc..4a3595539ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DocStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DocStats.g.cs @@ -32,17 +32,11 @@ public DocStats(long count, long totalSizeInBytes) Count = count; TotalSizeInBytes = totalSizeInBytes; } -#if NET7_0_OR_GREATER - public DocStats() - { - } -#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 DocStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DocStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal DocStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// This number is based on documents in Lucene segments and may include documents from nested fields. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } /// /// @@ -83,9 +73,5 @@ internal DocStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// This value may be more reliable than store_stats.size_in_bytes in estimating the index size. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeInBytes { get; set; } + public required long TotalSizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionInfo.g.cs index 21a69b928f4..a76c875ae31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionInfo.g.cs @@ -39,17 +39,11 @@ public ElasticsearchVersionInfo(System.DateTimeOffset buildDate, string buildFla MinimumWireCompatibilityVersion = minimumWireCompatibilityVersion; Number = number; } -#if NET7_0_OR_GREATER - public ElasticsearchVersionInfo() - { - } -#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 ElasticsearchVersionInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ElasticsearchVersionInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,44 +55,28 @@ internal ElasticsearchVersionInfo(Elastic.Clients.Elasticsearch.Serialization.Js /// The Elasticsearch Git commit's date. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset BuildDate { get; set; } + public required System.DateTimeOffset BuildDate { get; set; } /// /// /// The build flavor. For example, default. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string BuildFlavor { get; set; } + public required string BuildFlavor { get; set; } /// /// /// The Elasticsearch Git commit's SHA hash. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string BuildHash { get; set; } + public required string BuildHash { get; set; } /// /// /// Indicates whether the Elasticsearch build was a snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool BuildSnapshot { get; set; } + public required bool BuildSnapshot { get; set; } /// /// @@ -106,33 +84,21 @@ internal ElasticsearchVersionInfo(Elastic.Clients.Elasticsearch.Serialization.Js /// For example, docker, rpm, or tar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string BuildType { get; set; } + public required string BuildType { get; set; } /// /// /// The version number of Elasticsearch's underlying Lucene software. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string LuceneVersion { get; set; } + public required string LuceneVersion { get; set; } /// /// /// The minimum index version with which the responding node can read from disk. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string MinimumIndexCompatibilityVersion { get; set; } + public required string MinimumIndexCompatibilityVersion { get; set; } /// /// @@ -140,11 +106,7 @@ internal ElasticsearchVersionInfo(Elastic.Clients.Elasticsearch.Serialization.Js /// Also the minimum version from which you can perform a rolling upgrade. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string MinimumWireCompatibilityVersion { get; set; } + public required string MinimumWireCompatibilityVersion { get; set; } /// /// @@ -155,9 +117,5 @@ internal ElasticsearchVersionInfo(Elastic.Clients.Elasticsearch.Serialization.Js /// Serverless environments are versionless and automatically upgraded, so this value can be safely ignored. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Number { get; set; } + public required string Number { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionMinInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionMinInfo.g.cs index df05295a901..eb7860dcf01 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionMinInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionMinInfo.g.cs @@ -39,41 +39,19 @@ public ElasticsearchVersionMinInfo(string buildFlavor, string minimumIndexCompat MinimumWireCompatibilityVersion = minimumWireCompatibilityVersion; Number = number; } -#if NET7_0_OR_GREATER - public ElasticsearchVersionMinInfo() - { - } -#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 ElasticsearchVersionMinInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ElasticsearchVersionMinInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string BuildFlavor { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string MinimumIndexCompatibilityVersion { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string MinimumWireCompatibilityVersion { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Number { get; set; } + public required string BuildFlavor { get; set; } + public required string MinimumIndexCompatibilityVersion { get; set; } + public required string MinimumWireCompatibilityVersion { get; set; } + public required string Number { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/EmptyObject.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/EmptyObject.g.cs index 905ead0e933..532aadb4bc9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/EmptyObject.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/EmptyObject.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.EmptyObjectConverter))] public sealed partial class EmptyObject { -#if NET7_0_OR_GREATER public EmptyObject() { } -#endif -#if !NET7_0_OR_GREATER - public EmptyObject() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EmptyObject(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs index 6df90faaf1d..4315098aecd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs @@ -38,61 +38,23 @@ public CacheStats(int count, int evictions, int hits, System.TimeSpan hitsTimeIn NodeId = nodeId; SizeInBytes = sizeInBytes; } -#if NET7_0_OR_GREATER - public CacheStats() - { - } -#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 CacheStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CacheStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Evictions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Hits { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan HitsTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Misses { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan MissesTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } + public required int Count { get; set; } + public required int Evictions { get; set; } + public required int Hits { get; set; } + public required System.TimeSpan HitsTimeInMillis { get; set; } + public required int Misses { get; set; } + public required System.TimeSpan MissesTimeInMillis { get; set; } + public required string NodeId { get; set; } + public required long SizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs index 535fee59f80..b54660c617e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs @@ -35,46 +35,20 @@ public CoordinatorStats(long executedSearchesTotal, string nodeId, int queueSize RemoteRequestsCurrent = remoteRequestsCurrent; RemoteRequestsTotal = remoteRequestsTotal; } -#if NET7_0_OR_GREATER - public CoordinatorStats() - { - } -#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 CoordinatorStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CoordinatorStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long ExecutedSearchesTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int QueueSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int RemoteRequestsCurrent { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RemoteRequestsTotal { get; set; } + public required long ExecutedSearchesTotal { get; set; } + public required string NodeId { get; set; } + public required int QueueSize { get; set; } + public required int RemoteRequestsCurrent { get; set; } + public required long RemoteRequestsTotal { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichPolicy.g.cs index df46164c9df..2eac258d73d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichPolicy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichPolicy.g.cs @@ -33,17 +33,11 @@ public EnrichPolicy(Elastic.Clients.Elasticsearch.Fields enrichFields, Elastic.C Indices = indices; MatchField = matchField; } -#if NET7_0_OR_GREATER - public EnrichPolicy() - { - } -#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 EnrichPolicy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EnrichPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,21 +45,9 @@ internal EnrichPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo } public string? ElasticsearchVersion { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields EnrichFields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field MatchField { get; set; } + public required Elastic.Clients.Elasticsearch.Fields EnrichFields { get; set; } + public required Elastic.Clients.Elasticsearch.Indices Indices { get; set; } + public required Elastic.Clients.Elasticsearch.Field MatchField { get; set; } public Elastic.Clients.Elasticsearch.Name? Name { get; set; } public Elastic.Clients.Elasticsearch.QueryDsl.Query? Query { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichSummary.g.cs index c9c464846d7..d0a75bcd7a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichSummary.g.cs @@ -31,26 +31,16 @@ public EnrichSummary(System.Collections.Generic.KeyValuePair Config { get; set; } + public required System.Collections.Generic.KeyValuePair Config { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs index 0d0b74c0541..741f241a657 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs @@ -31,27 +31,17 @@ public ExecuteEnrichPolicyStatus(Elastic.Clients.Elasticsearch.Enrich.EnrichPoli { Phase = phase; } -#if NET7_0_OR_GREATER - public ExecuteEnrichPolicyStatus() - { - } -#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 ExecuteEnrichPolicyStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExecuteEnrichPolicyStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Enrich.EnrichPolicyPhase Phase { get; set; } + public required Elastic.Clients.Elasticsearch.Enrich.EnrichPolicyPhase Phase { get; set; } public string? Step { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs index 0a58ef5a74a..9a43c87a769 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs @@ -32,31 +32,17 @@ public ExecutingPolicy(string name, Elastic.Clients.Elasticsearch.Tasks.TaskInfo Name = name; Task = task; } -#if NET7_0_OR_GREATER - public ExecutingPolicy() - { - } -#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 ExecutingPolicy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExecutingPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Tasks.TaskInfo Task { get; set; } + public required string Name { get; set; } + public required Elastic.Clients.Elasticsearch.Tasks.TaskInfo Task { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/EqlHits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/EqlHits.g.cs index 3213e29905b..7007ede6b68 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/EqlHits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/EqlHits.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Eql; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Eql.Json.EqlHitsConverterFactory))] public sealed partial class EqlHits { -#if NET7_0_OR_GREATER public EqlHits() { } -#endif -#if !NET7_0_OR_GREATER - public EqlHits() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlHits(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/HitsEvent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/HitsEvent.g.cs index 6867b56aa0c..cbc31f4eddb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/HitsEvent.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/HitsEvent.g.cs @@ -33,17 +33,11 @@ public HitsEvent(string id, string index, TEvent source) Index = index; Source = source; } -#if NET7_0_OR_GREATER - public HitsEvent() - { - } -#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 HitsEvent() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HitsEvent(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,22 +51,14 @@ internal HitsEvent(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// Unique identifier for the event. This ID is only unique within the index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// Name of the index containing the event. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// @@ -86,9 +72,5 @@ internal HitsEvent(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// Original JSON body passed for the event at index time. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - TEvent Source { get; set; } + public required TEvent Source { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/HitsSequence.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/HitsSequence.g.cs index ae501a0392f..d69a87bc251 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/HitsSequence.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Eql/HitsSequence.g.cs @@ -31,17 +31,11 @@ public HitsSequence(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection> Events { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> Events { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorCause.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorCause.g.cs index 98f50d18c4d..4e4f70ba9be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorCause.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorCause.g.cs @@ -37,17 +37,11 @@ public ErrorCause(string type) { Type = type; } -#if NET7_0_OR_GREATER - public ErrorCause() - { - } -#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 ErrorCause() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ErrorCause(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -84,9 +78,5 @@ internal ErrorCause(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The type of error /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorResponseBase.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorResponseBase.g.cs index e32b886bf96..1940e525fbd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorResponseBase.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorResponseBase.g.cs @@ -37,31 +37,17 @@ public ErrorResponseBase(Elastic.Clients.Elasticsearch.ErrorCause error, int sta Error = error; Status = status; } -#if NET7_0_OR_GREATER - public ErrorResponseBase() - { - } -#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 ErrorResponseBase() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ErrorResponseBase(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ErrorCause Error { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Status { get; set; } + public required Elastic.Clients.Elasticsearch.ErrorCause Error { get; set; } + public required int Status { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Esql/EsqlQueryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Esql/EsqlQueryInfo.g.cs index d5a20db5c54..55fbc6393c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Esql/EsqlQueryInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Esql/EsqlQueryInfo.g.cs @@ -35,46 +35,20 @@ public EsqlQueryInfo(long id, string node, string query, long runningTimeNanos, RunningTimeNanos = runningTimeNanos; StartTimeMillis = startTimeMillis; } -#if NET7_0_OR_GREATER - public EsqlQueryInfo() - { - } -#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 EsqlQueryInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EsqlQueryInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RunningTimeNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long StartTimeMillis { get; set; } + public required long Id { get; set; } + public required string Node { get; set; } + public required string Query { get; set; } + public required long RunningTimeNanos { get; set; } + public required long StartTimeMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Features/Feature.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Features/Feature.g.cs index 0d43d06d497..484d17c3131 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Features/Feature.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Features/Feature.g.cs @@ -32,31 +32,17 @@ public Feature(string description, string name) Description = description; Name = name; } -#if NET7_0_OR_GREATER - public Feature() - { - } -#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 Feature() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Feature(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Description { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldMemoryUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldMemoryUsage.g.cs index 69f57fc0fb9..457a3a9073f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldMemoryUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldMemoryUsage.g.cs @@ -31,17 +31,11 @@ public FieldMemoryUsage(long memorySizeInBytes) { MemorySizeInBytes = memorySizeInBytes; } -#if NET7_0_OR_GREATER - public FieldMemoryUsage() - { - } -#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 FieldMemoryUsage() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldMemoryUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal FieldMemoryUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstr } public Elastic.Clients.Elasticsearch.ByteSize? MemorySize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MemorySizeInBytes { get; set; } + public required long MemorySizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldSizeUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldSizeUsage.g.cs index c9fb7e8fb83..f5d5366e589 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldSizeUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldSizeUsage.g.cs @@ -31,17 +31,11 @@ public FieldSizeUsage(long sizeInBytes) { SizeInBytes = sizeInBytes; } -#if NET7_0_OR_GREATER - public FieldSizeUsage() - { - } -#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 FieldSizeUsage() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldSizeUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal FieldSizeUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc } public Elastic.Clients.Elasticsearch.ByteSize? Size { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } + public required long SizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldSort.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldSort.g.cs index 35472c6b409..c3e40352802 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FieldSort.g.cs @@ -31,22 +31,18 @@ public FieldSort(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER + public FieldSort() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? Format { get; set; } public object? Missing { get; set; } public Elastic.Clients.Elasticsearch.SortMode? Mode { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FielddataStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FielddataStats.g.cs index 708676744d7..ca2bc68b420 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FielddataStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FielddataStats.g.cs @@ -32,17 +32,11 @@ public FielddataStats(Elastic.Clients.Elasticsearch.GlobalOrdinalsStats globalOr GlobalOrdinals = globalOrdinals; MemorySizeInBytes = memorySizeInBytes; } -#if NET7_0_OR_GREATER - public FielddataStats() - { - } -#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 FielddataStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FielddataStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,15 +45,7 @@ internal FielddataStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc public long? Evictions { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Fields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GlobalOrdinalsStats GlobalOrdinals { get; set; } + public required Elastic.Clients.Elasticsearch.GlobalOrdinalsStats GlobalOrdinals { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? MemorySize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MemorySizeInBytes { get; set; } + public required long MemorySizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FlushStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FlushStats.g.cs index 8a68f7ac06f..ced255a7b75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FlushStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FlushStats.g.cs @@ -33,37 +33,19 @@ public FlushStats(long periodic, long total, System.TimeSpan totalTimeInMillis) Total = total; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public FlushStats() - { - } -#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 FlushStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FlushStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Periodic { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Periodic { get; set; } + public required long Total { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoDistanceSort.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoDistanceSort.g.cs index 7142acf3d28..b3810a5fe9c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoDistanceSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoDistanceSort.g.cs @@ -32,17 +32,11 @@ public GeoDistanceSort(Elastic.Clients.Elasticsearch.Field field, System.Collect Field = field; Location = location; } -#if NET7_0_OR_GREATER - public GeoDistanceSort() - { - } -#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 GeoDistanceSort() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoDistanceSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,17 +44,9 @@ internal GeoDistanceSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstru } public Elastic.Clients.Elasticsearch.GeoDistanceType? DistanceType { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public bool? IgnoreUnmapped { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Location { get; set; } + public required System.Collections.Generic.ICollection Location { get; set; } public Elastic.Clients.Elasticsearch.SortMode? Mode { get; set; } public Elastic.Clients.Elasticsearch.NestedSortValue? Nested { get; set; } public Elastic.Clients.Elasticsearch.SortOrder? Order { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoHashLocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoHashLocation.g.cs index c108bc33b6a..7426c21449f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoHashLocation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoHashLocation.g.cs @@ -31,28 +31,18 @@ public GeoHashLocation(string geohash) { Geohash = geohash; } -#if NET7_0_OR_GREATER - public GeoHashLocation() - { - } -#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 GeoHashLocation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoHashLocation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Geohash { get; set; } + public required string Geohash { get; set; } } public readonly partial struct GeoHashLocationDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoLine.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoLine.g.cs index 05970126f10..e8e0391ec26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoLine.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GeoLine.g.cs @@ -37,17 +37,11 @@ public GeoLine(System.Collections.Generic.IReadOnlyCollection[lon, lat] coordinates /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection> Coordinates { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> Coordinates { get; set; } /// /// /// Always "LineString" /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GetStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GetStats.g.cs index 83a17cf84e3..37148af447b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GetStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GetStats.g.cs @@ -37,59 +37,25 @@ public GetStats(long current, System.TimeSpan existsTimeInMillis, long existsTot TimeInMillis = timeInMillis; Total = total; } -#if NET7_0_OR_GREATER - public GetStats() - { - } -#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 GetStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Current { get; set; } + public required long Current { get; set; } public Elastic.Clients.Elasticsearch.Duration? ExistsTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ExistsTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ExistsTotal { get; set; } + public required System.TimeSpan ExistsTimeInMillis { get; set; } + public required long ExistsTotal { get; set; } public Elastic.Clients.Elasticsearch.Duration? MissingTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan MissingTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MissingTotal { get; set; } + public required System.TimeSpan MissingTimeInMillis { get; set; } + public required long MissingTotal { get; set; } public Elastic.Clients.Elasticsearch.Duration? Time { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required System.TimeSpan TimeInMillis { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GlobalOrdinalFieldStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GlobalOrdinalFieldStats.g.cs index 9247d628bd6..9ffb89bce65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GlobalOrdinalFieldStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GlobalOrdinalFieldStats.g.cs @@ -32,17 +32,11 @@ public GlobalOrdinalFieldStats(long buildTimeInMillis, long shardMaxValueCount) BuildTimeInMillis = buildTimeInMillis; ShardMaxValueCount = shardMaxValueCount; } -#if NET7_0_OR_GREATER - public GlobalOrdinalFieldStats() - { - } -#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 GlobalOrdinalFieldStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GlobalOrdinalFieldStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,14 +44,6 @@ internal GlobalOrdinalFieldStats(Elastic.Clients.Elasticsearch.Serialization.Jso } public string? BuildTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ShardMaxValueCount { get; set; } + public required long BuildTimeInMillis { get; set; } + public required long ShardMaxValueCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GlobalOrdinalsStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GlobalOrdinalsStats.g.cs index ccf111e8cfe..55214ad0b92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/GlobalOrdinalsStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/GlobalOrdinalsStats.g.cs @@ -31,17 +31,11 @@ public GlobalOrdinalsStats(long buildTimeInMillis) { BuildTimeInMillis = buildTimeInMillis; } -#if NET7_0_OR_GREATER - public GlobalOrdinalsStats() - { - } -#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 GlobalOrdinalsStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GlobalOrdinalsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,10 +43,6 @@ internal GlobalOrdinalsStats(Elastic.Clients.Elasticsearch.Serialization.JsonCon } public string? BuildTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BuildTimeInMillis { get; set; } + public required long BuildTimeInMillis { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Fields { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs index b1e5ff06dc0..19327df1d71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs @@ -34,41 +34,19 @@ public Connection(long docCount, long source, long target, double weight) Target = target; Weight = weight; } -#if NET7_0_OR_GREATER - public Connection() - { - } -#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 Connection() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Connection(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Source { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Target { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Weight { get; set; } + public required long DocCount { get; set; } + public required long Source { get; set; } + public required long Target { get; set; } + public required double Weight { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs index 0e13d758e5d..9438718fb14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs @@ -31,17 +31,11 @@ public ExploreControls(bool useSignificance) { UseSignificance = useSignificance; } -#if NET7_0_OR_GREATER - public ExploreControls() - { - } -#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 ExploreControls() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExploreControls(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +74,7 @@ internal ExploreControls(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Filters associated terms so only those that are significantly associated with your query are included. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool UseSignificance { get; set; } + public required bool UseSignificance { get; set; } } public readonly partial struct ExploreControlsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs index dcde0554dec..00b359f7ef3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs @@ -31,17 +31,11 @@ public Hop(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Vertices { get; set; } + public required System.Collections.Generic.ICollection Vertices { get; set; } } public readonly partial struct HopDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs index a5f4fc942db..bce28076cfe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs @@ -32,33 +32,19 @@ public SampleDiversity(Elastic.Clients.Elasticsearch.Field field, int maxDocsPer Field = field; MaxDocsPerValue = maxDocsPerValue; } -#if NET7_0_OR_GREATER - public SampleDiversity() - { - } -#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 SampleDiversity() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SampleDiversity(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MaxDocsPerValue { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required int MaxDocsPerValue { get; set; } } public readonly partial struct SampleDiversityDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs index ea4aebece39..642145bca11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs @@ -34,41 +34,19 @@ public Vertex(long depth, string field, string term, double weight) Term = term; Weight = weight; } -#if NET7_0_OR_GREATER - public Vertex() - { - } -#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 Vertex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Vertex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Depth { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Term { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Weight { get; set; } + public required long Depth { get; set; } + public required string Field { get; set; } + public required string Term { get; set; } + public required double Weight { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs index fa5beaf0066..a18ddafc897 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs @@ -31,17 +31,11 @@ public VertexDefinition(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public VertexDefinition() - { - } -#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 VertexDefinition() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VertexDefinition(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal VertexDefinition(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Identifies a field in the documents of interest. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs index aca434f5ed4..8401dec7b98 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs @@ -31,17 +31,11 @@ public VertexInclude(string term) { Term = term; } -#if NET7_0_OR_GREATER - public VertexInclude() - { - } -#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 VertexInclude() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VertexInclude(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal VertexInclude(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct } public double? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Term { get; set; } + public required string Term { get; set; } } public readonly partial struct VertexIncludeDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Actions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Actions.g.cs index e1a1030c132..a9ef8a73e31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Actions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Actions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.ActionsConverter))] public sealed partial class Actions { -#if NET7_0_OR_GREATER public Actions() { } -#endif -#if !NET7_0_OR_GREATER - public Actions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Actions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/AllocateAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/AllocateAction.g.cs index 06b645c8031..7934b48f40c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/AllocateAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/AllocateAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.AllocateActionConverter))] public sealed partial class AllocateAction { -#if NET7_0_OR_GREATER public AllocateAction() { } -#endif -#if !NET7_0_OR_GREATER - public AllocateAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AllocateAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/DeleteAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/DeleteAction.g.cs index d0d017a1ed8..6c049fa549f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/DeleteAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/DeleteAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.DeleteActionConverter))] public sealed partial class DeleteAction { -#if NET7_0_OR_GREATER public DeleteAction() { } -#endif -#if !NET7_0_OR_GREATER - public DeleteAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeleteAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/DownsampleAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/DownsampleAction.g.cs index 86b084cd1e6..b9521574f58 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/DownsampleAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/DownsampleAction.g.cs @@ -31,28 +31,18 @@ public DownsampleAction(string fixedInterval) { FixedInterval = fixedInterval; } -#if NET7_0_OR_GREATER - public DownsampleAction() - { - } -#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 DownsampleAction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DownsampleAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string FixedInterval { get; set; } + public required string FixedInterval { get; set; } public Elastic.Clients.Elasticsearch.Duration? WaitTimeout { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/ForceMergeAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/ForceMergeAction.g.cs index a00f40744e3..488066f8b0a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/ForceMergeAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/ForceMergeAction.g.cs @@ -31,17 +31,11 @@ public ForceMergeAction(int maxNumSegments) { MaxNumSegments = maxNumSegments; } -#if NET7_0_OR_GREATER - public ForceMergeAction() - { - } -#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 ForceMergeAction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ForceMergeAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal ForceMergeAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstr } public string? IndexCodec { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MaxNumSegments { get; set; } + public required int MaxNumSegments { get; set; } } public readonly partial struct ForceMergeActionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/IlmPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/IlmPolicy.g.cs index 0653e77e7b9..7c0b7398973 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/IlmPolicy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/IlmPolicy.g.cs @@ -31,17 +31,11 @@ public IlmPolicy(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Phases p { Phases = phases; } -#if NET7_0_OR_GREATER - public IlmPolicy() - { - } -#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 IlmPolicy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IlmPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal IlmPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// /// public System.Collections.Generic.IDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Phases Phases { get; set; } + public required Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Phases Phases { get; set; } } public readonly partial struct IlmPolicyDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Lifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Lifecycle.g.cs index 98568f42c3c..88e9ee0e2dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Lifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Lifecycle.g.cs @@ -33,36 +33,18 @@ public Lifecycle(System.DateTimeOffset modifiedDate, Elastic.Clients.Elasticsear Policy = policy; Version = version; } -#if NET7_0_OR_GREATER - public Lifecycle() - { - } -#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 Lifecycle() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Lifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ModifiedDate { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexLifecycleManagement.IlmPolicy Policy { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required System.DateTimeOffset ModifiedDate { get; set; } + public required Elastic.Clients.Elasticsearch.IndexLifecycleManagement.IlmPolicy Policy { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/MigrateAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/MigrateAction.g.cs index 8389d952fdc..ef52acce9d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/MigrateAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/MigrateAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.MigrateActionConverter))] public sealed partial class MigrateAction { -#if NET7_0_OR_GREATER public MigrateAction() { } -#endif -#if !NET7_0_OR_GREATER - public MigrateAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MigrateAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phase.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phase.g.cs index cc8513a21f9..97261e32c8c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phase.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phase.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.PhaseConverter))] public sealed partial class Phase { -#if NET7_0_OR_GREATER public Phase() { } -#endif -#if !NET7_0_OR_GREATER - public Phase() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Phase(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phases.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phases.g.cs index a3a67beca55..a32cf1ce6a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phases.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phases.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.PhasesConverter))] public sealed partial class Phases { -#if NET7_0_OR_GREATER public Phases() { } -#endif -#if !NET7_0_OR_GREATER - public Phases() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Phases(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/RolloverAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/RolloverAction.g.cs index 0ef2a6f0e2f..a8d6c5f27a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/RolloverAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/RolloverAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.RolloverActionConverter))] public sealed partial class RolloverAction { -#if NET7_0_OR_GREATER public RolloverAction() { } -#endif -#if !NET7_0_OR_GREATER - public RolloverAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RolloverAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/SearchableSnapshotAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/SearchableSnapshotAction.g.cs index 17350e158b1..014027b857b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/SearchableSnapshotAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/SearchableSnapshotAction.g.cs @@ -31,17 +31,11 @@ public SearchableSnapshotAction(string snapshotRepository) { SnapshotRepository = snapshotRepository; } -#if NET7_0_OR_GREATER - public SearchableSnapshotAction() - { - } -#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 SearchableSnapshotAction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchableSnapshotAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal SearchableSnapshotAction(Elastic.Clients.Elasticsearch.Serialization.Js } public bool? ForceMergeIndex { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string SnapshotRepository { get; set; } + public required string SnapshotRepository { get; set; } } public readonly partial struct SearchableSnapshotActionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/SetPriorityAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/SetPriorityAction.g.cs index dfb986da5a8..448db255679 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/SetPriorityAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/SetPriorityAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.SetPriorityActionConverter))] public sealed partial class SetPriorityAction { -#if NET7_0_OR_GREATER public SetPriorityAction() { } -#endif -#if !NET7_0_OR_GREATER - public SetPriorityAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SetPriorityAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/ShrinkAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/ShrinkAction.g.cs index 01c9ce90541..4c6d1d318f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/ShrinkAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/ShrinkAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Json.ShrinkActionConverter))] public sealed partial class ShrinkAction { -#if NET7_0_OR_GREATER public ShrinkAction() { } -#endif -#if !NET7_0_OR_GREATER - public ShrinkAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShrinkAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs index f309bb9a9e3..b255d2c972d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs @@ -31,17 +31,11 @@ public StepKey(string phase) { Phase = phase; } -#if NET7_0_OR_GREATER - public StepKey() - { - } -#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 StepKey() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StepKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal StepKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// /// public string? Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Phase { get; set; } + public required string Phase { get; set; } } public readonly partial struct StepKeyDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/WaitForSnapshotAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/WaitForSnapshotAction.g.cs index feefc2ce471..4b700770849 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/WaitForSnapshotAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/WaitForSnapshotAction.g.cs @@ -31,28 +31,18 @@ public WaitForSnapshotAction(string policy) { Policy = policy; } -#if NET7_0_OR_GREATER - public WaitForSnapshotAction() - { - } -#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 WaitForSnapshotAction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WaitForSnapshotAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Policy { get; set; } + public required string Policy { get; set; } } public readonly partial struct WaitForSnapshotActionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AddAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AddAction.g.cs index 07702857ac2..7964e6a6468 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AddAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AddAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.AddActionConverter))] public sealed partial class AddAction { -#if NET7_0_OR_GREATER public AddAction() { } -#endif -#if !NET7_0_OR_GREATER - public AddAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AddAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Alias.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Alias.g.cs index 2d4a74873e2..9bcd9a58f59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Alias.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Alias.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.AliasConverter))] public sealed partial class Alias { -#if NET7_0_OR_GREATER public Alias() { } -#endif -#if !NET7_0_OR_GREATER - public Alias() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Alias(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs index 8938ee7fcff..e3cfb63b66c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.AliasDefinitionConverter))] public sealed partial class AliasDefinition { -#if NET7_0_OR_GREATER public AliasDefinition() { } -#endif -#if !NET7_0_OR_GREATER - public AliasDefinition() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AliasDefinition(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs index 0855b7c8a83..dcf34d9cc30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs @@ -31,17 +31,11 @@ public AnalyzeDetail(bool customAnalyzer) { CustomAnalyzer = customAnalyzer; } -#if NET7_0_OR_GREATER - public AnalyzeDetail() - { - } -#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 AnalyzeDetail() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalyzeDetail(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,11 +44,7 @@ internal AnalyzeDetail(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct public Elastic.Clients.Elasticsearch.IndexManagement.AnalyzerDetail? Analyzer { get; set; } public System.Collections.Generic.IReadOnlyCollection? Charfilters { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool CustomAnalyzer { get; set; } + public required bool CustomAnalyzer { get; set; } public System.Collections.Generic.IReadOnlyCollection? Tokenfilters { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.TokenDetail? Tokenizer { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeToken.g.cs index 7a07be1f289..0e7e9cec979 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzeToken.g.cs @@ -35,47 +35,21 @@ public AnalyzeToken(long endOffset, long position, long startOffset, string toke Token = token; Type = type; } -#if NET7_0_OR_GREATER - public AnalyzeToken() - { - } -#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 AnalyzeToken() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalyzeToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long EndOffset { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Position { get; set; } + public required long EndOffset { get; set; } + public required long Position { get; set; } public long? PositionLength { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long StartOffset { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Token { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required long StartOffset { get; set; } + public required string Token { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs index 9437f98239b..271414bcc21 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs @@ -32,31 +32,17 @@ public AnalyzerDetail(string name, System.Collections.Generic.IReadOnlyCollectio Name = name; Tokens = tokens; } -#if NET7_0_OR_GREATER - public AnalyzerDetail() - { - } -#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 AnalyzerDetail() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalyzerDetail(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Tokens { get; set; } + public required string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Tokens { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CacheQueries.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CacheQueries.g.cs index 21e6d463cbd..0ea0368d043 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CacheQueries.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CacheQueries.g.cs @@ -31,28 +31,18 @@ public CacheQueries(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public CacheQueries() - { - } -#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 CacheQueries() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CacheQueries(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } } public readonly partial struct CacheQueriesDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CharFilterDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CharFilterDetail.g.cs index 6f198d9f234..cae51d16715 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CharFilterDetail.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CharFilterDetail.g.cs @@ -32,31 +32,17 @@ public CharFilterDetail(System.Collections.Generic.IReadOnlyCollection f FilteredText = filteredText; Name = name; } -#if NET7_0_OR_GREATER - public CharFilterDetail() - { - } -#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 CharFilterDetail() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CharFilterDetail(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection FilteredText { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection FilteredText { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CloseIndexResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CloseIndexResult.g.cs index 398d0ae36c2..0099041b750 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CloseIndexResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CloseIndexResult.g.cs @@ -31,27 +31,17 @@ public CloseIndexResult(bool closed) { Closed = closed; } -#if NET7_0_OR_GREATER - public CloseIndexResult() - { - } -#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 CloseIndexResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CloseIndexResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Closed { get; set; } + public required bool Closed { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CloseShardResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CloseShardResult.g.cs index 4f9267ce872..0a2429f4e48 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CloseShardResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CloseShardResult.g.cs @@ -31,26 +31,16 @@ public CloseShardResult(System.Collections.Generic.IReadOnlyCollection Failures { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Failures { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CreateFrom.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CreateFrom.g.cs index f2735d62852..aaca0a94476 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CreateFrom.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CreateFrom.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.CreateFromConverter))] public sealed partial class CreateFrom { -#if NET7_0_OR_GREATER public CreateFrom() { } -#endif -#if !NET7_0_OR_GREATER - public CreateFrom() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreateFrom(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs index b2a6882879e..4dda2b84c5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs @@ -41,17 +41,11 @@ public DataStream(int generation, bool hidden, System.Collections.Generic.IReadO Template = template; TimestampField = timestampField; } -#if NET7_0_OR_GREATER - public DataStream() - { - } -#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 DataStream() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -77,22 +71,14 @@ internal DataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Generation { get; set; } + public required int Generation { get; set; } /// /// /// If true, the data stream is hidden. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Hidden { get; set; } + public required bool Hidden { get; set; } /// /// @@ -117,11 +103,7 @@ internal DataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The last item in this array contains information about the stream’s current write index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } /// /// @@ -151,33 +133,21 @@ internal DataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Name of the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// /// Name of the lifecycle system that'll manage the next generation of the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ManagedBy NextGenerationManagedBy { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ManagedBy NextGenerationManagedBy { get; set; } /// /// /// Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool PreferIlm { get; set; } + public required bool PreferIlm { get; set; } /// /// @@ -191,11 +161,7 @@ internal DataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// If true, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool RolloverOnWrite { get; set; } + public required bool RolloverOnWrite { get; set; } /// /// @@ -203,11 +169,7 @@ internal DataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// template. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } /// /// @@ -215,11 +177,7 @@ internal DataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// This health status is based on the state of the primary and replica shards of the stream’s backing indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } + public required Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } /// /// @@ -234,20 +192,12 @@ internal DataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The template’s index pattern must match the name of this data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Template { get; set; } + public required string Template { get; set; } /// /// /// Information about the @timestamp field in the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.DataStreamTimestampField TimestampField { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.DataStreamTimestampField TimestampField { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamFailureStore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamFailureStore.g.cs index a8275bfad13..f20e5f86a8b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamFailureStore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamFailureStore.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamFailureStoreConverter))] public sealed partial class DataStreamFailureStore { -#if NET7_0_OR_GREATER public DataStreamFailureStore() { } -#endif -#if !NET7_0_OR_GREATER - public DataStreamFailureStore() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamFailureStore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamFailureStoreTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamFailureStoreTemplate.g.cs index 933cd89b8b2..b09821162b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamFailureStoreTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamFailureStoreTemplate.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamFailureStoreTemplateConverter))] public sealed partial class DataStreamFailureStoreTemplate { -#if NET7_0_OR_GREATER public DataStreamFailureStoreTemplate() { } -#endif -#if !NET7_0_OR_GREATER - public DataStreamFailureStoreTemplate() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamFailureStoreTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamIndex.g.cs index 73d81df3428..67e712c8f3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamIndex.g.cs @@ -32,17 +32,11 @@ public DataStreamIndex(string indexName, string indexUuid) IndexName = indexName; IndexUuid = indexUuid; } -#if NET7_0_OR_GREATER - public DataStreamIndex() - { - } -#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 DataStreamIndex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,22 +62,14 @@ internal DataStreamIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Name of the backing index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string IndexName { get; set; } + public required string IndexName { get; set; } /// /// /// Universally unique identifier (UUID) for the index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string IndexUuid { get; set; } + public required string IndexUuid { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs index c3105422d2b..ebb8f8b5439 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamLifecycleConverter))] public sealed partial class DataStreamLifecycle { -#if NET7_0_OR_GREATER public DataStreamLifecycle() { } -#endif -#if !NET7_0_OR_GREATER - public DataStreamLifecycle() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamLifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs index a0e40c1d5f4..3755318c80c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs @@ -32,17 +32,11 @@ public DataStreamLifecycleExplain(string index, bool managedByLifecycle) Index = index; ManagedByLifecycle = managedByLifecycle; } -#if NET7_0_OR_GREATER - public DataStreamLifecycleExplain() - { - } -#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 DataStreamLifecycleExplain() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamLifecycleExplain(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,18 +45,10 @@ internal DataStreamLifecycleExplain(Elastic.Clients.Elasticsearch.Serialization. public string? Error { get; set; } public Elastic.Clients.Elasticsearch.Duration? GenerationTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } public System.DateTimeOffset? IndexCreationDateMillis { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool ManagedByLifecycle { get; set; } + public required bool ManagedByLifecycle { get; set; } public System.DateTimeOffset? RolloverDateMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TimeSinceIndexCreation { get; set; } public Elastic.Clients.Elasticsearch.Duration? TimeSinceRollover { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs index fafd4b69cbc..498c2a82140 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamLifecycleRolloverConditionsConverter))] public sealed partial class DataStreamLifecycleRolloverConditions { -#if NET7_0_OR_GREATER public DataStreamLifecycleRolloverConditions() { } -#endif -#if !NET7_0_OR_GREATER - public DataStreamLifecycleRolloverConditions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamLifecycleRolloverConditions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs index e5a1a10c602..ad764963285 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs @@ -32,16 +32,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamLifecycleWithRolloverConverter))] public sealed partial class DataStreamLifecycleWithRollover { -#if NET7_0_OR_GREATER public DataStreamLifecycleWithRollover() { } -#endif -#if !NET7_0_OR_GREATER - public DataStreamLifecycleWithRollover() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamLifecycleWithRollover(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamMappings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamMappings.g.cs index ee0ab3de2c4..d6c9a206033 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamMappings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamMappings.g.cs @@ -33,17 +33,11 @@ public DataStreamMappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping effe Mappings = mappings; Name = name; } -#if NET7_0_OR_GREATER - public DataStreamMappings() - { - } -#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 DataStreamMappings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamMappings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,31 +50,19 @@ internal DataStreamMappings(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// are the settings that will be used when a new index is created for this data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.TypeMapping EffectiveMappings { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.TypeMapping EffectiveMappings { get; set; } /// /// /// The settings specific to this data stream /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } /// /// /// The name of the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamOptions.g.cs index dd5b073ea91..b6382aec186 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamOptions.g.cs @@ -32,16 +32,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamOptionsConverter))] public sealed partial class DataStreamOptions { -#if NET7_0_OR_GREATER public DataStreamOptions() { } -#endif -#if !NET7_0_OR_GREATER - public DataStreamOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamOptionsTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamOptionsTemplate.g.cs index 14541d3f775..fd83090c0ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamOptionsTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamOptionsTemplate.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamOptionsTemplateConverter))] public sealed partial class DataStreamOptionsTemplate { -#if NET7_0_OR_GREATER public DataStreamOptionsTemplate() { } -#endif -#if !NET7_0_OR_GREATER - public DataStreamOptionsTemplate() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamOptionsTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamSettings.g.cs index 0fd271b5b22..b9ad0f2654f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamSettings.g.cs @@ -33,17 +33,11 @@ public DataStreamSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSet Name = name; Settings = settings; } -#if NET7_0_OR_GREATER - public DataStreamSettings() - { - } -#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 DataStreamSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,31 +50,19 @@ internal DataStreamSettings(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// are the settings that will be used when a new index is created for this data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings EffectiveSettings { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings EffectiveSettings { get; set; } /// /// /// The name of the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// /// The settings specific to this data stream /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamSettingsError.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamSettingsError.g.cs index d67865c93ad..c1efdc2e35b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamSettingsError.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamSettingsError.g.cs @@ -32,17 +32,11 @@ public DataStreamSettingsError(string error, string index) Error = error; Index = index; } -#if NET7_0_OR_GREATER - public DataStreamSettingsError() - { - } -#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 DataStreamSettingsError() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamSettingsError(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,14 +48,6 @@ internal DataStreamSettingsError(Elastic.Clients.Elasticsearch.Serialization.Jso /// A message explaining why the settings could not be applied to specific indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Error { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Error { get; set; } + public required string Index { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamStats.g.cs index 64260e3e5c3..bac5d739099 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamStats.g.cs @@ -33,17 +33,11 @@ public DataStreamStats(int backingIndicesInError, int backingIndicesInTotal, str BackingIndicesInTotal = backingIndicesInTotal; Name = name; } -#if NET7_0_OR_GREATER - public DataStreamStats() - { - } -#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 DataStreamStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal DataStreamStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The count of the backing indices for the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int BackingIndicesInError { get; set; } + public required int BackingIndicesInError { get; set; } /// /// /// The count of the backing indices for the data stream that have encountered an error. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int BackingIndicesInTotal { get; set; } + public required int BackingIndicesInTotal { get; set; } /// /// /// The name of the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamTimestampField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamTimestampField.g.cs index b7a02d3b955..cadd3d89894 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamTimestampField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamTimestampField.g.cs @@ -31,17 +31,11 @@ public DataStreamTimestampField(string name) { Name = name; } -#if NET7_0_OR_GREATER - public DataStreamTimestampField() - { - } -#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 DataStreamTimestampField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamTimestampField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,9 +47,5 @@ internal DataStreamTimestampField(Elastic.Clients.Elasticsearch.Serialization.Js /// Name of the timestamp field for the data stream, which must be @timestamp. The @timestamp field must be included in every document indexed to the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs index 997b3819d9b..6a27ebf5569 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DataStreamVisibilityConverter))] public sealed partial class DataStreamVisibility { -#if NET7_0_OR_GREATER public DataStreamVisibility() { } -#endif -#if !NET7_0_OR_GREATER - public DataStreamVisibility() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamVisibility(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs index a684daed17c..5814c501d9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs @@ -31,17 +31,11 @@ public DataStreamWithLifecycle(string name) { Name = name; } -#if NET7_0_OR_GREATER - public DataStreamWithLifecycle() - { - } -#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 DataStreamWithLifecycle() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamWithLifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal DataStreamWithLifecycle(Elastic.Clients.Elasticsearch.Serialization.Jso } public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithOptions.g.cs index 4081caf75ea..48319c9f684 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithOptions.g.cs @@ -31,27 +31,17 @@ public DataStreamWithOptions(string name) { Name = name; } -#if NET7_0_OR_GREATER - public DataStreamWithOptions() - { - } -#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 DataStreamWithOptions() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamWithOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamOptions? Options { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs index 28d51735e7d..77f4d8ec542 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs @@ -34,17 +34,11 @@ public DataStreamsStatsItem(int backingIndices, string dataStream, System.DateTi MaximumTimestamp = maximumTimestamp; StoreSizeBytes = storeSizeBytes; } -#if NET7_0_OR_GREATER - public DataStreamsStatsItem() - { - } -#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 DataStreamsStatsItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamsStatsItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,22 +50,14 @@ internal DataStreamsStatsItem(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Current number of backing indices for the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int BackingIndices { get; set; } + public required int BackingIndices { get; set; } /// /// /// Name of the data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string DataStream { get; set; } + public required string DataStream { get; set; } /// /// @@ -82,11 +68,7 @@ internal DataStreamsStatsItem(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Backing indices with a lower generation contain higher @timestamp values. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset MaximumTimestamp { get; set; } + public required System.DateTimeOffset MaximumTimestamp { get; set; } /// /// @@ -101,9 +83,5 @@ internal DataStreamsStatsItem(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Total size, in bytes, of all shards for the data stream’s backing indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long StoreSizeBytes { get; set; } + public required long StoreSizeBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsampleConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsampleConfig.g.cs index fa5e15c2823..4a1b4c9812e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsampleConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsampleConfig.g.cs @@ -31,17 +31,11 @@ public DownsampleConfig(string fixedInterval) { FixedInterval = fixedInterval; } -#if NET7_0_OR_GREATER - public DownsampleConfig() - { - } -#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 DownsampleConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DownsampleConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal DownsampleConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The interval at which to aggregate the original time series index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string FixedInterval { get; set; } + public required string FixedInterval { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsamplingRound.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsamplingRound.g.cs index 7dd1ff0ccc1..ad757968d30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsamplingRound.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsamplingRound.g.cs @@ -32,17 +32,11 @@ public DownsamplingRound(Elastic.Clients.Elasticsearch.Duration after, string fi After = after; FixedInterval = fixedInterval; } -#if NET7_0_OR_GREATER - public DownsamplingRound() - { - } -#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 DownsamplingRound() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DownsamplingRound(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal DownsamplingRound(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The duration since rollover when this downsampling round should execute /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration After { get; set; } + public required Elastic.Clients.Elasticsearch.Duration After { get; set; } /// /// /// The downsample interval. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string FixedInterval { get; set; } + public required string FixedInterval { get; set; } } public readonly partial struct DownsamplingRoundDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs index 4eb1cefcf86..73da5b689b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs @@ -38,17 +38,11 @@ public ExplainAnalyzeToken(string bytes, long endOffset, long position, long pos Token = token; Type = type; } -#if NET7_0_OR_GREATER - public ExplainAnalyzeToken() - { - } -#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 ExplainAnalyzeToken() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExplainAnalyzeToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,45 +55,13 @@ internal ExplainAnalyzeToken(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// public System.Collections.Generic.IReadOnlyDictionary? Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Bytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long EndOffset { get; set; } + public required string Bytes { get; set; } + public required long EndOffset { get; set; } public bool? Keyword { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Position { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PositionLength { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long StartOffset { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TermFrequency { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Token { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required long Position { get; set; } + public required long PositionLength { get; set; } + public required long StartOffset { get; set; } + public required long TermFrequency { get; set; } + public required string Token { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStore.g.cs index f01c95fd274..ddaf5cd459d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStore.g.cs @@ -33,36 +33,18 @@ public FailureStore(bool enabled, System.Collections.Generic.IReadOnlyCollection Indices = indices; RolloverOnWrite = rolloverOnWrite; } -#if NET7_0_OR_GREATER - public FailureStore() - { - } -#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 FailureStore() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FailureStore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool RolloverOnWrite { get; set; } + public required bool Enabled { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required bool RolloverOnWrite { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStoreLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStoreLifecycle.g.cs index af417739089..e3c431c7a4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStoreLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStoreLifecycle.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.FailureStoreLifecycleConverter))] public sealed partial class FailureStoreLifecycle { -#if NET7_0_OR_GREATER public FailureStoreLifecycle() { } -#endif -#if !NET7_0_OR_GREATER - public FailureStoreLifecycle() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FailureStoreLifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStoreLifecycleTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStoreLifecycleTemplate.g.cs index 95d34babab5..65a647e12c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStoreLifecycleTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStoreLifecycleTemplate.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.FailureStoreLifecycleTemplateConverter))] public sealed partial class FailureStoreLifecycleTemplate { -#if NET7_0_OR_GREATER public FailureStoreLifecycleTemplate() { } -#endif -#if !NET7_0_OR_GREATER - public FailureStoreLifecycleTemplate() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FailureStoreLifecycleTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FieldSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FieldSummary.g.cs index 0f28d5ed40e..8c097b2bebe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FieldSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FieldSummary.g.cs @@ -38,61 +38,23 @@ public FieldSummary(int any, int docValues, Elastic.Clients.Elasticsearch.IndexM StoredFields = storedFields; TermVectors = termVectors; } -#if NET7_0_OR_GREATER - public FieldSummary() - { - } -#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 FieldSummary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Any { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int DocValues { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.InvertedIndex InvertedIndex { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int KnnVectors { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Norms { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Points { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int StoredFields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int TermVectors { get; set; } + public required int Any { get; set; } + public required int DocValues { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.InvertedIndex InvertedIndex { get; set; } + public required int KnnVectors { get; set; } + public required int Norms { get; set; } + public required int Points { get; set; } + public required int StoredFields { get; set; } + public required int TermVectors { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FielddataFrequencyFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FielddataFrequencyFilter.g.cs index 71b29171bb8..ca996a1ca26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FielddataFrequencyFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FielddataFrequencyFilter.g.cs @@ -33,38 +33,20 @@ public FielddataFrequencyFilter(double max, double min, int minSegmentSize) Min = min; MinSegmentSize = minSegmentSize; } -#if NET7_0_OR_GREATER - public FielddataFrequencyFilter() - { - } -#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 FielddataFrequencyFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FielddataFrequencyFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double Max { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Min { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MinSegmentSize { get; set; } + public required double Max { get; set; } + public required double Min { get; set; } + public required int MinSegmentSize { get; set; } } public readonly partial struct FielddataFrequencyFilterDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FileDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FileDetails.g.cs index a32079fe83d..d178a4024cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FileDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FileDetails.g.cs @@ -33,36 +33,18 @@ public FileDetails(long length, string name, long recovered) Name = name; Recovered = recovered; } -#if NET7_0_OR_GREATER - public FileDetails() - { - } -#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 FileDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FileDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Length { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Recovered { get; set; } + public required long Length { get; set; } + public required string Name { get; set; } + public required long Recovered { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAliases.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAliases.g.cs index 8a884cc49b2..8efc2832904 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAliases.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAliases.g.cs @@ -31,26 +31,16 @@ public IndexAliases(System.Collections.Generic.IReadOnlyDictionary Aliases { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Aliases { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs index 3de8cb9ac20..fc4f9dee893 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs @@ -32,17 +32,11 @@ public IndexAndDataStreamAction(Elastic.Clients.Elasticsearch.DataStreamName dat DataStream = dataStream; Index = index; } -#if NET7_0_OR_GREATER - public IndexAndDataStreamAction() - { - } -#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 IndexAndDataStreamAction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexAndDataStreamAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal IndexAndDataStreamAction(Elastic.Clients.Elasticsearch.Serialization.Js /// Data stream targeted by the action. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DataStreamName DataStream { get; set; } + public required Elastic.Clients.Elasticsearch.DataStreamName DataStream { get; set; } /// /// /// Index for the action. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } } public readonly partial struct IndexAndDataStreamActionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexMappingRecord.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexMappingRecord.g.cs index add36a126cf..f5573ed75de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexMappingRecord.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexMappingRecord.g.cs @@ -31,17 +31,11 @@ public IndexMappingRecord(Elastic.Clients.Elasticsearch.Mapping.TypeMapping mapp { Mappings = mappings; } -#if NET7_0_OR_GREATER - public IndexMappingRecord() - { - } -#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 IndexMappingRecord() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexMappingRecord(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal IndexMappingRecord(Elastic.Clients.Elasticsearch.Serialization.JsonCons } public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Item { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexModifyDataStreamAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexModifyDataStreamAction.g.cs index ab321be983b..4740fb1a6b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexModifyDataStreamAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexModifyDataStreamAction.g.cs @@ -28,16 +28,11 @@ public sealed partial class IndexModifyDataStreamAction { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public IndexModifyDataStreamAction() - { - } -#endif -#if !NET7_0_OR_GREATER + public IndexModifyDataStreamAction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexModifyDataStreamAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRouting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRouting.g.cs index e9c5035d969..3a0fdccf81f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRouting.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRouting.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexRoutingConverter))] public sealed partial class IndexRouting { -#if NET7_0_OR_GREATER public IndexRouting() { } -#endif -#if !NET7_0_OR_GREATER - public IndexRouting() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexRouting(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocation.g.cs index 410908bf4f3..45b081243d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexRoutingAllocationConverter))] public sealed partial class IndexRoutingAllocation { -#if NET7_0_OR_GREATER public IndexRoutingAllocation() { } -#endif -#if !NET7_0_OR_GREATER - public IndexRoutingAllocation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexRoutingAllocation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationDisk.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationDisk.g.cs index 5d9d802d0f0..7c52d93e44e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationDisk.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationDisk.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexRoutingAllocationDiskConverter))] public sealed partial class IndexRoutingAllocationDisk { -#if NET7_0_OR_GREATER public IndexRoutingAllocationDisk() { } -#endif -#if !NET7_0_OR_GREATER - public IndexRoutingAllocationDisk() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexRoutingAllocationDisk(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationInclude.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationInclude.g.cs index 50bcfa0f3ed..9fe821fb682 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationInclude.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationInclude.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexRoutingAllocationIncludeConverter))] public sealed partial class IndexRoutingAllocationInclude { -#if NET7_0_OR_GREATER public IndexRoutingAllocationInclude() { } -#endif -#if !NET7_0_OR_GREATER - public IndexRoutingAllocationInclude() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexRoutingAllocationInclude(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationInitialRecovery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationInitialRecovery.g.cs index fa271cdb11a..56f0afe3b02 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationInitialRecovery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingAllocationInitialRecovery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexRoutingAllocationInitialRecoveryConverter))] public sealed partial class IndexRoutingAllocationInitialRecovery { -#if NET7_0_OR_GREATER public IndexRoutingAllocationInitialRecovery() { } -#endif -#if !NET7_0_OR_GREATER - public IndexRoutingAllocationInitialRecovery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexRoutingAllocationInitialRecovery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingRebalance.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingRebalance.g.cs index 5e32b7b0e0e..803077e07b4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingRebalance.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexRoutingRebalance.g.cs @@ -31,28 +31,18 @@ public IndexRoutingRebalance(Elastic.Clients.Elasticsearch.IndexManagement.Index { Enable = enable; } -#if NET7_0_OR_GREATER - public IndexRoutingRebalance() - { - } -#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 IndexRoutingRebalance() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexRoutingRebalance(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexRoutingRebalanceOptions Enable { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexRoutingRebalanceOptions Enable { get; set; } } public readonly partial struct IndexRoutingRebalanceDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.g.cs index 6b906b2e240..8311a0cb8d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSamplingConfiguration.g.cs @@ -32,31 +32,17 @@ public IndexSamplingConfiguration(Elastic.Clients.Elasticsearch.IndexManagement. 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; } + public required Elastic.Clients.Elasticsearch.IndexManagement.SamplingConfiguration Configuration { get; set; } + public required string Index { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegment.g.cs index db3f807b890..9a296943ded 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegment.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegment.g.cs @@ -31,26 +31,16 @@ public IndexSegment(System.Collections.Generic.IReadOnlyDictionary> Shards { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs index 81270e92683..6995c8cceb9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexSegmentSortConverter))] public sealed partial class IndexSegmentSort { -#if NET7_0_OR_GREATER public IndexSegmentSort() { } -#endif -#if !NET7_0_OR_GREATER - public IndexSegmentSort() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexSegmentSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingBlocks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingBlocks.g.cs index a700eb8da05..312699388e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingBlocks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingBlocks.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexSettingBlocksConverter))] public sealed partial class IndexSettingBlocks { -#if NET7_0_OR_GREATER public IndexSettingBlocks() { } -#endif -#if !NET7_0_OR_GREATER - public IndexSettingBlocks() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexSettingBlocks(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingResults.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingResults.g.cs index dcb5deaa079..ae246fbe798 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingResults.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingResults.g.cs @@ -32,17 +32,11 @@ public IndexSettingResults(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection AppliedToDataStreamAndBackingIndices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection AppliedToDataStreamAndBackingIndices { get; set; } /// /// @@ -67,10 +57,6 @@ internal IndexSettingResults(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// the write index the next time the data stream is rolled over. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection AppliedToDataStreamOnly { get; set; } + public required System.Collections.Generic.IReadOnlyCollection AppliedToDataStreamOnly { get; set; } public System.Collections.Generic.IReadOnlyCollection? Errors { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs index bd06068e7d5..93b1ba3c01c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs @@ -29,16 +29,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexSettingsConverter))] public sealed partial class IndexSettings { -#if NET7_0_OR_GREATER public IndexSettings() { } -#endif -#if !NET7_0_OR_GREATER - public IndexSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsAnalysis.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsAnalysis.g.cs index 10c766ea7d7..30efe8852ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsAnalysis.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsAnalysis.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexSettingsAnalysisConverter))] public sealed partial class IndexSettingsAnalysis { -#if NET7_0_OR_GREATER public IndexSettingsAnalysis() { } -#endif -#if !NET7_0_OR_GREATER - public IndexSettingsAnalysis() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexSettingsAnalysis(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs index ffdaa9477a3..477329d8dc2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexSettingsLifecycleConverter))] public sealed partial class IndexSettingsLifecycle { -#if NET7_0_OR_GREATER public IndexSettingsLifecycle() { } -#endif -#if !NET7_0_OR_GREATER - public IndexSettingsLifecycle() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexSettingsLifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycleStep.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycleStep.g.cs index 1a92e5412b9..4095ab87e85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycleStep.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycleStep.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexSettingsLifecycleStepConverter))] public sealed partial class IndexSettingsLifecycleStep { -#if NET7_0_OR_GREATER public IndexSettingsLifecycleStep() { } -#endif -#if !NET7_0_OR_GREATER - public IndexSettingsLifecycleStep() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexSettingsLifecycleStep(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsTimeSeries.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsTimeSeries.g.cs index 6f36206b966..d46b1677c6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsTimeSeries.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsTimeSeries.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexSettingsTimeSeriesConverter))] public sealed partial class IndexSettingsTimeSeries { -#if NET7_0_OR_GREATER public IndexSettingsTimeSeries() { } -#endif -#if !NET7_0_OR_GREATER - public IndexSettingsTimeSeries() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexSettingsTimeSeries(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs index 3f6622f81b6..d4fcc850653 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexStateConverter))] public sealed partial class IndexState { -#if NET7_0_OR_GREATER public IndexState() { } -#endif -#if !NET7_0_OR_GREATER - public IndexState() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexState(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexStats.g.cs index 4fd39c3e756..b03c5379f69 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexStatsConverter))] public sealed partial class IndexStats { -#if NET7_0_OR_GREATER public IndexStats() { } -#endif -#if !NET7_0_OR_GREATER - public IndexStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs index 68a12ae55bb..69983b88638 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs @@ -32,17 +32,11 @@ public IndexTemplate(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection ComposedOf { get; set; } + public required System.Collections.Generic.ICollection ComposedOf { get; set; } /// /// @@ -107,11 +97,7 @@ internal IndexTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Name of the index template. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names IndexPatterns { get; set; } + public required Elastic.Clients.Elasticsearch.Names IndexPatterns { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs index 72eb1865eda..8827168f68e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexTemplateDataStreamConfigurationConverter))] public sealed partial class IndexTemplateDataStreamConfiguration { -#if NET7_0_OR_GREATER public IndexTemplateDataStreamConfiguration() { } -#endif -#if !NET7_0_OR_GREATER - public IndexTemplateDataStreamConfiguration() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexTemplateDataStreamConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateItem.g.cs index 1541e1650ef..1715fb8f51a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateItem.g.cs @@ -32,31 +32,17 @@ public IndexTemplateItem(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemp IndexTemplate = indexTemplate; Name = name; } -#if NET7_0_OR_GREATER - public IndexTemplateItem() - { - } -#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 IndexTemplateItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexTemplateItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplate IndexTemplate { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplate IndexTemplate { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs index 7805ed90bb4..387b4b4dee3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexTemplateMappingConverter))] public sealed partial class IndexTemplateMapping { -#if NET7_0_OR_GREATER public IndexTemplateMapping() { } -#endif -#if !NET7_0_OR_GREATER - public IndexTemplateMapping() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexTemplateMapping(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs index bd957706a7f..30b607237d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexTemplateSummaryConverter))] public sealed partial class IndexTemplateSummary { -#if NET7_0_OR_GREATER public IndexTemplateSummary() { } -#endif -#if !NET7_0_OR_GREATER - public IndexTemplateSummary() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexTemplateSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexUpdateAliasesAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexUpdateAliasesAction.g.cs index 2b1866fc753..e10c574de0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexUpdateAliasesAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexUpdateAliasesAction.g.cs @@ -28,16 +28,11 @@ public sealed partial class IndexUpdateAliasesAction { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public IndexUpdateAliasesAction() - { - } -#endif -#if !NET7_0_OR_GREATER + public IndexUpdateAliasesAction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexUpdateAliasesAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexVersioning.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexVersioning.g.cs index a8d69c96746..ae04a40ed47 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexVersioning.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexVersioning.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexVersioningConverter))] public sealed partial class IndexVersioning { -#if NET7_0_OR_GREATER public IndexVersioning() { } -#endif -#if !NET7_0_OR_GREATER - public IndexVersioning() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexVersioning(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingPressure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingPressure.g.cs index f33956703a7..7d8d1240a72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingPressure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingPressure.g.cs @@ -31,28 +31,18 @@ public IndexingPressure(Elastic.Clients.Elasticsearch.IndexManagement.IndexingPr { Memory = memory; } -#if NET7_0_OR_GREATER - public IndexingPressure() - { - } -#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 IndexingPressure() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexingPressure(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexingPressureMemory Memory { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexingPressureMemory Memory { get; set; } } public readonly partial struct IndexingPressureDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingPressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingPressureMemory.g.cs index 2a47eebb5fb..a171b776e1f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingPressureMemory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingPressureMemory.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexingPressureMemoryConverter))] public sealed partial class IndexingPressureMemory { -#if NET7_0_OR_GREATER public IndexingPressureMemory() { } -#endif -#if !NET7_0_OR_GREATER - public IndexingPressureMemory() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexingPressureMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingSlowlogSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingSlowlogSettings.g.cs index 038a33abcac..1c74daa0f07 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingSlowlogSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingSlowlogSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexingSlowlogSettingsConverter))] public sealed partial class IndexingSlowlogSettings { -#if NET7_0_OR_GREATER public IndexingSlowlogSettings() { } -#endif -#if !NET7_0_OR_GREATER - public IndexingSlowlogSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexingSlowlogSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingSlowlogTresholds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingSlowlogTresholds.g.cs index f625e6ee01d..04444699592 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingSlowlogTresholds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexingSlowlogTresholds.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndexingSlowlogTresholdsConverter))] public sealed partial class IndexingSlowlogTresholds { -#if NET7_0_OR_GREATER public IndexingSlowlogTresholds() { } -#endif -#if !NET7_0_OR_GREATER - public IndexingSlowlogTresholds() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexingSlowlogTresholds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesShardStores.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesShardStores.g.cs index 20e5152aa1f..1cce98302fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesShardStores.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesShardStores.g.cs @@ -31,26 +31,16 @@ public IndicesShardStores(System.Collections.Generic.IReadOnlyDictionary Shards { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesStats.g.cs index 46226e81085..ccc2c073fe2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.IndicesStatsConverter))] public sealed partial class IndicesStats { -#if NET7_0_OR_GREATER public IndicesStats() { } -#endif -#if !NET7_0_OR_GREATER - public IndicesStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndicesStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs index 7f3f33a0f7b..b7a2512cc1a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs @@ -32,17 +32,11 @@ public IndicesValidationExplanation(string index, bool valid) Index = index; Valid = valid; } -#if NET7_0_OR_GREATER - public IndicesValidationExplanation() - { - } -#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 IndicesValidationExplanation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndicesValidationExplanation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,14 +45,6 @@ internal IndicesValidationExplanation(Elastic.Clients.Elasticsearch.Serializatio public string? Error { get; set; } public string? Explanation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Valid { get; set; } + public required string Index { get; set; } + public required bool Valid { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/InvertedIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/InvertedIndex.g.cs index 3ab99a9f765..566ce2317e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/InvertedIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/InvertedIndex.g.cs @@ -37,56 +37,22 @@ public InvertedIndex(int offsets, int payloads, int positions, int postings, int TermFrequencies = termFrequencies; Terms = terms; } -#if NET7_0_OR_GREATER - public InvertedIndex() - { - } -#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 InvertedIndex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InvertedIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Offsets { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Payloads { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Positions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Postings { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Proximity { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int TermFrequencies { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Terms { get; set; } + public required int Offsets { get; set; } + public required int Payloads { get; set; } + public required int Positions { get; set; } + public required int Postings { get; set; } + public required int Proximity { get; set; } + public required int TermFrequencies { get; set; } + public required int Terms { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs index 339c1b54a4c..bf443cec074 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs @@ -32,16 +32,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MappingLimitSettingsConverter))] public sealed partial class MappingLimitSettings { -#if NET7_0_OR_GREATER public MappingLimitSettings() { } -#endif -#if !NET7_0_OR_GREATER - public MappingLimitSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingLimitSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsDepth.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsDepth.g.cs index 6f5b242aa67..e91711439b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsDepth.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsDepth.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MappingLimitSettingsDepthConverter))] public sealed partial class MappingLimitSettingsDepth { -#if NET7_0_OR_GREATER public MappingLimitSettingsDepth() { } -#endif -#if !NET7_0_OR_GREATER - public MappingLimitSettingsDepth() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingLimitSettingsDepth(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsDimensionFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsDimensionFields.g.cs index 613fb995cb0..2b33052e192 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsDimensionFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsDimensionFields.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MappingLimitSettingsDimensionFieldsConverter))] public sealed partial class MappingLimitSettingsDimensionFields { -#if NET7_0_OR_GREATER public MappingLimitSettingsDimensionFields() { } -#endif -#if !NET7_0_OR_GREATER - public MappingLimitSettingsDimensionFields() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingLimitSettingsDimensionFields(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsFieldNameLength.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsFieldNameLength.g.cs index 0653362d2aa..518e232d790 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsFieldNameLength.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsFieldNameLength.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MappingLimitSettingsFieldNameLengthConverter))] public sealed partial class MappingLimitSettingsFieldNameLength { -#if NET7_0_OR_GREATER public MappingLimitSettingsFieldNameLength() { } -#endif -#if !NET7_0_OR_GREATER - public MappingLimitSettingsFieldNameLength() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingLimitSettingsFieldNameLength(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsNestedFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsNestedFields.g.cs index 4efec30e9b9..cf77ecb8812 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsNestedFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsNestedFields.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MappingLimitSettingsNestedFieldsConverter))] public sealed partial class MappingLimitSettingsNestedFields { -#if NET7_0_OR_GREATER public MappingLimitSettingsNestedFields() { } -#endif -#if !NET7_0_OR_GREATER - public MappingLimitSettingsNestedFields() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingLimitSettingsNestedFields(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsNestedObjects.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsNestedObjects.g.cs index 09c1ab02558..de9acefafab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsNestedObjects.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsNestedObjects.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MappingLimitSettingsNestedObjectsConverter))] public sealed partial class MappingLimitSettingsNestedObjects { -#if NET7_0_OR_GREATER public MappingLimitSettingsNestedObjects() { } -#endif -#if !NET7_0_OR_GREATER - public MappingLimitSettingsNestedObjects() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingLimitSettingsNestedObjects(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsSourceFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsSourceFields.g.cs index 1754ad81821..396527a0ff9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsSourceFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsSourceFields.g.cs @@ -31,28 +31,18 @@ public MappingLimitSettingsSourceFields(Elastic.Clients.Elasticsearch.IndexManag { Mode = mode; } -#if NET7_0_OR_GREATER - public MappingLimitSettingsSourceFields() - { - } -#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 MappingLimitSettingsSourceFields() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingLimitSettingsSourceFields(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.SourceMode Mode { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.SourceMode Mode { get; set; } } public readonly partial struct MappingLimitSettingsSourceFieldsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs index 3c224b134be..b3e0bd5017e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MappingLimitSettingsTotalFieldsConverter))] public sealed partial class MappingLimitSettingsTotalFields { -#if NET7_0_OR_GREATER public MappingLimitSettingsTotalFields() { } -#endif -#if !NET7_0_OR_GREATER - public MappingLimitSettingsTotalFields() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingLimitSettingsTotalFields(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingStats.g.cs index 947202666e4..d88dd98d570 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingStats.g.cs @@ -32,32 +32,18 @@ public MappingStats(long totalCount, long totalEstimatedOverheadInBytes) TotalCount = totalCount; TotalEstimatedOverheadInBytes = totalEstimatedOverheadInBytes; } -#if NET7_0_OR_GREATER - public MappingStats() - { - } -#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 MappingStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MappingStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalCount { get; set; } + public required long TotalCount { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? TotalEstimatedOverhead { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalEstimatedOverheadInBytes { get; set; } + public required long TotalEstimatedOverheadInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Merge.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Merge.g.cs index a24060e30ad..cf56f51e295 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Merge.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Merge.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MergeConverter))] public sealed partial class Merge { -#if NET7_0_OR_GREATER public Merge() { } -#endif -#if !NET7_0_OR_GREATER - public Merge() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Merge(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MergeScheduler.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MergeScheduler.g.cs index 895e9e2fb06..64f29616ba2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MergeScheduler.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MergeScheduler.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.MergeSchedulerConverter))] public sealed partial class MergeScheduler { -#if NET7_0_OR_GREATER public MergeScheduler() { } -#endif -#if !NET7_0_OR_GREATER - public MergeScheduler() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MergeScheduler(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MigrateReindex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MigrateReindex.g.cs index 85895f0752a..8dfa235ecd2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MigrateReindex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MigrateReindex.g.cs @@ -32,17 +32,11 @@ public MigrateReindex(Elastic.Clients.Elasticsearch.IndexManagement.ModeEnum mod Mode = mode; Source = source; } -#if NET7_0_OR_GREATER - public MigrateReindex() - { - } -#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 MigrateReindex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MigrateReindex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal MigrateReindex(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Reindex mode. Currently only 'upgrade' is supported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ModeEnum Mode { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ModeEnum Mode { get; set; } /// /// /// The source index or data stream (only data streams are currently supported). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.SourceIndex Source { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.SourceIndex Source { get; set; } } public readonly partial struct MigrateReindexDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/NumericFielddata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/NumericFielddata.g.cs index c51ced34eca..e0a9e211e25 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/NumericFielddata.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/NumericFielddata.g.cs @@ -31,28 +31,18 @@ public NumericFielddata(Elastic.Clients.Elasticsearch.IndexManagement.NumericFie { Format = format; } -#if NET7_0_OR_GREATER - public NumericFielddata() - { - } -#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 NumericFielddata() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NumericFielddata(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.NumericFielddataFormat Format { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.NumericFielddataFormat Format { get; set; } } public readonly partial struct NumericFielddataDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Overlapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Overlapping.g.cs index 18615d07d6f..c31c048ac62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Overlapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Overlapping.g.cs @@ -32,31 +32,17 @@ public Overlapping(System.Collections.Generic.IReadOnlyCollection indexP IndexPatterns = indexPatterns; Name = name; } -#if NET7_0_OR_GREATER - public Overlapping() - { - } -#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 Overlapping() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Overlapping(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection IndexPatterns { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection IndexPatterns { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Queries.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Queries.g.cs index 83e5d389b4f..5e4532d2acd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Queries.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Queries.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.QueriesConverter))] public sealed partial class Queries { -#if NET7_0_OR_GREATER public Queries() { } -#endif -#if !NET7_0_OR_GREATER - public Queries() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Queries(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RawDocument.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RawDocument.g.cs index 1062fdcf18a..e8edc0a0513 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RawDocument.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RawDocument.g.cs @@ -32,17 +32,11 @@ public RawDocument(string index, Elastic.Clients.Elasticsearch.Mapping.Propertie Index = index; Source = source; } -#if NET7_0_OR_GREATER - public RawDocument() - { - } -#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 RawDocument() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RawDocument(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal RawDocument(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Name of the index for this raw document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// /// The original raw source. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.Properties Source { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.Properties Source { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryBytes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryBytes.g.cs index c0ab88366be..023a4b2fd1f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryBytes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryBytes.g.cs @@ -34,46 +34,24 @@ public RecoveryBytes(Elastic.Clients.Elasticsearch.Percentage percent, Elastic.C ReusedInBytes = reusedInBytes; TotalInBytes = totalInBytes; } -#if NET7_0_OR_GREATER - public RecoveryBytes() - { - } -#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 RecoveryBytes() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RecoveryBytes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Percentage Percent { get; set; } + public required Elastic.Clients.Elasticsearch.Percentage Percent { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? Recovered { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? RecoveredFromSnapshot { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? RecoveredFromSnapshotInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize RecoveredInBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize RecoveredInBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? Reused { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize ReusedInBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize ReusedInBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? Total { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize TotalInBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize TotalInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryFiles.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryFiles.g.cs index e0450f7b1d7..5d377b2ab27 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryFiles.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryFiles.g.cs @@ -34,17 +34,11 @@ public RecoveryFiles(Elastic.Clients.Elasticsearch.Percentage percent, long reco Reused = reused; Total = total; } -#if NET7_0_OR_GREATER - public RecoveryFiles() - { - } -#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 RecoveryFiles() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RecoveryFiles(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,24 +46,8 @@ internal RecoveryFiles(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct } public System.Collections.Generic.IReadOnlyCollection? Details { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Percentage Percent { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Recovered { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Reused { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required Elastic.Clients.Elasticsearch.Percentage Percent { get; set; } + public required long Recovered { get; set; } + public required long Reused { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryIndexStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryIndexStatus.g.cs index ea72e700b27..1c35a8142a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryIndexStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryIndexStatus.g.cs @@ -35,17 +35,11 @@ public RecoveryIndexStatus(Elastic.Clients.Elasticsearch.IndexManagement.Recover TargetThrottleTimeInMillis = targetThrottleTimeInMillis; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public RecoveryIndexStatus() - { - } -#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 RecoveryIndexStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RecoveryIndexStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,32 +47,12 @@ internal RecoveryIndexStatus(Elastic.Clients.Elasticsearch.Serialization.JsonCon } public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryBytes? Bytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.RecoveryFiles Files { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.RecoveryBytes Size { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryFiles Files { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryBytes Size { get; set; } public Elastic.Clients.Elasticsearch.Duration? SourceThrottleTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan SourceThrottleTimeInMillis { get; set; } + public required System.TimeSpan SourceThrottleTimeInMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TargetThrottleTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TargetThrottleTimeInMillis { get; set; } + public required System.TimeSpan TargetThrottleTimeInMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryOrigin.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryOrigin.g.cs index 7322ac89036..687428e804c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryOrigin.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryOrigin.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.RecoveryOriginConverter))] public sealed partial class RecoveryOrigin { -#if NET7_0_OR_GREATER public RecoveryOrigin() { } -#endif -#if !NET7_0_OR_GREATER - public RecoveryOrigin() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RecoveryOrigin(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStartStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStartStatus.g.cs index 7569b8edb39..573fb37d7a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStartStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStartStatus.g.cs @@ -32,17 +32,11 @@ public RecoveryStartStatus(System.TimeSpan checkIndexTimeInMillis, System.TimeSp CheckIndexTimeInMillis = checkIndexTimeInMillis; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public RecoveryStartStatus() - { - } -#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 RecoveryStartStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RecoveryStartStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,15 +44,7 @@ internal RecoveryStartStatus(Elastic.Clients.Elasticsearch.Serialization.JsonCon } public Elastic.Clients.Elasticsearch.Duration? CheckIndexTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan CheckIndexTimeInMillis { get; set; } + public required System.TimeSpan CheckIndexTimeInMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStatus.g.cs index 0558d6a9a23..0e5f86d256a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStatus.g.cs @@ -31,26 +31,16 @@ public RecoveryStatus(System.Collections.Generic.IReadOnlyCollection Shards { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadDetails.g.cs index 4e00ab7e85f..288f3a290c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadDetails.g.cs @@ -33,36 +33,18 @@ public ReloadDetails(string index, System.Collections.Generic.IReadOnlyCollectio ReloadedAnalyzers = reloadedAnalyzers; ReloadedNodeIds = reloadedNodeIds; } -#if NET7_0_OR_GREATER - public ReloadDetails() - { - } -#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 ReloadDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReloadDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ReloadedAnalyzers { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ReloadedNodeIds { get; set; } + public required string Index { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ReloadedAnalyzers { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ReloadedNodeIds { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadResult.g.cs index a3e91fc6dd8..0768467d18b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ReloadResult.g.cs @@ -32,31 +32,17 @@ public ReloadResult(System.Collections.Generic.IReadOnlyCollection ReloadDetails { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ReloadDetails { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveAction.g.cs index b886445f3a4..14b2984b51e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.RemoveActionConverter))] public sealed partial class RemoveAction { -#if NET7_0_OR_GREATER public RemoveAction() { } -#endif -#if !NET7_0_OR_GREATER - public RemoveAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoveAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs index 234ab94922c..727f0c1390c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.RemoveIndexActionConverter))] public sealed partial class RemoveIndexAction { -#if NET7_0_OR_GREATER public RemoveIndexAction() { } -#endif -#if !NET7_0_OR_GREATER - public RemoveIndexAction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoveIndexAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndicesBlockStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndicesBlockStatus.g.cs index 06db3fbc891..ee03918c881 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndicesBlockStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RemoveIndicesBlockStatus.g.cs @@ -31,17 +31,11 @@ public RemoveIndicesBlockStatus(string name) { Name = name; } -#if NET7_0_OR_GREATER - public RemoveIndicesBlockStatus() - { - } -#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 RemoveIndicesBlockStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoveIndicesBlockStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,10 +43,6 @@ internal RemoveIndicesBlockStatus(Elastic.Clients.Elasticsearch.Serialization.Js } public Elastic.Clients.Elasticsearch.ErrorCause? Exception { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } public bool? Unblocked { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveClusterInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveClusterInfo.g.cs index 4e7cb39ff46..fbdf9505d33 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveClusterInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveClusterInfo.g.cs @@ -37,17 +37,11 @@ public ResolveClusterInfo(bool connected, bool skipUnavailable) Connected = connected; SkipUnavailable = skipUnavailable; } -#if NET7_0_OR_GREATER - public ResolveClusterInfo() - { - } -#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 ResolveClusterInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResolveClusterInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,11 +53,7 @@ internal ResolveClusterInfo(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Whether the remote cluster is connected to the local (querying) cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Connected { get; set; } + public required bool Connected { get; set; } /// /// @@ -86,11 +76,7 @@ internal ResolveClusterInfo(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The skip_unavailable setting for a remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool SkipUnavailable { get; set; } + public required bool SkipUnavailable { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs index d3293387e5d..c52606277a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs @@ -32,31 +32,17 @@ public ResolveIndexAliasItem(System.Collections.Generic.ICollection indi Indices = indices; Name = name; } -#if NET7_0_OR_GREATER - public ResolveIndexAliasItem() - { - } -#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 ResolveIndexAliasItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResolveIndexAliasItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Indices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required System.Collections.Generic.ICollection Indices { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs index 34eb55d27b3..4d5cfaf9ee3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs @@ -33,36 +33,18 @@ public ResolveIndexDataStreamsItem(System.Collections.Generic.ICollection BackingIndices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TimestampField { get; set; } + public required System.Collections.Generic.ICollection BackingIndices { get; set; } + public required string Name { get; set; } + public required string TimestampField { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs index 212a1af02f5..3b513352ed4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs @@ -32,17 +32,11 @@ public ResolveIndexItem(System.Collections.Generic.IReadOnlyCollection a Attributes = attributes; Name = name; } -#if NET7_0_OR_GREATER - public ResolveIndexItem() - { - } -#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 ResolveIndexItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ResolveIndexItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,16 +44,8 @@ internal ResolveIndexItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstr } public System.Collections.Generic.IReadOnlyCollection? Aliases { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Attributes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Attributes { get; set; } public string? DataStream { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.IndexMode? Mode { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RetentionLease.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RetentionLease.g.cs index 570c39632fa..b58603e6eff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RetentionLease.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RetentionLease.g.cs @@ -31,28 +31,18 @@ public RetentionLease(Elastic.Clients.Elasticsearch.Duration period) { Period = period; } -#if NET7_0_OR_GREATER - public RetentionLease() - { - } -#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 RetentionLease() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RetentionLease(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration Period { get; set; } + public required Elastic.Clients.Elasticsearch.Duration Period { get; set; } } public readonly partial struct RetentionLeaseDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RolloverConditions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RolloverConditions.g.cs index 2687c4b6be5..01582d4d3d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RolloverConditions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RolloverConditions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.RolloverConditionsConverter))] public sealed partial class RolloverConditions { -#if NET7_0_OR_GREATER public RolloverConditions() { } -#endif -#if !NET7_0_OR_GREATER - public RolloverConditions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RolloverConditions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.g.cs index de50535950d..283d14f6c62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SamplingConfiguration.g.cs @@ -40,17 +40,11 @@ public SamplingConfiguration(long creationTimeInMillis, int maxSamples, long max 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) { @@ -69,11 +63,7 @@ internal SamplingConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The time when the sampling configuration was created, in milliseconds since epoch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long CreationTimeInMillis { get; set; } + public required long CreationTimeInMillis { get; set; } /// /// @@ -87,11 +77,7 @@ internal SamplingConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The maximum number of documents to sample. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MaxSamples { get; set; } + public required int MaxSamples { get; set; } /// /// @@ -105,22 +91,14 @@ internal SamplingConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The maximum total size of sampled documents in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MaxSizeInBytes { get; set; } + public required 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; } + public required double Rate { get; set; } /// /// @@ -134,9 +112,5 @@ internal SamplingConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The duration for which the sampled documents should be retained, in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TimeToLiveInMillis { get; set; } + public required long TimeToLiveInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SearchIdle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SearchIdle.g.cs index 87b6b3e04a2..be7d842c64a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SearchIdle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SearchIdle.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SearchIdleConverter))] public sealed partial class SearchIdle { -#if NET7_0_OR_GREATER public SearchIdle() { } -#endif -#if !NET7_0_OR_GREATER - public SearchIdle() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchIdle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs index 5cc12001586..c2cd30a2f18 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs @@ -39,66 +39,24 @@ public Segment(System.Collections.Generic.IReadOnlyDictionary at SizeInBytes = sizeInBytes; Version = version; } -#if NET7_0_OR_GREATER - public Segment() - { - } -#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 Segment() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Segment(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Committed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Compound { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DeletedDocs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Generation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NumDocs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Search { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double SizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required bool Committed { get; set; } + public required bool Compound { get; set; } + public required long DeletedDocs { get; set; } + public required int Generation { get; set; } + public required long NumDocs { get; set; } + public required bool Search { get; set; } + public required double SizeInBytes { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsAnalyze.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsAnalyze.g.cs index 9e3868c8a91..b9d2dce5e99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsAnalyze.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsAnalyze.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SettingsAnalyzeConverter))] public sealed partial class SettingsAnalyze { -#if NET7_0_OR_GREATER public SettingsAnalyze() { } -#endif -#if !NET7_0_OR_GREATER - public SettingsAnalyze() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsAnalyze(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsHighlight.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsHighlight.g.cs index 5a9ca1b6609..df8b06adeb3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsHighlight.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsHighlight.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SettingsHighlightConverter))] public sealed partial class SettingsHighlight { -#if NET7_0_OR_GREATER public SettingsHighlight() { } -#endif -#if !NET7_0_OR_GREATER - public SettingsHighlight() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsHighlight(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsQueryString.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsQueryString.g.cs index c5f63d38954..10bcfa1c2c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsQueryString.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsQueryString.g.cs @@ -31,28 +31,18 @@ public SettingsQueryString(bool lenient) { Lenient = lenient; } -#if NET7_0_OR_GREATER - public SettingsQueryString() - { - } -#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 SettingsQueryString() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsQueryString(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Lenient { get; set; } + public required bool Lenient { get; set; } } public readonly partial struct SettingsQueryStringDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSearch.g.cs index f14a60a155c..f7093c8e828 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSearch.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SettingsSearchConverter))] public sealed partial class SettingsSearch { -#if NET7_0_OR_GREATER public SettingsSearch() { } -#endif -#if !NET7_0_OR_GREATER - public SettingsSearch() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSearch(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityBm25.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityBm25.g.cs index 6bc4ebc2a2f..ae68cb16f78 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityBm25.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityBm25.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SettingsSimilarityBm25Converter))] public sealed partial class SettingsSimilarityBm25 : Elastic.Clients.Elasticsearch.IndexManagement.ISettingsSimilarity { -#if NET7_0_OR_GREATER public SettingsSimilarityBm25() { } -#endif -#if !NET7_0_OR_GREATER - public SettingsSimilarityBm25() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSimilarityBm25(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityBoolean.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityBoolean.g.cs index a9375a54b8c..0cd7aaf6dc6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityBoolean.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityBoolean.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SettingsSimilarityBooleanConverter))] public sealed partial class SettingsSimilarityBoolean : Elastic.Clients.Elasticsearch.IndexManagement.ISettingsSimilarity { -#if NET7_0_OR_GREATER public SettingsSimilarityBoolean() { } -#endif -#if !NET7_0_OR_GREATER - public SettingsSimilarityBoolean() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSimilarityBoolean(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityDfi.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityDfi.g.cs index 30b4206b1a2..ea1e2fff4dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityDfi.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityDfi.g.cs @@ -31,28 +31,18 @@ public SettingsSimilarityDfi(Elastic.Clients.Elasticsearch.DFIIndependenceMeasur { IndependenceMeasure = independenceMeasure; } -#if NET7_0_OR_GREATER - public SettingsSimilarityDfi() - { - } -#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 SettingsSimilarityDfi() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSimilarityDfi(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DFIIndependenceMeasure IndependenceMeasure { get; set; } + public required Elastic.Clients.Elasticsearch.DFIIndependenceMeasure IndependenceMeasure { get; set; } public string Type => "DFI"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityDfr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityDfr.g.cs index ebe70d2c596..e4c98cabeca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityDfr.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityDfr.g.cs @@ -33,38 +33,20 @@ public SettingsSimilarityDfr(Elastic.Clients.Elasticsearch.DFRAfterEffect afterE BasicModel = basicModel; Normalization = normalization; } -#if NET7_0_OR_GREATER - public SettingsSimilarityDfr() - { - } -#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 SettingsSimilarityDfr() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSimilarityDfr(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DFRAfterEffect AfterEffect { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DFRBasicModel BasicModel { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Normalization Normalization { get; set; } + public required Elastic.Clients.Elasticsearch.DFRAfterEffect AfterEffect { get; set; } + public required Elastic.Clients.Elasticsearch.DFRBasicModel BasicModel { get; set; } + public required Elastic.Clients.Elasticsearch.Normalization Normalization { get; set; } public string Type => "DFR"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityIb.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityIb.g.cs index a1b1b22b5c6..519bab6e0f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityIb.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityIb.g.cs @@ -33,38 +33,20 @@ public SettingsSimilarityIb(Elastic.Clients.Elasticsearch.IBDistribution distrib Lambda = lambda; Normalization = normalization; } -#if NET7_0_OR_GREATER - public SettingsSimilarityIb() - { - } -#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 SettingsSimilarityIb() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSimilarityIb(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IBDistribution Distribution { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IBLambda Lambda { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Normalization Normalization { get; set; } + public required Elastic.Clients.Elasticsearch.IBDistribution Distribution { get; set; } + public required Elastic.Clients.Elasticsearch.IBLambda Lambda { get; set; } + public required Elastic.Clients.Elasticsearch.Normalization Normalization { get; set; } public string Type => "IB"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityLmd.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityLmd.g.cs index f297bce7cf9..46f9f901703 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityLmd.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityLmd.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SettingsSimilarityLmdConverter))] public sealed partial class SettingsSimilarityLmd : Elastic.Clients.Elasticsearch.IndexManagement.ISettingsSimilarity { -#if NET7_0_OR_GREATER public SettingsSimilarityLmd() { } -#endif -#if !NET7_0_OR_GREATER - public SettingsSimilarityLmd() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSimilarityLmd(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityLmj.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityLmj.g.cs index 47740602487..62a52b03cf5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityLmj.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityLmj.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SettingsSimilarityLmjConverter))] public sealed partial class SettingsSimilarityLmj : Elastic.Clients.Elasticsearch.IndexManagement.ISettingsSimilarity { -#if NET7_0_OR_GREATER public SettingsSimilarityLmj() { } -#endif -#if !NET7_0_OR_GREATER - public SettingsSimilarityLmj() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSimilarityLmj(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs index 9b31587ae24..f5fc4898ecb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs @@ -31,28 +31,18 @@ public SettingsSimilarityScripted(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public SettingsSimilarityScripted() - { - } -#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 SettingsSimilarityScripted() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SettingsSimilarityScripted(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } public string Type => "scripted"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardCommit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardCommit.g.cs index 6c2fa2cd816..f470bfc4c8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardCommit.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardCommit.g.cs @@ -34,41 +34,19 @@ public ShardCommit(int generation, string id, long numDocs, System.Collections.G NumDocs = numDocs; UserData = userData; } -#if NET7_0_OR_GREATER - public ShardCommit() - { - } -#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 ShardCommit() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardCommit(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Generation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NumDocs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary UserData { get; set; } + public required int Generation { get; set; } + public required string Id { get; set; } + public required long NumDocs { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary UserData { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardFileSizeInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardFileSizeInfo.g.cs index 4982e73450e..212cb3d09d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardFileSizeInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardFileSizeInfo.g.cs @@ -32,17 +32,11 @@ public ShardFileSizeInfo(string description, long sizeInBytes) Description = description; SizeInBytes = sizeInBytes; } -#if NET7_0_OR_GREATER - public ShardFileSizeInfo() - { - } -#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 ShardFileSizeInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardFileSizeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,16 +45,8 @@ internal ShardFileSizeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConst public long? AverageSizeInBytes { get; set; } public long? Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } + public required string Description { get; set; } public long? MaxSizeInBytes { get; set; } public long? MinSizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } + public required long SizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardLease.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardLease.g.cs index 74f4d45261e..333af035b51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardLease.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardLease.g.cs @@ -34,41 +34,19 @@ public ShardLease(string id, long retainingSeqNo, string source, long timestamp) Source = source; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public ShardLease() - { - } -#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 ShardLease() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardLease(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RetainingSeqNo { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Source { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Timestamp { get; set; } + public required string Id { get; set; } + public required long RetainingSeqNo { get; set; } + public required string Source { get; set; } + public required long Timestamp { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardPath.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardPath.g.cs index a255376034a..b884e68ee71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardPath.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardPath.g.cs @@ -33,36 +33,18 @@ public ShardPath(string dataPath, bool isCustomDataPath, string statePath) IsCustomDataPath = isCustomDataPath; StatePath = statePath; } -#if NET7_0_OR_GREATER - public ShardPath() - { - } -#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 ShardPath() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardPath(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string DataPath { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool IsCustomDataPath { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string StatePath { get; set; } + public required string DataPath { get; set; } + public required bool IsCustomDataPath { get; set; } + public required string StatePath { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardQueryCache.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardQueryCache.g.cs index 2bec88250a0..381cb13acc9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardQueryCache.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardQueryCache.g.cs @@ -37,56 +37,22 @@ public ShardQueryCache(long cacheCount, long cacheSize, long evictions, long hit MissCount = missCount; TotalCount = totalCount; } -#if NET7_0_OR_GREATER - public ShardQueryCache() - { - } -#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 ShardQueryCache() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardQueryCache(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long CacheCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CacheSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Evictions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long HitCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MemorySizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MissCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalCount { get; set; } + public required long CacheCount { get; set; } + public required long CacheSize { get; set; } + public required long Evictions { get; set; } + public required long HitCount { get; set; } + public required long MemorySizeInBytes { get; set; } + public required long MissCount { get; set; } + public required long TotalCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.g.cs index 58347e0c558..058d90d19ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.g.cs @@ -41,81 +41,31 @@ public ShardRecovery(long id, Elastic.Clients.Elasticsearch.IndexManagement.Reco Type = type; VerifyIndex = verifyIndex; } -#if NET7_0_OR_GREATER - public ShardRecovery() - { - } -#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 ShardRecovery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardRecovery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.RecoveryIndexStatus Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Primary { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin Source { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Stage { get; set; } + public required long Id { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryIndexStatus Index { get; set; } + public required bool Primary { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin Source { get; set; } + public required string Stage { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStartStatus? Start { get; set; } public System.DateTimeOffset? StartTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } public System.DateTimeOffset? StopTime { get; set; } public System.DateTimeOffset? StopTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin Target { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin Target { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.TranslogStatus Translog { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.VerifyIndex VerifyIndex { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.TranslogStatus Translog { get; set; } + public required string Type { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.VerifyIndex VerifyIndex { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRetentionLeases.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRetentionLeases.g.cs index a87cb2519c9..0c8caa681fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRetentionLeases.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRetentionLeases.g.cs @@ -33,36 +33,18 @@ public ShardRetentionLeases(System.Collections.Generic.IReadOnlyCollection Leases { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PrimaryTerm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Leases { get; set; } + public required long PrimaryTerm { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRouting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRouting.g.cs index 4d16839429a..ffb993bf0fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRouting.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRouting.g.cs @@ -33,37 +33,19 @@ public ShardRouting(string node, bool primary, Elastic.Clients.Elasticsearch.Ind Primary = primary; State = state; } -#if NET7_0_OR_GREATER - public ShardRouting() - { - } -#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 ShardRouting() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardRouting(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Primary { get; set; } + public required string Node { get; set; } + public required bool Primary { get; set; } public string? RelocatingNode { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ShardRoutingState State { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ShardRoutingState State { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs index 26b4fd265af..8245b4b622b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs @@ -33,36 +33,18 @@ public ShardSegmentRouting(string node, bool primary, string state) Primary = primary; State = state; } -#if NET7_0_OR_GREATER - public ShardSegmentRouting() - { - } -#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 ShardSegmentRouting() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardSegmentRouting(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Primary { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string State { get; set; } + public required string Node { get; set; } + public required bool Primary { get; set; } + public required string State { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSequenceNumber.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSequenceNumber.g.cs index 98070135389..23ec22eaaa5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSequenceNumber.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSequenceNumber.g.cs @@ -33,36 +33,18 @@ public ShardSequenceNumber(long globalCheckpoint, long localCheckpoint, long max LocalCheckpoint = localCheckpoint; MaxSeqNo = maxSeqNo; } -#if NET7_0_OR_GREATER - public ShardSequenceNumber() - { - } -#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 ShardSequenceNumber() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardSequenceNumber(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long GlobalCheckpoint { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long LocalCheckpoint { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MaxSeqNo { get; set; } + public required long GlobalCheckpoint { get; set; } + public required long LocalCheckpoint { get; set; } + public required long MaxSeqNo { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStats.g.cs index 42f317eeeab..213b9bea405 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.ShardStatsConverter))] public sealed partial class ShardStats { -#if NET7_0_OR_GREATER public ShardStats() { } -#endif -#if !NET7_0_OR_GREATER - public ShardStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs index 4c5be2a203e..14cd1655fb2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs @@ -33,38 +33,20 @@ public ShardStore(Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreAlloca Node = node; NodeId = nodeId; } -#if NET7_0_OR_GREATER - public ShardStore() - { - } -#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 ShardStore() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardStore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreAllocation Allocation { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreAllocation Allocation { get; set; } public string? AllocationId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreNode Node { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreNode Node { get; set; } + public required string NodeId { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreException? StoreException { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreException.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreException.g.cs index 358bb82c5ea..a2b4ef2d2b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreException.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreException.g.cs @@ -32,31 +32,17 @@ public ShardStoreException(string reason, string type) Reason = reason; Type = type; } -#if NET7_0_OR_GREATER - public ShardStoreException() - { - } -#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 ShardStoreException() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardStoreException(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Reason { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Reason { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreNode.g.cs index 62ae0a4aab1..3936e7fa612 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreNode.g.cs @@ -34,43 +34,21 @@ public ShardStoreNode(System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } public string? EphemeralId { get; set; } public string? ExternalId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } + public required string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required string TransportAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreWrapper.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreWrapper.g.cs index 3327cb778b3..49e3bcb6f67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreWrapper.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreWrapper.g.cs @@ -31,26 +31,16 @@ public ShardStoreWrapper(System.Collections.Generic.IReadOnlyCollection Stores { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Stores { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsSegment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsSegment.g.cs index ed3f965056e..63d96ee51e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsSegment.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsSegment.g.cs @@ -34,41 +34,19 @@ public ShardsSegment(int numCommittedSegments, int numSearchSegments, Elastic.Cl Routing = routing; Segments = segments; } -#if NET7_0_OR_GREATER - public ShardsSegment() - { - } -#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 ShardsSegment() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsSegment(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int NumCommittedSegments { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int NumSearchSegments { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ShardSegmentRouting Routing { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Segments { get; set; } + public required int NumCommittedSegments { get; set; } + public required int NumSearchSegments { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ShardSegmentRouting Routing { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Segments { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsStats.g.cs index afc96cf211d..6d3bdd7ea5f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsStats.g.cs @@ -32,31 +32,17 @@ public ShardsStats(Elastic.Clients.Elasticsearch.IndexManagement.FieldSummary al AllFields = allFields; Fields = fields; } -#if NET7_0_OR_GREATER - public ShardsStats() - { - } -#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 ShardsStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.FieldSummary AllFields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Fields { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.FieldSummary AllFields { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Fields { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsTotalStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsTotalStats.g.cs index 662d6f2a9f1..711bad4631e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsTotalStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardsTotalStats.g.cs @@ -31,26 +31,16 @@ public ShardsTotalStats(long totalCount) { TotalCount = totalCount; } -#if NET7_0_OR_GREATER - public ShardsTotalStats() - { - } -#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 ShardsTotalStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsTotalStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalCount { get; set; } + public required long TotalCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogSettings.g.cs index e7455b442cc..9e09c09d057 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SlowlogSettingsConverter))] public sealed partial class SlowlogSettings { -#if NET7_0_OR_GREATER public SlowlogSettings() { } -#endif -#if !NET7_0_OR_GREATER - public SlowlogSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlowlogSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogTresholdLevels.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogTresholdLevels.g.cs index e069680ed7e..ed102ee1fa4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogTresholdLevels.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogTresholdLevels.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SlowlogTresholdLevelsConverter))] public sealed partial class SlowlogTresholdLevels { -#if NET7_0_OR_GREATER public SlowlogTresholdLevels() { } -#endif -#if !NET7_0_OR_GREATER - public SlowlogTresholdLevels() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlowlogTresholdLevels(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogTresholds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogTresholds.g.cs index e040151dc82..6ae072f9456 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogTresholds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SlowlogTresholds.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SlowlogTresholdsConverter))] public sealed partial class SlowlogTresholds { -#if NET7_0_OR_GREATER public SlowlogTresholds() { } -#endif -#if !NET7_0_OR_GREATER - public SlowlogTresholds() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlowlogTresholds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SoftDeletes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SoftDeletes.g.cs index c62394aa586..908135ab628 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SoftDeletes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SoftDeletes.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.SoftDeletesConverter))] public sealed partial class SoftDeletes { -#if NET7_0_OR_GREATER public SoftDeletes() { } -#endif -#if !NET7_0_OR_GREATER - public SoftDeletes() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SoftDeletes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SourceIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SourceIndex.g.cs index 7677c8559bd..6d8f7dbd77e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SourceIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SourceIndex.g.cs @@ -31,28 +31,18 @@ public SourceIndex(Elastic.Clients.Elasticsearch.IndexName index) { Index = index; } -#if NET7_0_OR_GREATER - public SourceIndex() - { - } -#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 SourceIndex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SourceIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } } public readonly partial struct SourceIndexDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusError.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusError.g.cs index 28980da7166..f900c4627da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusError.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusError.g.cs @@ -32,31 +32,17 @@ public StatusError(string index, string message) Index = index; Message = message; } -#if NET7_0_OR_GREATER - public StatusError() - { - } -#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 StatusError() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StatusError(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Message { get; set; } + public required string Index { get; set; } + public required string Message { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusInProgress.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusInProgress.g.cs index 38cc3eea603..f4e31ed1da4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusInProgress.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusInProgress.g.cs @@ -33,36 +33,18 @@ public StatusInProgress(string index, long reindexedDocCount, long totalDocCount ReindexedDocCount = reindexedDocCount; TotalDocCount = totalDocCount; } -#if NET7_0_OR_GREATER - public StatusInProgress() - { - } -#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 StatusInProgress() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StatusInProgress(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ReindexedDocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalDocCount { get; set; } + public required string Index { get; set; } + public required long ReindexedDocCount { get; set; } + public required long TotalDocCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Storage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Storage.g.cs index 676cd3b2536..dbabe55f403 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Storage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Storage.g.cs @@ -31,17 +31,11 @@ public Storage(Elastic.Clients.Elasticsearch.IndexManagement.StorageType type) { Type = type; } -#if NET7_0_OR_GREATER - public Storage() - { - } -#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 Storage() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Storage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,11 +58,7 @@ internal Storage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// /// public Elastic.Clients.Elasticsearch.Duration? StatsRefreshInterval { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.StorageType Type { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.StorageType Type { get; set; } } public readonly partial struct StorageDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Template.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Template.g.cs index 422ba70a8e6..2d34becde88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Template.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Template.g.cs @@ -33,36 +33,18 @@ public Template(System.Collections.Generic.IReadOnlyDictionary Aliases { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Aliases { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TemplateMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TemplateMapping.g.cs index 251c745d481..729db538caa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TemplateMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TemplateMapping.g.cs @@ -35,47 +35,21 @@ public TemplateMapping(System.Collections.Generic.IReadOnlyDictionary Aliases { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection IndexPatterns { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Order { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Settings { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Aliases { get; set; } + public required System.Collections.Generic.IReadOnlyCollection IndexPatterns { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; set; } + public required int Order { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Settings { get; set; } public long? Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TokenDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TokenDetail.g.cs index f4ec00202de..809f8ae39c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TokenDetail.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TokenDetail.g.cs @@ -32,31 +32,17 @@ public TokenDetail(string name, System.Collections.Generic.IReadOnlyCollection Tokens { get; set; } + public required string Name { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Tokens { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Translog.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Translog.g.cs index c305e54b69d..23d29d3ed59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Translog.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Translog.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.TranslogConverter))] public sealed partial class Translog { -#if NET7_0_OR_GREATER public Translog() { } -#endif -#if !NET7_0_OR_GREATER - public Translog() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Translog(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TranslogRetention.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TranslogRetention.g.cs index f2dfdfb4785..5f54d1b072c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TranslogRetention.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TranslogRetention.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.TranslogRetentionConverter))] public sealed partial class TranslogRetention { -#if NET7_0_OR_GREATER public TranslogRetention() { } -#endif -#if !NET7_0_OR_GREATER - public TranslogRetention() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TranslogRetention(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TranslogStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TranslogStatus.g.cs index 366a1176849..9a56ac1e649 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TranslogStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TranslogStatus.g.cs @@ -35,47 +35,21 @@ public TranslogStatus(Elastic.Clients.Elasticsearch.Percentage percent, long rec TotalOnStart = totalOnStart; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public TranslogStatus() - { - } -#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 TranslogStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TranslogStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Percentage Percent { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Recovered { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalOnStart { get; set; } + public required Elastic.Clients.Elasticsearch.Percentage Percent { get; set; } + public required long Recovered { get; set; } + public required long Total { get; set; } + public required long TotalOnStart { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TypeFieldMappings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TypeFieldMappings.g.cs index d75b888e341..64aa17e9b05 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TypeFieldMappings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/TypeFieldMappings.g.cs @@ -31,26 +31,16 @@ public TypeFieldMappings(System.Collections.Generic.IReadOnlyDictionary Mappings { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Mappings { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UpdatedDataStreamMappings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UpdatedDataStreamMappings.g.cs index 3cd748f4b95..46514c16948 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UpdatedDataStreamMappings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UpdatedDataStreamMappings.g.cs @@ -32,17 +32,11 @@ public UpdatedDataStreamMappings(bool appliedToDataStream, string name) AppliedToDataStream = appliedToDataStream; Name = name; } -#if NET7_0_OR_GREATER - public UpdatedDataStreamMappings() - { - } -#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 UpdatedDataStreamMappings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdatedDataStreamMappings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal UpdatedDataStreamMappings(Elastic.Clients.Elasticsearch.Serialization.J /// mode), it is true. If an error occurred, it is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool AppliedToDataStream { get; set; } + public required bool AppliedToDataStream { get; set; } /// /// @@ -88,9 +78,5 @@ internal UpdatedDataStreamMappings(Elastic.Clients.Elasticsearch.Serialization.J /// The data stream name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UpdatedDataStreamSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UpdatedDataStreamSettings.g.cs index d1d0d4d7f2a..aae3e2b6829 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UpdatedDataStreamSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UpdatedDataStreamSettings.g.cs @@ -35,17 +35,11 @@ public UpdatedDataStreamSettings(bool appliedToDataStream, Elastic.Clients.Elast Name = name; Settings = settings; } -#if NET7_0_OR_GREATER - public UpdatedDataStreamSettings() - { - } -#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 UpdatedDataStreamSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UpdatedDataStreamSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal UpdatedDataStreamSettings(Elastic.Clients.Elasticsearch.Serialization.J /// mode), it is true. If an error occurred, it is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool AppliedToDataStream { get; set; } + public required bool AppliedToDataStream { get; set; } /// /// @@ -70,11 +60,7 @@ internal UpdatedDataStreamSettings(Elastic.Clients.Elasticsearch.Serialization.J /// template and the settings specific to this data stream. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings EffectiveSettings { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings EffectiveSettings { get; set; } /// /// @@ -88,31 +74,19 @@ internal UpdatedDataStreamSettings(Elastic.Clients.Elasticsearch.Serialization.J /// Information about whether and where each setting was applied. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingResults IndexSettingsResults { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingResults IndexSettingsResults { get; set; } /// /// /// The data stream name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// /// The settings that are specfic to this data stream that will override any settings from the matching index template. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings Settings { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UsageStatsIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UsageStatsIndex.g.cs index 3c2fc62185f..0b13ae4bea8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UsageStatsIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UsageStatsIndex.g.cs @@ -31,26 +31,16 @@ public UsageStatsIndex(System.Collections.Generic.IReadOnlyCollection Shards { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Shards { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UsageStatsShards.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UsageStatsShards.g.cs index c24e750abbe..c8c75cda30a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UsageStatsShards.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/UsageStatsShards.g.cs @@ -34,41 +34,19 @@ public UsageStatsShards(Elastic.Clients.Elasticsearch.IndexManagement.ShardRouti TrackingId = trackingId; TrackingStartedAtMillis = trackingStartedAtMillis; } -#if NET7_0_OR_GREATER - public UsageStatsShards() - { - } -#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 UsageStatsShards() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UsageStatsShards(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ShardRouting Routing { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ShardsStats Stats { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TrackingId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset TrackingStartedAtMillis { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ShardRouting Routing { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ShardsStats Stats { get; set; } + public required string TrackingId { get; set; } + public required System.DateTimeOffset TrackingStartedAtMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/VerifyIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/VerifyIndex.g.cs index 81ef8a88970..571a476e8aa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/VerifyIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/VerifyIndex.g.cs @@ -32,17 +32,11 @@ public VerifyIndex(System.TimeSpan checkIndexTimeInMillis, System.TimeSpan total CheckIndexTimeInMillis = checkIndexTimeInMillis; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public VerifyIndex() - { - } -#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 VerifyIndex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VerifyIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,15 +44,7 @@ internal VerifyIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor } public Elastic.Clients.Elasticsearch.Duration? CheckIndexTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan CheckIndexTimeInMillis { get; set; } + public required System.TimeSpan CheckIndexTimeInMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexingStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexingStats.g.cs index 54cef3987ec..7c9e54c8705 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexingStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexingStats.g.cs @@ -40,78 +40,32 @@ public IndexingStats(long deleteCurrent, System.TimeSpan deleteTimeInMillis, lon NoopUpdateTotal = noopUpdateTotal; ThrottleTimeInMillis = throttleTimeInMillis; } -#if NET7_0_OR_GREATER - public IndexingStats() - { - } -#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 IndexingStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexingStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long DeleteCurrent { get; set; } + public required long DeleteCurrent { get; set; } public Elastic.Clients.Elasticsearch.Duration? DeleteTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan DeleteTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DeleteTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexCurrent { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexFailed { get; set; } + public required System.TimeSpan DeleteTimeInMillis { get; set; } + public required long DeleteTotal { get; set; } + public required long IndexCurrent { get; set; } + public required long IndexFailed { get; set; } public Elastic.Clients.Elasticsearch.Duration? IndexTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan IndexTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool IsThrottled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NoopUpdateTotal { get; set; } + public required System.TimeSpan IndexTimeInMillis { get; set; } + public required long IndexTotal { get; set; } + public required bool IsThrottled { get; set; } + public required long NoopUpdateTotal { get; set; } public double? PeakWriteLoad { get; set; } public double? RecentWriteLoad { get; set; } public Elastic.Clients.Elasticsearch.Duration? ThrottleTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ThrottleTimeInMillis { get; set; } + public required System.TimeSpan ThrottleTimeInMillis { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Types { get; set; } public double? WriteLoad { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs index 1a20dcb44d3..54fa8c2d875 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs @@ -32,16 +32,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.IndicesOptionsConverter))] public sealed partial class IndicesOptions { -#if NET7_0_OR_GREATER public IndicesOptions() { } -#endif -#if !NET7_0_OR_GREATER - public IndicesOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndicesOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AdaptiveAllocations.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AdaptiveAllocations.g.cs index 87e33288519..e3249f6b32a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AdaptiveAllocations.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AdaptiveAllocations.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.AdaptiveAllocationsConverter))] public sealed partial class AdaptiveAllocations { -#if NET7_0_OR_GREATER public AdaptiveAllocations() { } -#endif -#if !NET7_0_OR_GREATER - public AdaptiveAllocations() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AdaptiveAllocations(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Ai21ServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Ai21ServiceSettings.g.cs index a3d0f779852..1a8d77c74e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Ai21ServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Ai21ServiceSettings.g.cs @@ -31,17 +31,11 @@ public Ai21ServiceSettings(string modelId) { ModelId = modelId; } -#if NET7_0_OR_GREATER - public Ai21ServiceSettings() - { - } -#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 Ai21ServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Ai21ServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -80,11 +74,7 @@ internal Ai21ServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudServiceSettings.g.cs index c37d7d06411..ffd4a642671 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudServiceSettings.g.cs @@ -34,17 +34,11 @@ public AlibabaCloudServiceSettings(string apiKey, string host, string serviceId, ServiceId = serviceId; Workspace = workspace; } -#if NET7_0_OR_GREATER - public AlibabaCloudServiceSettings() - { - } -#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 AlibabaCloudServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AlibabaCloudServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,11 +50,7 @@ internal AlibabaCloudServiceSettings(Elastic.Clients.Elasticsearch.Serialization /// A valid API key for the AlibabaCloud AI Search API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -68,11 +58,7 @@ internal AlibabaCloudServiceSettings(Elastic.Clients.Elasticsearch.Serialization /// You can find the host address in the API keys section of the documentation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Host { get; set; } + public required string Host { get; set; } /// /// @@ -139,22 +125,14 @@ internal AlibabaCloudServiceSettings(Elastic.Clients.Elasticsearch.Serialization /// ops-text-embedding-002 /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ServiceId { get; set; } + public required string ServiceId { get; set; } /// /// /// The name of the workspace used for the inference task. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Workspace { get; set; } + public required string Workspace { get; set; } } public readonly partial struct AlibabaCloudServiceSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskSettings.g.cs index 1807a98a6fb..a63a9c00928 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.AlibabaCloudTaskSettingsConverter))] public sealed partial class AlibabaCloudTaskSettings { -#if NET7_0_OR_GREATER public AlibabaCloudTaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public AlibabaCloudTaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AlibabaCloudTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockServiceSettings.g.cs index bc0c463b74e..49d97c5d571 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockServiceSettings.g.cs @@ -34,17 +34,11 @@ public AmazonBedrockServiceSettings(string accessKey, string model, string regio Region = region; SecretKey = secretKey; } -#if NET7_0_OR_GREATER - public AmazonBedrockServiceSettings() - { - } -#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 AmazonBedrockServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AmazonBedrockServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,11 +50,7 @@ internal AmazonBedrockServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// A valid AWS access key that has permissions to use Amazon Bedrock and access to models for inference requests. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string AccessKey { get; set; } + public required string AccessKey { get; set; } /// /// @@ -69,11 +59,7 @@ internal AmazonBedrockServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// Note that the model ID must be available for the provider chosen and your IAM user must have access to the model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Model { get; set; } + public required string Model { get; set; } /// /// @@ -130,11 +116,7 @@ internal AmazonBedrockServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// The list of available regions per model can be found in the Amazon Bedrock documentation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Region { get; set; } + public required string Region { get; set; } /// /// @@ -142,11 +124,7 @@ internal AmazonBedrockServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// For informationg about creating and managing access and secret keys, refer to the AWS documentation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string SecretKey { get; set; } + public required string SecretKey { get; set; } } public readonly partial struct AmazonBedrockServiceSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockTaskSettings.g.cs index fd980628072..741d364e21a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockTaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.AmazonBedrockTaskSettingsConverter))] public sealed partial class AmazonBedrockTaskSettings { -#if NET7_0_OR_GREATER public AmazonBedrockTaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public AmazonBedrockTaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AmazonBedrockTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonSageMakerServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonSageMakerServiceSettings.g.cs index 912ddf4f791..0540c749707 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonSageMakerServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonSageMakerServiceSettings.g.cs @@ -35,17 +35,11 @@ public AmazonSageMakerServiceSettings(string accessKey, Elastic.Clients.Elastics Region = region; SecretKey = secretKey; } -#if NET7_0_OR_GREATER - public AmazonSageMakerServiceSettings() - { - } -#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 AmazonSageMakerServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AmazonSageMakerServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,11 +51,7 @@ internal AmazonSageMakerServiceSettings(Elastic.Clients.Elasticsearch.Serializat /// A valid AWS access key that has permissions to use Amazon SageMaker and access to models for invoking requests. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string AccessKey { get; set; } + public required string AccessKey { get; set; } /// /// @@ -69,11 +59,7 @@ internal AmazonSageMakerServiceSettings(Elastic.Clients.Elasticsearch.Serializat /// Elasticsearch will convert the POST _inference request to this data format when invoking the SageMaker endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.AmazonSageMakerApi Api { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.AmazonSageMakerApi Api { get; set; } /// /// @@ -97,11 +83,7 @@ internal AmazonSageMakerServiceSettings(Elastic.Clients.Elasticsearch.Serializat /// The name of the SageMaker endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string EndpointName { get; set; } + public required string EndpointName { get; set; } /// /// @@ -116,11 +98,7 @@ internal AmazonSageMakerServiceSettings(Elastic.Clients.Elasticsearch.Serializat /// The list of available regions per model can be found in the Amazon SageMaker documentation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Region { get; set; } + public required string Region { get; set; } /// /// @@ -128,11 +106,7 @@ internal AmazonSageMakerServiceSettings(Elastic.Clients.Elasticsearch.Serializat /// For information about creating and managing access and secret keys, refer to the AWS documentation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string SecretKey { get; set; } + public required string SecretKey { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonSageMakerTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonSageMakerTaskSettings.g.cs index 7f5bf45a45b..5119a73d146 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonSageMakerTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonSageMakerTaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.AmazonSageMakerTaskSettingsConverter))] public sealed partial class AmazonSageMakerTaskSettings { -#if NET7_0_OR_GREATER public AmazonSageMakerTaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public AmazonSageMakerTaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AmazonSageMakerTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicServiceSettings.g.cs index 9600ed9a6e8..de2bd0601ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicServiceSettings.g.cs @@ -32,17 +32,11 @@ public AnthropicServiceSettings(string apiKey, string modelId) ApiKey = apiKey; ModelId = modelId; } -#if NET7_0_OR_GREATER - public AnthropicServiceSettings() - { - } -#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 AnthropicServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnthropicServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal AnthropicServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Js /// A valid API key for the Anthropic API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -66,11 +56,7 @@ internal AnthropicServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Js /// Refer to the Anthropic documentation for the list of supported models. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicTaskSettings.g.cs index 060fa7a41d1..a46c652aac0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicTaskSettings.g.cs @@ -31,17 +31,11 @@ public AnthropicTaskSettings(int maxTokens) { MaxTokens = maxTokens; } -#if NET7_0_OR_GREATER - public AnthropicTaskSettings() - { - } -#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 AnthropicTaskSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnthropicTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal AnthropicTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// For a completion task, it is the maximum number of tokens to generate before stopping. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MaxTokens { get; set; } + public required int MaxTokens { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioServiceSettings.g.cs index 906328c83f3..361f23fa1be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioServiceSettings.g.cs @@ -34,17 +34,11 @@ public AzureAiStudioServiceSettings(string apiKey, string endpointType, string p Provider = provider; Target = target; } -#if NET7_0_OR_GREATER - public AzureAiStudioServiceSettings() - { - } -#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 AzureAiStudioServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AzureAiStudioServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal AzureAiStudioServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -76,11 +66,7 @@ internal AzureAiStudioServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// The realtime endpoint type is for "real-time" endpoints that are billed per hour of usage. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string EndpointType { get; set; } + public required string EndpointType { get; set; } /// /// @@ -121,11 +107,7 @@ internal AzureAiStudioServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Provider { get; set; } + public required string Provider { get; set; } /// /// @@ -141,11 +123,7 @@ internal AzureAiStudioServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// This can be found on the overview page for your deployment in the management section of your Azure AI Studio account. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Target { get; set; } + public required string Target { get; set; } } public readonly partial struct AzureAiStudioServiceSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioTaskSettings.g.cs index 2d83dafbb59..dd0a2856f03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioTaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.AzureAiStudioTaskSettingsConverter))] public sealed partial class AzureAiStudioTaskSettings { -#if NET7_0_OR_GREATER public AzureAiStudioTaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public AzureAiStudioTaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AzureAiStudioTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs index d15723e7ecc..3076e1840a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs @@ -33,17 +33,11 @@ public AzureOpenAIServiceSettings(string apiVersion, string deploymentId, string DeploymentId = deploymentId; ResourceName = resourceName; } -#if NET7_0_OR_GREATER - public AzureOpenAIServiceSettings() - { - } -#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 AzureOpenAIServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -71,11 +65,7 @@ internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// It is recommended to use the latest supported non-preview version. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiVersion { get; set; } + public required string ApiVersion { get; set; } /// /// @@ -83,11 +73,7 @@ internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// Your Azure OpenAI deployments can be found though the Azure OpenAI Studio portal that is linked to your subscription. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string DeploymentId { get; set; } + public required string DeploymentId { get; set; } /// /// @@ -103,7 +89,7 @@ internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// This setting helps to minimize the number of rate limit errors returned from Azure. /// The azureopenai service sets a default number of requests allowed per minute depending on the task type. /// For text_embedding, it is set to 1440. - /// For completion, it is set to 120. + /// For completion and chat_completion, it is set to 120. /// /// public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } @@ -114,11 +100,7 @@ internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// You can find this from the list of resources in the Azure Portal for your subscription. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ResourceName { get; set; } + public required string ResourceName { get; set; } } public readonly partial struct AzureOpenAiServiceSettingsDescriptor @@ -201,7 +183,7 @@ public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescrip /// This setting helps to minimize the number of rate limit errors returned from Azure. /// The azureopenai service sets a default number of requests allowed per minute depending on the task type. /// For text_embedding, it is set to 1440. - /// For completion, it is set to 120. + /// For completion and chat_completion, it is set to 120. /// /// public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? value) @@ -215,7 +197,7 @@ public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescrip /// This setting helps to minimize the number of rate limit errors returned from Azure. /// The azureopenai service sets a default number of requests allowed per minute depending on the task type. /// For text_embedding, it is set to 1440. - /// For completion, it is set to 120. + /// For completion and chat_completion, it is set to 120. /// /// public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor RateLimit() @@ -229,7 +211,7 @@ public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescrip /// This setting helps to minimize the number of rate limit errors returned from Azure. /// The azureopenai service sets a default number of requests allowed per minute depending on the task type. /// For text_embedding, it is set to 1440. - /// For completion, it is set to 120. + /// For completion and chat_completion, it is set to 120. /// /// public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor RateLimit(System.Action? action) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskSettings.g.cs index dc78a0007a6..9ffe30ae27c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.AzureOpenAITaskSettingsConverter))] public sealed partial class AzureOpenAITaskSettings { -#if NET7_0_OR_GREATER public AzureOpenAITaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public AzureOpenAITaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AzureOpenAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -44,7 +38,7 @@ internal AzureOpenAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.Jso /// /// - /// For a completion or text_embedding task, specify the user issuing the request. + /// For a completion, chat_completion or text_embedding task, specify the user issuing the request. /// This information can be used for abuse detection. /// /// @@ -72,7 +66,7 @@ public AzureOpenAiTaskSettingsDescriptor() /// /// - /// For a completion or text_embedding task, specify the user issuing the request. + /// For a completion, chat_completion or text_embedding task, specify the user issuing the request. /// This information can be used for abuse detection. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskType.Converters.g.cs index 0608e637ed6..1080e25d807 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskType.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskType.Converters.g.cs @@ -25,11 +25,17 @@ namespace Elastic.Clients.Elasticsearch.Inference.Json; public sealed partial class AzureOpenAITaskTypeConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText MemberChatCompletion = System.Text.Json.JsonEncodedText.Encode("chat_completion"u8); private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"u8); private static readonly System.Text.Json.JsonEncodedText MemberTextEmbedding = System.Text.Json.JsonEncodedText.Encode("text_embedding"u8); public override Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { + if (reader.ValueTextEquals(MemberChatCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType.ChatCompletion; + } + if (reader.ValueTextEquals(MemberCompletion)) { return Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType.Completion; @@ -41,6 +47,11 @@ public override Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType Read } var value = reader.GetString()!; + if (string.Equals(value, MemberChatCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType.ChatCompletion; + } + if (string.Equals(value, MemberCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) { return Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType.Completion; @@ -58,6 +69,9 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien { switch (value) { + case Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType.ChatCompletion: + writer.WriteStringValue(MemberChatCompletion); + break; case Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType.Completion: writer.WriteStringValue(MemberCompletion); break; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskType.g.cs index a39376d97a5..c4b145849dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskType.g.cs @@ -26,6 +26,8 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.AzureOpenAITaskTypeConverter))] public enum AzureOpenAITaskType { + [System.Runtime.Serialization.EnumMember(Value = "chat_completion")] + ChatCompletion, [System.Runtime.Serialization.EnumMember(Value = "completion")] Completion, [System.Runtime.Serialization.EnumMember(Value = "text_embedding")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs index 7f38933b82f..5c4337bec6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs @@ -32,17 +32,11 @@ public CohereServiceSettings(string apiKey, string modelId) ApiKey = apiKey; ModelId = modelId; } -#if NET7_0_OR_GREATER - public CohereServiceSettings() - { - } -#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 CohereServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CohereServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal CohereServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -101,11 +91,7 @@ internal CohereServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereTaskSettings.g.cs index df26c9e5521..65b802a56f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereTaskSettings.g.cs @@ -31,17 +31,11 @@ public CohereTaskSettings(Elastic.Clients.Elasticsearch.Inference.CohereInputTyp { InputType = inputType; } -#if NET7_0_OR_GREATER - public CohereTaskSettings() - { - } -#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 CohereTaskSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CohereTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +73,7 @@ internal CohereTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// IMPORTANT: The input_type field is required when using embedding models v3 and higher. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CohereInputType InputType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.CohereInputType InputType { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionResult.g.cs index 6c34c665429..cd00a0dec79 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionResult.g.cs @@ -36,26 +36,16 @@ public CompletionResult(string result) { Result = result; } -#if NET7_0_OR_GREATER - public CompletionResult() - { - } -#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 CompletionResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Result { get; set; } + public required string Result { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionTool.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionTool.g.cs index 1e51c0647d5..759e652bfa0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionTool.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionTool.g.cs @@ -37,17 +37,11 @@ public CompletionTool(Elastic.Clients.Elasticsearch.Inference.CompletionToolFunc Function = function; Type = type; } -#if NET7_0_OR_GREATER - public CompletionTool() - { - } -#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 CompletionTool() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionTool(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,22 +53,14 @@ internal CompletionTool(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The function definition. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CompletionToolFunction Function { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.CompletionToolFunction Function { get; set; } /// /// /// The type of tool. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoice.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoice.g.cs index ad2e1b745d0..ec3f1da4760 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoice.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoice.g.cs @@ -37,17 +37,11 @@ public CompletionToolChoice(Elastic.Clients.Elasticsearch.Inference.CompletionTo Function = function; Type = type; } -#if NET7_0_OR_GREATER - public CompletionToolChoice() - { - } -#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 CompletionToolChoice() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionToolChoice(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,20 +53,12 @@ internal CompletionToolChoice(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The tool choice function. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CompletionToolChoiceFunction Function { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.CompletionToolChoiceFunction Function { get; set; } /// /// /// The type of the tool. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoiceFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoiceFunction.g.cs index b4084d51d89..3aa7d9ece30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoiceFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoiceFunction.g.cs @@ -36,17 +36,11 @@ public CompletionToolChoiceFunction(string name) { Name = name; } -#if NET7_0_OR_GREATER - public CompletionToolChoiceFunction() - { - } -#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 CompletionToolChoiceFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionToolChoiceFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,9 +52,5 @@ internal CompletionToolChoiceFunction(Elastic.Clients.Elasticsearch.Serializatio /// The name of the function to call. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolFunction.g.cs index 10699734c82..23448b7072e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolFunction.g.cs @@ -36,17 +36,11 @@ public CompletionToolFunction(string name) { Name = name; } -#if NET7_0_OR_GREATER - public CompletionToolFunction() - { - } -#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 CompletionToolFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionToolFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +60,7 @@ internal CompletionToolFunction(Elastic.Clients.Elasticsearch.Serialization.Json /// The name of the function. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContentObject.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContentObject.g.cs index 3d2bd04a288..47bd02eeb41 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContentObject.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContentObject.g.cs @@ -37,17 +37,11 @@ public ContentObject(string text, string type) Text = text; Type = type; } -#if NET7_0_OR_GREATER - public ContentObject() - { - } -#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 ContentObject() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ContentObject(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,20 +53,12 @@ internal ContentObject(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The text content. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Text { get; set; } + public required string Text { get; set; } /// /// /// The type of content. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAIServiceSettings.g.cs index 18c895e75a7..d79dfba12cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAIServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAIServiceSettings.g.cs @@ -32,17 +32,11 @@ public ContextualAIServiceSettings(string apiKey, string modelId) ApiKey = apiKey; ModelId = modelId; } -#if NET7_0_OR_GREATER - public ContextualAIServiceSettings() - { - } -#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 ContextualAIServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ContextualAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal ContextualAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -72,11 +62,7 @@ internal ContextualAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization /// Refer to the Contextual AI documentation for the list of available rerank models. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.g.cs index bffc0ce6d8d..a0a2edf868f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.ContextualAITaskSettingsConverter))] public sealed partial class ContextualAITaskSettings { -#if NET7_0_OR_GREATER public ContextualAITaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public ContextualAITaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ContextualAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomRequestParams.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomRequestParams.g.cs index 0bceabbf3f0..7b9490baa29 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomRequestParams.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomRequestParams.g.cs @@ -31,17 +31,11 @@ public CustomRequestParams(string content) { Content = content; } -#if NET7_0_OR_GREATER - public CustomRequestParams() - { - } -#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 CustomRequestParams() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CustomRequestParams(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal CustomRequestParams(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The content string needs to be a single line except when using the Kibana console. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Content { get; set; } + public required string Content { get; set; } } public readonly partial struct CustomRequestParamsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomResponseParams.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomResponseParams.g.cs index 9a9b4378a17..bfe7b8c3d52 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomResponseParams.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomResponseParams.g.cs @@ -31,17 +31,11 @@ public CustomResponseParams(object jsonParser) { JsonParser = jsonParser; } -#if NET7_0_OR_GREATER - public CustomResponseParams() - { - } -#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 CustomResponseParams() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CustomResponseParams(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -203,11 +197,7 @@ internal CustomResponseParams(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// } /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object JsonParser { get; set; } + public required object JsonParser { get; set; } } public readonly partial struct CustomResponseParamsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomServiceSettings.g.cs index 86189fce0ee..f19f126f9bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomServiceSettings.g.cs @@ -33,17 +33,11 @@ public CustomServiceSettings(Elastic.Clients.Elasticsearch.Inference.CustomReque Response = response; SecretParameters = secretParameters; } -#if NET7_0_OR_GREATER - public CustomServiceSettings() - { - } -#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 CustomServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CustomServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -140,22 +134,14 @@ internal CustomServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The request configuration object. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CustomRequestParams Request { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.CustomRequestParams Request { get; set; } /// /// /// The response configuration object. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.CustomResponseParams Response { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.CustomResponseParams Response { get; set; } /// /// @@ -168,11 +154,7 @@ internal CustomServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// } /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object SecretParameters { get; set; } + public required object SecretParameters { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomTaskSettings.g.cs index 18e2f9c61ad..86a529787a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CustomTaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.CustomTaskSettingsConverter))] public sealed partial class CustomTaskSettings { -#if NET7_0_OR_GREATER public CustomTaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public CustomTaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CustomTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/DeepSeekServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/DeepSeekServiceSettings.g.cs index 7813fa2288f..0b43e6d18e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/DeepSeekServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/DeepSeekServiceSettings.g.cs @@ -32,17 +32,11 @@ public DeepSeekServiceSettings(string apiKey, string modelId) ApiKey = apiKey; ModelId = modelId; } -#if NET7_0_OR_GREATER - public DeepSeekServiceSettings() - { - } -#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 DeepSeekServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeepSeekServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal DeepSeekServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Jso /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -75,11 +65,7 @@ internal DeepSeekServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Jso /// For the available completion and chat_completion models, refer to the DeepSeek Models & Pricing docs. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchServiceSettings.g.cs index a9a69908b06..18e29193a7d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchServiceSettings.g.cs @@ -32,17 +32,11 @@ public ElasticsearchServiceSettings(string modelId, int numThreads) ModelId = modelId; NumThreads = numThreads; } -#if NET7_0_OR_GREATER - public ElasticsearchServiceSettings() - { - } -#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 ElasticsearchServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ElasticsearchServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -110,11 +104,7 @@ internal ElasticsearchServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// It can be the ID of a built-in model (for example, .multilingual-e5-small for E5) or a text embedding model that was uploaded by using the Eland client. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// @@ -134,11 +124,7 @@ internal ElasticsearchServiceSettings(Elastic.Clients.Elasticsearch.Serializatio /// The maximum value is 32. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumThreads { get; set; } + public required int NumThreads { get; set; } } public readonly partial struct ElasticsearchServiceSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchTaskSettings.g.cs index 4a2258ed23d..596b8bec36e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchTaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.ElasticsearchTaskSettingsConverter))] public sealed partial class ElasticsearchTaskSettings { -#if NET7_0_OR_GREATER public ElasticsearchTaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public ElasticsearchTaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ElasticsearchTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElserServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElserServiceSettings.g.cs index 6dc7d3fe38a..6dcfe9ed9e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElserServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElserServiceSettings.g.cs @@ -32,17 +32,11 @@ public ElserServiceSettings(int numAllocations, int numThreads) NumAllocations = numAllocations; NumThreads = numThreads; } -#if NET7_0_OR_GREATER - public ElserServiceSettings() - { - } -#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 ElserServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ElserServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +61,7 @@ internal ElserServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// If adaptive allocations is enabled, do not set this value because it's automatically set. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumAllocations { get; set; } + public required int NumAllocations { get; set; } /// /// @@ -86,11 +76,7 @@ internal ElserServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// If you want to optimize your ELSER endpoint for ingest, set the number of threads to 1. If you want to optimize your ELSER endpoint for search, set the number of threads to greater than 1. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumThreads { get; set; } + public required int NumThreads { get; set; } } public readonly partial struct ElserServiceSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleAiStudioServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleAiStudioServiceSettings.g.cs index b5ff2d3c686..5ff67df5a83 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleAiStudioServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleAiStudioServiceSettings.g.cs @@ -32,17 +32,11 @@ public GoogleAiStudioServiceSettings(string apiKey, string modelId) ApiKey = apiKey; ModelId = modelId; } -#if NET7_0_OR_GREATER - public GoogleAiStudioServiceSettings() - { - } -#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 GoogleAiStudioServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GoogleAiStudioServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal GoogleAiStudioServiceSettings(Elastic.Clients.Elasticsearch.Serializati /// A valid API key of your Google Gemini account. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -66,11 +56,7 @@ internal GoogleAiStudioServiceSettings(Elastic.Clients.Elasticsearch.Serializati /// Refer to the Google documentation for the list of supported models. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// 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 fd485fe1934..cd7eba725ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs @@ -31,17 +31,11 @@ public GoogleVertexAIServiceSettings(string serviceAccountJson) { ServiceAccountJson = serviceAccountJson; } -#if NET7_0_OR_GREATER - public GoogleVertexAIServiceSettings() - { - } -#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 GoogleVertexAIServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GoogleVertexAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -120,11 +114,7 @@ internal GoogleVertexAIServiceSettings(Elastic.Clients.Elasticsearch.Serializati /// A valid service account in JSON format for the Google Vertex AI API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ServiceAccountJson { get; set; } + public required string ServiceAccountJson { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAITaskSettings.g.cs index b24b7de87bf..64d717c7ec0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAITaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAITaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.GoogleVertexAITaskSettingsConverter))] public sealed partial class GoogleVertexAITaskSettings { -#if NET7_0_OR_GREATER public GoogleVertexAITaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public GoogleVertexAITaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GoogleVertexAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqServiceSettings.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqServiceSettings.Converters.g.cs new file mode 100644 index 00000000000..dcd1a8093cb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqServiceSettings.Converters.g.cs @@ -0,0 +1,81 @@ +// 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 GroqServiceSettingsConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropApiKey = System.Text.Json.JsonEncodedText.Encode("api_key"u8); + private static readonly System.Text.Json.JsonEncodedText PropModelId = System.Text.Json.JsonEncodedText.Encode("model_id"u8); + private static readonly System.Text.Json.JsonEncodedText PropRateLimit = System.Text.Json.JsonEncodedText.Encode("rate_limit"u8); + + public override Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings 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 propModelId = default; + LocalJsonValue propRateLimit = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propApiKey.TryReadProperty(ref reader, options, PropApiKey, null)) + { + continue; + } + + if (propModelId.TryReadProperty(ref reader, options, PropModelId, null)) + { + continue; + } + + if (propRateLimit.TryReadProperty(ref reader, options, PropRateLimit, 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.GroqServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + ApiKey = propApiKey.Value, + ModelId = propModelId.Value, + RateLimit = propRateLimit.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropApiKey, value.ApiKey, null, null); + writer.WriteProperty(options, PropModelId, value.ModelId, null, null); + writer.WriteProperty(options, PropRateLimit, value.RateLimit, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqServiceSettings.g.cs new file mode 100644 index 00000000000..a51c8d53188 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqServiceSettings.g.cs @@ -0,0 +1,182 @@ +// 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.GroqServiceSettingsConverter))] +public sealed partial class GroqServiceSettings +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GroqServiceSettings(string modelId) + { + ModelId = modelId; + } + + public GroqServiceSettings() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal GroqServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// A valid API key for accessing Groq API. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public string? ApiKey { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Groq model documentation for the list of supported models and versions. + /// Service has been tested and confirmed to be working for completion and chat_completion tasks with the following models: + /// + /// + /// + /// + /// llama-3.3-70b-versatile + /// + /// + /// + /// + public required string ModelId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the Groq API. + /// By default, the groq service sets the number of requests allowed per minute to 1000. Refer to Groq documentation for more details. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } +} + +public readonly partial struct GroqServiceSettingsDescriptor +{ + internal Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GroqServiceSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings instance) + { + Instance = instance; + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GroqServiceSettingsDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings instance) => new Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings(Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// A valid API key for accessing Groq API. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor ApiKey(string? value) + { + Instance.ApiKey = value; + return this; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Groq model documentation for the list of supported models and versions. + /// Service has been tested and confirmed to be working for completion and chat_completion tasks with the following models: + /// + /// + /// + /// + /// llama-3.3-70b-versatile + /// + /// + /// + /// + public Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor ModelId(string value) + { + Instance.ModelId = value; + return this; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the Groq API. + /// By default, the groq service sets the number of requests allowed per minute to 1000. Refer to Groq documentation for more details. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor 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 Groq API. + /// By default, the groq service sets the number of requests allowed per minute to 1000. Refer to Groq documentation for more details. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor 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 Groq API. + /// By default, the groq service sets the number of requests allowed per minute to 1000. Refer to Groq documentation for more details. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor RateLimit(System.Action? action) + { + Instance.RateLimit = Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor.Build(action); + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.GroqServiceSettingsDescriptor(new Elastic.Clients.Elasticsearch.Inference.GroqServiceSettings(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/GroqTaskType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqTaskType.Converters.g.cs new file mode 100644 index 00000000000..33f0c083852 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqTaskType.Converters.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.Inference.Json; + +public sealed partial class GroqTaskTypeConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberChatCompletion = System.Text.Json.JsonEncodedText.Encode("chat_completion"u8); + + public override Elastic.Clients.Elasticsearch.Inference.GroqTaskType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberChatCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.GroqTaskType.ChatCompletion; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberChatCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.GroqTaskType.ChatCompletion; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.GroqTaskType)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.GroqTaskType value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.GroqTaskType.ChatCompletion: + writer.WriteStringValue(MemberChatCompletion); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.GroqTaskType)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.GroqTaskType 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.GroqTaskType 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/GroqTaskType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqTaskType.g.cs new file mode 100644 index 00000000000..91eb2bba450 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GroqTaskType.g.cs @@ -0,0 +1,31 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#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.GroqTaskTypeConverter))] +public enum GroqTaskType +{ + [System.Runtime.Serialization.EnumMember(Value = "chat_completion")] + ChatCompletion +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceServiceSettings.g.cs index 33b5aef8fe8..022324098ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceServiceSettings.g.cs @@ -32,17 +32,11 @@ public HuggingFaceServiceSettings(string apiKey, string url) ApiKey = apiKey; Url = url; } -#if NET7_0_OR_GREATER - public HuggingFaceServiceSettings() - { - } -#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 HuggingFaceServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HuggingFaceServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal HuggingFaceServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -93,11 +83,7 @@ internal HuggingFaceServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// If the model supports the OpenAI Chat Completion schema, a toggle should appear in the interface. Enabling this toggle doesn't change any model behavior, it reveals the full endpoint URL needed (which should include /v1/chat/completions) when configuring the inference endpoint in Elasticsearch. If the model doesn't support this schema, the toggle may not be shown. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Url { get; set; } + public required string Url { get; set; } } public readonly partial struct HuggingFaceServiceSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceTaskSettings.g.cs index 692d2b21bea..77580f4f726 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceTaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.HuggingFaceTaskSettingsConverter))] public sealed partial class HuggingFaceTaskSettings { -#if NET7_0_OR_GREATER public HuggingFaceTaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public HuggingFaceTaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HuggingFaceTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs index c332523e1a4..08f8b488bf5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.InferenceChunkingSettingsConverter))] public sealed partial class InferenceChunkingSettings { -#if NET7_0_OR_GREATER public InferenceChunkingSettings() { } -#endif -#if !NET7_0_OR_GREATER - public InferenceChunkingSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceChunkingSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs index 77e09cf00af..d609ce8d0ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs @@ -37,17 +37,11 @@ public InferenceEndpoint(string service, object serviceSettings) Service = service; ServiceSettings = serviceSettings; } -#if NET7_0_OR_GREATER - public InferenceEndpoint() - { - } -#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 InferenceEndpoint() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceEndpoint(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,22 +62,14 @@ internal InferenceEndpoint(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs index c41201edef1..ad26f69ca10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs @@ -39,17 +39,11 @@ public InferenceEndpointInfo(string inferenceId, string service, object serviceS ServiceSettings = serviceSettings; TaskType = taskType; } -#if NET7_0_OR_GREATER - public InferenceEndpointInfo() - { - } -#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 InferenceEndpointInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceEndpointInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,33 +64,21 @@ internal InferenceEndpointInfo(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The inference Id /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceId { get; set; } + public required string InferenceId { get; set; } /// /// /// The service type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Service { get; set; } + public required string Service { get; set; } /// /// /// Settings specific to the service /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object ServiceSettings { get; set; } + public required object ServiceSettings { get; set; } /// /// @@ -110,9 +92,5 @@ internal InferenceEndpointInfo(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The task type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceResult.g.cs index 5b12f8bdd8f..5624733975e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceResult.g.cs @@ -28,16 +28,11 @@ public sealed partial class InferenceResult { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public InferenceResult() - { - } -#endif -#if !NET7_0_OR_GREATER + public InferenceResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAIServiceSettings.g.cs index 4ccefdf000b..fccded0814d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAIServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAIServiceSettings.g.cs @@ -31,17 +31,11 @@ public JinaAIServiceSettings(string apiKey) { ApiKey = apiKey; } -#if NET7_0_OR_GREATER - public JinaAIServiceSettings() - { - } -#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 JinaAIServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JinaAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,11 +53,7 @@ internal JinaAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAITaskSettings.g.cs index 41465c85e2c..c35e4637cb3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAITaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAITaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.JinaAITaskSettingsConverter))] public sealed partial class JinaAITaskSettings { -#if NET7_0_OR_GREATER public JinaAITaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public JinaAITaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JinaAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/LlamaServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/LlamaServiceSettings.g.cs index b299e58d2c5..02dd69bddde 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/LlamaServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/LlamaServiceSettings.g.cs @@ -32,17 +32,11 @@ public LlamaServiceSettings(string modelId, string url) ModelId = modelId; Url = url; } -#if NET7_0_OR_GREATER - public LlamaServiceSettings() - { - } -#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 LlamaServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LlamaServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -75,11 +69,7 @@ internal LlamaServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// @@ -114,11 +104,7 @@ internal LlamaServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Url { get; set; } + public required string Url { get; set; } } public readonly partial struct LlamaServiceSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs index f25c2a73747..50be22e7862 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs @@ -36,17 +36,11 @@ public Message(string role) { Role = role; } -#if NET7_0_OR_GREATER - public Message() - { - } -#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 Message() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Message(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,11 +80,7 @@ internal Message(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// The role of the message author. Valid values are user, assistant, system, and tool. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Role { get; set; } + public required string Role { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MistralServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MistralServiceSettings.g.cs index 3bf1dbf21bd..5979ca87324 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MistralServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MistralServiceSettings.g.cs @@ -32,17 +32,11 @@ public MistralServiceSettings(string apiKey, string model) ApiKey = apiKey; Model = model; } -#if NET7_0_OR_GREATER - public MistralServiceSettings() - { - } -#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 MistralServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MistralServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal MistralServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Json /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -80,11 +70,7 @@ internal MistralServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Json /// Refer to the Mistral models documentation for the list of available models. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Model { get; set; } + public required string Model { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaInputType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaInputType.Converters.g.cs new file mode 100644 index 00000000000..dc9fa43fa01 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaInputType.Converters.g.cs @@ -0,0 +1,81 @@ +// 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 NvidiaInputTypeConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberIngest = System.Text.Json.JsonEncodedText.Encode("ingest"u8); + private static readonly System.Text.Json.JsonEncodedText MemberSearch = System.Text.Json.JsonEncodedText.Encode("search"u8); + + public override Elastic.Clients.Elasticsearch.Inference.NvidiaInputType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberIngest)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaInputType.Ingest; + } + + if (reader.ValueTextEquals(MemberSearch)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaInputType.Search; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberIngest.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaInputType.Ingest; + } + + if (string.Equals(value, MemberSearch.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaInputType.Search; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.NvidiaInputType)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.NvidiaInputType value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.NvidiaInputType.Ingest: + writer.WriteStringValue(MemberIngest); + break; + case Elastic.Clients.Elasticsearch.Inference.NvidiaInputType.Search: + writer.WriteStringValue(MemberSearch); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.NvidiaInputType)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.NvidiaInputType 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.NvidiaInputType 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/NvidiaInputType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaInputType.g.cs new file mode 100644 index 00000000000..d4fd351508e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaInputType.g.cs @@ -0,0 +1,33 @@ +// 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.NvidiaInputTypeConverter))] +public enum NvidiaInputType +{ + [System.Runtime.Serialization.EnumMember(Value = "ingest")] + Ingest, + [System.Runtime.Serialization.EnumMember(Value = "search")] + Search +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaServiceSettings.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaServiceSettings.Converters.g.cs new file mode 100644 index 00000000000..1b8bc1663fd --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaServiceSettings.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 NvidiaServiceSettingsConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropApiKey = System.Text.Json.JsonEncodedText.Encode("api_key"u8); + private static readonly System.Text.Json.JsonEncodedText PropMaxInputTokens = System.Text.Json.JsonEncodedText.Encode("max_input_tokens"u8); + private static readonly System.Text.Json.JsonEncodedText PropModelId = System.Text.Json.JsonEncodedText.Encode("model_id"u8); + private static readonly System.Text.Json.JsonEncodedText PropRateLimit = System.Text.Json.JsonEncodedText.Encode("rate_limit"u8); + private static readonly System.Text.Json.JsonEncodedText PropSimilarity = System.Text.Json.JsonEncodedText.Encode("similarity"u8); + private static readonly System.Text.Json.JsonEncodedText PropUrl = System.Text.Json.JsonEncodedText.Encode("url"u8); + + public override Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings 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.NvidiaSimilarityType? (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.NvidiaServiceSettings(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.NvidiaServiceSettings 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.NvidiaSimilarityType? 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/NvidiaServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaServiceSettings.g.cs new file mode 100644 index 00000000000..98fcbd47f74 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaServiceSettings.g.cs @@ -0,0 +1,283 @@ +// 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.NvidiaServiceSettingsConverter))] +public sealed partial class NvidiaServiceSettings +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public NvidiaServiceSettings(string apiKey, string modelId) + { + ApiKey = apiKey; + ModelId = modelId; + } + + public NvidiaServiceSettings() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal NvidiaServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// A valid API key for your Nvidia endpoint. + /// Can be found in API Keys section of Nvidia account settings. + /// + /// + public required string ApiKey { get; set; } + + /// + /// + /// For a text_embedding task, the maximum number of tokens per input. Inputs exceeding this value are truncated prior to sending to the Nvidia API. + /// + /// + public int? MaxInputTokens { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the 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 - nvidia/llama-3.2-nv-embedqa-1b-v2. + /// + /// + /// + /// + /// For completion and chat_completion tasks - microsoft/phi-3-mini-128k-instruct. + /// + /// + /// + /// + /// For rerank task - nv-rerank-qa-mistral-4b:1. + /// Service doesn't support text_embedding task baai/bge-m3 and nvidia/nvclip models due to them not recognizing the input_type parameter. + /// + /// + /// + /// + public required string ModelId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the Nvidia API. + /// By default, the nvidia 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.NvidiaSimilarityType? Similarity { get; set; } + + /// + /// + /// The URL of the Nvidia model endpoint. If not provided, the default endpoint URL is used depending on the task type: + /// + /// + /// + /// + /// For text_embedding task - https://integrate.api.nvidia.com/v1/embeddings. + /// + /// + /// + /// + /// For completion and chat_completion tasks - https://integrate.api.nvidia.com/v1/chat/completions. + /// + /// + /// + /// + /// For rerank task - https://ai.api.nvidia.com/v1/retrieval/nvidia/reranking. + /// + /// + /// + /// + public string? Url { get; set; } +} + +public readonly partial struct NvidiaServiceSettingsDescriptor +{ + internal Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public NvidiaServiceSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings instance) + { + Instance = instance; + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public NvidiaServiceSettingsDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings instance) => new Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings(Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// A valid API key for your Nvidia endpoint. + /// Can be found in API Keys section of Nvidia account settings. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor ApiKey(string value) + { + Instance.ApiKey = value; + return this; + } + + /// + /// + /// For a text_embedding task, the maximum number of tokens per input. Inputs exceeding this value are truncated prior to sending to the Nvidia API. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor MaxInputTokens(int? value) + { + Instance.MaxInputTokens = value; + return this; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the 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 - nvidia/llama-3.2-nv-embedqa-1b-v2. + /// + /// + /// + /// + /// For completion and chat_completion tasks - microsoft/phi-3-mini-128k-instruct. + /// + /// + /// + /// + /// For rerank task - nv-rerank-qa-mistral-4b:1. + /// Service doesn't support text_embedding task baai/bge-m3 and nvidia/nvclip models due to them not recognizing the input_type parameter. + /// + /// + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor ModelId(string value) + { + Instance.ModelId = value; + return this; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the Nvidia API. + /// By default, the nvidia service sets the number of requests allowed per minute to 3000. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor 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 Nvidia API. + /// By default, the nvidia service sets the number of requests allowed per minute to 3000. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor 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 Nvidia API. + /// By default, the nvidia service sets the number of requests allowed per minute to 3000. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor 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.NvidiaServiceSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType? value) + { + Instance.Similarity = value; + return this; + } + + /// + /// + /// The URL of the Nvidia model endpoint. If not provided, the default endpoint URL is used depending on the task type: + /// + /// + /// + /// + /// For text_embedding task - https://integrate.api.nvidia.com/v1/embeddings. + /// + /// + /// + /// + /// For completion and chat_completion tasks - https://integrate.api.nvidia.com/v1/chat/completions. + /// + /// + /// + /// + /// For rerank task - https://ai.api.nvidia.com/v1/retrieval/nvidia/reranking. + /// + /// + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor Url(string? value) + { + Instance.Url = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettingsDescriptor(new Elastic.Clients.Elasticsearch.Inference.NvidiaServiceSettings(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/NvidiaSimilarityType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaSimilarityType.Converters.g.cs new file mode 100644 index 00000000000..a16e9680ea2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaSimilarityType.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 NvidiaSimilarityTypeConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberCosine = System.Text.Json.JsonEncodedText.Encode("cosine"u8); + private static readonly System.Text.Json.JsonEncodedText MemberDotProduct = System.Text.Json.JsonEncodedText.Encode("dot_product"u8); + private static readonly System.Text.Json.JsonEncodedText MemberL2Norm = System.Text.Json.JsonEncodedText.Encode("l2_norm"u8); + + public override Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberCosine)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.Cosine; + } + + if (reader.ValueTextEquals(MemberDotProduct)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.DotProduct; + } + + if (reader.ValueTextEquals(MemberL2Norm)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.L2Norm; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberCosine.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.Cosine; + } + + if (string.Equals(value, MemberDotProduct.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.DotProduct; + } + + if (string.Equals(value, MemberL2Norm.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.L2Norm; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.Cosine: + writer.WriteStringValue(MemberCosine); + break; + case Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.DotProduct: + writer.WriteStringValue(MemberDotProduct); + break; + case Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType.L2Norm: + writer.WriteStringValue(MemberL2Norm); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.NvidiaSimilarityType 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.NvidiaSimilarityType 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/NvidiaSimilarityType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaSimilarityType.g.cs new file mode 100644 index 00000000000..5ba7b57b683 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaSimilarityType.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.NvidiaSimilarityTypeConverter))] +public enum NvidiaSimilarityType +{ + [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/NvidiaTaskSettings.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskSettings.Converters.g.cs new file mode 100644 index 00000000000..2725eb8e2a8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskSettings.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 NvidiaTaskSettingsConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropInputType = System.Text.Json.JsonEncodedText.Encode("input_type"u8); + private static readonly System.Text.Json.JsonEncodedText PropTruncate = System.Text.Json.JsonEncodedText.Encode("truncate"u8); + + public override Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propInputType = default; + LocalJsonValue propTruncate = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propInputType.TryReadProperty(ref reader, options, PropInputType, static Elastic.Clients.Elasticsearch.Inference.NvidiaInputType? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propTruncate.TryReadProperty(ref reader, options, PropTruncate, static Elastic.Clients.Elasticsearch.Inference.CohereTruncateType? (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.NvidiaTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + InputType = propInputType.Value, + Truncate = propTruncate.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropInputType, value.InputType, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Inference.NvidiaInputType? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropTruncate, value.Truncate, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Inference.CohereTruncateType? v) => w.WriteNullableValue(o, v)); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskSettings.g.cs new file mode 100644 index 00000000000..66fb8605b62 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskSettings.g.cs @@ -0,0 +1,175 @@ +// 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.NvidiaTaskSettingsConverter))] +public sealed partial class NvidiaTaskSettings +{ + public NvidiaTaskSettings() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal NvidiaTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// For a text_embedding task, type of input sent to the Nvidia endpoint. + /// Valid values are: + /// + /// + /// + /// + /// ingest: Mapped to Nvidia's passage value in request. Used when generating embeddings during indexing. + /// + /// + /// + /// + /// search: Mapped to Nvidia's query value in request. Used when generating embeddings during querying. + /// + /// + /// + /// + /// IMPORTANT: For Nvidia endpoints, if the input_type field is not specified, it defaults to query. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaInputType? InputType { get; set; } + + /// + /// + /// For a text_embedding task, the method used by the Nvidia model to handle inputs longer than the maximum token length. + /// Valid values are: + /// + /// + /// + /// + /// END: When the input exceeds the maximum input token length, the end of the input is discarded. + /// + /// + /// + /// + /// NONE: When the input exceeds the maximum input token length, an error is returned. + /// + /// + /// + /// + /// START: When the input exceeds the maximum input token length, the start of the input is discarded. + /// + /// + /// + /// + public Elastic.Clients.Elasticsearch.Inference.CohereTruncateType? Truncate { get; set; } +} + +public readonly partial struct NvidiaTaskSettingsDescriptor +{ + internal Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public NvidiaTaskSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings instance) + { + Instance = instance; + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public NvidiaTaskSettingsDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettingsDescriptor(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings instance) => new Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettingsDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettingsDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// For a text_embedding task, type of input sent to the Nvidia endpoint. + /// Valid values are: + /// + /// + /// + /// + /// ingest: Mapped to Nvidia's passage value in request. Used when generating embeddings during indexing. + /// + /// + /// + /// + /// search: Mapped to Nvidia's query value in request. Used when generating embeddings during querying. + /// + /// + /// + /// + /// IMPORTANT: For Nvidia endpoints, if the input_type field is not specified, it defaults to query. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettingsDescriptor InputType(Elastic.Clients.Elasticsearch.Inference.NvidiaInputType? value) + { + Instance.InputType = value; + return this; + } + + /// + /// + /// For a text_embedding task, the method used by the Nvidia model to handle inputs longer than the maximum token length. + /// Valid values are: + /// + /// + /// + /// + /// END: When the input exceeds the maximum input token length, the end of the input is discarded. + /// + /// + /// + /// + /// NONE: When the input exceeds the maximum input token length, an error is returned. + /// + /// + /// + /// + /// START: When the input exceeds the maximum input token length, the start of the input is discarded. + /// + /// + /// + /// + public Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettingsDescriptor Truncate(Elastic.Clients.Elasticsearch.Inference.CohereTruncateType? value) + { + Instance.Truncate = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings Build(System.Action? action) + { + if (action is null) + { + return new Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + var builder = new Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettingsDescriptor(new Elastic.Clients.Elasticsearch.Inference.NvidiaTaskSettings(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/NvidiaTaskType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskType.Converters.g.cs new file mode 100644 index 00000000000..8e101ef7ff6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskType.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 NvidiaTaskTypeConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberChatCompletion = System.Text.Json.JsonEncodedText.Encode("chat_completion"u8); + private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"u8); + private static readonly System.Text.Json.JsonEncodedText MemberRerank = System.Text.Json.JsonEncodedText.Encode("rerank"u8); + private static readonly System.Text.Json.JsonEncodedText MemberTextEmbedding = System.Text.Json.JsonEncodedText.Encode("text_embedding"u8); + + public override Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberChatCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.ChatCompletion; + } + + if (reader.ValueTextEquals(MemberCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.Completion; + } + + if (reader.ValueTextEquals(MemberRerank)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.Rerank; + } + + if (reader.ValueTextEquals(MemberTextEmbedding)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.TextEmbedding; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberChatCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.ChatCompletion; + } + + if (string.Equals(value, MemberCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.Completion; + } + + if (string.Equals(value, MemberRerank.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.Rerank; + } + + if (string.Equals(value, MemberTextEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.TextEmbedding; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.ChatCompletion: + writer.WriteStringValue(MemberChatCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.Completion: + writer.WriteStringValue(MemberCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.Rerank: + writer.WriteStringValue(MemberRerank); + break; + case Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType.TextEmbedding: + writer.WriteStringValue(MemberTextEmbedding); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.NvidiaTaskType 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.NvidiaTaskType 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/NvidiaTaskType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskType.g.cs new file mode 100644 index 00000000000..03b9e279f1a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/NvidiaTaskType.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.NvidiaTaskTypeConverter))] +public enum NvidiaTaskType +{ + [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/OpenAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAIServiceSettings.g.cs index 60c2879b683..70b4b320b7e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAIServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAIServiceSettings.g.cs @@ -32,17 +32,11 @@ public OpenAIServiceSettings(string apiKey, string modelId) ApiKey = apiKey; ModelId = modelId; } -#if NET7_0_OR_GREATER - public OpenAIServiceSettings() - { - } -#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 OpenAIServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal OpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -82,11 +72,7 @@ internal OpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Refer to the OpenAI documentation for the list of available text embedding models. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAITaskSettings.g.cs index ab24be39e97..e895ed51904 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAITaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAITaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.OpenAITaskSettingsConverter))] public sealed partial class OpenAITaskSettings { -#if NET7_0_OR_GREATER public OpenAITaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public OpenAITaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OpenAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.g.cs index 8a953f59b72..e02c7b4fc28 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiServiceSettings.g.cs @@ -32,17 +32,11 @@ 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) { @@ -55,11 +49,7 @@ internal OpenShiftAiServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// Can be found in Token authentication section of model related information. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -105,6 +95,7 @@ internal OpenShiftAiServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// /// /// For a text_embedding task, the similarity measure. One of cosine, dot_product, l2_norm. + /// If not specified, the default dot_product value is used. /// /// public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType? Similarity { get; set; } @@ -114,11 +105,7 @@ internal OpenShiftAiServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// The URL of the OpenShift AI hosted model endpoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Url { get; set; } + public required string Url { get; set; } } public readonly partial struct OpenShiftAiServiceSettingsDescriptor @@ -232,6 +219,7 @@ public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescrip /// /// /// For a text_embedding task, the similarity measure. One of cosine, dot_product, l2_norm. + /// If not specified, the default dot_product value is used. /// /// public Elastic.Clients.Elasticsearch.Inference.OpenShiftAiServiceSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Inference.OpenShiftAiSimilarityType? value) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.g.cs index 477e274690d..a7fcdbade52 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenShiftAiTaskSettings.g.cs @@ -26,16 +26,10 @@ 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) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RankedDocument.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RankedDocument.g.cs index 1404d5bbead..c9e9436bed1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RankedDocument.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RankedDocument.g.cs @@ -40,32 +40,18 @@ public RankedDocument(int index, float relevanceScore) Index = index; RelevanceScore = relevanceScore; } -#if NET7_0_OR_GREATER - public RankedDocument() - { - } -#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 RankedDocument() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankedDocument(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - float RelevanceScore { get; set; } + public required int Index { get; set; } + public required float RelevanceScore { get; set; } public string? Text { get; set; } } \ 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 329bf8dd655..61198426418 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.RateLimitSettingConverter))] public sealed partial class RateLimitSetting { -#if NET7_0_OR_GREATER public RateLimitSetting() { } -#endif -#if !NET7_0_OR_GREATER - public RateLimitSetting() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RateLimitSetting(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -75,7 +69,7 @@ internal RateLimitSetting(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// /// - /// azureopenai service and task type completion: 120 + /// azureopenai service and task types completion or chat_completion: 120 /// /// /// @@ -205,7 +199,7 @@ public RateLimitSettingDescriptor() /// /// /// - /// azureopenai service and task type completion: 120 + /// azureopenai service and task types completion or chat_completion: 120 /// /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs index de326c5f696..b4d85e21f60 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs @@ -31,17 +31,11 @@ public RequestChatCompletion(System.Collections.Generic.ICollectionassistant, system, or tool) should generally only be copied from the response to a previous completion request, such that the messages array is built up throughout a conversation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Messages { get; set; } + public required System.Collections.Generic.ICollection Messages { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/SparseEmbeddingResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/SparseEmbeddingResult.g.cs index 230a4ce2d78..b103d09ec96 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/SparseEmbeddingResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/SparseEmbeddingResult.g.cs @@ -31,26 +31,16 @@ public SparseEmbeddingResult(System.Collections.Generic.IReadOnlyDictionary Embedding { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Embedding { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeAzureOpenAI.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeAzureOpenAI.Converters.g.cs index eeb2915ac98..e1912ad2ea3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeAzureOpenAI.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeAzureOpenAI.Converters.g.cs @@ -25,11 +25,17 @@ namespace Elastic.Clients.Elasticsearch.Inference.Json; public sealed partial class TaskTypeAzureOpenAIConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText MemberChatCompletion = System.Text.Json.JsonEncodedText.Encode("chat_completion"u8); private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"u8); private static readonly System.Text.Json.JsonEncodedText MemberTextEmbedding = System.Text.Json.JsonEncodedText.Encode("text_embedding"u8); public override Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { + if (reader.ValueTextEquals(MemberChatCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI.ChatCompletion; + } + if (reader.ValueTextEquals(MemberCompletion)) { return Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI.Completion; @@ -41,6 +47,11 @@ public override Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI Read } var value = reader.GetString()!; + if (string.Equals(value, MemberChatCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI.ChatCompletion; + } + if (string.Equals(value, MemberCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) { return Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI.Completion; @@ -58,6 +69,9 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien { switch (value) { + case Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI.ChatCompletion: + writer.WriteStringValue(MemberChatCompletion); + break; case Elastic.Clients.Elasticsearch.Inference.TaskTypeAzureOpenAI.Completion: writer.WriteStringValue(MemberCompletion); break; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeAzureOpenAI.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeAzureOpenAI.g.cs index 4197fde5039..ed74f09f8e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeAzureOpenAI.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeAzureOpenAI.g.cs @@ -26,6 +26,8 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.TaskTypeAzureOpenAIConverter))] public enum TaskTypeAzureOpenAI { + [System.Runtime.Serialization.EnumMember(Value = "chat_completion")] + ChatCompletion, [System.Runtime.Serialization.EnumMember(Value = "completion")] Completion, [System.Runtime.Serialization.EnumMember(Value = "text_embedding")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeGroq.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeGroq.Converters.g.cs new file mode 100644 index 00000000000..928e39a16bc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeGroq.Converters.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.Inference.Json; + +public sealed partial class TaskTypeGroqConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberChatCompletion = System.Text.Json.JsonEncodedText.Encode("chat_completion"u8); + + public override Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberChatCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq.ChatCompletion; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberChatCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq.ChatCompletion; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq.ChatCompletion: + writer.WriteStringValue(MemberChatCompletion); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.TaskTypeGroq 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.TaskTypeGroq 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/TaskTypeGroq.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeGroq.g.cs new file mode 100644 index 00000000000..aaaa68548c7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeGroq.g.cs @@ -0,0 +1,31 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#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.TaskTypeGroqConverter))] +public enum TaskTypeGroq +{ + [System.Runtime.Serialization.EnumMember(Value = "chat_completion")] + ChatCompletion +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeNvidia.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeNvidia.Converters.g.cs new file mode 100644 index 00000000000..0a6ba8a2b24 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeNvidia.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 TaskTypeNvidiaConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberChatCompletion = System.Text.Json.JsonEncodedText.Encode("chat_completion"u8); + private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"u8); + private static readonly System.Text.Json.JsonEncodedText MemberRerank = System.Text.Json.JsonEncodedText.Encode("rerank"u8); + private static readonly System.Text.Json.JsonEncodedText MemberTextEmbedding = System.Text.Json.JsonEncodedText.Encode("text_embedding"u8); + + public override Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberChatCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.ChatCompletion; + } + + if (reader.ValueTextEquals(MemberCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.Completion; + } + + if (reader.ValueTextEquals(MemberRerank)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.Rerank; + } + + if (reader.ValueTextEquals(MemberTextEmbedding)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.TextEmbedding; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberChatCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.ChatCompletion; + } + + if (string.Equals(value, MemberCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.Completion; + } + + if (string.Equals(value, MemberRerank.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.Rerank; + } + + if (string.Equals(value, MemberTextEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.TextEmbedding; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.ChatCompletion: + writer.WriteStringValue(MemberChatCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.Completion: + writer.WriteStringValue(MemberCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.Rerank: + writer.WriteStringValue(MemberRerank); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia.TextEmbedding: + writer.WriteStringValue(MemberTextEmbedding); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.TaskTypeNvidia 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.TaskTypeNvidia 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/TaskTypeNvidia.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeNvidia.g.cs new file mode 100644 index 00000000000..a592c29a85e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TaskTypeNvidia.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.TaskTypeNvidiaConverter))] +public enum TaskTypeNvidia +{ + [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/TextEmbeddingByteResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingByteResult.g.cs index 7c69ae865e7..5466945ff70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingByteResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingByteResult.g.cs @@ -36,26 +36,16 @@ public TextEmbeddingByteResult(System.Collections.Generic.IReadOnlyCollection Embedding { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Embedding { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingInferenceResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingInferenceResult.g.cs index c2c4dcbfd59..33bbefe940e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingInferenceResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingInferenceResult.g.cs @@ -28,16 +28,11 @@ public sealed partial class TextEmbeddingInferenceResult { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public TextEmbeddingInferenceResult() - { - } -#endif -#if !NET7_0_OR_GREATER + public TextEmbeddingInferenceResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextEmbeddingInferenceResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingResult.g.cs index 43fdac4b3b0..d237c6e745b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/TextEmbeddingResult.g.cs @@ -36,26 +36,16 @@ public TextEmbeddingResult(System.Collections.Generic.IReadOnlyCollection { Embedding = embedding; } -#if NET7_0_OR_GREATER - public TextEmbeddingResult() - { - } -#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 TextEmbeddingResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextEmbeddingResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Embedding { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Embedding { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ThinkingConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ThinkingConfig.g.cs index a35fccaeee0..71cc67cc98c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ThinkingConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ThinkingConfig.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.ThinkingConfigConverter))] public sealed partial class ThinkingConfig { -#if NET7_0_OR_GREATER public ThinkingConfig() { } -#endif -#if !NET7_0_OR_GREATER - public ThinkingConfig() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ThinkingConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCall.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCall.g.cs index 0f0954a80e7..d5a19586091 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCall.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCall.g.cs @@ -38,17 +38,11 @@ public ToolCall(Elastic.Clients.Elasticsearch.Inference.ToolCallFunction functio Id = id; Type = type; } -#if NET7_0_OR_GREATER - public ToolCall() - { - } -#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 ToolCall() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ToolCall(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,33 +54,21 @@ internal ToolCall(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// The function that the model called. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Inference.ToolCallFunction Function { get; set; } + public required Elastic.Clients.Elasticsearch.Inference.ToolCallFunction Function { get; set; } /// /// /// The identifier of the tool call. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } /// /// /// The type of the tool call. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCallFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCallFunction.g.cs index f2a16fc9e7a..975be375c43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCallFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCallFunction.g.cs @@ -37,17 +37,11 @@ public ToolCallFunction(string arguments, string name) Arguments = arguments; Name = name; } -#if NET7_0_OR_GREATER - public ToolCallFunction() - { - } -#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 ToolCallFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ToolCallFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,22 +53,14 @@ internal ToolCallFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The arguments to call the function with in JSON format. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Arguments { get; set; } + public required string Arguments { get; set; } /// /// /// The name of the function to call. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/VoyageAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/VoyageAIServiceSettings.g.cs index 3e7ae4b06e3..0e6c408bacf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/VoyageAIServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/VoyageAIServiceSettings.g.cs @@ -31,17 +31,11 @@ public VoyageAIServiceSettings(string modelId) { ModelId = modelId; } -#if NET7_0_OR_GREATER - public VoyageAIServiceSettings() - { - } -#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 VoyageAIServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VoyageAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -75,11 +69,7 @@ internal VoyageAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Jso /// Refer to the VoyageAI documentation for the list of available text embedding and rerank models. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/VoyageAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/VoyageAITaskSettings.g.cs index 5aa95f33e74..ce6271a3909 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/VoyageAITaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/VoyageAITaskSettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Inference; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.VoyageAITaskSettingsConverter))] public sealed partial class VoyageAITaskSettings { -#if NET7_0_OR_GREATER public VoyageAITaskSettings() { } -#endif -#if !NET7_0_OR_GREATER - public VoyageAITaskSettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VoyageAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/WatsonxServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/WatsonxServiceSettings.g.cs index d0f8f82b983..95de8766ea7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/WatsonxServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/WatsonxServiceSettings.g.cs @@ -35,17 +35,11 @@ public WatsonxServiceSettings(string apiKey, string apiVersion, string modelId, ProjectId = projectId; Url = url; } -#if NET7_0_OR_GREATER - public WatsonxServiceSettings() - { - } -#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 WatsonxServiceSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WatsonxServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,11 +58,7 @@ internal WatsonxServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Json /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiKey { get; set; } + public required string ApiKey { get; set; } /// /// @@ -76,11 +66,7 @@ internal WatsonxServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Json /// For the active version data parameters, refer to the Wastonx documentation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ApiVersion { get; set; } + public required string ApiVersion { get; set; } /// /// @@ -89,22 +75,14 @@ internal WatsonxServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Json /// Refer to the IBM library - Foundation models in Watsonx.ai. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// /// The identifier of the IBM Cloud project to use for the inference task. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ProjectId { get; set; } + public required string ProjectId { get; set; } /// /// @@ -119,11 +97,7 @@ internal WatsonxServiceSettings(Elastic.Clients.Elasticsearch.Serialization.Json /// The URL of the inference endpoint that you created on Watsonx. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Url { get; set; } + public required string Url { get; set; } } public readonly partial struct WatsonxServiceSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs index c4d5e9407f9..8ee0819d208 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs @@ -31,17 +31,11 @@ public AppendProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public AppendProcessor() - { - } -#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 AppendProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AppendProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +70,7 @@ internal AppendProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AttachmentProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AttachmentProcessor.g.cs index 30dcfb7b1e1..142c5ff9975 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AttachmentProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AttachmentProcessor.g.cs @@ -31,17 +31,11 @@ public AttachmentProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public AttachmentProcessor() - { - } -#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 AttachmentProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AttachmentProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal AttachmentProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The field to get the base64 encoded field from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/BytesProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/BytesProcessor.g.cs index 4815bc67b47..67ccf9c53b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/BytesProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/BytesProcessor.g.cs @@ -31,17 +31,11 @@ public BytesProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public BytesProcessor() - { - } -#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 BytesProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BytesProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal BytesProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The field to convert. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CircleProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CircleProcessor.g.cs index 84e056df878..ce0e59a45d1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CircleProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CircleProcessor.g.cs @@ -33,17 +33,11 @@ public CircleProcessor(double errorDistance, Elastic.Clients.Elasticsearch.Field Field = field; ShapeType = shapeType; } -#if NET7_0_OR_GREATER - public CircleProcessor() - { - } -#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 CircleProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CircleProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,22 +57,14 @@ internal CircleProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The difference between the resulting inscribed distance from center to side and the circle’s radius (measured in meters for geo_shape, unit-less for shape). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double ErrorDistance { get; set; } + public required double ErrorDistance { get; set; } /// /// /// The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -113,11 +99,7 @@ internal CircleProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Which field mapping type is to be used when processing the circle: geo_shape or shape. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.ShapeType ShapeType { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.ShapeType ShapeType { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CommunityIDProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CommunityIDProcessor.g.cs index 832fe8fdbcf..1cea5b9e97e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CommunityIDProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CommunityIDProcessor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.CommunityIDProcessorConverter))] public sealed partial class CommunityIDProcessor { -#if NET7_0_OR_GREATER public CommunityIDProcessor() { } -#endif -#if !NET7_0_OR_GREATER - public CommunityIDProcessor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CommunityIDProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ConvertProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ConvertProcessor.g.cs index 5a864730cc1..bd2d30f7fcd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ConvertProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ConvertProcessor.g.cs @@ -32,17 +32,11 @@ public ConvertProcessor(Elastic.Clients.Elasticsearch.Field field, Elastic.Clien Field = field; Type = type; } -#if NET7_0_OR_GREATER - public ConvertProcessor() - { - } -#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 ConvertProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ConvertProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal ConvertProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The field whose value is to be converted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -117,11 +107,7 @@ internal ConvertProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The type to convert the existing value to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.ConvertType Type { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.ConvertType Type { get; set; } } public readonly partial struct ConvertProcessorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CsvProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CsvProcessor.g.cs index cba34fc3316..42c69a92896 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CsvProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CsvProcessor.g.cs @@ -32,17 +32,11 @@ public CsvProcessor(Elastic.Clients.Elasticsearch.Field field, Elastic.Clients.E Field = field; TargetFields = targetFields; } -#if NET7_0_OR_GREATER - public CsvProcessor() - { - } -#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 CsvProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CsvProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -71,11 +65,7 @@ internal CsvProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The field to extract data from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -132,11 +122,7 @@ internal CsvProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The array of fields to assign extracted values to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields TargetFields { get; set; } + public required Elastic.Clients.Elasticsearch.Fields TargetFields { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfiguration.g.cs index 61e447ba1f7..b35c67a9198 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfiguration.g.cs @@ -34,17 +34,11 @@ public DatabaseConfiguration(Elastic.Clients.Elasticsearch.Name name) { Name = name; } -#if NET7_0_OR_GREATER - public DatabaseConfiguration() - { - } -#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 DatabaseConfiguration() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DatabaseConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,11 +53,7 @@ internal DatabaseConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The provider-assigned name of the IP geolocation database to download. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get; set; } + public required Elastic.Clients.Elasticsearch.Name Name { get; set; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] private T? GetVariant(string type) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs index 359f32f7647..4cc85be22f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs @@ -34,17 +34,11 @@ public DatabaseConfigurationFull(string name) { Name = name; } -#if NET7_0_OR_GREATER - public DatabaseConfigurationFull() - { - } -#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 DatabaseConfigurationFull() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DatabaseConfigurationFull(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal DatabaseConfigurationFull(Elastic.Clients.Elasticsearch.Serialization.J /// The provider-assigned name of the IP geolocation database to download. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] private T? GetVariant(string type) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationMetadata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationMetadata.g.cs index 1c14f99ca6e..f75b75d9b64 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationMetadata.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationMetadata.g.cs @@ -34,41 +34,19 @@ public DatabaseConfigurationMetadata(Elastic.Clients.Elasticsearch.Ingest.Databa ModifiedDateMillis = modifiedDateMillis; Version = version; } -#if NET7_0_OR_GREATER - public DatabaseConfigurationMetadata() - { - } -#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 DatabaseConfigurationMetadata() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DatabaseConfigurationMetadata(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration Database { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ModifiedDateMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration Database { get; set; } + public required string Id { get; set; } + public required System.DateTimeOffset ModifiedDateMillis { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs index dfc38eff7f0..3dbb8444b01 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs @@ -32,17 +32,11 @@ public DateIndexNameProcessor(string dateRounding, Elastic.Clients.Elasticsearch DateRounding = dateRounding; Field = field; } -#if NET7_0_OR_GREATER - public DateIndexNameProcessor() - { - } -#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 DateIndexNameProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateIndexNameProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,11 +58,7 @@ internal DateIndexNameProcessor(Elastic.Clients.Elasticsearch.Serialization.Json /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string DateRounding { get; set; } + public required string DateRounding { get; set; } /// /// @@ -83,11 +73,7 @@ internal DateIndexNameProcessor(Elastic.Clients.Elasticsearch.Serialization.Json /// The field to get the date or timestamp from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs index 57ac04e0939..dc35c24a0d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs @@ -32,17 +32,11 @@ public DateProcessor(Elastic.Clients.Elasticsearch.Field field, System.Collectio Field = field; Formats = formats; } -#if NET7_0_OR_GREATER - public DateProcessor() - { - } -#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 DateProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal DateProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The field to get the date from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -74,11 +64,7 @@ internal DateProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Formats { get; set; } + public required System.Collections.Generic.ICollection Formats { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DissectProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DissectProcessor.g.cs index 9c746c808ef..30b9ea6bd65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DissectProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DissectProcessor.g.cs @@ -32,17 +32,11 @@ public DissectProcessor(Elastic.Clients.Elasticsearch.Field field, string patter Field = field; Pattern = pattern; } -#if NET7_0_OR_GREATER - public DissectProcessor() - { - } -#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 DissectProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DissectProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -69,11 +63,7 @@ internal DissectProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The field to dissect. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -108,11 +98,7 @@ internal DissectProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The pattern to apply to the field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Pattern { get; set; } + public required string Pattern { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Document.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Document.g.cs index 358bdbac228..d4fa0b24114 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Document.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Document.g.cs @@ -31,17 +31,11 @@ public Document(object source) { Source = source; } -#if NET7_0_OR_GREATER - public Document() - { - } -#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 Document() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Document(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +62,7 @@ internal Document(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// JSON body for the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object Source { get; set; } + public required object Source { get; set; } } public readonly partial struct DocumentDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs index c838b2eee86..e1bc9d4d3d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs @@ -39,17 +39,11 @@ public DocumentSimulation(string id, string index, Elastic.Clients.Elasticsearch Ingest = ingest; Source = source; } -#if NET7_0_OR_GREATER - public DocumentSimulation() - { - } -#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 DocumentSimulation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DocumentSimulation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,27 +55,15 @@ internal DocumentSimulation(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Unique identifier for the document. This ID must be unique within the _index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// Name of the index containing the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.Ingest Ingest { get; set; } + public required string Index { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.Ingest Ingest { get; set; } /// /// @@ -102,11 +84,7 @@ internal DocumentSimulation(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// JSON body for the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Source { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Source { get; set; } public long? Version { get; set; } public Elastic.Clients.Elasticsearch.VersionType? VersionType { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs index c1b374e1056..de76882c0b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs @@ -31,17 +31,11 @@ public DotExpanderProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public DotExpanderProcessor() - { - } -#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 DotExpanderProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DotExpanderProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal DotExpanderProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// If set to *, all top-level fields will be expanded. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DropProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DropProcessor.g.cs index b05d7167d2d..37a8812817d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DropProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DropProcessor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.DropProcessorConverter))] public sealed partial class DropProcessor { -#if NET7_0_OR_GREATER public DropProcessor() { } -#endif -#if !NET7_0_OR_GREATER - public DropProcessor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DropProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/EnrichProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/EnrichProcessor.g.cs index 48cff4daa97..9e1b200ea69 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/EnrichProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/EnrichProcessor.g.cs @@ -33,17 +33,11 @@ public EnrichProcessor(Elastic.Clients.Elasticsearch.Field field, string policyN PolicyName = policyName; TargetField = targetField; } -#if NET7_0_OR_GREATER - public EnrichProcessor() - { - } -#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 EnrichProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EnrichProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,11 +58,7 @@ internal EnrichProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -120,11 +110,7 @@ internal EnrichProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The name of the enrich policy to use. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string PolicyName { get; set; } + public required string PolicyName { get; set; } /// /// @@ -148,11 +134,7 @@ internal EnrichProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field TargetField { get; set; } + public required Elastic.Clients.Elasticsearch.Field TargetField { get; set; } } public readonly partial struct EnrichProcessorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FailProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FailProcessor.g.cs index 69736674f06..c7a45890ae7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FailProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FailProcessor.g.cs @@ -31,17 +31,11 @@ public FailProcessor(string message) { Message = message; } -#if NET7_0_OR_GREATER - public FailProcessor() - { - } -#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 FailProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FailProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +70,7 @@ internal FailProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Message { get; set; } + public required string Message { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FingerprintProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FingerprintProcessor.g.cs index 328c7ef6cc8..54070ff76f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FingerprintProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FingerprintProcessor.g.cs @@ -31,17 +31,11 @@ public FingerprintProcessor(Elastic.Clients.Elasticsearch.Fields fields) { Fields = fields; } -#if NET7_0_OR_GREATER - public FingerprintProcessor() - { - } -#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 FingerprintProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FingerprintProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal FingerprintProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// only the field value. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields Fields { get; set; } + public required Elastic.Clients.Elasticsearch.Fields Fields { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ForeachProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ForeachProcessor.g.cs index ba0844a45aa..adaf16727a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ForeachProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ForeachProcessor.g.cs @@ -32,17 +32,11 @@ public ForeachProcessor(Elastic.Clients.Elasticsearch.Field field, Elastic.Clien Field = field; Processor = processor; } -#if NET7_0_OR_GREATER - public ForeachProcessor() - { - } -#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 ForeachProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ForeachProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal ForeachProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Field containing array or object values. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -101,11 +91,7 @@ internal ForeachProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Ingest processor to run on each element. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.Processor Processor { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.Processor Processor { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoGridProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoGridProcessor.g.cs index 0f664103ed3..b928fa91391 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoGridProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoGridProcessor.g.cs @@ -32,17 +32,11 @@ public GeoGridProcessor(string field, Elastic.Clients.Elasticsearch.Ingest.GeoGr Field = field; TileType = tileType; } -#if NET7_0_OR_GREATER - public GeoGridProcessor() - { - } -#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 GeoGridProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoGridProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,11 +64,7 @@ internal GeoGridProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The field format is determined by the tile_type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } + public required string Field { get; set; } /// /// @@ -152,11 +142,7 @@ internal GeoGridProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Three tile formats are understood: geohash, geotile and geohex. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.GeoGridTileType TileType { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.GeoGridTileType TileType { get; set; } } public readonly partial struct GeoGridProcessorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs index b217ad8bc1c..47ebbd60773 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs @@ -36,17 +36,11 @@ public GeoIpDownloadStatistics(int databasesCount, int expiredDatabases, int fai SuccessfulDownloads = successfulDownloads; TotalDownloadTime = totalDownloadTime; } -#if NET7_0_OR_GREATER - public GeoIpDownloadStatistics() - { - } -#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 GeoIpDownloadStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoIpDownloadStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,64 +52,40 @@ internal GeoIpDownloadStatistics(Elastic.Clients.Elasticsearch.Serialization.Jso /// Current number of databases available for use. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DatabasesCount { get; set; } + public required int DatabasesCount { get; set; } /// /// /// Total number of databases not updated after 30 days /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ExpiredDatabases { get; set; } + public required int ExpiredDatabases { get; set; } /// /// /// Total number of failed database downloads. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int FailedDownloads { get; set; } + public required int FailedDownloads { get; set; } /// /// /// Total number of database updates skipped. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int SkippedUpdates { get; set; } + public required int SkippedUpdates { get; set; } /// /// /// Total number of successful database downloads. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int SuccessfulDownloads { get; set; } + public required int SuccessfulDownloads { get; set; } /// /// /// Total milliseconds spent downloading databases. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalDownloadTime { get; set; } + public required System.TimeSpan TotalDownloadTime { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs index 08e139c9f08..56ee0ef5856 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs @@ -31,17 +31,11 @@ public GeoIpNodeDatabaseName(string name) { Name = name; } -#if NET7_0_OR_GREATER - public GeoIpNodeDatabaseName() - { - } -#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 GeoIpNodeDatabaseName() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoIpNodeDatabaseName(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,9 +47,5 @@ internal GeoIpNodeDatabaseName(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Name of the database. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs index 8a4ee4ce7bd..a6df761c433 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs @@ -37,17 +37,11 @@ public GeoIpNodeDatabases(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Databases { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Databases { get; set; } /// /// /// Downloaded database files, including related license files. Elasticsearch stores these files in the node’s temporary directory: $ES_TMPDIR/geoip-databases/<node_id>. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection FilesInTemp { get; set; } + public required System.Collections.Generic.IReadOnlyCollection FilesInTemp { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs index 418d5fb5a10..5ba1167bd6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs @@ -31,17 +31,11 @@ public GeoIpProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public GeoIpProcessor() - { - } -#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 GeoIpProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoIpProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +70,7 @@ internal GeoIpProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The field to get the ip address from for the geographical lookup. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs index 89349327329..08ca9dd0189 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs @@ -32,17 +32,11 @@ public GrokProcessor(Elastic.Clients.Elasticsearch.Field field, System.Collectio Field = field; Patterns = patterns; } -#if NET7_0_OR_GREATER - public GrokProcessor() - { - } -#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 GrokProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GrokProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,11 +64,7 @@ internal GrokProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The field to use for grok expression parsing. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -118,11 +108,7 @@ internal GrokProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Returns on the first expression in the list that matches. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Patterns { get; set; } + public required System.Collections.Generic.ICollection Patterns { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GsubProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GsubProcessor.g.cs index a88050adb96..5d4d0a60a5b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GsubProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GsubProcessor.g.cs @@ -33,17 +33,11 @@ public GsubProcessor(Elastic.Clients.Elasticsearch.Field field, string pattern, Pattern = pattern; Replacement = replacement; } -#if NET7_0_OR_GREATER - public GsubProcessor() - { - } -#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 GsubProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GsubProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal GsubProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The field to apply the replacement to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -102,22 +92,14 @@ internal GsubProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The pattern to be replaced. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Pattern { get; set; } + public required string Pattern { get; set; } /// /// /// The string to replace the matching patterns with. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Replacement { get; set; } + public required string Replacement { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/HtmlStripProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/HtmlStripProcessor.g.cs index fdf48473b18..49c3f558a21 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/HtmlStripProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/HtmlStripProcessor.g.cs @@ -31,17 +31,11 @@ public HtmlStripProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public HtmlStripProcessor() - { - } -#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 HtmlStripProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HtmlStripProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal HtmlStripProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The string-valued field to remove HTML tags from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfig.g.cs index 8c99a22ccec..52971f42955 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfig.g.cs @@ -28,16 +28,11 @@ public sealed partial class InferenceConfig { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public InferenceConfig() - { - } -#endif -#if !NET7_0_OR_GREATER + public InferenceConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigClassification.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigClassification.g.cs index 27f20b3ec98..abe53810cb2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigClassification.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigClassification.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.InferenceConfigClassificationConverter))] public sealed partial class InferenceConfigClassification { -#if NET7_0_OR_GREATER public InferenceConfigClassification() { } -#endif -#if !NET7_0_OR_GREATER - public InferenceConfigClassification() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceConfigClassification(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigRegression.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigRegression.g.cs index e461fc27f5b..510bfad7698 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigRegression.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigRegression.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.InferenceConfigRegressionConverter))] public sealed partial class InferenceConfigRegression { -#if NET7_0_OR_GREATER public InferenceConfigRegression() { } -#endif -#if !NET7_0_OR_GREATER - public InferenceConfigRegression() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceConfigRegression(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs index 6145c6ea47a..3d3e19974d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs @@ -31,17 +31,11 @@ public InferenceProcessor(Elastic.Clients.Elasticsearch.Id modelId) { ModelId = modelId; } -#if NET7_0_OR_GREATER - public InferenceProcessor() - { - } -#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 InferenceProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -107,11 +101,7 @@ internal InferenceProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The ID or alias for the trained model, or the ID of the deployment. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id ModelId { get; set; } + public required Elastic.Clients.Elasticsearch.Id ModelId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs index dd2ebcc49d1..874ccbc7d80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs @@ -31,17 +31,11 @@ public Ingest(System.DateTimeOffset timestamp) { Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public Ingest() - { - } -#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 Ingest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Ingest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,9 +44,5 @@ internal Ingest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti public string? Pipeline { get; set; } public Elastic.Clients.Elasticsearch.Ingest.Redact? Redact { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Timestamp { get; set; } + public required System.DateTimeOffset Timestamp { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InputConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InputConfig.g.cs index 5b71af06a08..4da5ca11c5b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InputConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InputConfig.g.cs @@ -32,33 +32,19 @@ public InputConfig(string inputField, string outputField) InputField = inputField; OutputField = outputField; } -#if NET7_0_OR_GREATER - public InputConfig() - { - } -#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 InputConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InputConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string InputField { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string OutputField { get; set; } + public required string InputField { get; set; } + public required string OutputField { get; set; } } public readonly partial struct InputConfigDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs index 6399f9e3f08..2a7a3fd8fab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs @@ -33,38 +33,20 @@ public IpDatabaseConfigurationMetadata(Elastic.Clients.Elasticsearch.Ingest.Data Id = id; Version = version; } -#if NET7_0_OR_GREATER - public IpDatabaseConfigurationMetadata() - { - } -#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 IpDatabaseConfigurationMetadata() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpDatabaseConfigurationMetadata(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationFull Database { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationFull Database { get; set; } + public required string Id { get; set; } public System.DateTimeOffset? ModifiedDate { get; set; } public System.DateTimeOffset? ModifiedDateMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpLocationProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpLocationProcessor.g.cs index ac5afe044e5..9f16b76d67a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpLocationProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpLocationProcessor.g.cs @@ -31,17 +31,11 @@ public IpLocationProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public IpLocationProcessor() - { - } -#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 IpLocationProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpLocationProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -76,11 +70,7 @@ internal IpLocationProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The field to get the ip address from for the geographical lookup. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ipinfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ipinfo.g.cs index b4c09b65f59..a4b543c6156 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ipinfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ipinfo.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.IpinfoConverter))] public sealed partial class Ipinfo { -#if NET7_0_OR_GREATER public Ipinfo() { } -#endif -#if !NET7_0_OR_GREATER - public Ipinfo() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Ipinfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JoinProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JoinProcessor.g.cs index c190374b6e8..009e84eef88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JoinProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JoinProcessor.g.cs @@ -32,17 +32,11 @@ public JoinProcessor(Elastic.Clients.Elasticsearch.Field field, string separator Field = field; Separator = separator; } -#if NET7_0_OR_GREATER - public JoinProcessor() - { - } -#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 JoinProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JoinProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal JoinProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Field containing array values to join. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -94,11 +84,7 @@ internal JoinProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The separator character. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Separator { get; set; } + public required string Separator { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JsonProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JsonProcessor.g.cs index 14b79bddfea..6ca05aee0bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JsonProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JsonProcessor.g.cs @@ -31,17 +31,11 @@ public JsonProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public JsonProcessor() - { - } -#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 JsonProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JsonProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -86,11 +80,7 @@ internal JsonProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The field to be parsed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/KeyValueProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/KeyValueProcessor.g.cs index 39ae7c490f0..67655a68ba0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/KeyValueProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/KeyValueProcessor.g.cs @@ -33,17 +33,11 @@ public KeyValueProcessor(Elastic.Clients.Elasticsearch.Field field, string field FieldSplit = fieldSplit; ValueSplit = valueSplit; } -#if NET7_0_OR_GREATER - public KeyValueProcessor() - { - } -#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 KeyValueProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeyValueProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -71,22 +65,14 @@ internal KeyValueProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// /// Regex pattern to use for splitting key-value pairs. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string FieldSplit { get; set; } + public required string FieldSplit { get; set; } /// /// @@ -174,11 +160,7 @@ internal KeyValueProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Regex pattern to use for splitting the key from the value within a key-value pair. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ValueSplit { get; set; } + public required string ValueSplit { get; set; } } public readonly partial struct KeyValueProcessorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Local.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Local.g.cs index 9d7e4c22a03..dcf809b28f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Local.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Local.g.cs @@ -31,26 +31,16 @@ public Local(string type) { Type = type; } -#if NET7_0_OR_GREATER - public Local() - { - } -#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 Local() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Local(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/LowercaseProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/LowercaseProcessor.g.cs index 36581211df1..dc562079e05 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/LowercaseProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/LowercaseProcessor.g.cs @@ -31,17 +31,11 @@ public LowercaseProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public LowercaseProcessor() - { - } -#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 LowercaseProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LowercaseProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal LowercaseProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The field to make lowercase. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Maxmind.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Maxmind.g.cs index fec08b9ff13..da8c6cb0050 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Maxmind.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Maxmind.g.cs @@ -31,28 +31,18 @@ public Maxmind(Elastic.Clients.Elasticsearch.Id accountId) { AccountId = accountId; } -#if NET7_0_OR_GREATER - public Maxmind() - { - } -#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 Maxmind() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Maxmind(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id AccountId { get; set; } + public required Elastic.Clients.Elasticsearch.Id AccountId { get; set; } } public readonly partial struct MaxmindDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs index 3607ce212ef..2cfe754f373 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.NetworkDirectionProcessorConverter))] public sealed partial class NetworkDirectionProcessor { -#if NET7_0_OR_GREATER public NetworkDirectionProcessor() { } -#endif -#if !NET7_0_OR_GREATER - public NetworkDirectionProcessor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NetworkDirectionProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs index 722e7d620f9..16fe6eb23ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.PipelineConverter))] public sealed partial class Pipeline { -#if NET7_0_OR_GREATER public Pipeline() { } -#endif -#if !NET7_0_OR_GREATER - public Pipeline() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Pipeline(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineConfig.g.cs index c5ae4f6bcf6..e123c29a64c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineConfig.g.cs @@ -31,17 +31,11 @@ public PipelineConfig(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Processors { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Processors { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessor.g.cs index c4e14608030..f847554d3bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessor.g.cs @@ -31,17 +31,11 @@ public PipelineProcessor(Elastic.Clients.Elasticsearch.Name name) { Name = name; } -#if NET7_0_OR_GREATER - public PipelineProcessor() - { - } -#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 PipelineProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PipelineProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -83,11 +77,7 @@ internal PipelineProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get; set; } + public required Elastic.Clients.Elasticsearch.Name Name { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessorResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessorResult.g.cs index f1910e875ca..99e1aa7b16e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessorResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessorResult.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.PipelineProcessorResultConverter))] public sealed partial class PipelineProcessorResult { -#if NET7_0_OR_GREATER public PipelineProcessorResult() { } -#endif -#if !NET7_0_OR_GREATER - public PipelineProcessorResult() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PipelineProcessorResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs index 5649029e257..d6cf2a83e2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs @@ -28,16 +28,11 @@ public sealed partial class Processor { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Processor() - { - } -#endif -#if !NET7_0_OR_GREATER + public Processor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Processor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Redact.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Redact.g.cs index 40a77a911e1..fec83e0b9b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Redact.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Redact.g.cs @@ -31,17 +31,11 @@ public Redact(bool isRedacted) { IsRedacted = isRedacted; } -#if NET7_0_OR_GREATER - public Redact() - { - } -#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 Redact() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Redact(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,9 +47,5 @@ internal Redact(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// indicates if document has been redacted /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsRedacted { get; set; } + public required bool IsRedacted { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs index 62279833ac0..18bb652243a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs @@ -32,17 +32,11 @@ public RedactProcessor(Elastic.Clients.Elasticsearch.Field field, System.Collect Field = field; Patterns = patterns; } -#if NET7_0_OR_GREATER - public RedactProcessor() - { - } -#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 RedactProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RedactProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal RedactProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The field to be redacted /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -102,11 +92,7 @@ internal RedactProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// A list of grok expressions to match and redact named captures with /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Patterns { get; set; } + public required System.Collections.Generic.ICollection Patterns { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs index 7c50898376f..5838eb4b984 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs @@ -31,17 +31,11 @@ public RegisteredDomainProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public RegisteredDomainProcessor() - { - } -#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 RegisteredDomainProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RegisteredDomainProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal RegisteredDomainProcessor(Elastic.Clients.Elasticsearch.Serialization.J /// Field containing the source FQDN. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RemoveProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RemoveProcessor.g.cs index f9998832176..e89bc916566 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RemoveProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RemoveProcessor.g.cs @@ -31,17 +31,11 @@ public RemoveProcessor(Elastic.Clients.Elasticsearch.Fields field) { Field = field; } -#if NET7_0_OR_GREATER - public RemoveProcessor() - { - } -#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 RemoveProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoveProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal RemoveProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Fields to be removed. Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields Field { get; set; } + public required Elastic.Clients.Elasticsearch.Fields Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RenameProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RenameProcessor.g.cs index 3b27eb88b39..45c5230666d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RenameProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RenameProcessor.g.cs @@ -32,17 +32,11 @@ public RenameProcessor(Elastic.Clients.Elasticsearch.Field field, Elastic.Client Field = field; TargetField = targetField; } -#if NET7_0_OR_GREATER - public RenameProcessor() - { - } -#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 RenameProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RenameProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal RenameProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -111,11 +101,7 @@ internal RenameProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field TargetField { get; set; } + public required Elastic.Clients.Elasticsearch.Field TargetField { get; set; } } public readonly partial struct RenameProcessorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RerouteProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RerouteProcessor.g.cs index 8e55b0df2b4..f6519f7ed2f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RerouteProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RerouteProcessor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.RerouteProcessorConverter))] public sealed partial class RerouteProcessor { -#if NET7_0_OR_GREATER public RerouteProcessor() { } -#endif -#if !NET7_0_OR_GREATER - public RerouteProcessor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RerouteProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ScriptProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ScriptProcessor.g.cs index 71482c08d71..cef1f0b6cf4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ScriptProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ScriptProcessor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.ScriptProcessorConverter))] public sealed partial class ScriptProcessor { -#if NET7_0_OR_GREATER public ScriptProcessor() { } -#endif -#if !NET7_0_OR_GREATER - public ScriptProcessor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetProcessor.g.cs index bec3f4cc1bc..677f717b74d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetProcessor.g.cs @@ -31,17 +31,11 @@ public SetProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public SetProcessor() - { - } -#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 SetProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SetProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,11 +64,7 @@ internal SetProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// Supports template snippets. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs index f85e41d8426..7a72d74f85a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs @@ -31,17 +31,11 @@ public SetSecurityUserProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public SetSecurityUserProcessor() - { - } -#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 SetSecurityUserProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SetSecurityUserProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal SetSecurityUserProcessor(Elastic.Clients.Elasticsearch.Serialization.Js /// The field to store the user information into. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SimulateDocumentResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SimulateDocumentResult.g.cs index 62c80c1c7b2..6c7bb300d2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SimulateDocumentResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SimulateDocumentResult.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.SimulateDocumentResultConverter))] public sealed partial class SimulateDocumentResult { -#if NET7_0_OR_GREATER public SimulateDocumentResult() { } -#endif -#if !NET7_0_OR_GREATER - public SimulateDocumentResult() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimulateDocumentResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SortProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SortProcessor.g.cs index 7698a31e625..19e0ef4d3e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SortProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SortProcessor.g.cs @@ -31,17 +31,11 @@ public SortProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public SortProcessor() - { - } -#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 SortProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SortProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal SortProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The field to be sorted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SplitProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SplitProcessor.g.cs index 8a4c86786c1..1e0df19b767 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SplitProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SplitProcessor.g.cs @@ -32,17 +32,11 @@ public SplitProcessor(Elastic.Clients.Elasticsearch.Field field, string separato Field = field; Separator = separator; } -#if NET7_0_OR_GREATER - public SplitProcessor() - { - } -#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 SplitProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SplitProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal SplitProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The field to split. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -108,11 +98,7 @@ internal SplitProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// A regex which matches the separator, for example, , or \s+. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Separator { get; set; } + public required string Separator { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TerminateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TerminateProcessor.g.cs index 3cb57b63071..b88b0e73c1e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TerminateProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TerminateProcessor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.TerminateProcessorConverter))] public sealed partial class TerminateProcessor { -#if NET7_0_OR_GREATER public TerminateProcessor() { } -#endif -#if !NET7_0_OR_GREATER - public TerminateProcessor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TerminateProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TrimProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TrimProcessor.g.cs index 50232e741bd..1823a77716c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TrimProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TrimProcessor.g.cs @@ -31,17 +31,11 @@ public TrimProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public TrimProcessor() - { - } -#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 TrimProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrimProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal TrimProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The string-valued field to trim whitespace from. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UppercaseProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UppercaseProcessor.g.cs index a52543d3880..f75206c120e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UppercaseProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UppercaseProcessor.g.cs @@ -31,17 +31,11 @@ public UppercaseProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public UppercaseProcessor() - { - } -#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 UppercaseProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UppercaseProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal UppercaseProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The field to make uppercase. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UriPartsProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UriPartsProcessor.g.cs index 47415adfb45..4b33fab52fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UriPartsProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UriPartsProcessor.g.cs @@ -31,17 +31,11 @@ public UriPartsProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public UriPartsProcessor() - { - } -#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 UriPartsProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UriPartsProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal UriPartsProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Field containing the URI string. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs index 4c0d2bafa10..90c9d81e649 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs @@ -31,17 +31,11 @@ public UrlDecodeProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public UrlDecodeProcessor() - { - } -#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 UrlDecodeProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UrlDecodeProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal UrlDecodeProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The field to decode. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs index 6476bc3f163..d3a6739f7c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs @@ -31,17 +31,11 @@ public UserAgentProcessor(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public UserAgentProcessor() - { - } -#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 UserAgentProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UserAgentProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +62,7 @@ internal UserAgentProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The field containing the user agent string. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Web.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Web.g.cs index 25ea67359f7..e7dc4fbca11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Web.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Web.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Ingest; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.Json.WebConverter))] public sealed partial class Web { -#if NET7_0_OR_GREATER public Web() { } -#endif -#if !NET7_0_OR_GREATER - public Web() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Web(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.g.cs index a44597b43df..f26734b7c89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/InlineGet.g.cs @@ -31,17 +31,11 @@ public InlineGet(bool found) { Found = found; } -#if NET7_0_OR_GREATER - public InlineGet() - { - } -#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 InlineGet() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InlineGet(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal InlineGet(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe } public System.Collections.Generic.IReadOnlyDictionary? Fields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/InnerRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/InnerRetriever.g.cs index 1ca31aa76fd..03d6ffb4239 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/InnerRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/InnerRetriever.g.cs @@ -33,38 +33,20 @@ public InnerRetriever(Elastic.Clients.Elasticsearch.ScoreNormalizer normalizer, Retriever = retriever; Weight = weight; } -#if NET7_0_OR_GREATER - public InnerRetriever() - { - } -#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 InnerRetriever() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InnerRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ScoreNormalizer Normalizer { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - float Weight { get; set; } + public required Elastic.Clients.Elasticsearch.ScoreNormalizer Normalizer { get; set; } + public required Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + public required float Weight { get; set; } } public readonly partial struct InnerRetrieverDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs index 3a44f43a0c8..4e15447c888 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs @@ -31,17 +31,11 @@ public KnnQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public KnnQuery() - { - } -#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 KnnQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KnnQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal KnnQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// The name of the vector field to search against /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs index 64cbfc3bb2e..a2269be72db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs @@ -33,17 +33,11 @@ public KnnRetriever(string field, int k, int numCandidates) K = k; NumCandidates = numCandidates; } -#if NET7_0_OR_GREATER - public KnnRetriever() - { - } -#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 KnnRetriever() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KnnRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal KnnRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The name of the vector field to search against. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } + public required string Field { get; set; } /// /// @@ -73,11 +63,7 @@ internal KnnRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// Number of nearest neighbors to return as top hits. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int K { get; set; } + public required int K { get; set; } /// /// @@ -98,11 +84,7 @@ internal KnnRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// Number of nearest neighbor candidates to consider per shard. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumCandidates { get; set; } + public required int NumCandidates { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnSearch.g.cs index f9f05187993..a03aca67a10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnSearch.g.cs @@ -31,17 +31,11 @@ public KnnSearch(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public KnnSearch() - { - } -#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 KnnSearch() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KnnSearch(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal KnnSearch(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// The name of the vector field to search against /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LatLonGeoLocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LatLonGeoLocation.g.cs index fb9acab8fa5..6f35f44078e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LatLonGeoLocation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LatLonGeoLocation.g.cs @@ -32,17 +32,11 @@ public LatLonGeoLocation(double lat, double lon) Lat = lat; Lon = lon; } -#if NET7_0_OR_GREATER - public LatLonGeoLocation() - { - } -#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 LatLonGeoLocation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LatLonGeoLocation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal LatLonGeoLocation(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Latitude /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Lat { get; set; } + public required double Lat { get; set; } /// /// /// Longitude /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Lon { get; set; } + public required double Lon { get; set; } } public readonly partial struct LatLonGeoLocationDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/Acknowledgement.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/Acknowledgement.g.cs index 5d6174b7cf1..c6b8e9a0df0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/Acknowledgement.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/Acknowledgement.g.cs @@ -32,31 +32,17 @@ public Acknowledgement(System.Collections.Generic.IReadOnlyCollection li License = license; Message = message; } -#if NET7_0_OR_GREATER - public Acknowledgement() - { - } -#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 Acknowledgement() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Acknowledgement(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection License { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Message { get; set; } + public required System.Collections.Generic.IReadOnlyCollection License { get; set; } + public required string Message { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/License.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/License.g.cs index e8fc69f8575..7717193d665 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/License.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/License.g.cs @@ -37,61 +37,27 @@ public License(System.DateTimeOffset expiryDateInMillis, System.DateTimeOffset i Type = type; Uid = uid; } -#if NET7_0_OR_GREATER - public License() - { - } -#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 License() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal License(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ExpiryDateInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset IssueDateInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IssuedTo { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Issuer { get; set; } + public required System.DateTimeOffset ExpiryDateInMillis { get; set; } + public required System.DateTimeOffset IssueDateInMillis { get; set; } + public required string IssuedTo { get; set; } + public required string Issuer { get; set; } public long? MaxNodes { get; set; } public long? MaxResourceUnits { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Signature { get; set; } + public required string Signature { get; set; } public System.DateTimeOffset? StartDateInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Type { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Uid { get; set; } + public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Type { get; set; } + public required string Uid { get; set; } } public readonly partial struct LicenseDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/LicenseInformation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/LicenseInformation.g.cs index 844c46f1c58..5866e150867 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/LicenseInformation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/LicenseInformation.g.cs @@ -39,17 +39,11 @@ public LicenseInformation(System.DateTimeOffset issueDate, System.DateTimeOffset Type = type; Uid = uid; } -#if NET7_0_OR_GREATER - public LicenseInformation() - { - } -#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 LicenseInformation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LicenseInformation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,50 +52,14 @@ internal LicenseInformation(Elastic.Clients.Elasticsearch.Serialization.JsonCons public System.DateTimeOffset? ExpiryDate { get; set; } public System.DateTimeOffset? ExpiryDateInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset IssueDate { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset IssueDateInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IssuedTo { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Issuer { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long? MaxNodes { get; set; } + public required System.DateTimeOffset IssueDate { get; set; } + public required System.DateTimeOffset IssueDateInMillis { get; set; } + public required string IssuedTo { get; set; } + public required string Issuer { get; set; } + public required long? MaxNodes { get; set; } public int? MaxResourceUnits { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartDateInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.LicenseManagement.LicenseStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Type { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Uid { get; set; } + public required System.DateTimeOffset StartDateInMillis { get; set; } + public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseStatus Status { get; set; } + public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Type { get; set; } + public required string Uid { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LinearRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LinearRetriever.g.cs index 5e166275d42..fd6735ff4e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LinearRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LinearRetriever.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.LinearRetrieverConverter))] public sealed partial class LinearRetriever { -#if NET7_0_OR_GREATER public LinearRetriever() { } -#endif -#if !NET7_0_OR_GREATER - public LinearRetriever() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LinearRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs index da669e7ac5f..54b41bd5836 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs @@ -31,17 +31,11 @@ public AdaptiveAllocationsSettings(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public AdaptiveAllocationsSettings() - { - } -#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 AdaptiveAllocationsSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AdaptiveAllocationsSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal AdaptiveAllocationsSettings(Elastic.Clients.Elasticsearch.Serialization /// If true, adaptive_allocations is enabled /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AggregateOutput.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AggregateOutput.g.cs index 9095188663a..3efef610e17 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AggregateOutput.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AggregateOutput.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.AggregateOutputConverter))] public sealed partial class AggregateOutput { -#if NET7_0_OR_GREATER public AggregateOutput() { } -#endif -#if !NET7_0_OR_GREATER - public AggregateOutput() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AggregateOutput(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfig.g.cs index e728c26caad..394201a1f3b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfig.g.cs @@ -31,17 +31,11 @@ public AnalysisConfig(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Detectors { get; set; } + public required System.Collections.Generic.ICollection Detectors { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs index 6f97fcd061d..b5ad1db3a1d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs @@ -33,17 +33,11 @@ public AnalysisConfigRead(Elastic.Clients.Elasticsearch.Duration bucketSpan, Sys Detectors = detectors; Influencers = influencers; } -#if NET7_0_OR_GREATER - public AnalysisConfigRead() - { - } -#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 AnalysisConfigRead() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalysisConfigRead(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal AnalysisConfigRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The size of the interval that the analysis is aggregated into, typically between 5m and 1h. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration BucketSpan { get; set; } + public required Elastic.Clients.Elasticsearch.Duration BucketSpan { get; set; } /// /// @@ -95,11 +85,7 @@ internal AnalysisConfigRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// You can specify multiple detectors for a job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Detectors { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Detectors { get; set; } /// /// @@ -109,11 +95,7 @@ internal AnalysisConfigRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields Influencers { get; set; } + public required Elastic.Clients.Elasticsearch.Fields Influencers { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisLimits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisLimits.g.cs index ee262c6b318..10d7d4029f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisLimits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisLimits.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.AnalysisLimitsConverter))] public sealed partial class AnalysisLimits { -#if NET7_0_OR_GREATER public AnalysisLimits() { } -#endif -#if !NET7_0_OR_GREATER - public AnalysisLimits() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalysisLimits(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisMemoryLimit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisMemoryLimit.g.cs index 20581c29d9f..b626d4bd09e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisMemoryLimit.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisMemoryLimit.g.cs @@ -31,17 +31,11 @@ public AnalysisMemoryLimit(string modelMemoryLimit) { ModelMemoryLimit = modelMemoryLimit; } -#if NET7_0_OR_GREATER - public AnalysisMemoryLimit() - { - } -#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 AnalysisMemoryLimit() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalysisMemoryLimit(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal AnalysisMemoryLimit(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelMemoryLimit { get; set; } + public required string ModelMemoryLimit { get; set; } } public readonly partial struct AnalysisMemoryLimitDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Anomaly.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Anomaly.g.cs index 93de9d1b4a7..d8cf7d57e0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Anomaly.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Anomaly.g.cs @@ -39,17 +39,11 @@ public Anomaly(System.TimeSpan bucketSpan, int detectorIndex, double initialReco ResultType = resultType; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public Anomaly() - { - } -#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 Anomaly() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Anomaly(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -75,11 +69,7 @@ internal Anomaly(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// The length of the bucket in seconds. This value matches the bucket_span that is specified in the job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan BucketSpan { get; set; } + public required System.TimeSpan BucketSpan { get; set; } /// /// @@ -107,11 +97,7 @@ internal Anomaly(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// A unique identifier for the detector. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DetectorIndex { get; set; } + public required int DetectorIndex { get; set; } /// /// @@ -153,33 +139,21 @@ internal Anomaly(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// A normalized score between 0-100, which is based on the probability of the anomalousness of this record. This is the initial value that was calculated at the time the bucket was processed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double InitialRecordScore { get; set; } + public required double InitialRecordScore { get; set; } /// /// /// If true, this is an interim result. In other words, the results are calculated based on partial input data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsInterim { get; set; } + public required bool IsInterim { get; set; } /// /// /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// @@ -214,44 +188,28 @@ internal Anomaly(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// The probability of the individual anomaly occurring, in the range 0 to 1. For example, 0.0000772031. This value can be held to a high precision of over 300 decimal places, so the record_score is provided as a human-readable and friendly interpretation of this. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Probability { get; set; } + public required double Probability { get; set; } /// /// /// A normalized score between 0-100, which is based on the probability of the anomalousness of this record. Unlike initial_record_score, this value will be updated by a re-normalization process as new data is analyzed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double RecordScore { get; set; } + public required double RecordScore { get; set; } /// /// /// Internal. This is always set to record. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ResultType { get; set; } + public required string ResultType { get; set; } /// /// /// The start time of the bucket for which these results were calculated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Timestamp { get; set; } + public required System.DateTimeOffset Timestamp { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyCause.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyCause.g.cs index ec14d44f7fe..2c20117818d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyCause.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyCause.g.cs @@ -31,17 +31,11 @@ public AnomalyCause(double probability) { Probability = probability; } -#if NET7_0_OR_GREATER - public AnomalyCause() - { - } -#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 AnomalyCause() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnomalyCause(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,10 +55,6 @@ internal AnomalyCause(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo public string? OverFieldValue { get; set; } public string? PartitionFieldName { get; set; } public string? PartitionFieldValue { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Probability { get; set; } + public required double Probability { get; set; } public System.Collections.Generic.IReadOnlyCollection? Typical { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyDetectors.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyDetectors.g.cs index 4e07386837f..de43cc2a4e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyDetectors.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyDetectors.g.cs @@ -35,46 +35,20 @@ public AnomalyDetectors(Elastic.Clients.Elasticsearch.MachineLearning.Categoriza ModelMemoryLimit = modelMemoryLimit; ModelSnapshotRetentionDays = modelSnapshotRetentionDays; } -#if NET7_0_OR_GREATER - public AnomalyDetectors() - { - } -#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 AnomalyDetectors() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnomalyDetectors(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.CategorizationAnalyzer CategorizationAnalyzer { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int CategorizationExamplesLimit { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int DailyModelSnapshotRetentionAfterDays { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ModelMemoryLimit { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int ModelSnapshotRetentionDays { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.CategorizationAnalyzer CategorizationAnalyzer { get; set; } + public required int CategorizationExamplesLimit { get; set; } + public required int DailyModelSnapshotRetentionAfterDays { get; set; } + public required string ModelMemoryLimit { get; set; } + public required int ModelSnapshotRetentionDays { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyExplanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyExplanation.g.cs index a21897bfdba..c6edfdf76f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyExplanation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyExplanation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.AnomalyExplanationConverter))] public sealed partial class AnomalyExplanation { -#if NET7_0_OR_GREATER public AnomalyExplanation() { } -#endif -#if !NET7_0_OR_GREATER - public AnomalyExplanation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnomalyExplanation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ApiKeyAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ApiKeyAuthorization.g.cs index 4a766d494c4..38b37c5639d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ApiKeyAuthorization.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ApiKeyAuthorization.g.cs @@ -32,17 +32,11 @@ public ApiKeyAuthorization(string id, string name) Id = id; Name = name; } -#if NET7_0_OR_GREATER - public ApiKeyAuthorization() - { - } -#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 ApiKeyAuthorization() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApiKeyAuthorization(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal ApiKeyAuthorization(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The identifier for the API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// The name of the API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/BucketInfluencer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/BucketInfluencer.g.cs index 47e3402b233..339b3b9fe3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/BucketInfluencer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/BucketInfluencer.g.cs @@ -40,17 +40,11 @@ public BucketInfluencer(double anomalyScore, System.TimeSpan bucketSpan, string ResultType = resultType; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public BucketInfluencer() - { - } -#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 BucketInfluencer() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketInfluencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,33 +57,21 @@ internal BucketInfluencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// newer data is analyzed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double AnomalyScore { get; set; } + public required double AnomalyScore { get; set; } /// /// /// The length of the bucket in seconds. This value matches the bucket span that is specified in the job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan BucketSpan { get; set; } + public required System.TimeSpan BucketSpan { get; set; } /// /// /// The field name of the influencer. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InfluencerFieldName { get; set; } + public required string InfluencerFieldName { get; set; } /// /// @@ -97,33 +79,21 @@ internal BucketInfluencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// time the bucket was processed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double InitialAnomalyScore { get; set; } + public required double InitialAnomalyScore { get; set; } /// /// /// If true, this is an interim result. In other words, the results are calculated based on partial input data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsInterim { get; set; } + public required bool IsInterim { get; set; } /// /// /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// @@ -132,44 +102,28 @@ internal BucketInfluencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// this. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Probability { get; set; } + public required double Probability { get; set; } /// /// /// Internal. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double RawAnomalyScore { get; set; } + public required double RawAnomalyScore { get; set; } /// /// /// Internal. This value is always set to bucket_influencer. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ResultType { get; set; } + public required string ResultType { get; set; } /// /// /// The start time of the bucket for which these results were calculated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Timestamp { get; set; } + public required System.DateTimeOffset Timestamp { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/BucketSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/BucketSummary.g.cs index 47f606c3102..07cd3cc88f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/BucketSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/BucketSummary.g.cs @@ -40,17 +40,11 @@ public BucketSummary(double anomalyScore, System.Collections.Generic.IReadOnlyCo ResultType = resultType; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public BucketSummary() - { - } -#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 BucketSummary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BucketSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,38 +58,22 @@ internal BucketSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// new data is analyzed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double AnomalyScore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection BucketInfluencers { get; set; } + public required double AnomalyScore { get; set; } + public required System.Collections.Generic.IReadOnlyCollection BucketInfluencers { get; set; } /// /// /// The length of the bucket in seconds. This value matches the bucket span that is specified in the job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan BucketSpan { get; set; } + public required System.TimeSpan BucketSpan { get; set; } /// /// /// The number of input data records processed in this bucket. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long EventCount { get; set; } + public required long EventCount { get; set; } /// /// @@ -103,55 +81,35 @@ internal BucketSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// time the bucket was processed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double InitialAnomalyScore { get; set; } + public required double InitialAnomalyScore { get; set; } /// /// /// If true, this is an interim result. In other words, the results are calculated based on partial input data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsInterim { get; set; } + public required bool IsInterim { get; set; } /// /// /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// /// The amount of time, in milliseconds, that it took to analyze the bucket contents and calculate results. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ProcessingTimeMs { get; set; } + public required System.TimeSpan ProcessingTimeMs { get; set; } /// /// /// Internal. This value is always set to bucket. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ResultType { get; set; } + public required string ResultType { get; set; } /// /// @@ -159,11 +117,7 @@ internal BucketSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// timestamp of the bucket are included in the results for the bucket. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Timestamp { get; set; } + public required System.DateTimeOffset Timestamp { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Calendar.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Calendar.g.cs index c4d6e1e305f..7da0981f99b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Calendar.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Calendar.g.cs @@ -32,17 +32,11 @@ public Calendar(string calendarId, System.Collections.Generic.IReadOnlyCollectio CalendarId = calendarId; JobIds = jobIds; } -#if NET7_0_OR_GREATER - public Calendar() - { - } -#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 Calendar() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Calendar(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal Calendar(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// A string that uniquely identifies a calendar. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string CalendarId { get; set; } + public required string CalendarId { get; set; } /// /// @@ -72,9 +62,5 @@ internal Calendar(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// An array of anomaly detection job identifiers. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection JobIds { get; set; } + public required System.Collections.Generic.IReadOnlyCollection JobIds { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs index 0477e4e3c49..2ffe855b1d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs @@ -33,17 +33,11 @@ public CalendarEvent(string description, System.DateTimeOffset endTime, System.D EndTime = endTime; StartTime = startTime; } -#if NET7_0_OR_GREATER - public CalendarEvent() - { - } -#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 CalendarEvent() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CalendarEvent(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,22 +56,14 @@ internal CalendarEvent(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// A description of the scheduled event. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } + public required string Description { get; set; } /// /// /// The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset EndTime { get; set; } + public required System.DateTimeOffset EndTime { get; set; } public Elastic.Clients.Elasticsearch.Id? EventId { get; set; } /// @@ -106,11 +92,7 @@ internal CalendarEvent(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTime { get; set; } + public required System.DateTimeOffset StartTime { get; set; } } public readonly partial struct CalendarEventDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CategorizationAnalyzerDefinition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CategorizationAnalyzerDefinition.g.cs index e4999cab911..43ac0019c07 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CategorizationAnalyzerDefinition.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CategorizationAnalyzerDefinition.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.CategorizationAnalyzerDefinitionConverter))] public sealed partial class CategorizationAnalyzerDefinition { -#if NET7_0_OR_GREATER public CategorizationAnalyzerDefinition() { } -#endif -#if !NET7_0_OR_GREATER - public CategorizationAnalyzerDefinition() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CategorizationAnalyzerDefinition(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Category.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Category.g.cs index f1a900bca2f..df36f40c0d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Category.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Category.g.cs @@ -38,17 +38,11 @@ public Category(long categoryId, System.Collections.Generic.IReadOnlyCollection< ResultType = resultType; Terms = terms; } -#if NET7_0_OR_GREATER - public Category() - { - } -#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 Category() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Category(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,22 +54,14 @@ internal Category(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// A unique identifier for the category. category_id is unique at the job level, even when per-partition categorization is enabled. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long CategoryId { get; set; } + public required long CategoryId { get; set; } /// /// /// A list of examples of actual values that matched the category. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Examples { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Examples { get; set; } /// /// @@ -89,27 +75,15 @@ internal Category(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// /// The maximum length of the fields that matched the category. The value is increased by 10% to enable matching for similar fields that have not been analyzed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MaxMatchingLength { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Mlcategory { get; set; } + public required long MaxMatchingLength { get; set; } + public required string Mlcategory { get; set; } /// /// @@ -145,25 +119,13 @@ internal Category(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// A regular expression that is used to search for values that match the category. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Regex { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ResultType { get; set; } + public required string Regex { get; set; } + public required string ResultType { get; set; } /// /// /// A space separated list of the common tokens that are matched in values of the category. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Terms { get; set; } + public required string Terms { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ChunkingConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ChunkingConfig.g.cs index 0ba01d5dca3..1548e1eae8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ChunkingConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ChunkingConfig.g.cs @@ -31,17 +31,11 @@ public ChunkingConfig(Elastic.Clients.Elasticsearch.MachineLearning.ChunkingMode { Mode = mode; } -#if NET7_0_OR_GREATER - public ChunkingConfig() - { - } -#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 ChunkingConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChunkingConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,11 +50,7 @@ internal ChunkingConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// use this mode when the datafeed uses aggregations. If the mode is off, no chunking is applied. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.ChunkingMode Mode { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.ChunkingMode Mode { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ClassificationInferenceOptions.g.cs index 0065fbe2054..a97dd71fa52 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ClassificationInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ClassificationInferenceOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.ClassificationInferenceOptionsConverter))] public sealed partial class ClassificationInferenceOptions { -#if NET7_0_OR_GREATER public ClassificationInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public ClassificationInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClassificationInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixItem.g.cs index 5b06ac6ac03..1d307051026 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixItem.g.cs @@ -34,41 +34,19 @@ public ConfusionMatrixItem(string actualClass, int actualClassDocCount, int othe OtherPredictedClassDocCount = otherPredictedClassDocCount; PredictedClasses = predictedClasses; } -#if NET7_0_OR_GREATER - public ConfusionMatrixItem() - { - } -#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 ConfusionMatrixItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ConfusionMatrixItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string ActualClass { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int ActualClassDocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int OtherPredictedClassDocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection PredictedClasses { get; set; } + public required string ActualClass { get; set; } + public required int ActualClassDocCount { get; set; } + public required int OtherPredictedClassDocCount { get; set; } + public required System.Collections.Generic.IReadOnlyCollection PredictedClasses { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixPrediction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixPrediction.g.cs index 653e577d030..3b97c1a583e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixPrediction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixPrediction.g.cs @@ -32,31 +32,17 @@ public ConfusionMatrixPrediction(int count, string predictedClass) Count = count; PredictedClass = predictedClass; } -#if NET7_0_OR_GREATER - public ConfusionMatrixPrediction() - { - } -#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 ConfusionMatrixPrediction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ConfusionMatrixPrediction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string PredictedClass { get; set; } + public required int Count { get; set; } + public required string PredictedClass { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixThreshold.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixThreshold.g.cs index e59d1656d78..61e4058ce2b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixThreshold.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ConfusionMatrixThreshold.g.cs @@ -34,17 +34,11 @@ public ConfusionMatrixThreshold(int falseNegative, int falsePositive, int trueNe TrueNegative = trueNegative; TruePositive = truePositive; } -#if NET7_0_OR_GREATER - public ConfusionMatrixThreshold() - { - } -#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 ConfusionMatrixThreshold() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ConfusionMatrixThreshold(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,42 +50,26 @@ internal ConfusionMatrixThreshold(Elastic.Clients.Elasticsearch.Serialization.Js /// False Negative /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int FalseNegative { get; set; } + public required int FalseNegative { get; set; } /// /// /// False Positive /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int FalsePositive { get; set; } + public required int FalsePositive { get; set; } /// /// /// True Negative /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int TrueNegative { get; set; } + public required int TrueNegative { get; set; } /// /// /// True Positive /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int TruePositive { get; set; } + public required int TruePositive { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataCounts.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataCounts.g.cs index 3973a261e3b..9b34c13d2d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataCounts.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataCounts.g.cs @@ -42,88 +42,34 @@ public DataCounts(long bucketCount, long emptyBucketCount, long inputBytes, long ProcessedRecordCount = processedRecordCount; SparseBucketCount = sparseBucketCount; } -#if NET7_0_OR_GREATER - public DataCounts() - { - } -#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 DataCounts() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataCounts(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long BucketCount { get; set; } + public required long BucketCount { get; set; } public long? EarliestRecordTimestamp { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long EmptyBucketCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long InputBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long InputFieldCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long InputRecordCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long InvalidDateCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required long EmptyBucketCount { get; set; } + public required long InputBytes { get; set; } + public required long InputFieldCount { get; set; } + public required long InputRecordCount { get; set; } + public required long InvalidDateCount { get; set; } + public required string JobId { get; set; } public long? LastDataTime { get; set; } public long? LatestBucketTimestamp { get; set; } public long? LatestEmptyBucketTimestamp { get; set; } public long? LatestRecordTimestamp { get; set; } public long? LatestSparseBucketTimestamp { get; set; } public long? LogTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MissingFieldCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long OutOfOrderTimestampCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ProcessedFieldCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ProcessedRecordCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SparseBucketCount { get; set; } + public required long MissingFieldCount { get; set; } + public required long OutOfOrderTimestampCount { get; set; } + public required long ProcessedFieldCount { get; set; } + public required long ProcessedRecordCount { get; set; } + public required long SparseBucketCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataDescription.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataDescription.g.cs index aa687668e10..361613151b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataDescription.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataDescription.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataDescriptionConverter))] public sealed partial class DataDescription { -#if NET7_0_OR_GREATER public DataDescription() { } -#endif -#if !NET7_0_OR_GREATER - public DataDescription() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataDescription(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Datafeed.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Datafeed.g.cs index a0081185c6b..a1ebc7207cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Datafeed.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Datafeed.g.cs @@ -35,17 +35,11 @@ public Datafeed(string datafeedId, Elastic.Clients.Elasticsearch.MachineLearning JobId = jobId; Query = query; } -#if NET7_0_OR_GREATER - public Datafeed() - { - } -#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 Datafeed() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Datafeed(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,16 +55,8 @@ internal Datafeed(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// public Elastic.Clients.Elasticsearch.MachineLearning.DatafeedAuthorization? Authorization { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.ChunkingConfig? ChunkingConfig { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string DatafeedId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DelayedDataCheckConfig DelayedDataCheckConfig { get; set; } + public required string DatafeedId { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DelayedDataCheckConfig DelayedDataCheckConfig { get; set; } /// /// @@ -79,23 +65,11 @@ internal Datafeed(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } public System.Collections.Generic.IReadOnlyCollection? Indexes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } public int? MaxEmptySearches { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } public Elastic.Clients.Elasticsearch.Duration? QueryDelay { get; set; } public System.Collections.Generic.IReadOnlyDictionary? RuntimeMappings { get; set; } public System.Collections.Generic.IReadOnlyDictionary? ScriptFields { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedAuthorization.g.cs index 57d0166f8a2..db387130542 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedAuthorization.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedAuthorization.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DatafeedAuthorizationConverter))] public sealed partial class DatafeedAuthorization { -#if NET7_0_OR_GREATER public DatafeedAuthorization() { } -#endif -#if !NET7_0_OR_GREATER - public DatafeedAuthorization() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DatafeedAuthorization(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedConfig.g.cs index cf7c22560c4..2fb5f680884 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedConfig.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DatafeedConfigConverter))] public sealed partial class DatafeedConfig { -#if NET7_0_OR_GREATER public DatafeedConfig() { } -#endif -#if !NET7_0_OR_GREATER - public DatafeedConfig() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DatafeedConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedRunningState.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedRunningState.g.cs index 2897d14cf39..02f7cc730ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedRunningState.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedRunningState.g.cs @@ -32,17 +32,11 @@ public DatafeedRunningState(bool realTimeConfigured, bool realTimeRunning) RealTimeConfigured = realTimeConfigured; RealTimeRunning = realTimeRunning; } -#if NET7_0_OR_GREATER - public DatafeedRunningState() - { - } -#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 DatafeedRunningState() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DatafeedRunningState(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal DatafeedRunningState(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Indicates if the datafeed is "real-time"; meaning that the datafeed has no configured end time. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool RealTimeConfigured { get; set; } + public required bool RealTimeConfigured { get; set; } /// /// @@ -66,11 +56,7 @@ internal DatafeedRunningState(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// For datafeeds without a configured end time, this means that the datafeed is now running on "real-time" data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool RealTimeRunning { get; set; } + public required bool RealTimeRunning { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedStats.g.cs index c74af611be3..a9bd8085b40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedStats.g.cs @@ -32,17 +32,11 @@ public DatafeedStats(string datafeedId, Elastic.Clients.Elasticsearch.MachineLea DatafeedId = datafeedId; State = state; } -#if NET7_0_OR_GREATER - public DatafeedStats() - { - } -#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 DatafeedStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DatafeedStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal DatafeedStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// It must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string DatafeedId { get; set; } + public required string DatafeedId { get; set; } /// /// @@ -89,11 +79,7 @@ internal DatafeedStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The status of the datafeed, which can be one of the following values: starting, started, stopping, stopped. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DatafeedState State { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DatafeedState State { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs index 38856c8d77a..98de7a54ace 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs @@ -35,17 +35,11 @@ public DatafeedTimingStats(long bucketCount, System.TimeSpan exponentialAverageS SearchCount = searchCount; TotalSearchTimeMs = totalSearchTimeMs; } -#if NET7_0_OR_GREATER - public DatafeedTimingStats() - { - } -#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 DatafeedTimingStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DatafeedTimingStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,11 +58,7 @@ internal DatafeedTimingStats(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The number of buckets processed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long BucketCount { get; set; } + public required long BucketCount { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.ExponentialAverageCalculationContext? ExponentialAverageCalculationContext { get; set; } /// @@ -76,42 +66,26 @@ internal DatafeedTimingStats(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The exponential average search time per hour, in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ExponentialAverageSearchTimePerHourMs { get; set; } + public required System.TimeSpan ExponentialAverageSearchTimePerHourMs { get; set; } /// /// /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// /// The number of searches run by the datafeed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long SearchCount { get; set; } + public required long SearchCount { get; set; } /// /// /// The total time the datafeed spent searching, in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalSearchTimeMs { get; set; } + public required System.TimeSpan TotalSearchTimeMs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Datafeeds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Datafeeds.g.cs index 618670703cf..7740a136983 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Datafeeds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Datafeeds.g.cs @@ -31,26 +31,16 @@ public Datafeeds(int scrollSize) { ScrollSize = scrollSize; } -#if NET7_0_OR_GREATER - public Datafeeds() - { - } -#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 Datafeeds() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Datafeeds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ScrollSize { get; set; } + public required int ScrollSize { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysis.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysis.g.cs index 325c38f2870..4076c7a4cff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysis.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysis.g.cs @@ -28,16 +28,11 @@ public sealed partial class DataframeAnalysis { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public DataframeAnalysis() - { - } -#endif -#if !NET7_0_OR_GREATER + public DataframeAnalysis() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysis(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisAnalyzedFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisAnalyzedFields.g.cs index 1e056b8d531..f726d55ba24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisAnalyzedFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisAnalyzedFields.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeAnalysisAnalyzedFieldsConverter))] public sealed partial class DataframeAnalysisAnalyzedFields { -#if NET7_0_OR_GREATER public DataframeAnalysisAnalyzedFields() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeAnalysisAnalyzedFields() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisAnalyzedFields(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisClassification.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisClassification.g.cs index 72a1d24c057..227bc20e5fb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisClassification.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisClassification.g.cs @@ -31,17 +31,11 @@ public DataframeAnalysisClassification(string dependentVariable) { DependentVariable = dependentVariable; } -#if NET7_0_OR_GREATER - public DataframeAnalysisClassification() - { - } -#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 DataframeAnalysisClassification() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisClassification(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal DataframeAnalysisClassification(Elastic.Clients.Elasticsearch.Serializa /// For regression analysis, the data type of the field must be numeric. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string DependentVariable { get; set; } + public required string DependentVariable { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessor.g.cs index 871cb460b0c..2ba443c80ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessor.g.cs @@ -28,16 +28,11 @@ public sealed partial class DataframeAnalysisFeatureProcessor { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public DataframeAnalysisFeatureProcessor() - { - } -#endif -#if !NET7_0_OR_GREATER + public DataframeAnalysisFeatureProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisFeatureProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs index f9371e396b1..2d989e99997 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs @@ -33,17 +33,11 @@ public DataframeAnalysisFeatureProcessorFrequencyEncoding(Elastic.Clients.Elasti Field = field; FrequencyMap = frequencyMap; } -#if NET7_0_OR_GREATER - public DataframeAnalysisFeatureProcessorFrequencyEncoding() - { - } -#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 DataframeAnalysisFeatureProcessorFrequencyEncoding() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisFeatureProcessorFrequencyEncoding(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,27 +49,15 @@ internal DataframeAnalysisFeatureProcessorFrequencyEncoding(Elastic.Clients.Elas /// The resulting feature name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name FeatureName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Name FeatureName { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// /// The resulting frequency map for the field value. If the field value is missing from the frequency_map, the resulting value is 0. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IDictionary FrequencyMap { get; set; } + public required System.Collections.Generic.IDictionary FrequencyMap { get; set; } } public readonly partial struct DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs index d90812e6315..038cba5a994 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs @@ -31,17 +31,11 @@ public DataframeAnalysisFeatureProcessorMultiEncoding(System.Collections.Generic { Processors = processors; } -#if NET7_0_OR_GREATER - public DataframeAnalysisFeatureProcessorMultiEncoding() - { - } -#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 DataframeAnalysisFeatureProcessorMultiEncoding() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisFeatureProcessorMultiEncoding(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal DataframeAnalysisFeatureProcessorMultiEncoding(Elastic.Clients.Elastics /// The ordered array of custom processors to execute. Must be more than 1. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Processors { get; set; } + public required System.Collections.Generic.ICollection Processors { get; set; } } public readonly partial struct DataframeAnalysisFeatureProcessorMultiEncodingDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs index 885c8171342..d62124e24fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs @@ -32,17 +32,11 @@ public DataframeAnalysisFeatureProcessorNGramEncoding(Elastic.Clients.Elasticsea Field = field; NGrams = nGrams; } -#if NET7_0_OR_GREATER - public DataframeAnalysisFeatureProcessorNGramEncoding() - { - } -#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 DataframeAnalysisFeatureProcessorNGramEncoding() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisFeatureProcessorNGramEncoding(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal DataframeAnalysisFeatureProcessorNGramEncoding(Elastic.Clients.Elastics /// The name of the text field to encode. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -81,11 +71,7 @@ internal DataframeAnalysisFeatureProcessorNGramEncoding(Elastic.Clients.Elastics /// Specifies which n-grams to gather. It’s an array of integer values where the minimum value is 1, and a maximum value is 5. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection NGrams { get; set; } + public required System.Collections.Generic.ICollection NGrams { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs index 0c7a12a50e0..af13f9cfcbe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs @@ -32,17 +32,11 @@ public DataframeAnalysisFeatureProcessorOneHotEncoding(Elastic.Clients.Elasticse Field = field; HotMap = hotMap; } -#if NET7_0_OR_GREATER - public DataframeAnalysisFeatureProcessorOneHotEncoding() - { - } -#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 DataframeAnalysisFeatureProcessorOneHotEncoding() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisFeatureProcessorOneHotEncoding(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal DataframeAnalysisFeatureProcessorOneHotEncoding(Elastic.Clients.Elastic /// The name of the field to encode. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// /// The one hot map mapping the field value with the column name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string HotMap { get; set; } + public required string HotMap { get; set; } } public readonly partial struct DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs index 66648ca2549..93ace56312a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs @@ -34,17 +34,11 @@ public DataframeAnalysisFeatureProcessorTargetMeanEncoding(int defaultValue, Ela Field = field; TargetMap = targetMap; } -#if NET7_0_OR_GREATER - public DataframeAnalysisFeatureProcessorTargetMeanEncoding() - { - } -#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 DataframeAnalysisFeatureProcessorTargetMeanEncoding() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisFeatureProcessorTargetMeanEncoding(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,44 +50,28 @@ internal DataframeAnalysisFeatureProcessorTargetMeanEncoding(Elastic.Clients.Ela /// The default value if field value is not found in the target_map. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DefaultValue { get; set; } + public required int DefaultValue { get; set; } /// /// /// The resulting feature name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name FeatureName { get; set; } + public required Elastic.Clients.Elasticsearch.Name FeatureName { get; set; } /// /// /// The name of the field to encode. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// /// The field value to target mean transition map. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IDictionary TargetMap { get; set; } + public required System.Collections.Generic.IDictionary TargetMap { get; set; } } public readonly partial struct DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisOutlierDetection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisOutlierDetection.g.cs index 5fab6cc4a44..ee714b24896 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisOutlierDetection.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisOutlierDetection.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeAnalysisOutlierDetectionConverter))] public sealed partial class DataframeAnalysisOutlierDetection { -#if NET7_0_OR_GREATER public DataframeAnalysisOutlierDetection() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeAnalysisOutlierDetection() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisOutlierDetection(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisRegression.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisRegression.g.cs index 88603eedc53..adc9066fd2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisRegression.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalysisRegression.g.cs @@ -31,17 +31,11 @@ public DataframeAnalysisRegression(string dependentVariable) { DependentVariable = dependentVariable; } -#if NET7_0_OR_GREATER - public DataframeAnalysisRegression() - { - } -#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 DataframeAnalysisRegression() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalysisRegression(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal DataframeAnalysisRegression(Elastic.Clients.Elasticsearch.Serialization /// For regression analysis, the data type of the field must be numeric. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string DependentVariable { get; set; } + public required string DependentVariable { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalytics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalytics.g.cs index 17128e9e0e4..ad44fdf639b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalytics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalytics.g.cs @@ -35,17 +35,11 @@ public DataframeAnalytics(Elastic.Clients.Elasticsearch.MachineLearning.Datafram Progress = progress; State = state; } -#if NET7_0_OR_GREATER - public DataframeAnalytics() - { - } -#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 DataframeAnalytics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalytics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,33 +58,21 @@ internal DataframeAnalytics(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// An object that provides counts for the quantity of documents skipped, used in training, or available for testing. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsStatsDataCounts DataCounts { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsStatsDataCounts DataCounts { get; set; } /// /// /// The unique identifier of the data frame analytics job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// An object describing memory usage of the analytics. It is present only after the job is started and memory usage is reported. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsStatsMemoryUsage MemoryUsage { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsStatsMemoryUsage MemoryUsage { get; set; } /// /// @@ -104,20 +86,12 @@ internal DataframeAnalytics(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The progress report of the data frame analytics job by phase. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Progress { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Progress { get; set; } /// /// /// The status of the data frame analytics job, which can be one of the following values: failed, started, starting, stopping, stopped. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeState State { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeState State { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsAuthorization.g.cs index 5520053564c..997f070e148 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsAuthorization.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsAuthorization.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeAnalyticsAuthorizationConverter))] public sealed partial class DataframeAnalyticsAuthorization { -#if NET7_0_OR_GREATER public DataframeAnalyticsAuthorization() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeAnalyticsAuthorization() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsAuthorization(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsDestination.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsDestination.g.cs index 9c610ee8f6a..743eb77a5a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsDestination.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsDestination.g.cs @@ -31,17 +31,11 @@ public DataframeAnalyticsDestination(Elastic.Clients.Elasticsearch.IndexName ind { Index = index; } -#if NET7_0_OR_GREATER - public DataframeAnalyticsDestination() - { - } -#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 DataframeAnalyticsDestination() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsDestination(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal DataframeAnalyticsDestination(Elastic.Clients.Elasticsearch.Serializati /// Defines the destination index to store the results of the data frame analytics job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsFieldSelection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsFieldSelection.g.cs index c2101403fdb..8fe68156722 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsFieldSelection.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsFieldSelection.g.cs @@ -34,17 +34,11 @@ public DataframeAnalyticsFieldSelection(bool isIncluded, bool isRequired, System MappingTypes = mappingTypes; Name = name; } -#if NET7_0_OR_GREATER - public DataframeAnalyticsFieldSelection() - { - } -#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 DataframeAnalyticsFieldSelection() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsFieldSelection(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,44 +57,28 @@ internal DataframeAnalyticsFieldSelection(Elastic.Clients.Elasticsearch.Serializ /// Whether the field is selected to be included in the analysis. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsIncluded { get; set; } + public required bool IsIncluded { get; set; } /// /// /// Whether the field is required. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsRequired { get; set; } + public required bool IsRequired { get; set; } /// /// /// The mapping types of the field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection MappingTypes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection MappingTypes { get; set; } /// /// /// The field name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsMemoryEstimation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsMemoryEstimation.g.cs index 9ff8787cf84..cf9c017d9b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsMemoryEstimation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsMemoryEstimation.g.cs @@ -32,17 +32,11 @@ public DataframeAnalyticsMemoryEstimation(string expectedMemoryWithDisk, string ExpectedMemoryWithDisk = expectedMemoryWithDisk; ExpectedMemoryWithoutDisk = expectedMemoryWithoutDisk; } -#if NET7_0_OR_GREATER - public DataframeAnalyticsMemoryEstimation() - { - } -#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 DataframeAnalyticsMemoryEstimation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsMemoryEstimation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal DataframeAnalyticsMemoryEstimation(Elastic.Clients.Elasticsearch.Serial /// Estimated memory usage under the assumption that overflowing to disk is allowed during data frame analytics. expected_memory_with_disk is usually smaller than expected_memory_without_disk as using disk allows to limit the main memory needed to perform data frame analytics. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ExpectedMemoryWithDisk { get; set; } + public required string ExpectedMemoryWithDisk { get; set; } /// /// /// Estimated memory usage under the assumption that the whole data frame analytics should happen in memory (i.e. without overflowing to disk). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ExpectedMemoryWithoutDisk { get; set; } + public required string ExpectedMemoryWithoutDisk { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSource.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSource.g.cs index 1b154a482fa..f873e29e5ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSource.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSource.g.cs @@ -31,17 +31,11 @@ public DataframeAnalyticsSource(Elastic.Clients.Elasticsearch.Indices indices) { Indices = indices; } -#if NET7_0_OR_GREATER - public DataframeAnalyticsSource() - { - } -#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 DataframeAnalyticsSource() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsSource(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal DataframeAnalyticsSource(Elastic.Clients.Elasticsearch.Serialization.Js /// Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get; set; } + public required Elastic.Clients.Elasticsearch.Indices Indices { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsDataCounts.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsDataCounts.g.cs index 2cf2de85c0a..674cf2aec0d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsDataCounts.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsDataCounts.g.cs @@ -33,17 +33,11 @@ public DataframeAnalyticsStatsDataCounts(int skippedDocsCount, int testDocsCount TestDocsCount = testDocsCount; TrainingDocsCount = trainingDocsCount; } -#if NET7_0_OR_GREATER - public DataframeAnalyticsStatsDataCounts() - { - } -#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 DataframeAnalyticsStatsDataCounts() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsStatsDataCounts(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal DataframeAnalyticsStatsDataCounts(Elastic.Clients.Elasticsearch.Seriali /// The number of documents that are skipped during the analysis because they contained values that are not supported by the analysis. For example, outlier detection does not support missing fields so it skips documents with missing fields. Likewise, all types of analysis skip documents that contain arrays with more than one element. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int SkippedDocsCount { get; set; } + public required int SkippedDocsCount { get; set; } /// /// /// The number of documents that are not used for training the model and can be used for testing. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int TestDocsCount { get; set; } + public required int TestDocsCount { get; set; } /// /// /// The number of documents that are used for training the model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int TrainingDocsCount { get; set; } + public required int TrainingDocsCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsMemoryUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsMemoryUsage.g.cs index 9104c717c07..0ceec64b699 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsMemoryUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsMemoryUsage.g.cs @@ -32,17 +32,11 @@ public DataframeAnalyticsStatsMemoryUsage(long peakUsageBytes, string status) PeakUsageBytes = peakUsageBytes; Status = status; } -#if NET7_0_OR_GREATER - public DataframeAnalyticsStatsMemoryUsage() - { - } -#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 DataframeAnalyticsStatsMemoryUsage() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsStatsMemoryUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,22 +55,14 @@ internal DataframeAnalyticsStatsMemoryUsage(Elastic.Clients.Elasticsearch.Serial /// The number of bytes used at the highest peak of memory usage. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long PeakUsageBytes { get; set; } + public required long PeakUsageBytes { get; set; } /// /// /// The memory usage status. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Status { get; set; } + public required string Status { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsProgress.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsProgress.g.cs index 98b8e74743c..a4df91d8e36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsProgress.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsStatsProgress.g.cs @@ -32,17 +32,11 @@ public DataframeAnalyticsStatsProgress(string phase, int progressPercent) Phase = phase; ProgressPercent = progressPercent; } -#if NET7_0_OR_GREATER - public DataframeAnalyticsStatsProgress() - { - } -#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 DataframeAnalyticsStatsProgress() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsStatsProgress(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal DataframeAnalyticsStatsProgress(Elastic.Clients.Elasticsearch.Serializa /// Defines the phase of the data frame analytics job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Phase { get; set; } + public required string Phase { get; set; } /// /// /// The progress that the data frame analytics job has made expressed in percentage. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ProgressPercent { get; set; } + public required int ProgressPercent { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs index a84ac98ae2d..97177a42790 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs @@ -34,17 +34,11 @@ public DataframeAnalyticsSummary(Elastic.Clients.Elasticsearch.MachineLearning.D Id = id; Source = source; } -#if NET7_0_OR_GREATER - public DataframeAnalyticsSummary() - { - } -#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 DataframeAnalyticsSummary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeAnalyticsSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,11 +46,7 @@ internal DataframeAnalyticsSummary(Elastic.Clients.Elasticsearch.Serialization.J } public bool? AllowLazyStart { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } /// @@ -67,23 +57,11 @@ internal DataframeAnalyticsSummary(Elastic.Clients.Elasticsearch.Serialization.J public Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsAuthorization? Authorization { get; set; } public System.DateTimeOffset? CreateTime { get; set; } public string? Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } + public required string Id { get; set; } public int? MaxNumThreads { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } public string? ModelMemoryLimit { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } public string? Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummary.g.cs index 99ac78e123b..f75844b2ec0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummary.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeClassificationSummaryConverter))] public sealed partial class DataframeClassificationSummary { -#if NET7_0_OR_GREATER public DataframeClassificationSummary() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeClassificationSummary() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeClassificationSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryAccuracy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryAccuracy.g.cs index 3d6eea04516..77689a374c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryAccuracy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryAccuracy.g.cs @@ -32,31 +32,17 @@ public DataframeClassificationSummaryAccuracy(System.Collections.Generic.IReadOn Classes = classes; OverallAccuracy = overallAccuracy; } -#if NET7_0_OR_GREATER - public DataframeClassificationSummaryAccuracy() - { - } -#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 DataframeClassificationSummaryAccuracy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeClassificationSummaryAccuracy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Classes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double OverallAccuracy { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Classes { get; set; } + public required double OverallAccuracy { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs index 3dfd97815d0..91d75f94841 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs @@ -32,31 +32,17 @@ public DataframeClassificationSummaryMulticlassConfusionMatrix(System.Collection ConfusionMatrix = confusionMatrix; OtherActualClassCount = otherActualClassCount; } -#if NET7_0_OR_GREATER - public DataframeClassificationSummaryMulticlassConfusionMatrix() - { - } -#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 DataframeClassificationSummaryMulticlassConfusionMatrix() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeClassificationSummaryMulticlassConfusionMatrix(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ConfusionMatrix { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int OtherActualClassCount { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ConfusionMatrix { get; set; } + public required int OtherActualClassCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryPrecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryPrecision.g.cs index 8a11fb2530a..d0867bac18e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryPrecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryPrecision.g.cs @@ -32,31 +32,17 @@ public DataframeClassificationSummaryPrecision(double avgPrecision, System.Colle AvgPrecision = avgPrecision; Classes = classes; } -#if NET7_0_OR_GREATER - public DataframeClassificationSummaryPrecision() - { - } -#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 DataframeClassificationSummaryPrecision() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeClassificationSummaryPrecision(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double AvgPrecision { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Classes { get; set; } + public required double AvgPrecision { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Classes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryRecall.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryRecall.g.cs index 80060c338ca..b924edeacce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryRecall.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeClassificationSummaryRecall.g.cs @@ -32,31 +32,17 @@ public DataframeClassificationSummaryRecall(double avgRecall, System.Collections AvgRecall = avgRecall; Classes = classes; } -#if NET7_0_OR_GREATER - public DataframeClassificationSummaryRecall() - { - } -#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 DataframeClassificationSummaryRecall() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeClassificationSummaryRecall(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double AvgRecall { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Classes { get; set; } + public required double AvgRecall { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Classes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluation.g.cs index 79610a4fca3..4b50f48d256 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluation.g.cs @@ -28,16 +28,11 @@ public sealed partial class DataframeEvaluation { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public DataframeEvaluation() - { - } -#endif -#if !NET7_0_OR_GREATER + public DataframeEvaluation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClass.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClass.g.cs index 0616a3088d4..6edd1b0d5ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClass.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClass.g.cs @@ -32,31 +32,17 @@ public DataframeEvaluationClass(string className, double value) ClassName = className; Value = value; } -#if NET7_0_OR_GREATER - public DataframeEvaluationClass() - { - } -#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 DataframeEvaluationClass() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationClass(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string ClassName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Value { get; set; } + public required string ClassName { get; set; } + public required double Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassification.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassification.g.cs index f176d0bd0ff..730dbacea2f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassification.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassification.g.cs @@ -31,17 +31,11 @@ public DataframeEvaluationClassification(Elastic.Clients.Elasticsearch.Field act { ActualField = actualField; } -#if NET7_0_OR_GREATER - public DataframeEvaluationClassification() - { - } -#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 DataframeEvaluationClassification() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationClassification(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal DataframeEvaluationClassification(Elastic.Clients.Elasticsearch.Seriali /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field ActualField { get; set; } + public required Elastic.Clients.Elasticsearch.Field ActualField { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetrics.g.cs index 7da3af6a67c..70256a0a761 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetrics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetrics.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeEvaluationClassificationMetricsConverter))] public sealed partial class DataframeEvaluationClassificationMetrics { -#if NET7_0_OR_GREATER public DataframeEvaluationClassificationMetrics() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeEvaluationClassificationMetrics() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationClassificationMetrics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetricsAucRoc.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetricsAucRoc.g.cs index a73cbf1e0fb..4672846247a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetricsAucRoc.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetricsAucRoc.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeEvaluationClassificationMetricsAucRocConverter))] public sealed partial class DataframeEvaluationClassificationMetricsAucRoc { -#if NET7_0_OR_GREATER public DataframeEvaluationClassificationMetricsAucRoc() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeEvaluationClassificationMetricsAucRoc() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationClassificationMetricsAucRoc(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetection.g.cs index b6a445b2bbd..58b27d02563 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetection.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetection.g.cs @@ -32,17 +32,11 @@ public DataframeEvaluationOutlierDetection(Elastic.Clients.Elasticsearch.Field a ActualField = actualField; PredictedProbabilityField = predictedProbabilityField; } -#if NET7_0_OR_GREATER - public DataframeEvaluationOutlierDetection() - { - } -#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 DataframeEvaluationOutlierDetection() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationOutlierDetection(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal DataframeEvaluationOutlierDetection(Elastic.Clients.Elasticsearch.Seria /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field ActualField { get; set; } + public required Elastic.Clients.Elasticsearch.Field ActualField { get; set; } /// /// @@ -72,11 +62,7 @@ internal DataframeEvaluationOutlierDetection(Elastic.Clients.Elasticsearch.Seria /// The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field PredictedProbabilityField { get; set; } + public required Elastic.Clients.Elasticsearch.Field PredictedProbabilityField { get; set; } } public readonly partial struct DataframeEvaluationOutlierDetectionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetectionMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetectionMetrics.g.cs index 29a99324ff0..ea127c7d715 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetectionMetrics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetectionMetrics.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeEvaluationOutlierDetectionMetricsConverter))] public sealed partial class DataframeEvaluationOutlierDetectionMetrics { -#if NET7_0_OR_GREATER public DataframeEvaluationOutlierDetectionMetrics() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeEvaluationOutlierDetectionMetrics() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationOutlierDetectionMetrics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegression.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegression.g.cs index 69178f970c1..4116598c98d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegression.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegression.g.cs @@ -32,17 +32,11 @@ public DataframeEvaluationRegression(Elastic.Clients.Elasticsearch.Field actualF ActualField = actualField; PredictedField = predictedField; } -#if NET7_0_OR_GREATER - public DataframeEvaluationRegression() - { - } -#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 DataframeEvaluationRegression() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationRegression(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal DataframeEvaluationRegression(Elastic.Clients.Elasticsearch.Serializati /// The field of the index which contains the ground truth. The data type of this field must be numerical. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field ActualField { get; set; } + public required Elastic.Clients.Elasticsearch.Field ActualField { get; set; } /// /// @@ -72,11 +62,7 @@ internal DataframeEvaluationRegression(Elastic.Clients.Elasticsearch.Serializati /// The field in the index that contains the predicted value, in other words the results of the regression analysis. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field PredictedField { get; set; } + public required Elastic.Clients.Elasticsearch.Field PredictedField { get; set; } } public readonly partial struct DataframeEvaluationRegressionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetrics.g.cs index 1a5425e09c8..7f713ba326e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetrics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetrics.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeEvaluationRegressionMetricsConverter))] public sealed partial class DataframeEvaluationRegressionMetrics { -#if NET7_0_OR_GREATER public DataframeEvaluationRegressionMetrics() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeEvaluationRegressionMetrics() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationRegressionMetrics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsHuber.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsHuber.g.cs index f4d35a837b7..9b3bd571fce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsHuber.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsHuber.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeEvaluationRegressionMetricsHuberConverter))] public sealed partial class DataframeEvaluationRegressionMetricsHuber { -#if NET7_0_OR_GREATER public DataframeEvaluationRegressionMetricsHuber() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeEvaluationRegressionMetricsHuber() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationRegressionMetricsHuber(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsMsle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsMsle.g.cs index 05f56cd79a6..a63d5ac6f9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsMsle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsMsle.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeEvaluationRegressionMetricsMsleConverter))] public sealed partial class DataframeEvaluationRegressionMetricsMsle { -#if NET7_0_OR_GREATER public DataframeEvaluationRegressionMetricsMsle() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeEvaluationRegressionMetricsMsle() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationRegressionMetricsMsle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRoc.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRoc.g.cs index 072b484cec6..6ee2fc06a2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRoc.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRoc.g.cs @@ -31,17 +31,11 @@ public DataframeEvaluationSummaryAucRoc(double value) { Value = value; } -#if NET7_0_OR_GREATER - public DataframeEvaluationSummaryAucRoc() - { - } -#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 DataframeEvaluationSummaryAucRoc() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationSummaryAucRoc(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal DataframeEvaluationSummaryAucRoc(Elastic.Clients.Elasticsearch.Serializ } public System.Collections.Generic.IReadOnlyCollection? Curve { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Value { get; set; } + public required double Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRocCurveItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRocCurveItem.g.cs index 3ff95bc1ecd..955e714fce0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRocCurveItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRocCurveItem.g.cs @@ -33,36 +33,18 @@ public DataframeEvaluationSummaryAucRocCurveItem(double fpr, double threshold, d Threshold = threshold; Tpr = tpr; } -#if NET7_0_OR_GREATER - public DataframeEvaluationSummaryAucRocCurveItem() - { - } -#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 DataframeEvaluationSummaryAucRocCurveItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationSummaryAucRocCurveItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double Fpr { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Threshold { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Tpr { get; set; } + public required double Fpr { get; set; } + public required double Threshold { get; set; } + public required double Tpr { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationValue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationValue.g.cs index f5653477d33..3343efd1dc6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationValue.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeEvaluationValue.g.cs @@ -31,26 +31,16 @@ public DataframeEvaluationValue(double value) { Value = value; } -#if NET7_0_OR_GREATER - public DataframeEvaluationValue() - { - } -#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 DataframeEvaluationValue() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeEvaluationValue(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double Value { get; set; } + public required double Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeOutlierDetectionSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeOutlierDetectionSummary.g.cs index 8f505230f46..929676c0269 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeOutlierDetectionSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeOutlierDetectionSummary.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeOutlierDetectionSummaryConverter))] public sealed partial class DataframeOutlierDetectionSummary { -#if NET7_0_OR_GREATER public DataframeOutlierDetectionSummary() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeOutlierDetectionSummary() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeOutlierDetectionSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframePreviewConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframePreviewConfig.g.cs index 6d63a33d23f..5a15d76210a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframePreviewConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframePreviewConfig.g.cs @@ -32,36 +32,22 @@ public DataframePreviewConfig(Elastic.Clients.Elasticsearch.MachineLearning.Data Analysis = analysis; Source = source; } -#if NET7_0_OR_GREATER - public DataframePreviewConfig() - { - } -#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 DataframePreviewConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframePreviewConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysis Analysis { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } public int? MaxNumThreads { get; set; } public string? ModelMemoryLimit { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource Source { get; set; } } public readonly partial struct DataframePreviewConfigDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeRegressionSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeRegressionSummary.g.cs index 24be739b5cc..b7700295868 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeRegressionSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeRegressionSummary.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DataframeRegressionSummaryConverter))] public sealed partial class DataframeRegressionSummary { -#if NET7_0_OR_GREATER public DataframeRegressionSummary() { } -#endif -#if !NET7_0_OR_GREATER - public DataframeRegressionSummary() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataframeRegressionSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Defaults.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Defaults.g.cs index b2f5bf57cd5..ec378ce6ff2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Defaults.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Defaults.g.cs @@ -32,31 +32,17 @@ public Defaults(Elastic.Clients.Elasticsearch.MachineLearning.AnomalyDetectors a AnomalyDetectors = anomalyDetectors; Datafeeds = datafeeds; } -#if NET7_0_OR_GREATER - public Defaults() - { - } -#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 Defaults() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Defaults(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.AnomalyDetectors AnomalyDetectors { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.Datafeeds Datafeeds { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.AnomalyDetectors AnomalyDetectors { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.Datafeeds Datafeeds { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Definition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Definition.g.cs index 538ebeaf282..c003f0c1dfb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Definition.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Definition.g.cs @@ -31,17 +31,11 @@ public Definition(Elastic.Clients.Elasticsearch.MachineLearning.TrainedModel tra { TrainedModel = trainedModel; } -#if NET7_0_OR_GREATER - public Definition() - { - } -#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 Definition() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Definition(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal Definition(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The definition of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainedModel TrainedModel { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModel TrainedModel { get; set; } } public readonly partial struct DefinitionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DelayedDataCheckConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DelayedDataCheckConfig.g.cs index 4b1de945c0c..4890785f6be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DelayedDataCheckConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DelayedDataCheckConfig.g.cs @@ -31,17 +31,11 @@ public DelayedDataCheckConfig(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public DelayedDataCheckConfig() - { - } -#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 DelayedDataCheckConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serialization.Json /// Specifies whether the datafeed periodically checks for delayed data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } } public readonly partial struct DelayedDataCheckConfigDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectionRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectionRule.g.cs index da24e9429f3..e75d044993a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectionRule.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectionRule.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DetectionRuleConverter))] public sealed partial class DetectionRule { -#if NET7_0_OR_GREATER public DetectionRule() { } -#endif -#if !NET7_0_OR_GREATER - public DetectionRule() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DetectionRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Detector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Detector.g.cs index c8845521f79..4c0b054db4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Detector.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Detector.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.DetectorConverter))] public sealed partial class Detector { -#if NET7_0_OR_GREATER public Detector() { } -#endif -#if !NET7_0_OR_GREATER - public Detector() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Detector(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorRead.g.cs index 7d4b3848f3b..913bc4acab7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorRead.g.cs @@ -31,17 +31,11 @@ public DetectorRead(string function) { Function = function; } -#if NET7_0_OR_GREATER - public DetectorRead() - { - } -#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 DetectorRead() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DetectorRead(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -105,11 +99,7 @@ internal DetectorRead(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// For example, count, rare, mean, min, max, and sum. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Function { get; set; } + public required string Function { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorUpdate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorUpdate.g.cs index 0d46acf6a25..337111c601e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorUpdate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorUpdate.g.cs @@ -31,17 +31,11 @@ public DetectorUpdate(int detectorIndex) { DetectorIndex = detectorIndex; } -#if NET7_0_OR_GREATER - public DetectorUpdate() - { - } -#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 DetectorUpdate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DetectorUpdate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -70,11 +64,7 @@ internal DetectorUpdate(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DetectorIndex { get; set; } + public required int DetectorIndex { get; set; } } public readonly partial struct DetectorUpdateDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeCompact.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeCompact.g.cs index dbd0e60439d..983092192c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeCompact.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeCompact.g.cs @@ -40,46 +40,20 @@ public DiscoveryNodeCompact(System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string EphemeralId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required string EphemeralId { get; set; } + public required string Id { get; set; } + public required string Name { get; set; } + public required string TransportAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeContent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeContent.g.cs index 20c8101218a..e199007c117 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeContent.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeContent.g.cs @@ -38,62 +38,24 @@ public DiscoveryNodeContent(System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string EphemeralId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ExternalId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MaxIndexVersion { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MinIndexVersion { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required string EphemeralId { get; set; } + public required string ExternalId { get; set; } + public required int MaxIndexVersion { get; set; } + public required int MinIndexVersion { get; set; } public string? Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required string TransportAddress { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Ensemble.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Ensemble.g.cs index 9f142059b00..ecda28bab2f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Ensemble.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Ensemble.g.cs @@ -31,17 +31,11 @@ public Ensemble(System.Collections.Generic.ICollection? ClassificationLabels { get; set; } public System.Collections.Generic.ICollection? FeatureNames { get; set; } public string? TargetType { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection TrainedModels { get; set; } + public required System.Collections.Generic.ICollection TrainedModels { get; set; } } public readonly partial struct EnsembleDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs index b1d0228ece6..8fbcd78c07b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs @@ -31,28 +31,18 @@ public ExponentialAverageCalculationContext(System.TimeSpan incrementalMetricVal { IncrementalMetricValueMs = incrementalMetricValueMs; } -#if NET7_0_OR_GREATER - public ExponentialAverageCalculationContext() - { - } -#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 ExponentialAverageCalculationContext() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExponentialAverageCalculationContext(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan IncrementalMetricValueMs { get; set; } + public required System.TimeSpan IncrementalMetricValueMs { get; set; } public System.DateTimeOffset? LatestTimestamp { get; set; } public System.TimeSpan? PreviousExponentialAverageMs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs index 74b5a884afc..15a10804063 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.FillMaskInferenceOptionsConverter))] public sealed partial class FillMaskInferenceOptions { -#if NET7_0_OR_GREATER public FillMaskInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public FillMaskInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FillMaskInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceUpdateOptions.g.cs index 487e691d7e7..650eb85d072 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceUpdateOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.FillMaskInferenceUpdateOptionsConverter))] public sealed partial class FillMaskInferenceUpdateOptions { -#if NET7_0_OR_GREATER public FillMaskInferenceUpdateOptions() { } -#endif -#if !NET7_0_OR_GREATER - public FillMaskInferenceUpdateOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FillMaskInferenceUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Filter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Filter.g.cs index 8c92633fe11..5719284258b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Filter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Filter.g.cs @@ -32,17 +32,11 @@ public Filter(string filterId, System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - string FilterId { get; set; } + public required string FilterId { get; set; } /// /// /// An array of strings which is the filter item list. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Items { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Items { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FilterRef.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FilterRef.g.cs index 804f43c4c09..153eb211168 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FilterRef.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FilterRef.g.cs @@ -31,17 +31,11 @@ public FilterRef(Elastic.Clients.Elasticsearch.Id filterId) { FilterId = filterId; } -#if NET7_0_OR_GREATER - public FilterRef() - { - } -#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 FilterRef() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FilterRef(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal FilterRef(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// The identifier for the filter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id FilterId { get; set; } + public required Elastic.Clients.Elasticsearch.Id FilterId { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FrequencyEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FrequencyEncodingPreprocessor.g.cs index 57ad205c3df..d4938473043 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FrequencyEncodingPreprocessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FrequencyEncodingPreprocessor.g.cs @@ -33,38 +33,20 @@ public FrequencyEncodingPreprocessor(string featureName, string field, System.Co Field = field; FrequencyMap = frequencyMap; } -#if NET7_0_OR_GREATER - public FrequencyEncodingPreprocessor() - { - } -#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 FrequencyEncodingPreprocessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FrequencyEncodingPreprocessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string FeatureName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IDictionary FrequencyMap { get; set; } + public required string FeatureName { get; set; } + public required string Field { get; set; } + public required System.Collections.Generic.IDictionary FrequencyMap { get; set; } } public readonly partial struct FrequencyEncodingPreprocessorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/GeoResults.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/GeoResults.g.cs index b939c214adf..07b063a519b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/GeoResults.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/GeoResults.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.GeoResultsConverter))] public sealed partial class GeoResults { -#if NET7_0_OR_GREATER public GeoResults() { } -#endif -#if !NET7_0_OR_GREATER - public GeoResults() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoResults(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Hyperparameter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Hyperparameter.g.cs index c2c5d95d815..0fe1a7d57c3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Hyperparameter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Hyperparameter.g.cs @@ -33,17 +33,11 @@ public Hyperparameter(string name, bool supplied, double value) Supplied = supplied; Value = value; } -#if NET7_0_OR_GREATER - public Hyperparameter() - { - } -#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 Hyperparameter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Hyperparameter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal Hyperparameter(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Name of the hyperparameter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// @@ -80,20 +70,12 @@ internal Hyperparameter(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Indicates if the hyperparameter is specified by the user (true) or optimized (false). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Supplied { get; set; } + public required bool Supplied { get; set; } /// /// /// The value of the hyperparameter, either optimized or specified by the user. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Value { get; set; } + public required double Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs index 7d3a24df3fb..54a3bd9fca1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs @@ -28,16 +28,11 @@ public sealed partial class InferenceConfigCreate { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public InferenceConfigCreate() - { - } -#endif -#if !NET7_0_OR_GREATER + public InferenceConfigCreate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceConfigCreate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigUpdate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigUpdate.g.cs index fa816b61c56..cd9e63b75e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigUpdate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigUpdate.g.cs @@ -28,16 +28,11 @@ public sealed partial class InferenceConfigUpdate { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public InferenceConfigUpdate() - { - } -#endif -#if !NET7_0_OR_GREATER + public InferenceConfigUpdate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceConfigUpdate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs index 920558c662e..d38eb96e47d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.InferenceResponseResultConverter))] public sealed partial class InferenceResponseResult { -#if NET7_0_OR_GREATER public InferenceResponseResult() { } -#endif -#if !NET7_0_OR_GREATER - public InferenceResponseResult() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InferenceResponseResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Influence.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Influence.g.cs index 52f1caf2e95..6cea95080ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Influence.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Influence.g.cs @@ -32,31 +32,17 @@ public Influence(string influencerFieldName, System.Collections.Generic.IReadOnl InfluencerFieldName = influencerFieldName; InfluencerFieldValues = influencerFieldValues; } -#if NET7_0_OR_GREATER - public Influence() - { - } -#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 Influence() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Influence(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string InfluencerFieldName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection InfluencerFieldValues { get; set; } + public required string InfluencerFieldName { get; set; } + public required System.Collections.Generic.IReadOnlyCollection InfluencerFieldValues { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Influencer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Influencer.g.cs index 76e61101f37..4f1f320a016 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Influencer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Influencer.g.cs @@ -40,17 +40,11 @@ public Influencer(System.TimeSpan bucketSpan, string influencerFieldName, string ResultType = resultType; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public Influencer() - { - } -#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 Influencer() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Influencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal Influencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The length of the bucket in seconds. This value matches the bucket span that is specified in the job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan BucketSpan { get; set; } + public required System.TimeSpan BucketSpan { get; set; } /// /// @@ -82,22 +72,14 @@ internal Influencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// The field name of the influencer. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InfluencerFieldName { get; set; } + public required string InfluencerFieldName { get; set; } /// /// /// The entity that influenced, contributed to, or was to blame for the anomaly. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InfluencerFieldValue { get; set; } + public required string InfluencerFieldValue { get; set; } /// /// @@ -106,11 +88,7 @@ internal Influencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// data is analyzed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double InfluencerScore { get; set; } + public required double InfluencerScore { get; set; } /// /// @@ -118,33 +96,21 @@ internal Influencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// This is the initial value that was calculated at the time the bucket was processed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double InitialInfluencerScore { get; set; } + public required double InitialInfluencerScore { get; set; } /// /// /// If true, this is an interim result. In other words, the results are calculated based on partial input data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsInterim { get; set; } + public required bool IsInterim { get; set; } /// /// /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// @@ -153,31 +119,19 @@ internal Influencer(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// interpretation of this value. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Probability { get; set; } + public required double Probability { get; set; } /// /// /// Internal. This value is always set to influencer. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ResultType { get; set; } + public required string ResultType { get; set; } /// /// /// The start time of the bucket for which these results were calculated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Timestamp { get; set; } + public required System.DateTimeOffset Timestamp { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Input.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Input.g.cs index ee047463577..6349a04c9de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Input.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Input.g.cs @@ -31,28 +31,18 @@ public Input(Elastic.Clients.Elasticsearch.Names fieldNames) { FieldNames = fieldNames; } -#if NET7_0_OR_GREATER - public Input() - { - } -#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 Input() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Input(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names FieldNames { get; set; } + public required Elastic.Clients.Elasticsearch.Names FieldNames { get; set; } } public readonly partial struct InputDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Job.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Job.g.cs index 7747a22e826..f88d98cdb5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Job.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Job.g.cs @@ -36,17 +36,11 @@ public Job(bool allowLazyOpen, Elastic.Clients.Elasticsearch.MachineLearning.Ana ModelSnapshotRetentionDays = modelSnapshotRetentionDays; ResultsIndexName = resultsIndexName; } -#if NET7_0_OR_GREATER - public Job() - { - } -#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 Job() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Job(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,11 +53,7 @@ internal Job(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel /// Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool AllowLazyOpen { get; set; } + public required bool AllowLazyOpen { get; set; } /// /// @@ -71,11 +61,7 @@ internal Job(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel /// After you create a job, you cannot change the analysis configuration; all the properties are informational. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfig AnalysisConfig { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfig AnalysisConfig { get; set; } /// /// @@ -124,11 +110,7 @@ internal Job(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel /// Only the results for anomaly detection are retained. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataDescription DataDescription { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataDescription DataDescription { get; set; } /// /// @@ -176,11 +158,7 @@ internal Job(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel /// It must start and end with alphanumeric characters. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// @@ -214,11 +192,7 @@ internal Job(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel /// By default, snapshots ten days older than the newest snapshot are deleted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long ModelSnapshotRetentionDays { get; set; } + public required long ModelSnapshotRetentionDays { get; set; } /// /// @@ -235,11 +209,7 @@ internal Job(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel /// The default value is shared, which generates an index named .ml-anomalies-shared. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ResultsIndexName { get; set; } + public required string ResultsIndexName { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobBlocked.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobBlocked.g.cs index 183f363f87b..f6cee6cc848 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobBlocked.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobBlocked.g.cs @@ -31,27 +31,17 @@ public JobBlocked(Elastic.Clients.Elasticsearch.MachineLearning.JobBlockedReason { Reason = reason; } -#if NET7_0_OR_GREATER - public JobBlocked() - { - } -#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 JobBlocked() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JobBlocked(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobBlockedReason Reason { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobBlockedReason Reason { get; set; } public Elastic.Clients.Elasticsearch.TaskId? TaskId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobForecastStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobForecastStatistics.g.cs index 460e39fffa5..652b70d4a58 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobForecastStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobForecastStatistics.g.cs @@ -32,35 +32,21 @@ public JobForecastStatistics(int forecastedJobs, long total) ForecastedJobs = forecastedJobs; Total = total; } -#if NET7_0_OR_GREATER - public JobForecastStatistics() - { - } -#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 JobForecastStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JobForecastStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int ForecastedJobs { get; set; } + public required int ForecastedJobs { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics? MemoryBytes { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics? ProcessingTimeMs { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics? Records { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStatistics.g.cs index b58432c3986..f39478752ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStatistics.g.cs @@ -34,41 +34,19 @@ public JobStatistics(double avg, double max, double min, double total) Min = min; Total = total; } -#if NET7_0_OR_GREATER - public JobStatistics() - { - } -#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 JobStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JobStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double Avg { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Max { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Min { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Total { get; set; } + public required double Avg { get; set; } + public required double Max { get; set; } + public required double Min { get; set; } + public required double Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStats.g.cs index 8f54b112c86..bdcc4b76ea8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStats.g.cs @@ -36,17 +36,11 @@ public JobStats(Elastic.Clients.Elasticsearch.MachineLearning.DataCounts dataCou State = state; TimingStats = timingStats; } -#if NET7_0_OR_GREATER - public JobStats() - { - } -#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 JobStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JobStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +61,7 @@ internal JobStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// If a model snapshot is reverted or old results are deleted, the job counts are not reset. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DataCounts DataCounts { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DataCounts DataCounts { get; set; } /// /// @@ -86,33 +76,21 @@ internal JobStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// Some statistics are omitted if no forecasts have been made. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobForecastStatistics ForecastsStats { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobForecastStatistics ForecastsStats { get; set; } /// /// /// Identifier for the anomaly detection job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// /// An object that provides information about the size and contents of the model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.ModelSizeStats ModelSizeStats { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.ModelSizeStats ModelSizeStats { get; set; } /// /// @@ -134,20 +112,12 @@ internal JobStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// The status of the anomaly detection job, which can be one of the following values: closed, closing, failed, opened, opening. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobState State { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobState State { get; set; } /// /// /// An object that provides statistical information about timing aspect of this job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobTimingStats TimingStats { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobTimingStats TimingStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobTimingStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobTimingStats.g.cs index 4b6d7d72120..ba4df0d8ca7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobTimingStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobTimingStats.g.cs @@ -34,17 +34,11 @@ public JobTimingStats(long bucketCount, System.TimeSpan exponentialAverageBucket JobId = jobId; TotalBucketProcessingTimeMs = totalBucketProcessingTimeMs; } -#if NET7_0_OR_GREATER - public JobTimingStats() - { - } -#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 JobTimingStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JobTimingStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,27 +46,11 @@ internal JobTimingStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc } public System.TimeSpan? AverageBucketProcessingTimeMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BucketCount { get; set; } + public required long BucketCount { get; set; } public System.TimeSpan? ExponentialAverageBucketProcessingTimeMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ExponentialAverageBucketProcessingTimePerHourMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required System.TimeSpan ExponentialAverageBucketProcessingTimePerHourMs { get; set; } + public required string JobId { get; set; } public System.TimeSpan? MaximumBucketProcessingTimeMs { get; set; } public System.TimeSpan? MinimumBucketProcessingTimeMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalBucketProcessingTimeMs { get; set; } + public required System.TimeSpan TotalBucketProcessingTimeMs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JvmStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JvmStats.g.cs index 370984c8719..53845aa1b4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JvmStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JvmStats.g.cs @@ -33,17 +33,11 @@ public JvmStats(int heapMaxInBytes, int javaInferenceInBytes, int javaInferenceM JavaInferenceInBytes = javaInferenceInBytes; JavaInferenceMaxInBytes = javaInferenceMaxInBytes; } -#if NET7_0_OR_GREATER - public JvmStats() - { - } -#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 JvmStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JvmStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal JvmStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// Maximum amount of memory, in bytes, available for use by the heap. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int HeapMaxInBytes { get; set; } + public required int HeapMaxInBytes { get; set; } /// /// @@ -80,11 +70,7 @@ internal JvmStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// Amount of Java heap, in bytes, currently being used for caching inference models. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int JavaInferenceInBytes { get; set; } + public required int JavaInferenceInBytes { get; set; } /// /// @@ -98,9 +84,5 @@ internal JvmStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// Maximum amount of Java heap, in bytes, to be used for caching inference models. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int JavaInferenceMaxInBytes { get; set; } + public required int JavaInferenceMaxInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/LearningToRankConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/LearningToRankConfig.g.cs index aee2b3acbef..a41d115b619 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/LearningToRankConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/LearningToRankConfig.g.cs @@ -31,17 +31,11 @@ public LearningToRankConfig(int numTopFeatureImportanceValues) { NumTopFeatureImportanceValues = numTopFeatureImportanceValues; } -#if NET7_0_OR_GREATER - public LearningToRankConfig() - { - } -#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 LearningToRankConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LearningToRankConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,11 +44,7 @@ internal LearningToRankConfig(Elastic.Clients.Elasticsearch.Serialization.JsonCo public System.Collections.Generic.IDictionary? DefaultParams { get; set; } public System.Collections.Generic.ICollection>? FeatureExtractors { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int NumTopFeatureImportanceValues { get; set; } + public required int NumTopFeatureImportanceValues { get; set; } } public readonly partial struct LearningToRankConfigDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Limits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Limits.g.cs index 3f0abc70c2c..630a6f4902e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Limits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Limits.g.cs @@ -31,17 +31,11 @@ public Limits(Elastic.Clients.Elasticsearch.ByteSize totalMlMemory) { TotalMlMemory = totalMlMemory; } -#if NET7_0_OR_GREATER - public Limits() - { - } -#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 Limits() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Limits(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,10 +45,6 @@ internal Limits(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti public Elastic.Clients.Elasticsearch.ByteSize? EffectiveMaxModelMemoryLimit { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? MaxModelMemoryLimit { get; set; } public int? MaxSingleMlNodeProcessors { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize TotalMlMemory { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize TotalMlMemory { get; set; } public int? TotalMlProcessors { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/MemMlStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/MemMlStats.g.cs index 983215a613a..c50f0b0e0a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/MemMlStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/MemMlStats.g.cs @@ -35,17 +35,11 @@ public MemMlStats(int anomalyDetectorsInBytes, int dataFrameAnalyticsInBytes, in NativeCodeOverheadInBytes = nativeCodeOverheadInBytes; NativeInferenceInBytes = nativeInferenceInBytes; } -#if NET7_0_OR_GREATER - public MemMlStats() - { - } -#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 MemMlStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MemMlStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,11 +58,7 @@ internal MemMlStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Amount of native memory, in bytes, set aside for anomaly detection jobs. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int AnomalyDetectorsInBytes { get; set; } + public required int AnomalyDetectorsInBytes { get; set; } /// /// @@ -82,11 +72,7 @@ internal MemMlStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Amount of native memory, in bytes, set aside for data frame analytics jobs. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int DataFrameAnalyticsInBytes { get; set; } + public required int DataFrameAnalyticsInBytes { get; set; } /// /// @@ -100,11 +86,7 @@ internal MemMlStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Maximum amount of native memory (separate to the JVM heap), in bytes, that may be used by machine learning native processes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MaxInBytes { get; set; } + public required int MaxInBytes { get; set; } /// /// @@ -118,11 +100,7 @@ internal MemMlStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Amount of native memory, in bytes, set aside for loading machine learning native code shared libraries. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NativeCodeOverheadInBytes { get; set; } + public required int NativeCodeOverheadInBytes { get; set; } /// /// @@ -136,9 +114,5 @@ internal MemMlStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Amount of native memory, in bytes, set aside for trained models that have a PyTorch model_type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NativeInferenceInBytes { get; set; } + public required int NativeInferenceInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/MemStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/MemStats.g.cs index 5490df07a4d..9d4a2ae74d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/MemStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/MemStats.g.cs @@ -33,17 +33,11 @@ public MemStats(int adjustedTotalInBytes, Elastic.Clients.Elasticsearch.MachineL Ml = ml; TotalInBytes = totalInBytes; } -#if NET7_0_OR_GREATER - public MemStats() - { - } -#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 MemStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MemStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,22 +58,14 @@ internal MemStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// then this reports the overridden value in bytes. Otherwise it reports the same value as total_in_bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int AdjustedTotalInBytes { get; set; } + public required int AdjustedTotalInBytes { get; set; } /// /// /// Contains statistics about machine learning use of native memory on the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.MemMlStats Ml { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.MemMlStats Ml { get; set; } /// /// @@ -93,9 +79,5 @@ internal MemStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// Total amount of physical memory in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int TotalInBytes { get; set; } + public required int TotalInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Memory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Memory.g.cs index 114f1078f61..d09b2d4b889 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Memory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Memory.g.cs @@ -37,86 +37,52 @@ public Memory(System.Collections.Generic.IReadOnlyDictionary att Roles = roles; TransportAddress = transportAddress; } -#if NET7_0_OR_GREATER - public Memory() - { - } -#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 Memory() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Memory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string EphemeralId { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required string EphemeralId { get; set; } /// /// /// Contains Java Virtual Machine (JVM) statistics for the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JvmStats Jvm { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JvmStats Jvm { get; set; } /// /// /// Contains statistics about memory usage for the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.MemStats Mem { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.MemStats Mem { get; set; } /// /// /// Human-readable identifier for the node. Based on the Node name setting setting. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// /// Roles assigned to the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } /// /// /// The host and port where transport HTTP connections are accepted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } + public required string TransportAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs index 822bce78cfe..ab606d397f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs @@ -31,17 +31,11 @@ public ModelPackageConfig(string packagedModelId) { PackagedModelId = packagedModelId; } -#if NET7_0_OR_GREATER - public ModelPackageConfig() - { - } -#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 ModelPackageConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ModelPackageConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal ModelPackageConfig(Elastic.Clients.Elasticsearch.Serialization.JsonCons public string? MinimumVersion { get; set; } public string? ModelRepository { get; set; } public string? ModelType { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string PackagedModelId { get; set; } + public required string PackagedModelId { get; set; } public string? PlatformArchitecture { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; set; } public string? Sha256 { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPlotConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPlotConfig.g.cs index a510891eea2..d1b86b67a34 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPlotConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPlotConfig.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.ModelPlotConfigConverter))] public sealed partial class ModelPlotConfig { -#if NET7_0_OR_GREATER public ModelPlotConfig() { } -#endif -#if !NET7_0_OR_GREATER - public ModelPlotConfig() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ModelPlotConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSizeStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSizeStats.g.cs index 46cdc0d555f..12aa8b1e44d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSizeStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSizeStats.g.cs @@ -46,17 +46,11 @@ public ModelSizeStats(long bucketAllocationFailuresCount, Elastic.Clients.Elasti TotalOverFieldCount = totalOverFieldCount; TotalPartitionFieldCount = totalPartitionFieldCount; } -#if NET7_0_OR_GREATER - public ModelSizeStats() - { - } -#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 ModelSizeStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ModelSizeStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,89 +58,25 @@ internal ModelSizeStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc } public string? AssignmentMemoryBasis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long BucketAllocationFailuresCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.CategorizationStatus CategorizationStatus { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int CategorizedDocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int DeadCategoryCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int FailedCategoryCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int FrequentCategoryCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset LogTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.MemoryStatus MemoryStatus { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize ModelBytes { get; set; } + public required long BucketAllocationFailuresCount { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.CategorizationStatus CategorizationStatus { get; set; } + public required int CategorizedDocCount { get; set; } + public required int DeadCategoryCount { get; set; } + public required int FailedCategoryCount { get; set; } + public required int FrequentCategoryCount { get; set; } + public required string JobId { get; set; } + public required System.DateTimeOffset LogTime { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.MemoryStatus MemoryStatus { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize ModelBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? ModelBytesExceeded { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? ModelBytesMemoryLimit { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? OutputMemoryAllocatorBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? PeakModelBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int RareCategoryCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ResultType { get; set; } + public required int RareCategoryCount { get; set; } + public required string ResultType { get; set; } public long? Timestamp { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalByFieldCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int TotalCategoryCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalOverFieldCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalPartitionFieldCount { get; set; } + public required long TotalByFieldCount { get; set; } + public required int TotalCategoryCount { get; set; } + public required long TotalOverFieldCount { get; set; } + public required long TotalPartitionFieldCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshot.g.cs index d6e3250f80c..48275372c64 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshot.g.cs @@ -36,17 +36,11 @@ public ModelSnapshot(string jobId, string minVersion, bool retain, long snapshot SnapshotId = snapshotId; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public ModelSnapshot() - { - } -#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 ModelSnapshot() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ModelSnapshot(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +59,7 @@ internal ModelSnapshot(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// A numerical character string that uniquely identifies the job that the snapshot was created for. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } + public required string JobId { get; set; } /// /// @@ -90,11 +80,7 @@ internal ModelSnapshot(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The minimum version required to be able to restore the model snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string MinVersion { get; set; } + public required string MinVersion { get; set; } /// /// @@ -108,42 +94,26 @@ internal ModelSnapshot(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// If true, this snapshot will not be deleted during automatic cleanup of snapshots older than model_snapshot_retention_days. However, this snapshot will be deleted when the job is deleted. The default value is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Retain { get; set; } + public required bool Retain { get; set; } /// /// /// For internal use only. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long SnapshotDocCount { get; set; } + public required long SnapshotDocCount { get; set; } /// /// /// A numerical character string that uniquely identifies the model snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string SnapshotId { get; set; } + public required string SnapshotId { get; set; } /// /// /// The creation timestamp for the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Timestamp { get; set; } + public required long Timestamp { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.Converters.g.cs index 49f045f993c..a092d3915a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.Converters.g.cs @@ -36,7 +36,7 @@ public override Elastic.Clients.Elasticsearch.MachineLearning.ModelSnapshotUpgra reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propAssignmentExplanation = default; LocalJsonValue propJobId = default; - LocalJsonValue> propNode = default; + LocalJsonValue?> propNode = default; LocalJsonValue propSnapshotId = default; LocalJsonValue propState = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -51,7 +51,7 @@ public override Elastic.Clients.Elasticsearch.MachineLearning.ModelSnapshotUpgra continue; } - if (propNode.TryReadProperty(ref reader, options, PropNode, static System.Collections.Generic.KeyValuePair (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadKeyValuePairValue(o, null, null))) + if (propNode.TryReadProperty(ref reader, options, PropNode, static System.Collections.Generic.KeyValuePair? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadKeyValuePairValue(o, null, null))) { continue; } @@ -91,7 +91,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropAssignmentExplanation, value.AssignmentExplanation, null, null); writer.WriteProperty(options, PropJobId, value.JobId, null, null); - writer.WriteProperty(options, PropNode, value.Node, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.KeyValuePair v) => w.WriteKeyValuePairValue(o, v, null, null)); + writer.WriteProperty(options, PropNode, value.Node, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.KeyValuePair? v) => w.WriteKeyValuePairValue(o, v, null, null)); writer.WriteProperty(options, PropSnapshotId, value.SnapshotId, null, null); writer.WriteProperty(options, PropState, value.State, null, null); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs index 3a49a68481d..0d5bc70ca70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs @@ -27,54 +27,27 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; public sealed partial class ModelSnapshotUpgrade { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public ModelSnapshotUpgrade(string assignmentExplanation, string jobId, System.Collections.Generic.KeyValuePair node, string snapshotId, Elastic.Clients.Elasticsearch.MachineLearning.SnapshotUpgradeState state) + public ModelSnapshotUpgrade(string assignmentExplanation, string jobId, string snapshotId, Elastic.Clients.Elasticsearch.MachineLearning.SnapshotUpgradeState state) { AssignmentExplanation = assignmentExplanation; JobId = jobId; - Node = node; SnapshotId = snapshotId; State = state; } -#if NET7_0_OR_GREATER - public ModelSnapshotUpgrade() - { - } -#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 ModelSnapshotUpgrade() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ModelSnapshotUpgrade(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string AssignmentExplanation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.KeyValuePair Node { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string SnapshotId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.SnapshotUpgradeState State { get; set; } + public required string AssignmentExplanation { get; set; } + public required string JobId { get; set; } + public System.Collections.Generic.KeyValuePair? Node { get; set; } + public required string SnapshotId { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.SnapshotUpgradeState State { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NativeCode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NativeCode.g.cs index a66af399f00..775567bc7cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NativeCode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NativeCode.g.cs @@ -32,31 +32,17 @@ public NativeCode(string buildHash, string version) BuildHash = buildHash; Version = version; } -#if NET7_0_OR_GREATER - public NativeCode() - { - } -#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 NativeCode() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NativeCode(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string BuildHash { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required string BuildHash { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NerInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NerInferenceOptions.g.cs index 47078e9f38a..4535f750c4e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NerInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NerInferenceOptions.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.NerInferenceOptionsConverter))] public sealed partial class NerInferenceOptions { -#if NET7_0_OR_GREATER public NerInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public NerInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NerInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NerInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NerInferenceUpdateOptions.g.cs index b053267603c..4c9c38ad797 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NerInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NerInferenceUpdateOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.NerInferenceUpdateOptionsConverter))] public sealed partial class NerInferenceUpdateOptions { -#if NET7_0_OR_GREATER public NerInferenceUpdateOptions() { } -#endif -#if !NET7_0_OR_GREATER - public NerInferenceUpdateOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NerInferenceUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpBertTokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpBertTokenizationConfig.g.cs index ff529584f65..e5856e468b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpBertTokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpBertTokenizationConfig.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.NlpBertTokenizationConfigConverter))] public sealed partial class NlpBertTokenizationConfig { -#if NET7_0_OR_GREATER public NlpBertTokenizationConfig() { } -#endif -#if !NET7_0_OR_GREATER - public NlpBertTokenizationConfig() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NlpBertTokenizationConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs index 09584c8f456..50ed5175158 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.NlpRobertaTokenizationConfigConverter))] public sealed partial class NlpRobertaTokenizationConfig { -#if NET7_0_OR_GREATER public NlpRobertaTokenizationConfig() { } -#endif -#if !NET7_0_OR_GREATER - public NlpRobertaTokenizationConfig() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NlpRobertaTokenizationConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpTokenizationUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpTokenizationUpdateOptions.g.cs index e368b1841b7..0b9a15a2c74 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpTokenizationUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpTokenizationUpdateOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.NlpTokenizationUpdateOptionsConverter))] public sealed partial class NlpTokenizationUpdateOptions { -#if NET7_0_OR_GREATER public NlpTokenizationUpdateOptions() { } -#endif -#if !NET7_0_OR_GREATER - public NlpTokenizationUpdateOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NlpTokenizationUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OneHotEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OneHotEncodingPreprocessor.g.cs index 18743b9f7aa..341d2d9af43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OneHotEncodingPreprocessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OneHotEncodingPreprocessor.g.cs @@ -32,33 +32,19 @@ public OneHotEncodingPreprocessor(string field, System.Collections.Generic.IDict Field = field; HotMap = hotMap; } -#if NET7_0_OR_GREATER - public OneHotEncodingPreprocessor() - { - } -#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 OneHotEncodingPreprocessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OneHotEncodingPreprocessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IDictionary HotMap { get; set; } + public required string Field { get; set; } + public required System.Collections.Generic.IDictionary HotMap { get; set; } } public readonly partial struct OneHotEncodingPreprocessorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucket.g.cs index fce40379a81..5db7cc5e257 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucket.g.cs @@ -36,17 +36,11 @@ public OverallBucket(System.TimeSpan bucketSpan, bool isInterim, System.Collecti ResultType = resultType; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public OverallBucket() - { - } -#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 OverallBucket() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OverallBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,66 +52,42 @@ internal OverallBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The length of the bucket in seconds. Matches the job with the longest bucket_span value. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan BucketSpan { get; set; } + public required System.TimeSpan BucketSpan { get; set; } /// /// /// If true, this is an interim result. In other words, the results are calculated based on partial input data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IsInterim { get; set; } + public required bool IsInterim { get; set; } /// /// /// An array of objects that contain the max_anomaly_score per job_id. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Jobs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Jobs { get; set; } /// /// /// The top_n average of the maximum bucket anomaly_score per job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double OverallScore { get; set; } + public required double OverallScore { get; set; } /// /// /// Internal. This is always set to overall_bucket. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ResultType { get; set; } + public required string ResultType { get; set; } /// /// /// The start time of the bucket for which these results were calculated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Timestamp { get; set; } + public required System.DateTimeOffset Timestamp { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucketJob.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucketJob.g.cs index caa79df8d18..b1b9e7cbe28 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucketJob.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucketJob.g.cs @@ -32,31 +32,17 @@ public OverallBucketJob(string jobId, double maxAnomalyScore) JobId = jobId; MaxAnomalyScore = maxAnomalyScore; } -#if NET7_0_OR_GREATER - public OverallBucketJob() - { - } -#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 OverallBucketJob() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OverallBucketJob(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double MaxAnomalyScore { get; set; } + public required string JobId { get; set; } + public required double MaxAnomalyScore { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Page.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Page.g.cs index 755cf4dfe1d..a0efc5fae7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Page.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Page.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.PageConverter))] public sealed partial class Page { -#if NET7_0_OR_GREATER public Page() { } -#endif -#if !NET7_0_OR_GREATER - public Page() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Page(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PassThroughInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PassThroughInferenceOptions.g.cs index 08c9e547cf7..3fe4b6a0f1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PassThroughInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PassThroughInferenceOptions.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.PassThroughInferenceOptionsConverter))] public sealed partial class PassThroughInferenceOptions { -#if NET7_0_OR_GREATER public PassThroughInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public PassThroughInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PassThroughInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PassThroughInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PassThroughInferenceUpdateOptions.g.cs index 13003236ef8..fe0044de526 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PassThroughInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PassThroughInferenceUpdateOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.PassThroughInferenceUpdateOptionsConverter))] public sealed partial class PassThroughInferenceUpdateOptions { -#if NET7_0_OR_GREATER public PassThroughInferenceUpdateOptions() { } -#endif -#if !NET7_0_OR_GREATER - public PassThroughInferenceUpdateOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PassThroughInferenceUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PerPartitionCategorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PerPartitionCategorization.g.cs index 787fb2e2007..1333fdce7f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PerPartitionCategorization.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/PerPartitionCategorization.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.PerPartitionCategorizationConverter))] public sealed partial class PerPartitionCategorization { -#if NET7_0_OR_GREATER public PerPartitionCategorization() { } -#endif -#if !NET7_0_OR_GREATER - public PerPartitionCategorization() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Preprocessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Preprocessor.g.cs index 4399adcdfe5..31d6a97f650 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Preprocessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Preprocessor.g.cs @@ -28,16 +28,11 @@ public sealed partial class Preprocessor { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Preprocessor() - { - } -#endif -#if !NET7_0_OR_GREATER + public Preprocessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Preprocessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QueryFeatureExtractor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QueryFeatureExtractor.g.cs index 00a3ea51874..6252ed24601 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QueryFeatureExtractor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QueryFeatureExtractor.g.cs @@ -32,17 +32,11 @@ public QueryFeatureExtractor(string featureName, Elastic.Clients.Elasticsearch.Q FeatureName = featureName; Query = query; } -#if NET7_0_OR_GREATER - public QueryFeatureExtractor() - { - } -#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 QueryFeatureExtractor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryFeatureExtractor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,16 +44,8 @@ internal QueryFeatureExtractor(Elastic.Clients.Elasticsearch.Serialization.JsonC } public float? DefaultScore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string FeatureName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required string FeatureName { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } } public readonly partial struct QueryFeatureExtractorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QuestionAnsweringInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QuestionAnsweringInferenceOptions.g.cs index 91598aa80a9..4c75dbdd44f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QuestionAnsweringInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QuestionAnsweringInferenceOptions.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.QuestionAnsweringInferenceOptionsConverter))] public sealed partial class QuestionAnsweringInferenceOptions { -#if NET7_0_OR_GREATER public QuestionAnsweringInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public QuestionAnsweringInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QuestionAnsweringInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QuestionAnsweringInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QuestionAnsweringInferenceUpdateOptions.g.cs index 894f980bb33..b9aea8a41b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QuestionAnsweringInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QuestionAnsweringInferenceUpdateOptions.g.cs @@ -31,17 +31,11 @@ public QuestionAnsweringInferenceUpdateOptions(string question) { Question = question; } -#if NET7_0_OR_GREATER - public QuestionAnsweringInferenceUpdateOptions() - { - } -#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 QuestionAnsweringInferenceUpdateOptions() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QuestionAnsweringInferenceUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +61,7 @@ internal QuestionAnsweringInferenceUpdateOptions(Elastic.Clients.Elasticsearch.S /// The question to answer given the inference context /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Question { get; set; } + public required string Question { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RegressionInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RegressionInferenceOptions.g.cs index f916d93f905..3d97d248630 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RegressionInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RegressionInferenceOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.RegressionInferenceOptionsConverter))] public sealed partial class RegressionInferenceOptions { -#if NET7_0_OR_GREATER public RegressionInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public RegressionInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RegressionInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RuleCondition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RuleCondition.g.cs index c337841d481..1c697e236d0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RuleCondition.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RuleCondition.g.cs @@ -33,17 +33,11 @@ public RuleCondition(Elastic.Clients.Elasticsearch.MachineLearning.AppliesTo app Operator = @operator; Value = value; } -#if NET7_0_OR_GREATER - public RuleCondition() - { - } -#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 RuleCondition() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RuleCondition(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,33 +49,21 @@ internal RuleCondition(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Specifies the result property to which the condition applies. If your detector uses lat_long, metric, rare, or freq_rare functions, you can only specify conditions that apply to time. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.AppliesTo AppliesTo { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.AppliesTo AppliesTo { get; set; } /// /// /// Specifies the condition operator. The available options are greater than, greater than or equals, less than, and less than or equals. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.ConditionOperator Operator { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.ConditionOperator Operator { get; set; } /// /// /// The value that is compared against the applies_to field using the operator. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double Value { get; set; } + public required double Value { get; set; } } public readonly partial struct RuleConditionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RunningStateSearchInterval.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RunningStateSearchInterval.g.cs index 3353c89223f..1fc133c7c14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RunningStateSearchInterval.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/RunningStateSearchInterval.g.cs @@ -32,17 +32,11 @@ public RunningStateSearchInterval(System.TimeSpan endMs, System.TimeSpan startMs EndMs = endMs; StartMs = startMs; } -#if NET7_0_OR_GREATER - public RunningStateSearchInterval() - { - } -#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 RunningStateSearchInterval() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RunningStateSearchInterval(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal RunningStateSearchInterval(Elastic.Clients.Elasticsearch.Serialization. /// The end time as an epoch in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan EndMs { get; set; } + public required System.TimeSpan EndMs { get; set; } /// /// @@ -79,9 +69,5 @@ internal RunningStateSearchInterval(Elastic.Clients.Elasticsearch.Serialization. /// The start time as an epoch in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan StartMs { get; set; } + public required System.TimeSpan StartMs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TargetMeanEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TargetMeanEncodingPreprocessor.g.cs index d8a09be504a..c1328540bfb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TargetMeanEncodingPreprocessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TargetMeanEncodingPreprocessor.g.cs @@ -34,43 +34,21 @@ public TargetMeanEncodingPreprocessor(double defaultValue, string featureName, s Field = field; TargetMap = targetMap; } -#if NET7_0_OR_GREATER - public TargetMeanEncodingPreprocessor() - { - } -#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 TargetMeanEncodingPreprocessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TargetMeanEncodingPreprocessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double DefaultValue { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string FeatureName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IDictionary TargetMap { get; set; } + public required double DefaultValue { get; set; } + public required string FeatureName { get; set; } + public required string Field { get; set; } + public required System.Collections.Generic.IDictionary TargetMap { get; set; } } public readonly partial struct TargetMeanEncodingPreprocessorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs index c9109f1820f..815f2e50a03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TextClassificationInferenceOptionsConverter))] public sealed partial class TextClassificationInferenceOptions { -#if NET7_0_OR_GREATER public TextClassificationInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public TextClassificationInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextClassificationInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceUpdateOptions.g.cs index 91a8a2b5628..549b2d077e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceUpdateOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TextClassificationInferenceUpdateOptionsConverter))] public sealed partial class TextClassificationInferenceUpdateOptions { -#if NET7_0_OR_GREATER public TextClassificationInferenceUpdateOptions() { } -#endif -#if !NET7_0_OR_GREATER - public TextClassificationInferenceUpdateOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextClassificationInferenceUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs index b99865efc53..ec2c8ec6200 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TextEmbeddingInferenceOptionsConverter))] public sealed partial class TextEmbeddingInferenceOptions { -#if NET7_0_OR_GREATER public TextEmbeddingInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public TextEmbeddingInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextEmbeddingInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceUpdateOptions.g.cs index 1ba697bd529..5bca4bce59b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceUpdateOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TextEmbeddingInferenceUpdateOptionsConverter))] public sealed partial class TextEmbeddingInferenceUpdateOptions { -#if NET7_0_OR_GREATER public TextEmbeddingInferenceUpdateOptions() { } -#endif -#if !NET7_0_OR_GREATER - public TextEmbeddingInferenceUpdateOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextEmbeddingInferenceUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs index e2b4aac5fa8..b426e26b3a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TextExpansionInferenceOptionsConverter))] public sealed partial class TextExpansionInferenceOptions { -#if NET7_0_OR_GREATER public TextExpansionInferenceOptions() { } -#endif -#if !NET7_0_OR_GREATER - public TextExpansionInferenceOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextExpansionInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceUpdateOptions.g.cs index f7fcb465bbf..93270bd8937 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceUpdateOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TextExpansionInferenceUpdateOptionsConverter))] public sealed partial class TextExpansionInferenceUpdateOptions { -#if NET7_0_OR_GREATER public TextExpansionInferenceUpdateOptions() { } -#endif -#if !NET7_0_OR_GREATER - public TextExpansionInferenceUpdateOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextExpansionInferenceUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs index 2f950efd8e3..8abc0b06f56 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs @@ -28,16 +28,11 @@ public sealed partial class TokenizationConfig { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public TokenizationConfig() - { - } -#endif -#if !NET7_0_OR_GREATER + public TokenizationConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TokenizationConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TopClassEntry.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TopClassEntry.g.cs index 11cb9bcfc9f..9668a2cbbca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TopClassEntry.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TopClassEntry.g.cs @@ -33,36 +33,18 @@ public TopClassEntry(string className, double classProbability, double classScor ClassProbability = classProbability; ClassScore = classScore; } -#if NET7_0_OR_GREATER - public TopClassEntry() - { - } -#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 TopClassEntry() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TopClassEntry(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string ClassName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double ClassProbability { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double ClassScore { get; set; } + public required string ClassName { get; set; } + public required double ClassProbability { get; set; } + public required double ClassScore { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportance.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportance.g.cs index 451fa369bba..3d08aceb3a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportance.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportance.g.cs @@ -33,17 +33,11 @@ public TotalFeatureImportance(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Classes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Classes { get; set; } /// /// /// The feature for which this importance was calculated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string FeatureName { get; set; } + public required string FeatureName { get; set; } /// /// /// A collection of feature importance statistics related to the training data set for this particular feature. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Importance { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Importance { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportanceClass.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportanceClass.g.cs index 2ea698bd135..39acdf34413 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportanceClass.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportanceClass.g.cs @@ -32,17 +32,11 @@ public TotalFeatureImportanceClass(string className, System.Collections.Generic. ClassName = className; Importance = importance; } -#if NET7_0_OR_GREATER - public TotalFeatureImportanceClass() - { - } -#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 TotalFeatureImportanceClass() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TotalFeatureImportanceClass(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal TotalFeatureImportanceClass(Elastic.Clients.Elasticsearch.Serialization /// The target class value. Could be a string, boolean, or number. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ClassName { get; set; } + public required string ClassName { get; set; } /// /// /// A collection of feature importance statistics related to the training data set for this particular feature. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Importance { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Importance { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportanceStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportanceStatistics.g.cs index 80e5a93a435..d0dfd1e569a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportanceStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TotalFeatureImportanceStatistics.g.cs @@ -33,17 +33,11 @@ public TotalFeatureImportanceStatistics(int max, double meanMagnitude, int min) MeanMagnitude = meanMagnitude; Min = min; } -#if NET7_0_OR_GREATER - public TotalFeatureImportanceStatistics() - { - } -#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 TotalFeatureImportanceStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TotalFeatureImportanceStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal TotalFeatureImportanceStatistics(Elastic.Clients.Elasticsearch.Serializ /// The maximum importance value across all the training data for this feature. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Max { get; set; } + public required int Max { get; set; } /// /// /// The average magnitude of this feature across all the training data. This value is the average of the absolute values of the importance for this feature. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double MeanMagnitude { get; set; } + public required double MeanMagnitude { get; set; } /// /// /// The minimum importance value across all the training data for this feature. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Min { get; set; } + public required int Min { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModel.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModel.g.cs index 871f498b115..125d7c8d134 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModel.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TrainedModelConverter))] public sealed partial class TrainedModel { -#if NET7_0_OR_GREATER public TrainedModel() { } -#endif -#if !NET7_0_OR_GREATER - public TrainedModel() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModel(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs index c92267c3868..1c1a60dd5ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs @@ -34,17 +34,11 @@ public TrainedModelAssignment(Elastic.Clients.Elasticsearch.MachineLearning.Depl StartTime = startTime; TaskParameters = taskParameters; } -#if NET7_0_OR_GREATER - public TrainedModelAssignment() - { - } -#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 TrainedModelAssignment() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelAssignment(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal TrainedModelAssignment(Elastic.Clients.Elasticsearch.Serialization.Json /// The overall assignment state. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAssignmentState AssignmentState { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAssignmentState AssignmentState { get; set; } public int? MaxAssignedAllocations { get; set; } public string? Reason { get; set; } @@ -71,25 +61,13 @@ internal TrainedModelAssignment(Elastic.Clients.Elasticsearch.Serialization.Json /// The allocation state for each node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary RoutingTable { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary RoutingTable { get; set; } /// /// /// The timestamp when the deployment started. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignmentTaskParameters TaskParameters { get; set; } + public required System.DateTimeOffset StartTime { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignmentTaskParameters TaskParameters { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingStateAndReason.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingStateAndReason.g.cs index 09151b4f29d..e9807ddbd23 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingStateAndReason.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingStateAndReason.g.cs @@ -31,17 +31,11 @@ public TrainedModelAssignmentRoutingStateAndReason(Elastic.Clients.Elasticsearch { RoutingState = routingState; } -#if NET7_0_OR_GREATER - public TrainedModelAssignmentRoutingStateAndReason() - { - } -#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 TrainedModelAssignmentRoutingStateAndReason() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelAssignmentRoutingStateAndReason(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,9 +55,5 @@ internal TrainedModelAssignmentRoutingStateAndReason(Elastic.Clients.Elasticsear /// The current routing state. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.RoutingState RoutingState { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.RoutingState RoutingState { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs index a63ba21aa0e..2a49e4a9ea0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs @@ -33,17 +33,11 @@ public TrainedModelAssignmentRoutingTable(int currentAllocations, Elastic.Client RoutingState = routingState; TargetAllocations = targetAllocations; } -#if NET7_0_OR_GREATER - public TrainedModelAssignmentRoutingTable() - { - } -#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 TrainedModelAssignmentRoutingTable() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelAssignmentRoutingTable(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal TrainedModelAssignmentRoutingTable(Elastic.Clients.Elasticsearch.Serial /// Current number of allocations. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int CurrentAllocations { get; set; } + public required int CurrentAllocations { get; set; } /// /// @@ -74,20 +64,12 @@ internal TrainedModelAssignmentRoutingTable(Elastic.Clients.Elasticsearch.Serial /// The current routing state. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.RoutingState RoutingState { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.RoutingState RoutingState { get; set; } /// /// /// Target number of allocations. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int TargetAllocations { get; set; } + public required int TargetAllocations { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs index 1a43fd35ae4..2216066d079 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs @@ -39,17 +39,11 @@ public TrainedModelAssignmentTaskParameters(string deploymentId, Elastic.Clients QueueCapacity = queueCapacity; ThreadsPerAllocation = threadsPerAllocation; } -#if NET7_0_OR_GREATER - public TrainedModelAssignmentTaskParameters() - { - } -#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 TrainedModelAssignmentTaskParameters() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelAssignmentTaskParameters(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,79 +62,43 @@ internal TrainedModelAssignmentTaskParameters(Elastic.Clients.Elasticsearch.Seri /// The unique identifier for the trained model deployment. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string DeploymentId { get; set; } + public required string DeploymentId { get; set; } /// /// /// The size of the trained model in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize ModelBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize ModelBytes { get; set; } /// /// /// The unique identifier for the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// /// The total number of allocations this model is assigned across ML nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int NumberOfAllocations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize PerAllocationMemoryBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize PerDeploymentMemoryBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainingPriority Priority { get; set; } + public required int NumberOfAllocations { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize PerAllocationMemoryBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize PerDeploymentMemoryBytes { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainingPriority Priority { get; set; } /// /// /// Number of inference requests are allowed in the queue at a time. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int QueueCapacity { get; set; } + public required int QueueCapacity { get; set; } /// /// /// Number of threads per allocation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int ThreadsPerAllocation { get; set; } + public required int ThreadsPerAllocation { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs index af79f2682e5..d0174ee8a37 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs @@ -33,17 +33,11 @@ public TrainedModelConfig(Elastic.Clients.Elasticsearch.MachineLearning.TrainedM ModelId = modelId; Tags = tags; } -#if NET7_0_OR_GREATER - public TrainedModelConfig() - { - } -#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 TrainedModelConfig() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -113,11 +107,7 @@ internal TrainedModelConfig(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The input field names for the model definition. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelConfigInput Input { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelConfigInput Input { get; set; } /// /// @@ -139,11 +129,7 @@ internal TrainedModelConfig(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Identifier for the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.ModelPackageConfig? ModelPackage { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? ModelSizeBytes { get; set; } @@ -161,11 +147,7 @@ internal TrainedModelConfig(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// A comma delimited string of tags. A trained model can have many tags, or none. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Tags { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Tags { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfigInput.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfigInput.g.cs index 44b18ecffa3..c9b5a0cde8c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfigInput.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfigInput.g.cs @@ -31,17 +31,11 @@ public TrainedModelConfigInput(Elastic.Clients.Elasticsearch.Fields fieldNames) { FieldNames = fieldNames; } -#if NET7_0_OR_GREATER - public TrainedModelConfigInput() - { - } -#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 TrainedModelConfigInput() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelConfigInput(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,9 +47,5 @@ internal TrainedModelConfigInput(Elastic.Clients.Elasticsearch.Serialization.Jso /// An array of input field names for the model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields FieldNames { get; set; } + public required Elastic.Clients.Elasticsearch.Fields FieldNames { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfigMetadata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfigMetadata.g.cs index a90063c2fe2..17b0a959fb7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfigMetadata.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfigMetadata.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TrainedModelConfigMetadataConverter))] public sealed partial class TrainedModelConfigMetadata { -#if NET7_0_OR_GREATER public TrainedModelConfigMetadata() { } -#endif -#if !NET7_0_OR_GREATER - public TrainedModelConfigMetadata() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelConfigMetadata(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentAllocationStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentAllocationStatus.g.cs index 1e3ed2723ec..92f32a4ee5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentAllocationStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentAllocationStatus.g.cs @@ -33,17 +33,11 @@ public TrainedModelDeploymentAllocationStatus(int allocationCount, Elastic.Clien State = state; TargetAllocationCount = targetAllocationCount; } -#if NET7_0_OR_GREATER - public TrainedModelDeploymentAllocationStatus() - { - } -#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 TrainedModelDeploymentAllocationStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelDeploymentAllocationStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal TrainedModelDeploymentAllocationStatus(Elastic.Clients.Elasticsearch.Se /// The current number of nodes where the model is allocated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int AllocationCount { get; set; } + public required int AllocationCount { get; set; } /// /// /// The detailed allocation state related to the nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAllocationState State { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAllocationState State { get; set; } /// /// /// The desired number of nodes for model allocation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int TargetAllocationCount { get; set; } + public required int TargetAllocationCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs index e974a1bfe97..c2387c4b9c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs @@ -33,17 +33,11 @@ public TrainedModelDeploymentNodesStats(long peakThroughputPerMinute, Elastic.Cl RoutingState = routingState; ThroughputLastMinute = throughputLastMinute; } -#if NET7_0_OR_GREATER - public TrainedModelDeploymentNodesStats() - { - } -#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 TrainedModelDeploymentNodesStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelDeploymentNodesStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -108,11 +102,7 @@ internal TrainedModelDeploymentNodesStats(Elastic.Clients.Elasticsearch.Serializ /// /// public int? NumberOfPendingRequests { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PeakThroughputPerMinute { get; set; } + public required long PeakThroughputPerMinute { get; set; } /// /// @@ -126,11 +116,7 @@ internal TrainedModelDeploymentNodesStats(Elastic.Clients.Elasticsearch.Serializ /// The current routing state and reason for the current routing state for this allocation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignmentRoutingStateAndReason RoutingState { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignmentRoutingStateAndReason RoutingState { get; set; } /// /// @@ -145,11 +131,7 @@ internal TrainedModelDeploymentNodesStats(Elastic.Clients.Elasticsearch.Serializ /// /// public int? ThreadsPerAllocation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int ThroughputLastMinute { get; set; } + public required int ThroughputLastMinute { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs index 8cd53520622..fee17b79a1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs @@ -36,17 +36,11 @@ public TrainedModelDeploymentStats(string deploymentId, string modelId, System.C Priority = priority; StartTime = startTime; } -#if NET7_0_OR_GREATER - public TrainedModelDeploymentStats() - { - } -#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 TrainedModelDeploymentStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelDeploymentStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +62,7 @@ internal TrainedModelDeploymentStats(Elastic.Clients.Elasticsearch.Serialization /// The unique identifier for the trained model deployment. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string DeploymentId { get; set; } + public required string DeploymentId { get; set; } /// /// @@ -93,11 +83,7 @@ internal TrainedModelDeploymentStats(Elastic.Clients.Elasticsearch.Serialization /// The unique identifier for the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// @@ -105,11 +91,7 @@ internal TrainedModelDeploymentStats(Elastic.Clients.Elasticsearch.Serialization /// In serverless, stats are reported for a single unnamed virtual node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Nodes { get; set; } /// /// @@ -117,16 +99,8 @@ internal TrainedModelDeploymentStats(Elastic.Clients.Elasticsearch.Serialization /// /// public int? NumberOfAllocations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PeakThroughputPerMinute { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainingPriority Priority { get; set; } + public required long PeakThroughputPerMinute { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainingPriority Priority { get; set; } /// /// @@ -158,11 +132,7 @@ internal TrainedModelDeploymentStats(Elastic.Clients.Elasticsearch.Serialization /// The epoch timestamp when the deployment started. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTime { get; set; } + public required System.DateTimeOffset StartTime { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelEntities.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelEntities.g.cs index 0df55936d6e..f5677181a10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelEntities.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelEntities.g.cs @@ -35,46 +35,20 @@ public TrainedModelEntities(string className, double classProbability, int endPo Entity = entity; StartPos = startPos; } -#if NET7_0_OR_GREATER - public TrainedModelEntities() - { - } -#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 TrainedModelEntities() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelEntities(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string ClassName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double ClassProbability { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int EndPos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Entity { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int StartPos { get; set; } + public required string ClassName { get; set; } + public required double ClassProbability { get; set; } + public required int EndPos { get; set; } + public required string Entity { get; set; } + public required int StartPos { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceClassImportance.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceClassImportance.g.cs index 90edafc12f1..ea1ef9d6ea1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceClassImportance.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceClassImportance.g.cs @@ -32,31 +32,17 @@ public TrainedModelInferenceClassImportance(string className, double importance) ClassName = className; Importance = importance; } -#if NET7_0_OR_GREATER - public TrainedModelInferenceClassImportance() - { - } -#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 TrainedModelInferenceClassImportance() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelInferenceClassImportance(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string ClassName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double Importance { get; set; } + public required string ClassName { get; set; } + public required double Importance { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceFeatureImportance.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceFeatureImportance.g.cs index f8e45816ba0..4fd124eb485 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceFeatureImportance.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceFeatureImportance.g.cs @@ -31,17 +31,11 @@ public TrainedModelInferenceFeatureImportance(string featureName) { FeatureName = featureName; } -#if NET7_0_OR_GREATER - public TrainedModelInferenceFeatureImportance() - { - } -#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 TrainedModelInferenceFeatureImportance() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelInferenceFeatureImportance(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,10 +43,6 @@ internal TrainedModelInferenceFeatureImportance(Elastic.Clients.Elasticsearch.Se } public System.Collections.Generic.IReadOnlyCollection? Classes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string FeatureName { get; set; } + public required string FeatureName { get; set; } public double? Importance { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceStats.g.cs index ec95d555b4c..b800cb4ffc8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelInferenceStats.g.cs @@ -35,17 +35,11 @@ public TrainedModelInferenceStats(int cacheMissCount, int failureCount, int infe MissingAllFieldsCount = missingAllFieldsCount; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public TrainedModelInferenceStats() - { - } -#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 TrainedModelInferenceStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelInferenceStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,22 +54,14 @@ internal TrainedModelInferenceStats(Elastic.Clients.Elasticsearch.Serialization. /// Refer to general machine learning settings for the appropriate settings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int CacheMissCount { get; set; } + public required int CacheMissCount { get; set; } /// /// /// The number of failures when using the model for inference. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int FailureCount { get; set; } + public required int FailureCount { get; set; } /// /// @@ -83,31 +69,19 @@ internal TrainedModelInferenceStats(Elastic.Clients.Elasticsearch.Serialization. /// This is across all inference contexts, including all pipelines. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int InferenceCount { get; set; } + public required int InferenceCount { get; set; } /// /// /// The number of inference calls where all the training features for the model were missing. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MissingAllFieldsCount { get; set; } + public required int MissingAllFieldsCount { get; set; } /// /// /// The time when the statistics were last updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Timestamp { get; set; } + public required System.DateTimeOffset Timestamp { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelLocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelLocation.g.cs index b3f2a9cec89..ff1befec4a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelLocation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelLocation.g.cs @@ -31,26 +31,16 @@ public TrainedModelLocation(Elastic.Clients.Elasticsearch.MachineLearning.Traine { Index = index; } -#if NET7_0_OR_GREATER - public TrainedModelLocation() - { - } -#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 TrainedModelLocation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelLocation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelLocationIndex Index { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelLocationIndex Index { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelLocationIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelLocationIndex.g.cs index 3235c4839a2..2bb23f28388 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelLocationIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelLocationIndex.g.cs @@ -31,26 +31,16 @@ public TrainedModelLocationIndex(string name) { Name = name; } -#if NET7_0_OR_GREATER - public TrainedModelLocationIndex() - { - } -#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 TrainedModelLocationIndex() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelLocationIndex(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelPrefixStrings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelPrefixStrings.g.cs index b5a8248e265..92347e90d40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelPrefixStrings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelPrefixStrings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TrainedModelPrefixStringsConverter))] public sealed partial class TrainedModelPrefixStrings { -#if NET7_0_OR_GREATER public TrainedModelPrefixStrings() { } -#endif -#if !NET7_0_OR_GREATER - public TrainedModelPrefixStrings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelPrefixStrings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs index e98764a8f6d..4893c674cee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs @@ -32,17 +32,11 @@ public TrainedModelSizeStats(Elastic.Clients.Elasticsearch.ByteSize modelSizeByt ModelSizeBytes = modelSizeBytes; RequiredNativeMemoryBytes = requiredNativeMemoryBytes; } -#if NET7_0_OR_GREATER - public TrainedModelSizeStats() - { - } -#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 TrainedModelSizeStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelSizeStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal TrainedModelSizeStats(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The size of the model in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize ModelSizeBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize ModelSizeBytes { get; set; } /// /// /// The amount of memory required to load the model in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize RequiredNativeMemoryBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize RequiredNativeMemoryBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelStats.g.cs index 72ea7c405cf..cb3b89c24fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelStats.g.cs @@ -33,17 +33,11 @@ public TrainedModelStats(string modelId, Elastic.Clients.Elasticsearch.MachineLe ModelSizeStats = modelSizeStats; PipelineCount = pipelineCount; } -#if NET7_0_OR_GREATER - public TrainedModelStats() - { - } -#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 TrainedModelStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -78,31 +72,19 @@ internal TrainedModelStats(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// The unique identifier of the trained model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// /// A collection of model size stats. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelSizeStats ModelSizeStats { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelSizeStats ModelSizeStats { get; set; } /// /// /// The number of ingest pipelines that currently refer to the model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int PipelineCount { get; set; } + public required int PipelineCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelTree.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelTree.g.cs index cb8c268d4e7..3f94d9e93a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelTree.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelTree.g.cs @@ -32,17 +32,11 @@ public TrainedModelTree(System.Collections.Generic.ICollection featureNa FeatureNames = featureNames; TreeStructure = treeStructure; } -#if NET7_0_OR_GREATER - public TrainedModelTree() - { - } -#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 TrainedModelTree() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelTree(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,17 +44,9 @@ internal TrainedModelTree(Elastic.Clients.Elasticsearch.Serialization.JsonConstr } public System.Collections.Generic.ICollection? ClassificationLabels { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection FeatureNames { get; set; } + public required System.Collections.Generic.ICollection FeatureNames { get; set; } public string? TargetType { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection TreeStructure { get; set; } + public required System.Collections.Generic.ICollection TreeStructure { get; set; } } public readonly partial struct TrainedModelTreeDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelTreeNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelTreeNode.g.cs index d517ab313c4..6bbd5c5474f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelTreeNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelTreeNode.g.cs @@ -31,17 +31,11 @@ public TrainedModelTreeNode(int nodeIndex) { NodeIndex = nodeIndex; } -#if NET7_0_OR_GREATER - public TrainedModelTreeNode() - { - } -#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 TrainedModelTreeNode() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TrainedModelTreeNode(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,11 +46,7 @@ internal TrainedModelTreeNode(Elastic.Clients.Elasticsearch.Serialization.JsonCo public bool? DefaultLeft { get; set; } public double? LeafValue { get; set; } public int? LeftChild { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int NodeIndex { get; set; } + public required int NodeIndex { get; set; } public int? RightChild { get; set; } public int? SplitFeature { get; set; } public int? SplitGain { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TransformAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TransformAuthorization.g.cs index d3984810abd..9e56e3acac0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TransformAuthorization.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TransformAuthorization.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.TransformAuthorizationConverter))] public sealed partial class TransformAuthorization { -#if NET7_0_OR_GREATER public TransformAuthorization() { } -#endif -#if !NET7_0_OR_GREATER - public TransformAuthorization() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformAuthorization(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Vocabulary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Vocabulary.g.cs index 74aaf4f820f..71864b135df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Vocabulary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Vocabulary.g.cs @@ -31,28 +31,18 @@ public Vocabulary(Elastic.Clients.Elasticsearch.IndexName index) { Index = index; } -#if NET7_0_OR_GREATER - public Vocabulary() - { - } -#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 Vocabulary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Vocabulary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } } public readonly partial struct VocabularyDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Weights.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Weights.g.cs index 03ee4d6b66d..2bf2b6ae499 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Weights.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Weights.g.cs @@ -31,28 +31,18 @@ public Weights(double weightsValue) { WeightsValue = weightsValue; } -#if NET7_0_OR_GREATER - public Weights() - { - } -#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 Weights() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Weights(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double WeightsValue { get; set; } + public required double WeightsValue { get; set; } } public readonly partial struct WeightsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/XlmRobertaTokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/XlmRobertaTokenizationConfig.g.cs index fd6c9fdf735..241ec711783 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/XlmRobertaTokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/XlmRobertaTokenizationConfig.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.MachineLearning.Json.XlmRobertaTokenizationConfigConverter))] public sealed partial class XlmRobertaTokenizationConfig { -#if NET7_0_OR_GREATER public XlmRobertaTokenizationConfig() { } -#endif -#if !NET7_0_OR_GREATER - public XlmRobertaTokenizationConfig() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal XlmRobertaTokenizationConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceOptions.g.cs index 983fe70c892..86809ffb1f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceOptions.g.cs @@ -36,17 +36,11 @@ public ZeroShotClassificationInferenceOptions(System.Collections.Generic.ICollec { ClassificationLabels = classificationLabels; } -#if NET7_0_OR_GREATER - public ZeroShotClassificationInferenceOptions() - { - } -#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 ZeroShotClassificationInferenceOptions() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ZeroShotClassificationInferenceOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,11 +53,7 @@ internal ZeroShotClassificationInferenceOptions(Elastic.Clients.Elasticsearch.Se /// Must contain exactly and only entailment, neutral, and contradiction /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection ClassificationLabels { get; set; } + public required System.Collections.Generic.ICollection ClassificationLabels { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceUpdateOptions.g.cs index 967c4afa419..ffa70a35ac8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceUpdateOptions.g.cs @@ -31,17 +31,11 @@ public ZeroShotClassificationInferenceUpdateOptions(System.Collections.Generic.I { Labels = labels; } -#if NET7_0_OR_GREATER - public ZeroShotClassificationInferenceUpdateOptions() - { - } -#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 ZeroShotClassificationInferenceUpdateOptions() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ZeroShotClassificationInferenceUpdateOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal ZeroShotClassificationInferenceUpdateOptions(Elastic.Clients.Elasticsea /// The labels to predict. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Labels { get; set; } + public required System.Collections.Generic.ICollection Labels { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs index 8178934f804..d591a697b14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs @@ -32,28 +32,18 @@ public AggregateMetricDoubleProperty(string defaultMetric, System.Collections.Ge DefaultMetric = defaultMetric; Metrics = metrics; } -#if NET7_0_OR_GREATER - public AggregateMetricDoubleProperty() - { - } -#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 AggregateMetricDoubleProperty() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AggregateMetricDoubleProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string DefaultMetric { get; set; } + public required string DefaultMetric { get; set; } public Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? Dynamic { get; set; } public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } public int? IgnoreAbove { get; set; } @@ -65,11 +55,7 @@ internal AggregateMetricDoubleProperty(Elastic.Clients.Elasticsearch.Serializati /// /// public System.Collections.Generic.IDictionary? Meta { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Metrics { get; set; } + public required System.Collections.Generic.ICollection Metrics { get; set; } public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } public Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetric { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AllField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AllField.g.cs index bf4dba5602b..f57a4b1a987 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AllField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AllField.g.cs @@ -40,73 +40,27 @@ public AllField(string analyzer, bool enabled, bool omitNorms, string searchAnal StoreTermVectorPositions = storeTermVectorPositions; StoreTermVectors = storeTermVectors; } -#if NET7_0_OR_GREATER - public AllField() - { - } -#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 AllField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AllField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Analyzer { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool OmitNorms { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string SearchAnalyzer { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Similarity { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Store { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool StoreTermVectorOffsets { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool StoreTermVectorPayloads { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool StoreTermVectorPositions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool StoreTermVectors { get; set; } + public required string Analyzer { get; set; } + public required bool Enabled { get; set; } + public required bool OmitNorms { get; set; } + public required string SearchAnalyzer { get; set; } + public required string Similarity { get; set; } + public required bool Store { get; set; } + public required bool StoreTermVectorOffsets { get; set; } + public required bool StoreTermVectorPayloads { get; set; } + public required bool StoreTermVectorPositions { get; set; } + public required bool StoreTermVectors { get; set; } } public readonly partial struct AllFieldDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs index 802dd63c055..2f396b91d1e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.BinaryPropertyConverter))] public sealed partial class BinaryProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public BinaryProperty() { } -#endif -#if !NET7_0_OR_GREATER - public BinaryProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BinaryProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs index b62379b2862..5819e981108 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.BooleanPropertyConverter))] public sealed partial class BooleanProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public BooleanProperty() { } -#endif -#if !NET7_0_OR_GREATER - public BooleanProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BooleanProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs index 2cf1ac84d1b..befc734f4a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.ByteNumberPropertyConverter))] public sealed partial class ByteNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public ByteNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public ByteNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ByteNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ChunkRescorerChunkingSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ChunkRescorerChunkingSettings.g.cs index 392d60e8f60..1a5f4c4f97c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ChunkRescorerChunkingSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ChunkRescorerChunkingSettings.g.cs @@ -31,17 +31,11 @@ public ChunkRescorerChunkingSettings(int maxChunkSize) { MaxChunkSize = maxChunkSize; } -#if NET7_0_OR_GREATER - public ChunkRescorerChunkingSettings() - { - } -#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 ChunkRescorerChunkingSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChunkRescorerChunkingSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal ChunkRescorerChunkingSettings(Elastic.Clients.Elasticsearch.Serializati /// This value should not exceed the window size for the associated model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MaxChunkSize { get; set; } + public required int MaxChunkSize { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ChunkingSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ChunkingSettings.g.cs index 6d796a13c88..37c5d9f7b5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ChunkingSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ChunkingSettings.g.cs @@ -32,17 +32,11 @@ public ChunkingSettings(int maxChunkSize, string strategy) MaxChunkSize = maxChunkSize; Strategy = strategy; } -#if NET7_0_OR_GREATER - public ChunkingSettings() - { - } -#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 ChunkingSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ChunkingSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,11 +50,7 @@ internal ChunkingSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// This value should not exceed the window size for the associated model. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MaxChunkSize { get; set; } + public required int MaxChunkSize { get; set; } /// /// @@ -139,11 +129,7 @@ internal ChunkingSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Learn more about different chunking strategies in the linked documentation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Strategy { get; set; } + public required string Strategy { get; set; } } public readonly partial struct ChunkingSettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs index e2971467ea1..73c459dc2de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.CompletionPropertyConverter))] public sealed partial class CompletionProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public CompletionProperty() { } -#endif -#if !NET7_0_OR_GREATER - public CompletionProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompletionProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompositeSubField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompositeSubField.g.cs index 70fb97411b2..ce7a16fc47d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompositeSubField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompositeSubField.g.cs @@ -31,28 +31,18 @@ public CompositeSubField(Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType { Type = type; } -#if NET7_0_OR_GREATER - public CompositeSubField() - { - } -#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 CompositeSubField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompositeSubField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType Type { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType Type { get; set; } } public readonly partial struct CompositeSubFieldDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs index 861f5bfaaca..5d50f3caa1e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.ConstantKeywordPropertyConverter))] public sealed partial class ConstantKeywordProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public ConstantKeywordProperty() { } -#endif -#if !NET7_0_OR_GREATER - public ConstantKeywordProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ConstantKeywordProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CountedKeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CountedKeywordProperty.g.cs index 6d2b9590f3c..8d8f693bd3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CountedKeywordProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CountedKeywordProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.CountedKeywordPropertyConverter))] public sealed partial class CountedKeywordProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public CountedKeywordProperty() { } -#endif -#if !NET7_0_OR_GREATER - public CountedKeywordProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CountedKeywordProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DataStreamTimestamp.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DataStreamTimestamp.g.cs index ed228343640..bac0da9984d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DataStreamTimestamp.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DataStreamTimestamp.g.cs @@ -31,28 +31,18 @@ public DataStreamTimestamp(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public DataStreamTimestamp() - { - } -#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 DataStreamTimestamp() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreamTimestamp(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } } public readonly partial struct DataStreamTimestampDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs index 37bebfb2ea9..22aee28888a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.DateNanosPropertyConverter))] public sealed partial class DateNanosProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public DateNanosProperty() { } -#endif -#if !NET7_0_OR_GREATER - public DateNanosProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateNanosProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs index ace56d9eb6c..0ff27ff224b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.DatePropertyConverter))] public sealed partial class DateProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public DateProperty() { } -#endif -#if !NET7_0_OR_GREATER - public DateProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs index c79807a859b..f3e7b99cf08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.DateRangePropertyConverter))] public sealed partial class DateRangeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public DateRangeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public DateRangeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateRangeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs index 8b12e8d95a1..71277f9d99d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs @@ -31,17 +31,11 @@ public DenseVectorIndexOptions(Elastic.Clients.Elasticsearch.Mapping.DenseVector { Type = type; } -#if NET7_0_OR_GREATER - public DenseVectorIndexOptions() - { - } -#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 DenseVectorIndexOptions() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DenseVectorIndexOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -110,11 +104,7 @@ internal DenseVectorIndexOptions(Elastic.Clients.Elasticsearch.Serialization.Jso /// The type of kNN algorithm to use. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType Type { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType Type { get; set; } } public readonly partial struct DenseVectorIndexOptionsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptionsRescoreVector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptionsRescoreVector.g.cs index a099fc4f2c1..d234e2957e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptionsRescoreVector.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptionsRescoreVector.g.cs @@ -31,17 +31,11 @@ public DenseVectorIndexOptionsRescoreVector(float oversample) { Oversample = oversample; } -#if NET7_0_OR_GREATER - public DenseVectorIndexOptionsRescoreVector() - { - } -#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 DenseVectorIndexOptionsRescoreVector() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DenseVectorIndexOptionsRescoreVector(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,11 +51,7 @@ internal DenseVectorIndexOptionsRescoreVector(Elastic.Clients.Elasticsearch.Seri /// valid values are between 1.0 and 10.0 (inclusive), or 0 exactly to disable oversampling. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - float Oversample { get; set; } + public required float Oversample { get; set; } } public readonly partial struct DenseVectorIndexOptionsRescoreVectorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs index bdf2d13a16e..4c001c21b27 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.DenseVectorPropertyConverter))] public sealed partial class DenseVectorProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public DenseVectorProperty() { } -#endif -#if !NET7_0_OR_GREATER - public DenseVectorProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DenseVectorProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs index c876fc9f5eb..f49ea41e568 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.DoubleNumberPropertyConverter))] public sealed partial class DoubleNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public DoubleNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public DoubleNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DoubleNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs index 08981225356..6999998609f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.DoubleRangePropertyConverter))] public sealed partial class DoubleRangeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public DoubleRangeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public DoubleRangeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DoubleRangeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs index 6901f047f80..176c6ba298b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.DynamicPropertyConverter))] public sealed partial class DynamicProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public DynamicProperty() { } -#endif -#if !NET7_0_OR_GREATER - public DynamicProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DynamicProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicTemplate.g.cs index 005c91063f1..c8398d36b67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicTemplate.g.cs @@ -28,16 +28,11 @@ public sealed partial class DynamicTemplate { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public DynamicTemplate() - { - } -#endif -#if !NET7_0_OR_GREATER + public DynamicTemplate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DynamicTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs index e1c1929e13e..122b7dfdfa1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.FieldAliasPropertyConverter))] public sealed partial class FieldAliasProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public FieldAliasProperty() { } -#endif -#if !NET7_0_OR_GREATER - public FieldAliasProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldAliasProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldMapping.g.cs index ea4c80e5978..7445abc9033 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldMapping.g.cs @@ -32,31 +32,17 @@ public FieldMapping(string fullName, System.Collections.Generic.KeyValuePair Mapping { get; set; } + public required string FullName { get; set; } + public required System.Collections.Generic.KeyValuePair Mapping { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldNamesField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldNamesField.g.cs index dfed9e4900d..041dd3c523d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldNamesField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldNamesField.g.cs @@ -31,28 +31,18 @@ public FieldNamesField(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public FieldNamesField() - { - } -#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 FieldNamesField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldNamesField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } } public readonly partial struct FieldNamesFieldDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FlattenedProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FlattenedProperty.g.cs index 9b7689065b5..30115369c0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FlattenedProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FlattenedProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.FlattenedPropertyConverter))] public sealed partial class FlattenedProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public FlattenedProperty() { } -#endif -#if !NET7_0_OR_GREATER - public FlattenedProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FlattenedProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs index 95adab83d8e..94a42b1a74d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.FloatNumberPropertyConverter))] public sealed partial class FloatNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public FloatNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public FloatNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FloatNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs index 32394023eac..f6d3520092f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.FloatRangePropertyConverter))] public sealed partial class FloatRangeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public FloatRangeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public FloatRangeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FloatRangeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs index 8cd9a10d712..c0997486345 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.GeoPointPropertyConverter))] public sealed partial class GeoPointProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public GeoPointProperty() { } -#endif -#if !NET7_0_OR_GREATER - public GeoPointProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoPointProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs index 121aa3561a8..c8f1b063ff7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs @@ -33,16 +33,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.GeoShapePropertyConverter))] public sealed partial class GeoShapeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public GeoShapeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public GeoShapeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoShapeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs index 5317bae307a..9ecdb941603 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.HalfFloatNumberPropertyConverter))] public sealed partial class HalfFloatNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public HalfFloatNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public HalfFloatNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HalfFloatNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs index 566bc5735c4..e390857c84e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.HistogramPropertyConverter))] public sealed partial class HistogramProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public HistogramProperty() { } -#endif -#if !NET7_0_OR_GREATER - public HistogramProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HistogramProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IcuCollationProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IcuCollationProperty.g.cs index 5d87f284758..8cb97f1461b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IcuCollationProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IcuCollationProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.IcuCollationPropertyConverter))] public sealed partial class IcuCollationProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public IcuCollationProperty() { } -#endif -#if !NET7_0_OR_GREATER - public IcuCollationProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IcuCollationProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IndexField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IndexField.g.cs index 84616512fec..e472e89e0c3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IndexField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IndexField.g.cs @@ -31,28 +31,18 @@ public IndexField(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public IndexField() - { - } -#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 IndexField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } } public readonly partial struct IndexFieldDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs index fc4ef9fe4da..26233b0cdd6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.IntegerNumberPropertyConverter))] public sealed partial class IntegerNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public IntegerNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public IntegerNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntegerNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs index 4f144406918..649c7c29394 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.IntegerRangePropertyConverter))] public sealed partial class IntegerRangeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public IntegerRangeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public IntegerRangeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntegerRangeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs index 25de688ccc6..caa327171bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.IpPropertyConverter))] public sealed partial class IpProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public IpProperty() { } -#endif -#if !NET7_0_OR_GREATER - public IpProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs index bdc7c23e328..d049662f2f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.IpRangePropertyConverter))] public sealed partial class IpRangeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public IpRangeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public IpRangeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpRangeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs index 7285d8b0aa5..06ec8e82df4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.JoinPropertyConverter))] public sealed partial class JoinProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public JoinProperty() { } -#endif -#if !NET7_0_OR_GREATER - public JoinProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JoinProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/KeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/KeywordProperty.g.cs index 36e1d2fa90a..d0203a88512 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/KeywordProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/KeywordProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.KeywordPropertyConverter))] public sealed partial class KeywordProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public KeywordProperty() { } -#endif -#if !NET7_0_OR_GREATER - public KeywordProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeywordProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs index 8b1b61888bd..f0a502b7759 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.LongNumberPropertyConverter))] public sealed partial class LongNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public LongNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public LongNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LongNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs index e644e596ab6..8615389edee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.LongRangePropertyConverter))] public sealed partial class LongRangeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public LongRangeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public LongRangeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LongRangeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/MatchOnlyTextProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/MatchOnlyTextProperty.g.cs index 3e77bb707f5..0821705f065 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/MatchOnlyTextProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/MatchOnlyTextProperty.g.cs @@ -35,16 +35,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.MatchOnlyTextPropertyConverter))] public sealed partial class MatchOnlyTextProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public MatchOnlyTextProperty() { } -#endif -#if !NET7_0_OR_GREATER - public MatchOnlyTextProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchOnlyTextProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs index a24cbd0966c..58c48a7215a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.Murmur3HashPropertyConverter))] public sealed partial class Murmur3HashProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public Murmur3HashProperty() { } -#endif -#if !NET7_0_OR_GREATER - public Murmur3HashProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Murmur3HashProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs index 72511647a22..145365c6c92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.NestedPropertyConverter))] public sealed partial class NestedProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public NestedProperty() { } -#endif -#if !NET7_0_OR_GREATER - public NestedProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NestedProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs index 75b6d77dbe0..539a633296e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.ObjectPropertyConverter))] public sealed partial class ObjectProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public ObjectProperty() { } -#endif -#if !NET7_0_OR_GREATER - public ObjectProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ObjectProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs index 998a5a48bfb..6d55ea61ea6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.PassthroughObjectPropertyConverter))] public sealed partial class PassthroughObjectProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public PassthroughObjectProperty() { } -#endif -#if !NET7_0_OR_GREATER - public PassthroughObjectProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PassthroughObjectProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs index eb291a37a3f..bca98d1bf9c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.PercolatorPropertyConverter))] public sealed partial class PercolatorProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public PercolatorProperty() { } -#endif -#if !NET7_0_OR_GREATER - public PercolatorProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PercolatorProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PointProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PointProperty.g.cs index 45dec877793..5f4bf06d388 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PointProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PointProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.PointPropertyConverter))] public sealed partial class PointProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public PointProperty() { } -#endif -#if !NET7_0_OR_GREATER - public PointProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PointProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs index 5e8c81803b7..6e7cc4e149f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.RankFeaturePropertyConverter))] public sealed partial class RankFeatureProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public RankFeatureProperty() { } -#endif -#if !NET7_0_OR_GREATER - public RankFeatureProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankFeatureProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeaturesProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeaturesProperty.g.cs index 7809ecb99a0..a48b6adb3f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeaturesProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeaturesProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.RankFeaturesPropertyConverter))] public sealed partial class RankFeaturesProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public RankFeaturesProperty() { } -#endif -#if !NET7_0_OR_GREATER - public RankFeaturesProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankFeaturesProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankVectorProperty.g.cs index 07a41aac7b2..f26e06db5b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankVectorProperty.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.RankVectorPropertyConverter))] public sealed partial class RankVectorProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public RankVectorProperty() { } -#endif -#if !NET7_0_OR_GREATER - public RankVectorProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankVectorProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RoutingField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RoutingField.g.cs index 1e23b7ef4f4..c09e8aff161 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RoutingField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RoutingField.g.cs @@ -31,28 +31,18 @@ public RoutingField(bool required) { Required = required; } -#if NET7_0_OR_GREATER - public RoutingField() - { - } -#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 RoutingField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RoutingField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Required { get; set; } + public required bool Required { get; set; } } public readonly partial struct RoutingFieldDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeField.g.cs index 617f40d0856..918a5ed7a94 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeField.g.cs @@ -31,17 +31,11 @@ public RuntimeField(Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType type) { Type = type; } -#if NET7_0_OR_GREATER - public RuntimeField() - { - } -#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 RuntimeField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RuntimeField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -102,11 +96,7 @@ internal RuntimeField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// Field type, which can be: boolean, composite, date, double, geo_point, ip,keyword, long, or lookup. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType Type { get; set; } + public required Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType Type { get; set; } } public readonly partial struct RuntimeFieldDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeFieldFetchFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeFieldFetchFields.g.cs index ef5966c3c49..f3baaffdebf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeFieldFetchFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeFieldFetchFields.g.cs @@ -31,28 +31,18 @@ public RuntimeFieldFetchFields(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public RuntimeFieldFetchFields() - { - } -#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 RuntimeFieldFetchFields() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RuntimeFieldFetchFields(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? Format { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs index a44ba0398ab..1ba83dbcc4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.ScaledFloatNumberPropertyConverter))] public sealed partial class ScaledFloatNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public ScaledFloatNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public ScaledFloatNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScaledFloatNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs index f86ba14cb17..85c69aded41 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.SearchAsYouTypePropertyConverter))] public sealed partial class SearchAsYouTypeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public SearchAsYouTypeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public SearchAsYouTypeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchAsYouTypeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextIndexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextIndexOptions.g.cs index d5060575a71..f64f58e09c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextIndexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextIndexOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.SemanticTextIndexOptionsConverter))] public sealed partial class SemanticTextIndexOptions { -#if NET7_0_OR_GREATER public SemanticTextIndexOptions() { } -#endif -#if !NET7_0_OR_GREATER - public SemanticTextIndexOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SemanticTextIndexOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextProperty.g.cs index 6e55748dd85..3f110ceb9fb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.SemanticTextPropertyConverter))] public sealed partial class SemanticTextProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public SemanticTextProperty() { } -#endif -#if !NET7_0_OR_GREATER - public SemanticTextProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SemanticTextProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs index e57a8737ca0..65f153a2939 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs @@ -33,16 +33,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.ShapePropertyConverter))] public sealed partial class ShapeProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public ShapeProperty() { } -#endif -#if !NET7_0_OR_GREATER - public ShapeProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShapeProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs index c43eaea06c9..eb2d6c1a135 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.ShortNumberPropertyConverter))] public sealed partial class ShortNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public ShortNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public ShortNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShortNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SizeField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SizeField.g.cs index 774bef481e7..c565f47edea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SizeField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SizeField.g.cs @@ -31,28 +31,18 @@ public SizeField(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public SizeField() - { - } -#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 SizeField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SizeField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } } public readonly partial struct SizeFieldDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SourceField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SourceField.g.cs index 00c64d6a6f8..80a39637596 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SourceField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SourceField.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.SourceFieldConverter))] public sealed partial class SourceField { -#if NET7_0_OR_GREATER public SourceField() { } -#endif -#if !NET7_0_OR_GREATER - public SourceField() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SourceField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorIndexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorIndexOptions.g.cs index 8ac80e9820c..74222c455d1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorIndexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorIndexOptions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.SparseVectorIndexOptionsConverter))] public sealed partial class SparseVectorIndexOptions { -#if NET7_0_OR_GREATER public SparseVectorIndexOptions() { } -#endif -#if !NET7_0_OR_GREATER - public SparseVectorIndexOptions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SparseVectorIndexOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorProperty.g.cs index 2f7e6d4b628..4a9ddef7bfa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.SparseVectorPropertyConverter))] public sealed partial class SparseVectorProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public SparseVectorProperty() { } -#endif -#if !NET7_0_OR_GREATER - public SparseVectorProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SparseVectorProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SuggestContext.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SuggestContext.g.cs index 2ffd57b4351..ca53f8f6c70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SuggestContext.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SuggestContext.g.cs @@ -32,35 +32,21 @@ public SuggestContext(Elastic.Clients.Elasticsearch.Name name, string type) Name = name; Type = type; } -#if NET7_0_OR_GREATER - public SuggestContext() - { - } -#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 SuggestContext() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SuggestContext(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get; set; } + public required Elastic.Clients.Elasticsearch.Name Name { get; set; } public Elastic.Clients.Elasticsearch.Field? Path { get; set; } public Elastic.Clients.Elasticsearch.Union? Precision { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } public readonly partial struct SuggestContextDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextIndexPrefixes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextIndexPrefixes.g.cs index fdfd09b0892..8ec33772965 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextIndexPrefixes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextIndexPrefixes.g.cs @@ -32,33 +32,19 @@ public TextIndexPrefixes(int maxChars, int minChars) MaxChars = maxChars; MinChars = minChars; } -#if NET7_0_OR_GREATER - public TextIndexPrefixes() - { - } -#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 TextIndexPrefixes() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextIndexPrefixes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int MaxChars { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int MinChars { get; set; } + public required int MaxChars { get; set; } + public required int MinChars { get; set; } } public readonly partial struct TextIndexPrefixesDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextProperty.g.cs index efb45617c5f..6669124106d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.TextPropertyConverter))] public sealed partial class TextProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public TextProperty() { } -#endif -#if !NET7_0_OR_GREATER - public TextProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs index 25d051d59b0..b2ee93c2623 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.TokenCountPropertyConverter))] public sealed partial class TokenCountProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public TokenCountProperty() { } -#endif -#if !NET7_0_OR_GREATER - public TokenCountProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TokenCountProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs index 54a7f73ed7e..465575b9480 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.TypeMappingConverter))] public sealed partial class TypeMapping { -#if NET7_0_OR_GREATER public TypeMapping() { } -#endif -#if !NET7_0_OR_GREATER - public TypeMapping() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TypeMapping(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs index 7dc43dd9d0a..96c47e2b720 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.UnsignedLongNumberPropertyConverter))] public sealed partial class UnsignedLongNumberProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public UnsignedLongNumberProperty() { } -#endif -#if !NET7_0_OR_GREATER - public UnsignedLongNumberProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UnsignedLongNumberProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs index db484c1d269..05cda54f5ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.VersionPropertyConverter))] public sealed partial class VersionProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public VersionProperty() { } -#endif -#if !NET7_0_OR_GREATER - public VersionProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal VersionProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs index ec92fb2d131..035203b543d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Mapping; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Mapping.Json.WildcardPropertyConverter))] public sealed partial class WildcardProperty : Elastic.Clients.Elasticsearch.Mapping.IProperty { -#if NET7_0_OR_GREATER public WildcardProperty() { } -#endif -#if !NET7_0_OR_GREATER - public WildcardProperty() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WildcardProperty(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MergesStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MergesStats.g.cs index ce452c41f60..d26807d9c83 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MergesStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MergesStats.g.cs @@ -40,77 +40,31 @@ public MergesStats(long current, long currentDocs, long currentSizeInBytes, long TotalThrottledTimeInMillis = totalThrottledTimeInMillis; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public MergesStats() - { - } -#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 MergesStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MergesStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Current { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CurrentDocs { get; set; } + public required long Current { get; set; } + public required long CurrentDocs { get; set; } public string? CurrentSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CurrentSizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long CurrentSizeInBytes { get; set; } + public required long Total { get; set; } public string? TotalAutoThrottle { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalAutoThrottleInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalDocs { get; set; } + public required long TotalAutoThrottleInBytes { get; set; } + public required long TotalDocs { get; set; } public string? TotalSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeInBytes { get; set; } + public required long TotalSizeInBytes { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalStoppedTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalStoppedTimeInMillis { get; set; } + public required System.TimeSpan TotalStoppedTimeInMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalThrottledTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalThrottledTimeInMillis { get; set; } + public required System.TimeSpan TotalThrottledTimeInMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NestedSortValue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NestedSortValue.g.cs index ddb22b9d9fb..40ceef19901 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NestedSortValue.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NestedSortValue.g.cs @@ -31,17 +31,11 @@ public NestedSortValue(Elastic.Clients.Elasticsearch.Field path) { Path = path; } -#if NET7_0_OR_GREATER - public NestedSortValue() - { - } -#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 NestedSortValue() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NestedSortValue(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,11 +45,7 @@ internal NestedSortValue(Elastic.Clients.Elasticsearch.Serialization.JsonConstru public Elastic.Clients.Elasticsearch.QueryDsl.Query? Filter { get; set; } public int? MaxChildren { get; set; } public Elastic.Clients.Elasticsearch.NestedSortValue? Nested { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Path { get; set; } + public required Elastic.Clients.Elasticsearch.Field Path { get; set; } } public readonly partial struct NestedSortValueDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeAttributes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeAttributes.g.cs index 16f4508a82b..3c047016229 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeAttributes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeAttributes.g.cs @@ -34,17 +34,11 @@ public NodeAttributes(System.Collections.Generic.IReadOnlyDictionary /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } /// /// /// The ephemeral ID of the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string EphemeralId { get; set; } + public required string EphemeralId { get; set; } /// /// @@ -85,20 +71,12 @@ internal NodeAttributes(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The unique identifier of the node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// /// The host and port where transport HTTP connections are accepted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } + public required string TransportAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeShard.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeShard.g.cs index 3524e270f21..c7f1560988b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeShard.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeShard.g.cs @@ -34,17 +34,11 @@ public NodeShard(string index, bool primary, int shard, Elastic.Clients.Elastics Shard = shard; State = state; } -#if NET7_0_OR_GREATER - public NodeShard() - { - } -#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 NodeShard() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeShard(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,29 +46,13 @@ internal NodeShard(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe } public System.Collections.Generic.IReadOnlyDictionary? AllocationId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } public string? Node { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Primary { get; set; } + public required bool Primary { get; set; } public System.Collections.Generic.IReadOnlyDictionary? RecoverySource { get; set; } public string? RelocatingNode { get; set; } public Elastic.Clients.Elasticsearch.RelocationFailureInfo? RelocationFailureInfo { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Shard { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexManagement.ShardRoutingState State { get; set; } + public required int Shard { get; set; } + public required Elastic.Clients.Elasticsearch.IndexManagement.ShardRoutingState State { get; set; } public Elastic.Clients.Elasticsearch.Cluster.UnassignedInformation? UnassignedInfo { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs index 11c87866e1c..f42680e7d70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs @@ -38,17 +38,11 @@ public NodeStatistics(int failed, int successful, int total) Successful = successful; Total = total; } -#if NET7_0_OR_GREATER - public NodeStatistics() - { - } -#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 NodeStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal NodeStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Failed { get; set; } + public required int Failed { get; set; } public System.Collections.Generic.IReadOnlyCollection? Failures { get; set; } /// @@ -72,20 +62,12 @@ internal NodeStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Number of nodes that responded successfully to the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Successful { get; set; } + public required int Successful { get; set; } /// /// /// Total number of nodes selected by the request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/AdaptiveSelection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/AdaptiveSelection.g.cs index e428e536a0f..6361d789f89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/AdaptiveSelection.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/AdaptiveSelection.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.AdaptiveSelectionConverter))] public sealed partial class AdaptiveSelection { -#if NET7_0_OR_GREATER public AdaptiveSelection() { } -#endif -#if !NET7_0_OR_GREATER - public AdaptiveSelection() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AdaptiveSelection(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Breaker.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Breaker.g.cs index 4513a759a18..6e3b86db190 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Breaker.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Breaker.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.BreakerConverter))] public sealed partial class Breaker { -#if NET7_0_OR_GREATER public Breaker() { } -#endif -#if !NET7_0_OR_GREATER - public Breaker() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Breaker(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cgroup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cgroup.g.cs index 05b159b44fd..bf3942bf299 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cgroup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cgroup.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.CgroupConverter))] public sealed partial class Cgroup { -#if NET7_0_OR_GREATER public Cgroup() { } -#endif -#if !NET7_0_OR_GREATER - public Cgroup() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Cgroup(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpu.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpu.g.cs index faf61a6d8a7..6d0ca16a15d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpu.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpu.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.CgroupCpuConverter))] public sealed partial class CgroupCpu { -#if NET7_0_OR_GREATER public CgroupCpu() { } -#endif -#if !NET7_0_OR_GREATER - public CgroupCpu() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CgroupCpu(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpuStat.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpuStat.g.cs index 3e9e70c5bcb..9e4bedc8723 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpuStat.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpuStat.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.CgroupCpuStatConverter))] public sealed partial class CgroupCpuStat { -#if NET7_0_OR_GREATER public CgroupCpuStat() { } -#endif -#if !NET7_0_OR_GREATER - public CgroupCpuStat() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CgroupCpuStat(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupMemory.g.cs index 3bcb4e6c29a..3839ac28ac7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupMemory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupMemory.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.CgroupMemoryConverter))] public sealed partial class CgroupMemory { -#if NET7_0_OR_GREATER public CgroupMemory() { } -#endif -#if !NET7_0_OR_GREATER - public CgroupMemory() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CgroupMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Client.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Client.g.cs index 8f546fa21a1..59dfb451785 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Client.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Client.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ClientConverter))] public sealed partial class Client { -#if NET7_0_OR_GREATER public Client() { } -#endif -#if !NET7_0_OR_GREATER - public Client() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Client(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterAppliedStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterAppliedStats.g.cs index 34fad6c4261..4af13291616 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterAppliedStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterAppliedStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ClusterAppliedStatsConverter))] public sealed partial class ClusterAppliedStats { -#if NET7_0_OR_GREATER public ClusterAppliedStats() { } -#endif -#if !NET7_0_OR_GREATER - public ClusterAppliedStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterAppliedStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateQueue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateQueue.g.cs index 8c852a063d1..55ae0564119 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateQueue.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateQueue.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ClusterStateQueueConverter))] public sealed partial class ClusterStateQueue { -#if NET7_0_OR_GREATER public ClusterStateQueue() { } -#endif -#if !NET7_0_OR_GREATER - public ClusterStateQueue() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterStateQueue(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateUpdate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateUpdate.g.cs index 014b41f9bbf..826901f5d63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateUpdate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateUpdate.g.cs @@ -31,17 +31,11 @@ public ClusterStateUpdate(long count) { Count = count; } -#if NET7_0_OR_GREATER - public ClusterStateUpdate() - { - } -#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 ClusterStateUpdate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterStateUpdate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -111,11 +105,7 @@ internal ClusterStateUpdate(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// The number of cluster state update attempts that did not change the cluster state since the node started. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Context.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Context.g.cs index 69110a71324..6dd71824b84 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Context.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Context.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ContextConverter))] public sealed partial class Context { -#if NET7_0_OR_GREATER public Context() { } -#endif -#if !NET7_0_OR_GREATER - public Context() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Context(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cpu.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cpu.g.cs index ed3911e4995..9877bc31398 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cpu.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cpu.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.CpuConverter))] public sealed partial class Cpu { -#if NET7_0_OR_GREATER public Cpu() { } -#endif -#if !NET7_0_OR_GREATER - public Cpu() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Cpu(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CpuAcct.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CpuAcct.g.cs index 03053a73ec9..d91730caeeb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CpuAcct.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CpuAcct.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.CpuAcctConverter))] public sealed partial class CpuAcct { -#if NET7_0_OR_GREATER public CpuAcct() { } -#endif -#if !NET7_0_OR_GREATER - public CpuAcct() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CpuAcct(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DataPathStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DataPathStats.g.cs index 19827c61797..155fe3a897e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DataPathStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DataPathStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.DataPathStatsConverter))] public sealed partial class DataPathStats { -#if NET7_0_OR_GREATER public DataPathStats() { } -#endif -#if !NET7_0_OR_GREATER - public DataPathStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataPathStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DeprecationIndexing.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DeprecationIndexing.g.cs index 035a1faeb3f..06b8678b6ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DeprecationIndexing.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DeprecationIndexing.g.cs @@ -31,26 +31,16 @@ public DeprecationIndexing(Elastic.Clients.Elasticsearch.Union ena { Enabled = enabled; } -#if NET7_0_OR_GREATER - public DeprecationIndexing() - { - } -#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 DeprecationIndexing() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DeprecationIndexing(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Union Enabled { get; set; } + public required Elastic.Clients.Elasticsearch.Union Enabled { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Discovery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Discovery.g.cs index 48f4d38c0ee..eb0f7679146 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Discovery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Discovery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.DiscoveryConverter))] public sealed partial class Discovery { -#if NET7_0_OR_GREATER public Discovery() { } -#endif -#if !NET7_0_OR_GREATER - public Discovery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Discovery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs index f54f43a5e2d..179c4157c1a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ExtendedMemoryStatsConverter))] public sealed partial class ExtendedMemoryStats { -#if NET7_0_OR_GREATER public ExtendedMemoryStats() { } -#endif -#if !NET7_0_OR_GREATER - public ExtendedMemoryStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExtendedMemoryStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystem.g.cs index 5e3eb54a4b0..280ac473c95 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystem.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.FileSystemConverter))] public sealed partial class FileSystem { -#if NET7_0_OR_GREATER public FileSystem() { } -#endif -#if !NET7_0_OR_GREATER - public FileSystem() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FileSystem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystemTotal.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystemTotal.g.cs index 0294393089d..2833b42c701 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystemTotal.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystemTotal.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.FileSystemTotalConverter))] public sealed partial class FileSystemTotal { -#if NET7_0_OR_GREATER public FileSystemTotal() { } -#endif -#if !NET7_0_OR_GREATER - public FileSystemTotal() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FileSystemTotal(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollector.g.cs index 6d575b6d4c7..3e35d5018b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollector.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollector.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.GarbageCollectorConverter))] public sealed partial class GarbageCollector { -#if NET7_0_OR_GREATER public GarbageCollector() { } -#endif -#if !NET7_0_OR_GREATER - public GarbageCollector() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GarbageCollector(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs index 11bb17b19a7..32732e49763 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.GarbageCollectorTotalConverter))] public sealed partial class GarbageCollectorTotal { -#if NET7_0_OR_GREATER public GarbageCollectorTotal() { } -#endif -#if !NET7_0_OR_GREATER - public GarbageCollectorTotal() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GarbageCollectorTotal(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.Converters.g.cs index bb5b6340e83..6279dcc3679 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.Converters.g.cs @@ -35,7 +35,7 @@ public override Elastic.Clients.Elasticsearch.Nodes.Http Read(ref System.Text.Js reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue?> propClients = default; LocalJsonValue propCurrentOpen = default; - LocalJsonValue> propRoutes = default; + LocalJsonValue?> propRoutes = default; LocalJsonValue propTotalOpened = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { @@ -49,7 +49,7 @@ public override Elastic.Clients.Elasticsearch.Nodes.Http Read(ref System.Text.Js continue; } - if (propRoutes.TryReadProperty(ref reader, options, PropRoutes, static System.Collections.Generic.IReadOnlyDictionary (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, null)!)) + if (propRoutes.TryReadProperty(ref reader, options, PropRoutes, static System.Collections.Generic.IReadOnlyDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, null))) { continue; } @@ -83,7 +83,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropClients, value.Clients, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection? v) => w.WriteCollectionValue(o, v, null)); writer.WriteProperty(options, PropCurrentOpen, value.CurrentOpen, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); - writer.WriteProperty(options, PropRoutes, value.Routes, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary v) => w.WriteDictionaryValue(o, v, null, null)); + writer.WriteProperty(options, PropRoutes, value.Routes, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary? v) => w.WriteDictionaryValue(o, v, null, null)); writer.WriteProperty(options, PropTotalOpened, value.TotalOpened, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs index 4cd0184f9d9..16852330662 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs @@ -26,22 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.HttpConverter))] public sealed partial class Http { - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public Http(System.Collections.Generic.IReadOnlyDictionary routes) - { - Routes = routes; - } -#if NET7_0_OR_GREATER public Http() { } -#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 Http() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Http(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +56,7 @@ internal Http(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentine /// Detailed HTTP stats broken down by route /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Routes { get; set; } + public System.Collections.Generic.IReadOnlyDictionary? Routes { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRoute.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRoute.g.cs index a76c5ec8057..727c59688cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRoute.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRoute.g.cs @@ -32,31 +32,17 @@ public HttpRoute(Elastic.Clients.Elasticsearch.Nodes.HttpRouteRequests requests, Requests = requests; Responses = responses; } -#if NET7_0_OR_GREATER - public HttpRoute() - { - } -#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 HttpRoute() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HttpRoute(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.HttpRouteRequests Requests { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.HttpRouteResponses Responses { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.HttpRouteRequests Requests { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.HttpRouteResponses Responses { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteRequests.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteRequests.g.cs index b40fc4ba65b..d3027c3087f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteRequests.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteRequests.g.cs @@ -33,36 +33,18 @@ public HttpRouteRequests(long count, System.Collections.Generic.IReadOnlyCollect SizeHistogram = sizeHistogram; TotalSizeInBytes = totalSizeInBytes; } -#if NET7_0_OR_GREATER - public HttpRouteRequests() - { - } -#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 HttpRouteRequests() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HttpRouteRequests(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection SizeHistogram { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeInBytes { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection SizeHistogram { get; set; } + public required long TotalSizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteResponses.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteResponses.g.cs index 7085c9170c5..4bd8ce33cc8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteResponses.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteResponses.g.cs @@ -34,41 +34,19 @@ public HttpRouteResponses(long count, System.Collections.Generic.IReadOnlyCollec SizeHistogram = sizeHistogram; TotalSizeInBytes = totalSizeInBytes; } -#if NET7_0_OR_GREATER - public HttpRouteResponses() - { - } -#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 HttpRouteResponses() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HttpRouteResponses(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection HandlingTimeHistogram { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection SizeHistogram { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeInBytes { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyCollection HandlingTimeHistogram { get; set; } + public required System.Collections.Generic.IReadOnlyCollection SizeHistogram { get; set; } + public required long TotalSizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressure.g.cs index 3a5d4d68c3d..e7bace69ca7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressure.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.IndexingPressureConverter))] public sealed partial class IndexingPressure { -#if NET7_0_OR_GREATER public IndexingPressure() { } -#endif -#if !NET7_0_OR_GREATER - public IndexingPressure() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexingPressure(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressureMemory.g.cs index 3e0cd72caac..c66c0e07eb6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressureMemory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressureMemory.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.IndexingPressureMemoryConverter))] public sealed partial class IndexingPressureMemory { -#if NET7_0_OR_GREATER public IndexingPressureMemory() { } -#endif -#if !NET7_0_OR_GREATER - public IndexingPressureMemory() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexingPressureMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs index aee91b12948..a3e60eac3a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.IngestConverter))] public sealed partial class Ingest { -#if NET7_0_OR_GREATER public Ingest() { } -#endif -#if !NET7_0_OR_GREATER - public Ingest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Ingest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestStats.g.cs index cab1afacfde..3af66a7f891 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestStats.g.cs @@ -37,17 +37,11 @@ public IngestStats(long count, long current, long failed, long ingestedAsFirstPi ProducedAsFirstPipelineInBytes = producedAsFirstPipelineInBytes; TimeInMillis = timeInMillis; } -#if NET7_0_OR_GREATER - public IngestStats() - { - } -#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 IngestStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IngestStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,33 +53,21 @@ internal IngestStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Total number of documents ingested during the lifetime of this node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } /// /// /// Total number of documents currently being ingested. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Current { get; set; } + public required long Current { get; set; } /// /// /// Total number of failed ingest operations during the lifetime of this node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Failed { get; set; } + public required long Failed { get; set; } /// /// @@ -94,22 +76,14 @@ internal IngestStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long IngestedAsFirstPipelineInBytes { get; set; } + public required long IngestedAsFirstPipelineInBytes { get; set; } /// /// /// Total number of ingest processors. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection> Processors { get; set; } + public required System.Collections.Generic.IReadOnlyCollection> Processors { get; set; } /// /// @@ -119,20 +93,12 @@ internal IngestStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// In situations where there are subsequent pipelines, the value represents the size of the document after all pipelines have run. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long ProducedAsFirstPipelineInBytes { get; set; } + public required long ProducedAsFirstPipelineInBytes { get; set; } /// /// /// Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInMillis { get; set; } + public required System.TimeSpan TimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs index a5c8889b09d..0135382a669 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs @@ -34,17 +34,11 @@ public IngestTotal(long count, long current, long failed, System.TimeSpan timeIn Failed = failed; TimeInMillis = timeInMillis; } -#if NET7_0_OR_GREATER - public IngestTotal() - { - } -#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 IngestTotal() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IngestTotal(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,42 +50,26 @@ internal IngestTotal(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Total number of documents ingested during the lifetime of this node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } /// /// /// Total number of documents currently being ingested. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Current { get; set; } + public required long Current { get; set; } /// /// /// Total number of failed ingest operations during the lifetime of this node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Failed { get; set; } + public required long Failed { get; set; } /// /// /// Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInMillis { get; set; } + public required System.TimeSpan TimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStatDevice.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStatDevice.g.cs index 9c4c86c5899..29b2c6ca80a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStatDevice.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStatDevice.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.IoStatDeviceConverter))] public sealed partial class IoStatDevice { -#if NET7_0_OR_GREATER public IoStatDevice() { } -#endif -#if !NET7_0_OR_GREATER - public IoStatDevice() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IoStatDevice(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStats.g.cs index 7c14e52c61b..1d701904f7f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.IoStatsConverter))] public sealed partial class IoStats { -#if NET7_0_OR_GREATER public IoStats() { } -#endif -#if !NET7_0_OR_GREATER - public IoStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IoStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Jvm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Jvm.g.cs index 0b9ff7f8a3f..a8da07f07d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Jvm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Jvm.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.JvmConverter))] public sealed partial class Jvm { -#if NET7_0_OR_GREATER public Jvm() { } -#endif -#if !NET7_0_OR_GREATER - public Jvm() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Jvm(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmClasses.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmClasses.g.cs index 6f03027150a..64690e8e49e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmClasses.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmClasses.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.JvmClassesConverter))] public sealed partial class JvmClasses { -#if NET7_0_OR_GREATER public JvmClasses() { } -#endif -#if !NET7_0_OR_GREATER - public JvmClasses() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JvmClasses(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmMemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmMemoryStats.g.cs index f2f8286c3d7..7a2d5f02790 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmMemoryStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmMemoryStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.JvmMemoryStatsConverter))] public sealed partial class JvmMemoryStats { -#if NET7_0_OR_GREATER public JvmMemoryStats() { } -#endif -#if !NET7_0_OR_GREATER - public JvmMemoryStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JvmMemoryStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmThreads.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmThreads.g.cs index dc17c2b465e..8ee15cb0f51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmThreads.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmThreads.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.JvmThreadsConverter))] public sealed partial class JvmThreads { -#if NET7_0_OR_GREATER public JvmThreads() { } -#endif -#if !NET7_0_OR_GREATER - public JvmThreads() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal JvmThreads(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/KeyedProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/KeyedProcessor.g.cs index b6bfbad7f4b..15dbe9371a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/KeyedProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/KeyedProcessor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.KeyedProcessorConverter))] public sealed partial class KeyedProcessor { -#if NET7_0_OR_GREATER public KeyedProcessor() { } -#endif -#if !NET7_0_OR_GREATER - public KeyedProcessor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KeyedProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/MemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/MemoryStats.g.cs index dda9e759960..7bc2b82e53d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/MemoryStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/MemoryStats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.MemoryStatsConverter))] public sealed partial class MemoryStats { -#if NET7_0_OR_GREATER public MemoryStats() { } -#endif -#if !NET7_0_OR_GREATER - public MemoryStats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MemoryStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeBufferPool.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeBufferPool.g.cs index 022c733fe00..95c02e18d1f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeBufferPool.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeBufferPool.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeBufferPoolConverter))] public sealed partial class NodeBufferPool { -#if NET7_0_OR_GREATER public NodeBufferPool() { } -#endif -#if !NET7_0_OR_GREATER - public NodeBufferPool() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeBufferPool(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfo.g.cs index cc43e66e1c9..d9b98bc6942 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfo.g.cs @@ -43,17 +43,11 @@ public NodeInfo(System.Collections.Generic.IReadOnlyDictionary a TransportVersion = transportVersion; Version = version; } -#if NET7_0_OR_GREATER - public NodeInfo() - { - } -#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 NodeInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,54 +55,26 @@ internal NodeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen } public System.Collections.Generic.IReadOnlyDictionary? Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string BuildFlavor { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + public required string BuildFlavor { get; set; } /// /// /// Short hash of the last git commit in this release. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string BuildHash { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string BuildType { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary ComponentVersions { get; set; } + public required string BuildHash { get; set; } + public required string BuildType { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary ComponentVersions { get; set; } /// /// /// The node’s host name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Host { get; set; } + public required string Host { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoHttp? Http { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexVersion { get; set; } + public required long IndexVersion { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngest? Ingest { get; set; } /// @@ -116,11 +82,7 @@ internal NodeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// The node’s IP address. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Ip { get; set; } + public required string Ip { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeJvmInfo? Jvm { get; set; } public System.Collections.Generic.IReadOnlyCollection? Modules { get; set; } @@ -129,20 +91,12 @@ internal NodeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// The node's name /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeOperatingSystemInfo? Os { get; set; } public System.Collections.Generic.IReadOnlyCollection? Plugins { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeProcessInfo? Process { get; set; } public Elastic.Clients.Elasticsearch.Nodes.RemoveClusterServer? RemoteClusterServer { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettings? Settings { get; set; } public System.Collections.Generic.IReadOnlyDictionary? ThreadPool { get; set; } @@ -166,25 +120,13 @@ internal NodeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// Host and port where transport HTTP connections are accepted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string TransportAddress { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TransportVersion { get; set; } + public required string TransportAddress { get; set; } + public required long TransportVersion { get; set; } /// /// /// Elasticsearch version running on this node. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAction.g.cs index 14ff68ec91a..fb3fa7f740e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAction.g.cs @@ -31,26 +31,16 @@ public NodeInfoAction(string destructiveRequiresName) { DestructiveRequiresName = destructiveRequiresName; } -#if NET7_0_OR_GREATER - public NodeInfoAction() - { - } -#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 NodeInfoAction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoAction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string DestructiveRequiresName { get; set; } + public required string DestructiveRequiresName { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAggregation.g.cs index 3709c1bd767..10c2916df3c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAggregation.g.cs @@ -31,26 +31,16 @@ public NodeInfoAggregation(System.Collections.Generic.IReadOnlyCollection Types { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Types { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs index f506b655e61..5ba15e81941 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs @@ -31,26 +31,16 @@ public NodeInfoBootstrap(string memoryLock) { MemoryLock = memoryLock; } -#if NET7_0_OR_GREATER - public NodeInfoBootstrap() - { - } -#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 NodeInfoBootstrap() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoBootstrap(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string MemoryLock { get; set; } + public required string MemoryLock { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoClient.g.cs index 3fde3ad2b42..3dfd2f46f6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoClient.g.cs @@ -31,26 +31,16 @@ public NodeInfoClient(string type) { Type = type; } -#if NET7_0_OR_GREATER - public NodeInfoClient() - { - } -#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 NodeInfoClient() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoClient(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoDiscover.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoDiscover.g.cs index dfd40346dff..4161696696e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoDiscover.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoDiscover.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeInfoDiscoverConverter))] public sealed partial class NodeInfoDiscover { -#if NET7_0_OR_GREATER public NodeInfoDiscover() { } -#endif -#if !NET7_0_OR_GREATER - public NodeInfoDiscover() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoDiscover(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoHttp.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoHttp.g.cs index f8b035a3b44..04a25a59ce9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoHttp.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoHttp.g.cs @@ -33,37 +33,19 @@ public NodeInfoHttp(System.Collections.Generic.IReadOnlyCollection bound MaxContentLengthInBytes = maxContentLengthInBytes; PublishAddress = publishAddress; } -#if NET7_0_OR_GREATER - public NodeInfoHttp() - { - } -#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 NodeInfoHttp() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoHttp(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection BoundAddress { get; set; } + public required System.Collections.Generic.IReadOnlyCollection BoundAddress { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? MaxContentLength { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MaxContentLengthInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string PublishAddress { get; set; } + public required long MaxContentLengthInBytes { get; set; } + public required string PublishAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngest.g.cs index d22cf4d513a..0a79dd7ca04 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngest.g.cs @@ -31,26 +31,16 @@ public NodeInfoIngest(System.Collections.Generic.IReadOnlyCollection Processors { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Processors { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs index 8f876515db1..b4c4a3a73b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs @@ -31,26 +31,16 @@ public NodeInfoIngestDownloader(string enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public NodeInfoIngestDownloader() - { - } -#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 NodeInfoIngestDownloader() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoIngestDownloader(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Enabled { get; set; } + public required string Enabled { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs index d929ad10a8c..4db2c0caad0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs @@ -31,26 +31,16 @@ public NodeInfoIngestInfo(Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestDown { Downloader = downloader; } -#if NET7_0_OR_GREATER - public NodeInfoIngestInfo() - { - } -#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 NodeInfoIngestInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoIngestInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestDownloader Downloader { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestDownloader Downloader { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs index 1fb15316a25..8a8fe5d2f73 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs @@ -31,26 +31,16 @@ public NodeInfoIngestProcessor(string type) { Type = type; } -#if NET7_0_OR_GREATER - public NodeInfoIngestProcessor() - { - } -#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 NodeInfoIngestProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoIngestProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs index d12873a0f04..81c94db36f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs @@ -35,17 +35,11 @@ public NodeInfoJvmMemory(long directMaxInBytes, long heapInitInBytes, long heapM NonHeapInitInBytes = nonHeapInitInBytes; NonHeapMaxInBytes = nonHeapMaxInBytes; } -#if NET7_0_OR_GREATER - public NodeInfoJvmMemory() - { - } -#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 NodeInfoJvmMemory() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoJvmMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,33 +47,13 @@ internal NodeInfoJvmMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConst } public Elastic.Clients.Elasticsearch.ByteSize? DirectMax { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DirectMaxInBytes { get; set; } + public required long DirectMaxInBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? HeapInit { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long HeapInitInBytes { get; set; } + public required long HeapInitInBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? HeapMax { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long HeapMaxInBytes { get; set; } + public required long HeapMaxInBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? NonHeapInit { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NonHeapInitInBytes { get; set; } + public required long NonHeapInitInBytes { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? NonHeapMax { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NonHeapMaxInBytes { get; set; } + public required long NonHeapMaxInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoMemory.g.cs index aa0fd22d6d1..9634b81ff02 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoMemory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoMemory.g.cs @@ -32,31 +32,17 @@ public NodeInfoMemory(string total, long totalInBytes) Total = total; TotalInBytes = totalInBytes; } -#if NET7_0_OR_GREATER - public NodeInfoMemory() - { - } -#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 NodeInfoMemory() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Total { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalInBytes { get; set; } + public required string Total { get; set; } + public required long TotalInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs index b4f26d37643..d197b76591c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs @@ -38,61 +38,23 @@ public NodeInfoOSCPU(string cacheSize, int cacheSizeInBytes, int coresPerSocket, TotalSockets = totalSockets; Vendor = vendor; } -#if NET7_0_OR_GREATER - public NodeInfoOSCPU() - { - } -#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 NodeInfoOSCPU() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoOSCPU(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string CacheSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int CacheSizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int CoresPerSocket { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Mhz { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Model { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int TotalCores { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int TotalSockets { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Vendor { get; set; } + public required string CacheSize { get; set; } + public required int CacheSizeInBytes { get; set; } + public required int CoresPerSocket { get; set; } + public required int Mhz { get; set; } + public required string Model { get; set; } + public required int TotalCores { get; set; } + public required int TotalSockets { get; set; } + public required string Vendor { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs index 1a75afed223..66c10f6cb8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeInfoPathConverter))] public sealed partial class NodeInfoPath { -#if NET7_0_OR_GREATER public NodeInfoPath() { } -#endif -#if !NET7_0_OR_GREATER - public NodeInfoPath() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoPath(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositories.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositories.g.cs index c6764822c6e..57b0ea238f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositories.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositories.g.cs @@ -31,26 +31,16 @@ public NodeInfoRepositories(Elastic.Clients.Elasticsearch.Nodes.NodeInfoReposito { Url = url; } -#if NET7_0_OR_GREATER - public NodeInfoRepositories() - { - } -#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 NodeInfoRepositories() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoRepositories(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoRepositoriesUrl Url { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoRepositoriesUrl Url { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs index 1431eac1ed5..329cf5cb510 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs @@ -31,26 +31,16 @@ public NodeInfoRepositoriesUrl(string allowedUrls) { AllowedUrls = allowedUrls; } -#if NET7_0_OR_GREATER - public NodeInfoRepositoriesUrl() - { - } -#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 NodeInfoRepositoriesUrl() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoRepositoriesUrl(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string AllowedUrls { get; set; } + public required string AllowedUrls { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoScript.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoScript.g.cs index a2b1571e1ec..0d503575846 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoScript.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoScript.g.cs @@ -31,27 +31,17 @@ public NodeInfoScript(string allowedTypes) { AllowedTypes = allowedTypes; } -#if NET7_0_OR_GREATER - public NodeInfoScript() - { - } -#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 NodeInfoScript() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoScript(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string AllowedTypes { get; set; } + public required string AllowedTypes { get; set; } public string? DisableMaxCompilationsRate { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearch.g.cs index 7390e374ec2..47b5ec46a50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearch.g.cs @@ -31,26 +31,16 @@ public NodeInfoSearch(Elastic.Clients.Elasticsearch.Nodes.NodeInfoSearchRemote r { Remote = remote; } -#if NET7_0_OR_GREATER - public NodeInfoSearch() - { - } -#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 NodeInfoSearch() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSearch(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoSearchRemote Remote { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoSearchRemote Remote { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs index 719e420fc10..16f5f1eba11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs @@ -31,26 +31,16 @@ public NodeInfoSearchRemote(string connect) { Connect = connect; } -#if NET7_0_OR_GREATER - public NodeInfoSearchRemote() - { - } -#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 NodeInfoSearchRemote() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSearchRemote(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Connect { get; set; } + public required string Connect { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettings.g.cs index 71123958c76..7544c534b48 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettings.g.cs @@ -34,17 +34,11 @@ public NodeInfoSettings(Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsClus Node = node; Transport = transport; } -#if NET7_0_OR_GREATER - public NodeInfoSettings() - { - } -#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 NodeInfoSettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,32 +48,16 @@ internal NodeInfoSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstr public Elastic.Clients.Elasticsearch.Nodes.NodeInfoAction? Action { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoBootstrap? Bootstrap { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoClient? Client { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsCluster Cluster { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsCluster Cluster { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoDiscover? Discovery { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsHttp Http { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsHttp Http { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsIngest? Ingest { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsNetwork? Network { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsNode Node { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsNode Node { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoPath? Path { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoRepositories? Repositories { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoScript? Script { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSearch? Search { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsTransport Transport { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsTransport Transport { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpack? Xpack { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs index 5a24c46a1ef..790968a2ae3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs @@ -32,17 +32,11 @@ public NodeInfoSettingsCluster(Elastic.Clients.Elasticsearch.Nodes.NodeInfoSetti Election = election; Name = name; } -#if NET7_0_OR_GREATER - public NodeInfoSettingsCluster() - { - } -#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 NodeInfoSettingsCluster() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsCluster(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,16 +44,8 @@ internal NodeInfoSettingsCluster(Elastic.Clients.Elasticsearch.Serialization.Jso } public Elastic.Clients.Elasticsearch.Nodes.DeprecationIndexing? DeprecationIndexing { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsClusterElection Election { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsClusterElection Election { get; set; } public System.Collections.Generic.ICollection? InitialMasterNodes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.IndexRouting? Routing { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs index f0ab1f7233d..35f8adfb623 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs @@ -31,26 +31,16 @@ public NodeInfoSettingsClusterElection(string strategy) { Strategy = strategy; } -#if NET7_0_OR_GREATER - public NodeInfoSettingsClusterElection() - { - } -#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 NodeInfoSettingsClusterElection() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsClusterElection(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Strategy { get; set; } + public required string Strategy { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs index 44f2c94a2d9..696b0e819a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs @@ -31,17 +31,11 @@ public NodeInfoSettingsHttp(Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettings { Type = type; } -#if NET7_0_OR_GREATER - public NodeInfoSettingsHttp() - { - } -#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 NodeInfoSettingsHttp() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsHttp(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,10 +44,6 @@ internal NodeInfoSettingsHttp(Elastic.Clients.Elasticsearch.Serialization.JsonCo public Elastic.Clients.Elasticsearch.Union? Compression { get; set; } public Elastic.Clients.Elasticsearch.Union? Port { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsHttpType Type { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsHttpType Type { get; set; } public string? TypeDefault { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs index 9f81b39f733..0c996cbcde6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs @@ -31,26 +31,16 @@ public NodeInfoSettingsHttpType(string @default) { Default = @default; } -#if NET7_0_OR_GREATER - public NodeInfoSettingsHttpType() - { - } -#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 NodeInfoSettingsHttpType() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsHttpType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Default { get; set; } + public required string Default { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs index 47e7f83ce37..8af2a20a27d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeInfoSettingsIngestConverter))] public sealed partial class NodeInfoSettingsIngest { -#if NET7_0_OR_GREATER public NodeInfoSettingsIngest() { } -#endif -#if !NET7_0_OR_GREATER - public NodeInfoSettingsIngest() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsIngest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs index 9317e123978..4cf2777a2eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeInfoSettingsNetworkConverter))] public sealed partial class NodeInfoSettingsNetwork { -#if NET7_0_OR_GREATER public NodeInfoSettingsNetwork() { } -#endif -#if !NET7_0_OR_GREATER - public NodeInfoSettingsNetwork() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsNetwork(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs index c282658b3e8..f8d64c5ed40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs @@ -32,32 +32,18 @@ public NodeInfoSettingsNode(System.Collections.Generic.IReadOnlyDictionary Attr { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Attr { get; set; } public string? MaxLocalStorageNodes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs index 134372c3e40..777ffa2dcd0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs @@ -31,17 +31,11 @@ public NodeInfoSettingsTransport(Elastic.Clients.Elasticsearch.Nodes.NodeInfoSet { Type = type; } -#if NET7_0_OR_GREATER - public NodeInfoSettingsTransport() - { - } -#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 NodeInfoSettingsTransport() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsTransport(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,10 +50,6 @@ internal NodeInfoSettingsTransport(Elastic.Clients.Elasticsearch.Serialization.J /// /// public bool? IgnoreDeserializationErrors { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsTransportType Type { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsTransportType Type { get; set; } public string? TypeDefault { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs index 8f242d40c7b..7f2576ed333 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs @@ -31,26 +31,16 @@ public NodeInfoSettingsTransportFeatures(string xPack) { XPack = xPack; } -#if NET7_0_OR_GREATER - public NodeInfoSettingsTransportFeatures() - { - } -#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 NodeInfoSettingsTransportFeatures() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsTransportFeatures(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string XPack { get; set; } + public required string XPack { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs index df4dfff77cb..624171a6813 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs @@ -31,26 +31,16 @@ public NodeInfoSettingsTransportType(string @default) { Default = @default; } -#if NET7_0_OR_GREATER - public NodeInfoSettingsTransportType() - { - } -#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 NodeInfoSettingsTransportType() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoSettingsTransportType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Default { get; set; } + public required string Default { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoTransport.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoTransport.g.cs index 17d71da4731..c7541629f77 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoTransport.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoTransport.g.cs @@ -33,36 +33,18 @@ public NodeInfoTransport(System.Collections.Generic.IReadOnlyCollection Profiles = profiles; PublishAddress = publishAddress; } -#if NET7_0_OR_GREATER - public NodeInfoTransport() - { - } -#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 NodeInfoTransport() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoTransport(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection BoundAddress { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Profiles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string PublishAddress { get; set; } + public required System.Collections.Generic.IReadOnlyCollection BoundAddress { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Profiles { get; set; } + public required string PublishAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs index 6a853985d4f..f3f8f2410f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs @@ -31,17 +31,11 @@ public NodeInfoXpack(Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurity s { Security = security; } -#if NET7_0_OR_GREATER - public NodeInfoXpack() - { - } -#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 NodeInfoXpack() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpack(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,9 +45,5 @@ internal NodeInfoXpack(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackLicense? License { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackMl? Ml { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Notification { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurity Security { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurity Security { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs index 8a38b1f90c4..36c02bb4da2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs @@ -31,26 +31,16 @@ public NodeInfoXpackLicense(Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackLic { SelfGenerated = selfGenerated; } -#if NET7_0_OR_GREATER - public NodeInfoXpackLicense() - { - } -#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 NodeInfoXpackLicense() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpackLicense(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackLicenseType SelfGenerated { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackLicenseType SelfGenerated { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs index 5077b70f5c1..d4467344a98 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs @@ -31,26 +31,16 @@ public NodeInfoXpackLicenseType(string type) { Type = type; } -#if NET7_0_OR_GREATER - public NodeInfoXpackLicenseType() - { - } -#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 NodeInfoXpackLicenseType() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpackLicenseType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs index 1bd39cf739b..6299a320233 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeInfoXpackMlConverter))] public sealed partial class NodeInfoXpackMl { -#if NET7_0_OR_GREATER public NodeInfoXpackMl() { } -#endif -#if !NET7_0_OR_GREATER - public NodeInfoXpackMl() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpackMl(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs index 2b10602e146..c5f3318fb71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs @@ -31,17 +31,11 @@ public NodeInfoXpackSecurity(string enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public NodeInfoXpackSecurity() - { - } -#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 NodeInfoXpackSecurity() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpackSecurity(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal NodeInfoXpackSecurity(Elastic.Clients.Elasticsearch.Serialization.JsonC } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurityAuthc? Authc { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Enabled { get; set; } + public required string Enabled { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecuritySsl? Http { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecuritySsl? Transport { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs index 01883342d8f..daaf9a37965 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeInfoXpackSecurityAuthcConverter))] public sealed partial class NodeInfoXpackSecurityAuthc { -#if NET7_0_OR_GREATER public NodeInfoXpackSecurityAuthc() { } -#endif -#if !NET7_0_OR_GREATER - public NodeInfoXpackSecurityAuthc() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpackSecurityAuthc(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs index 418fcf4a4b5..0f2d14f8cca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.NodeInfoXpackSecurityAuthcRealmsConverter))] public sealed partial class NodeInfoXpackSecurityAuthcRealms { -#if NET7_0_OR_GREATER public NodeInfoXpackSecurityAuthcRealms() { } -#endif -#if !NET7_0_OR_GREATER - public NodeInfoXpackSecurityAuthcRealms() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpackSecurityAuthcRealms(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs index 0b8583f7176..6f58c56b223 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs @@ -31,17 +31,11 @@ public NodeInfoXpackSecurityAuthcRealmsStatus(string order) { Order = order; } -#if NET7_0_OR_GREATER - public NodeInfoXpackSecurityAuthcRealmsStatus() - { - } -#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 NodeInfoXpackSecurityAuthcRealmsStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpackSecurityAuthcRealmsStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal NodeInfoXpackSecurityAuthcRealmsStatus(Elastic.Clients.Elasticsearch.Se } public string? Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Order { get; set; } + public required string Order { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs index f540a74a68e..dba5be49b70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs @@ -31,26 +31,16 @@ public NodeInfoXpackSecurityAuthcToken(string enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public NodeInfoXpackSecurityAuthcToken() - { - } -#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 NodeInfoXpackSecurityAuthcToken() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeInfoXpackSecurityAuthcToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Enabled { get; set; } + public required string Enabled { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs index 120d6da3b28..e32d880f946 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs @@ -31,26 +31,16 @@ public NodeInfoXpackSecuritySsl(System.Collections.Generic.IReadOnlyDictionary Ssl { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Ssl { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeJvmInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeJvmInfo.g.cs index 114155aeaf9..c19ce0b5913 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeJvmInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeJvmInfo.g.cs @@ -41,77 +41,27 @@ public NodeJvmInfo(System.Collections.Generic.IReadOnlyCollection gcColl VmVendor = vmVendor; VmVersion = vmVersion; } -#if NET7_0_OR_GREATER - public NodeJvmInfo() - { - } -#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 NodeJvmInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeJvmInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection GcCollectors { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection InputArguments { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.NodeInfoJvmMemory Mem { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection MemoryPools { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Pid { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool UsingBundledJdk { get; set; } + public required System.Collections.Generic.IReadOnlyCollection GcCollectors { get; set; } + public required System.Collections.Generic.IReadOnlyCollection InputArguments { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.NodeInfoJvmMemory Mem { get; set; } + public required System.Collections.Generic.IReadOnlyCollection MemoryPools { get; set; } + public required int Pid { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } + public required bool UsingBundledJdk { get; set; } public Elastic.Clients.Elasticsearch.Union? UsingCompressedOrdinaryObjectPointers { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string VmName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string VmVendor { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string VmVersion { get; set; } + public required string Version { get; set; } + public required string VmName { get; set; } + public required string VmVendor { get; set; } + public required string VmVersion { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs index a3c0def216d..21dda5a6b66 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs @@ -36,17 +36,11 @@ public NodeOperatingSystemInfo(string arch, int availableProcessors, string name RefreshIntervalInMillis = refreshIntervalInMillis; Version = version; } -#if NET7_0_OR_GREATER - public NodeOperatingSystemInfo() - { - } -#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 NodeOperatingSystemInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeOperatingSystemInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,22 +59,14 @@ internal NodeOperatingSystemInfo(Elastic.Clients.Elasticsearch.Serialization.Jso /// Name of the JVM architecture (ex: amd64, x86) /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Arch { get; set; } + public required string Arch { get; set; } /// /// /// Number of processors available to the Java virtual machine /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int AvailableProcessors { get; set; } + public required int AvailableProcessors { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoOSCPU? Cpu { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoMemory? Mem { get; set; } @@ -89,27 +75,15 @@ internal NodeOperatingSystemInfo(Elastic.Clients.Elasticsearch.Serialization.Jso /// Name of the operating system (ex: Linux, Windows, Mac OS X) /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string PrettyName { get; set; } + public required string Name { get; set; } + public required string PrettyName { get; set; } /// /// /// Refresh interval for the OS statistics /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan RefreshIntervalInMillis { get; set; } + public required System.TimeSpan RefreshIntervalInMillis { get; set; } public Elastic.Clients.Elasticsearch.Nodes.NodeInfoMemory? Swap { get; set; } /// @@ -117,9 +91,5 @@ internal NodeOperatingSystemInfo(Elastic.Clients.Elasticsearch.Serialization.Jso /// Version of the operating system /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeProcessInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeProcessInfo.g.cs index be3e54292ee..1b212e98de4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeProcessInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeProcessInfo.g.cs @@ -33,17 +33,11 @@ public NodeProcessInfo(long id, bool mlockall, System.TimeSpan refreshIntervalIn Mlockall = mlockall; RefreshIntervalInMillis = refreshIntervalInMillis; } -#if NET7_0_OR_GREATER - public NodeProcessInfo() - { - } -#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 NodeProcessInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeProcessInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,31 +49,19 @@ internal NodeProcessInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Process identifier (PID) /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Id { get; set; } + public required long Id { get; set; } /// /// /// Indicates if the process address space has been successfully locked in memory /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Mlockall { get; set; } + public required bool Mlockall { get; set; } /// /// /// Refresh interval for the process statistics /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan RefreshIntervalInMillis { get; set; } + public required System.TimeSpan RefreshIntervalInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.Converters.g.cs index 279ff73ed81..f52e8effb61 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.Converters.g.cs @@ -25,16 +25,39 @@ namespace Elastic.Clients.Elasticsearch.Nodes.Json; public sealed partial class NodeReloadResultConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText PropKeystoreDigest = System.Text.Json.JsonEncodedText.Encode("keystore_digest"u8); + private static readonly System.Text.Json.JsonEncodedText PropKeystoreLastModifiedTime = System.Text.Json.JsonEncodedText.Encode("keystore_last_modified_time"u8); + private static readonly System.Text.Json.JsonEncodedText PropKeystorePath = System.Text.Json.JsonEncodedText.Encode("keystore_path"u8); private static readonly System.Text.Json.JsonEncodedText PropName = System.Text.Json.JsonEncodedText.Encode("name"u8); private static readonly System.Text.Json.JsonEncodedText PropReloadException = System.Text.Json.JsonEncodedText.Encode("reload_exception"u8); + private static readonly System.Text.Json.JsonEncodedText PropSecureSettingNames = System.Text.Json.JsonEncodedText.Encode("secure_setting_names"u8); public override Elastic.Clients.Elasticsearch.Nodes.NodeReloadResult Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propKeystoreDigest = default; + LocalJsonValue propKeystoreLastModifiedTime = default; + LocalJsonValue propKeystorePath = default; LocalJsonValue propName = default; LocalJsonValue propReloadException = default; + LocalJsonValue?> propSecureSettingNames = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { + if (propKeystoreDigest.TryReadProperty(ref reader, options, PropKeystoreDigest, null)) + { + continue; + } + + if (propKeystoreLastModifiedTime.TryReadProperty(ref reader, options, PropKeystoreLastModifiedTime, 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 (propKeystorePath.TryReadProperty(ref reader, options, PropKeystorePath, null)) + { + continue; + } + if (propName.TryReadProperty(ref reader, options, PropName, null)) { continue; @@ -45,6 +68,11 @@ public override Elastic.Clients.Elasticsearch.Nodes.NodeReloadResult Read(ref Sy continue; } + if (propSecureSettingNames.TryReadProperty(ref reader, options, PropSecureSettingNames, 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(); @@ -57,16 +85,24 @@ public override Elastic.Clients.Elasticsearch.Nodes.NodeReloadResult Read(ref Sy reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.Nodes.NodeReloadResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { + KeystoreDigest = propKeystoreDigest.Value, + KeystoreLastModifiedTime = propKeystoreLastModifiedTime.Value, + KeystorePath = propKeystorePath.Value, Name = propName.Value, - ReloadException = propReloadException.Value + ReloadException = propReloadException.Value, + SecureSettingNames = propSecureSettingNames.Value }; } public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Nodes.NodeReloadResult value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); + writer.WriteProperty(options, PropKeystoreDigest, value.KeystoreDigest, null, null); + writer.WriteProperty(options, PropKeystoreLastModifiedTime, value.KeystoreLastModifiedTime, 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, PropKeystorePath, value.KeystorePath, null, null); writer.WriteProperty(options, PropName, value.Name, null, null); writer.WriteProperty(options, PropReloadException, value.ReloadException, null, null); + writer.WriteProperty(options, PropSecureSettingNames, value.SecureSettingNames, 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/Types/Nodes/NodeReloadResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs index be0251af9c6..1967c9104b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs @@ -31,27 +31,44 @@ public NodeReloadResult(string name) { Name = name; } -#if NET7_0_OR_GREATER - public NodeReloadResult() - { - } -#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 NodeReloadResult() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeReloadResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + /// + /// + /// A SHA-256 hash of the keystore file contents. + /// + /// + public string? KeystoreDigest { get; set; } + + /// + /// + /// The last modification time of the keystore file. + /// + /// + public System.DateTimeOffset? KeystoreLastModifiedTime { get; set; } + + /// + /// + /// The path to the keystore file. + /// + /// + public string? KeystorePath { get; set; } + public required string Name { get; set; } public Elastic.Clients.Elasticsearch.ErrorCause? ReloadException { get; set; } + + /// + /// + /// The names of the secure settings that were reloaded. + /// + /// + public System.Collections.Generic.IReadOnlyCollection? SecureSettingNames { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs index d14b5c36e4e..ddd772301cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs @@ -32,17 +32,11 @@ public NodeThreadPoolInfo(int queueSize, string type) QueueSize = queueSize; Type = type; } -#if NET7_0_OR_GREATER - public NodeThreadPoolInfo() - { - } -#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 NodeThreadPoolInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeThreadPoolInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,15 +46,7 @@ internal NodeThreadPoolInfo(Elastic.Clients.Elasticsearch.Serialization.JsonCons public int? Core { get; set; } public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get; set; } public int? Max { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int QueueSize { get; set; } + public required int QueueSize { get; set; } public int? Size { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeUsage.g.cs index ae86560b6c4..70fcf96eace 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeUsage.g.cs @@ -34,41 +34,19 @@ public NodeUsage(System.Collections.Generic.IReadOnlyDictionary Since = since; Timestamp = timestamp; } -#if NET7_0_OR_GREATER - public NodeUsage() - { - } -#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 NodeUsage() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeUsage(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Aggregations { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary RestActions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Since { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Timestamp { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Aggregations { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary RestActions { get; set; } + public required System.DateTimeOffset Since { get; set; } + public required System.DateTimeOffset Timestamp { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/OperatingSystem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/OperatingSystem.g.cs index f220ade2606..d077e4ec60e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/OperatingSystem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/OperatingSystem.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.OperatingSystemConverter))] public sealed partial class OperatingSystem { -#if NET7_0_OR_GREATER public OperatingSystem() { } -#endif -#if !NET7_0_OR_GREATER - public OperatingSystem() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal OperatingSystem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Pool.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Pool.g.cs index 7da2e613348..5810bf316d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Pool.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Pool.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.PoolConverter))] public sealed partial class Pool { -#if NET7_0_OR_GREATER public Pool() { } -#endif -#if !NET7_0_OR_GREATER - public Pool() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Pool(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PressureMemory.g.cs index 3c97ec63fc4..5897568fb3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PressureMemory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PressureMemory.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.PressureMemoryConverter))] public sealed partial class PressureMemory { -#if NET7_0_OR_GREATER public PressureMemory() { } -#endif -#if !NET7_0_OR_GREATER - public PressureMemory() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PressureMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Process.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Process.g.cs index 0f68377837b..99d6e700168 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Process.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Process.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ProcessConverter))] public sealed partial class Process { -#if NET7_0_OR_GREATER public Process() { } -#endif -#if !NET7_0_OR_GREATER - public Process() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Process(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Processor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Processor.g.cs index a99f889e830..6c97a894b55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Processor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Processor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ProcessorConverter))] public sealed partial class Processor { -#if NET7_0_OR_GREATER public Processor() { } -#endif -#if !NET7_0_OR_GREATER - public Processor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Processor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PublishedClusterStates.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PublishedClusterStates.g.cs index c64be652293..61a792d5a51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PublishedClusterStates.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PublishedClusterStates.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.PublishedClusterStatesConverter))] public sealed partial class PublishedClusterStates { -#if NET7_0_OR_GREATER public PublishedClusterStates() { } -#endif -#if !NET7_0_OR_GREATER - public PublishedClusterStates() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PublishedClusterStates(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Recording.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Recording.g.cs index 3dc75c340cd..bb7eccf273d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Recording.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Recording.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.RecordingConverter))] public sealed partial class Recording { -#if NET7_0_OR_GREATER public Recording() { } -#endif -#if !NET7_0_OR_GREATER - public Recording() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Recording(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RemoveClusterServer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RemoveClusterServer.g.cs index b1567e0e470..e37b4420d1f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RemoveClusterServer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RemoveClusterServer.g.cs @@ -32,31 +32,17 @@ public RemoveClusterServer(System.Collections.Generic.IReadOnlyCollection BoundAddress { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string PublishAddress { get; set; } + public required System.Collections.Generic.IReadOnlyCollection BoundAddress { get; set; } + public required string PublishAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RepositoryLocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RepositoryLocation.g.cs index 010b7cea73d..3fda1778481 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RepositoryLocation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RepositoryLocation.g.cs @@ -31,28 +31,18 @@ public RepositoryLocation(string basePath) { BasePath = basePath; } -#if NET7_0_OR_GREATER - public RepositoryLocation() - { - } -#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 RepositoryLocation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RepositoryLocation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string BasePath { get; set; } + public required string BasePath { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RepositoryMeteringInformation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RepositoryMeteringInformation.g.cs index 1951ec4d202..947ce9f2f7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RepositoryMeteringInformation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RepositoryMeteringInformation.g.cs @@ -37,17 +37,11 @@ public RepositoryMeteringInformation(bool archived, string repositoryEphemeralId RepositoryType = repositoryType; RequestCounts = requestCounts; } -#if NET7_0_OR_GREATER - public RepositoryMeteringInformation() - { - } -#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 RepositoryMeteringInformation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RepositoryMeteringInformation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal RepositoryMeteringInformation(Elastic.Clients.Elasticsearch.Serializati /// repository metering information of previous repository instantiations. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Archived { get; set; } + public required bool Archived { get; set; } /// /// @@ -82,44 +72,28 @@ internal RepositoryMeteringInformation(Elastic.Clients.Elasticsearch.Serializati /// An identifier that changes every time the repository is updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RepositoryEphemeralId { get; set; } + public required string RepositoryEphemeralId { get; set; } /// /// /// Represents an unique location within the repository. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.RepositoryLocation RepositoryLocation { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.RepositoryLocation RepositoryLocation { get; set; } /// /// /// Repository name. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RepositoryName { get; set; } + public required string RepositoryName { get; set; } /// /// /// Time the repository was created or updated. Recorded in milliseconds since the Unix Epoch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset RepositoryStartedAt { get; set; } + public required System.DateTimeOffset RepositoryStartedAt { get; set; } /// /// @@ -133,20 +107,12 @@ internal RepositoryMeteringInformation(Elastic.Clients.Elasticsearch.Serializati /// Repository type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RepositoryType { get; set; } + public required string RepositoryType { get; set; } /// /// /// An object with the number of request performed against the repository grouped by request type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Nodes.RequestCounts RequestCounts { get; set; } + public required Elastic.Clients.Elasticsearch.Nodes.RequestCounts RequestCounts { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RequestCounts.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RequestCounts.g.cs index f866d1dbccf..bcca2a7f74e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RequestCounts.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/RequestCounts.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.RequestCountsConverter))] public sealed partial class RequestCounts { -#if NET7_0_OR_GREATER public RequestCounts() { } -#endif -#if !NET7_0_OR_GREATER - public RequestCounts() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RequestCounts(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ScriptCache.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ScriptCache.g.cs index b0dd4ee9261..da3476820df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ScriptCache.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ScriptCache.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ScriptCacheConverter))] public sealed partial class ScriptCache { -#if NET7_0_OR_GREATER public ScriptCache() { } -#endif -#if !NET7_0_OR_GREATER - public ScriptCache() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptCache(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Scripting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Scripting.g.cs index 36f5a24b7a6..a7625156e72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Scripting.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Scripting.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ScriptingConverter))] public sealed partial class Scripting { -#if NET7_0_OR_GREATER public Scripting() { } -#endif -#if !NET7_0_OR_GREATER - public Scripting() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Scripting(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterState.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterState.g.cs index b8aeefacb7f..21eaa80a64a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterState.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterState.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.SerializedClusterStateConverter))] public sealed partial class SerializedClusterState { -#if NET7_0_OR_GREATER public SerializedClusterState() { } -#endif -#if !NET7_0_OR_GREATER - public SerializedClusterState() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SerializedClusterState(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs index cd9e8c8b593..7a1622d6829 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.SerializedClusterStateDetailConverter))] public sealed partial class SerializedClusterStateDetail { -#if NET7_0_OR_GREATER public SerializedClusterStateDetail() { } -#endif -#if !NET7_0_OR_GREATER - public SerializedClusterStateDetail() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SerializedClusterStateDetail(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SizeHttpHistogram.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SizeHttpHistogram.g.cs index 65c91679dc6..431a430be32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SizeHttpHistogram.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SizeHttpHistogram.g.cs @@ -31,28 +31,18 @@ public SizeHttpHistogram(long count) { Count = count; } -#if NET7_0_OR_GREATER - public SizeHttpHistogram() - { - } -#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 SizeHttpHistogram() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SizeHttpHistogram(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } public long? GeBytes { get; set; } public long? LtBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Stats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Stats.g.cs index 488e9f3b4ac..ba6b752b066 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Stats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Stats.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.StatsConverter))] public sealed partial class Stats { -#if NET7_0_OR_GREATER public Stats() { } -#endif -#if !NET7_0_OR_GREATER - public Stats() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Stats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ThreadCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ThreadCount.g.cs index c1350f543ad..18539fcdc3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ThreadCount.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ThreadCount.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.ThreadCountConverter))] public sealed partial class ThreadCount { -#if NET7_0_OR_GREATER public ThreadCount() { } -#endif -#if !NET7_0_OR_GREATER - public ThreadCount() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ThreadCount(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TimeHttpHistogram.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TimeHttpHistogram.g.cs index e825c4ede72..60e4666e0ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TimeHttpHistogram.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TimeHttpHistogram.g.cs @@ -31,28 +31,18 @@ public TimeHttpHistogram(long count) { Count = count; } -#if NET7_0_OR_GREATER - public TimeHttpHistogram() - { - } -#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 TimeHttpHistogram() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TimeHttpHistogram(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } public long? GeMillis { get; set; } public long? LtMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Transport.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Transport.g.cs index aecf36c8a12..eb5b146fa8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Transport.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Transport.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.TransportConverter))] public sealed partial class Transport { -#if NET7_0_OR_GREATER public Transport() { } -#endif -#if !NET7_0_OR_GREATER - public Transport() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Transport(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TransportHistogram.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TransportHistogram.g.cs index 71fdfd48160..1b7a9c99ad1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TransportHistogram.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TransportHistogram.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Nodes; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Nodes.Json.TransportHistogramConverter))] public sealed partial class TransportHistogram { -#if NET7_0_OR_GREATER public TransportHistogram() { } -#endif -#if !NET7_0_OR_GREATER - public TransportHistogram() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransportHistogram(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PinnedRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/PinnedRetriever.g.cs index 81f475324a9..4e82f3c7fdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PinnedRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/PinnedRetriever.g.cs @@ -31,17 +31,11 @@ public PinnedRetriever(Elastic.Clients.Elasticsearch.Retriever retriever) { Retriever = retriever; } -#if NET7_0_OR_GREATER - public PinnedRetriever() - { - } -#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 PinnedRetriever() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PinnedRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -78,11 +72,7 @@ internal PinnedRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Inner retriever. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + public required Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } } public readonly partial struct PinnedRetrieverDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs index 6bd3963273f..b50e32eb3b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs @@ -39,66 +39,24 @@ public PluginStats(string classname, string description, string elasticsearchVer Name = name; Version = version; } -#if NET7_0_OR_GREATER - public PluginStats() - { - } -#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 PluginStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PluginStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Classname { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ElasticsearchVersion { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ExtendedPlugins { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool HasNativeController { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JavaVersion { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Licensed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required string Classname { get; set; } + public required string Description { get; set; } + public required string ElasticsearchVersion { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ExtendedPlugins { get; set; } + public required bool HasNativeController { get; set; } + public required string JavaVersion { get; set; } + public required bool Licensed { get; set; } + public required string Name { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Project/Tags.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Project/Tags.Converters.g.cs new file mode 100644 index 00000000000..5d08853ab15 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Project/Tags.Converters.g.cs @@ -0,0 +1,96 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Project.Json; + +public sealed partial class TagsConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropAlias = System.Text.Json.JsonEncodedText.Encode("_alias"u8); + private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("_id"u8); + private static readonly System.Text.Json.JsonEncodedText PropOrganisation = System.Text.Json.JsonEncodedText.Encode("_organisation"u8); + private static readonly System.Text.Json.JsonEncodedText PropType = System.Text.Json.JsonEncodedText.Encode("_type"u8); + + public override Elastic.Clients.Elasticsearch.Project.Tags Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propAlias = default; + LocalJsonValue propId = default; + LocalJsonValue propOrganisation = default; + LocalJsonValue propType = default; + System.Collections.Generic.Dictionary? propUserDefinedTags = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propAlias.TryReadProperty(ref reader, options, PropAlias, null)) + { + continue; + } + + if (propId.TryReadProperty(ref reader, options, PropId, null)) + { + continue; + } + + if (propOrganisation.TryReadProperty(ref reader, options, PropOrganisation, null)) + { + continue; + } + + if (propType.TryReadProperty(ref reader, options, PropType, null)) + { + continue; + } + + propUserDefinedTags ??= new System.Collections.Generic.Dictionary(); + reader.ReadProperty(options, out string key, out string value, static string (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName(o)!, null); + propUserDefinedTags[key] = value; + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Project.Tags(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Alias = propAlias.Value, + Id = propId.Value, + Organisation = propOrganisation.Value, + Type = propType.Value, + UserDefinedTags = propUserDefinedTags + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Project.Tags value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropAlias, value.Alias, null, null); + writer.WriteProperty(options, PropId, value.Id, null, null); + writer.WriteProperty(options, PropOrganisation, value.Organisation, null, null); + writer.WriteProperty(options, PropType, value.Type, null, null); + if (value.UserDefinedTags is not null) + { + foreach (var item in value.UserDefinedTags) + { + writer.WriteProperty(options, item.Key, item.Value, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName(o, v), null); + } + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Project/Tags.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Project/Tags.g.cs new file mode 100644 index 00000000000..33d378e01ea --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Project/Tags.g.cs @@ -0,0 +1,59 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Project; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Project.Json.TagsConverter))] +public sealed partial class Tags +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public Tags(string alias, string id, string organisation, string type) + { + Alias = alias; + Id = id; + Organisation = organisation; + Type = type; + } + + public Tags() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal Tags(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + public required string Alias { get; set; } + public required string Id { get; set; } + public required string Organisation { get; set; } + public required string Type { get; set; } + + /// + /// + /// Additional tags defined by user. + /// + /// + public System.Collections.Generic.IReadOnlyDictionary? UserDefinedTags { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryCacheStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryCacheStats.g.cs index eaf06aa3beb..3e9b4aeb99b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryCacheStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryCacheStats.g.cs @@ -37,17 +37,11 @@ public QueryCacheStats(long cacheCount, long cacheSize, long evictions, long hit MissCount = missCount; TotalCount = totalCount; } -#if NET7_0_OR_GREATER - public QueryCacheStats() - { - } -#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 QueryCacheStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryCacheStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,44 +54,28 @@ internal QueryCacheStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// This number includes current and evicted entries. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long CacheCount { get; set; } + public required long CacheCount { get; set; } /// /// /// Total number of entries currently in the query cache across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long CacheSize { get; set; } + public required long CacheSize { get; set; } /// /// /// Total number of query cache evictions across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Evictions { get; set; } + public required long Evictions { get; set; } /// /// /// Total count of query cache hits across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long HitCount { get; set; } + public required long HitCount { get; set; } /// /// @@ -111,31 +89,19 @@ internal QueryCacheStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Total amount, in bytes, of memory used for the query cache across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MemorySizeInBytes { get; set; } + public required long MemorySizeInBytes { get; set; } /// /// /// Total count of query cache misses across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MissCount { get; set; } + public required long MissCount { get; set; } /// /// /// Total count of hits and misses in the query cache across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TotalCount { get; set; } + public required long TotalCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoolQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoolQuery.g.cs index 491546ef6d0..ef6ef385dc3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoolQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoolQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.BoolQueryConverter))] public partial class BoolQuery { -#if NET7_0_OR_GREATER public BoolQuery() { } -#endif -#if !NET7_0_OR_GREATER - public BoolQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BoolQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoostingQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoostingQuery.g.cs index aafb49303b5..879e14ecc49 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoostingQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoostingQuery.g.cs @@ -33,17 +33,11 @@ public BoostingQuery(Elastic.Clients.Elasticsearch.QueryDsl.Query negative, doub NegativeBoost = negativeBoost; Positive = positive; } -#if NET7_0_OR_GREATER - public BoostingQuery() - { - } -#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 BoostingQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BoostingQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,33 +59,21 @@ internal BoostingQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Query used to decrease the relevance score of matching documents. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Negative { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Negative { get; set; } /// /// /// Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the negative query. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - double NegativeBoost { get; set; } + public required double NegativeBoost { get; set; } /// /// /// Any returned documents must match this query. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Positive { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Positive { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs index 02fdbd3dc98..5b37379bac3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs @@ -32,17 +32,11 @@ public CombinedFieldsQuery(Elastic.Clients.Elasticsearch.Fields fields, string q Fields = fields; Query = query; } -#if NET7_0_OR_GREATER - public CombinedFieldsQuery() - { - } -#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 CombinedFieldsQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CombinedFieldsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -71,11 +65,7 @@ internal CombinedFieldsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// List of fields to search. Field wildcard patterns are allowed. Only text fields are supported, and they must all have the same search analyzer. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields Fields { get; set; } + public required Elastic.Clients.Elasticsearch.Fields Fields { get; set; } /// /// @@ -97,11 +87,7 @@ internal CombinedFieldsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The combined_fields query analyzes the provided text before performing a search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CommonTermsQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CommonTermsQuery.g.cs index db7e355a40c..129462db2ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CommonTermsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CommonTermsQuery.g.cs @@ -38,11 +38,11 @@ public CommonTermsQuery(Elastic.Clients.Elasticsearch.Field field, string query) Field = field; Query = query; } -#if NET7_0_OR_GREATER + public CommonTermsQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CommonTermsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,19 +61,11 @@ internal CommonTermsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// public float? Boost { get; set; } public double? CutoffFrequency { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public Elastic.Clients.Elasticsearch.QueryDsl.Operator? HighFreqOperator { get; set; } public Elastic.Clients.Elasticsearch.QueryDsl.Operator? LowFreqOperator { get; set; } public Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatch { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ConstantScoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ConstantScoreQuery.g.cs index 0701ab8906b..68f01713c7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ConstantScoreQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ConstantScoreQuery.g.cs @@ -31,17 +31,11 @@ public ConstantScoreQuery(Elastic.Clients.Elasticsearch.QueryDsl.Query filter) { Filter = filter; } -#if NET7_0_OR_GREATER - public ConstantScoreQuery() - { - } -#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 ConstantScoreQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ConstantScoreQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +59,7 @@ internal ConstantScoreQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// To speed up performance, Elasticsearch automatically caches frequently used filter queries. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Filter { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Filter { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateDecayFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateDecayFunction.g.cs index cb5721b5a24..33ca534da4f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateDecayFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateDecayFunction.g.cs @@ -32,28 +32,18 @@ public DateDecayFunction(Elastic.Clients.Elasticsearch.Field field, Elastic.Clie Field = field; Placement = placement; } -#if NET7_0_OR_GREATER - public DateDecayFunction() - { - } -#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 DateDecayFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateDecayFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -61,11 +51,7 @@ internal DateDecayFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public Elastic.Clients.Elasticsearch.QueryDsl.MultiValueMode? MultiValueMode { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.DecayPlacement Placement { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.DecayPlacement Placement { get; set; } string Elastic.Clients.Elasticsearch.QueryDsl.IDecayFunction.Type => "date"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateDistanceFeatureQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateDistanceFeatureQuery.g.cs index 5fe66c24b18..567f0090124 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateDistanceFeatureQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateDistanceFeatureQuery.g.cs @@ -33,17 +33,11 @@ public DateDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Field field, Elast Origin = origin; Pivot = pivot; } -#if NET7_0_OR_GREATER - public DateDistanceFeatureQuery() - { - } -#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 DateDistanceFeatureQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +62,7 @@ internal DateDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.Js /// have an doc_values mapping parameter value of true, which is the default. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -82,11 +72,7 @@ internal DateDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.Js /// If the field value is a geo_point field, the origin value must be a geopoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.DateMath Origin { get; set; } + public required Elastic.Clients.Elasticsearch.DateMath Origin { get; set; } /// /// @@ -94,11 +80,7 @@ internal DateDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.Js /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration Pivot { get; set; } + public required Elastic.Clients.Elasticsearch.Duration Pivot { get; set; } public string? QueryName { get; set; } string Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery.Type => "date"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateRangeQuery.g.cs index d4e20a107f0..23dfe4061eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateRangeQuery.g.cs @@ -31,11 +31,11 @@ public DateRangeQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER + public DateRangeQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,11 +51,7 @@ internal DateRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DecayPlacement.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DecayPlacement.g.cs index ca3724b98b6..90a9c7eb633 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DecayPlacement.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DecayPlacement.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.DecayPlacementConverterFactory))] public sealed partial class DecayPlacement { -#if NET7_0_OR_GREATER public DecayPlacement() { } -#endif -#if !NET7_0_OR_GREATER - public DecayPlacement() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DecayPlacement(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DisMaxQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DisMaxQuery.g.cs index c7500f310ae..2936124eb9c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DisMaxQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DisMaxQuery.g.cs @@ -31,17 +31,11 @@ public DisMaxQuery(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Queries { get; set; } + public required System.Collections.Generic.ICollection Queries { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ExistsQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ExistsQuery.g.cs index ec4dcfc8edc..6a0b7c7930f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ExistsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ExistsQuery.g.cs @@ -31,17 +31,11 @@ public ExistsQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public ExistsQuery() - { - } -#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 ExistsQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ExistsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal ExistsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Name of the field you wish to search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldAndFormat.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldAndFormat.g.cs index 131f6b78f06..c7841a4159b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldAndFormat.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldAndFormat.g.cs @@ -36,17 +36,11 @@ public FieldAndFormat(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public FieldAndFormat() - { - } -#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 FieldAndFormat() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldAndFormat(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal FieldAndFormat(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// A wildcard pattern. The request returns values for field names matching this pattern. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldLookup.g.cs index d7ea492670b..3ac3c5ee9a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldLookup.g.cs @@ -31,17 +31,11 @@ public FieldLookup(Elastic.Clients.Elasticsearch.Id id) { Id = id; } -#if NET7_0_OR_GREATER - public FieldLookup() - { - } -#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 FieldLookup() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldLookup(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal FieldLookup(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// id of the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldValueFactorScoreFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldValueFactorScoreFunction.g.cs index 5470b950368..164ffc3ef31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldValueFactorScoreFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldValueFactorScoreFunction.g.cs @@ -31,17 +31,11 @@ public FieldValueFactorScoreFunction(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public FieldValueFactorScoreFunction() - { - } -#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 FieldValueFactorScoreFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldValueFactorScoreFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal FieldValueFactorScoreFunction(Elastic.Clients.Elasticsearch.Serializati /// Field to be extracted from the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScore.g.cs index 00ee283d5fd..83d689fe923 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScore.g.cs @@ -28,16 +28,11 @@ public partial class FunctionScore { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public FunctionScore() - { - } -#endif -#if !NET7_0_OR_GREATER + public FunctionScore() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FunctionScore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs index b801ed0aca5..ad404724873 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.FunctionScoreQueryConverter))] public sealed partial class FunctionScoreQuery { -#if NET7_0_OR_GREATER public FunctionScoreQuery() { } -#endif -#if !NET7_0_OR_GREATER - public FunctionScoreQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FunctionScoreQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FuzzyQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FuzzyQuery.g.cs index cf31dc1a741..362ad0ac032 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FuzzyQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FuzzyQuery.g.cs @@ -38,11 +38,11 @@ public FuzzyQuery(Elastic.Clients.Elasticsearch.Field field, object value) Field = field; Value = value; } -#if NET7_0_OR_GREATER + public FuzzyQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FuzzyQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +58,7 @@ internal FuzzyQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -105,11 +101,7 @@ internal FuzzyQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Term you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object Value { get; set; } + public required object Value { get; set; } } public readonly partial struct FuzzyQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoBoundingBoxQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoBoundingBoxQuery.g.cs index 3b69593860c..9eb1ed2586d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoBoundingBoxQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoBoundingBoxQuery.g.cs @@ -32,17 +32,11 @@ public GeoBoundingBoxQuery(Elastic.Clients.Elasticsearch.GeoBounds boundingBox, BoundingBox = boundingBox; Field = field; } -#if NET7_0_OR_GREATER - public GeoBoundingBoxQuery() - { - } -#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 GeoBoundingBoxQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoBoundingBoxQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,16 +52,8 @@ internal GeoBoundingBoxQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GeoBounds BoundingBox { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.GeoBounds BoundingBox { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDecayFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDecayFunction.g.cs index 8ddb4107292..f1ccda0a45a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDecayFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDecayFunction.g.cs @@ -32,28 +32,18 @@ public GeoDecayFunction(Elastic.Clients.Elasticsearch.Field field, Elastic.Clien Field = field; Placement = placement; } -#if NET7_0_OR_GREATER - public GeoDecayFunction() - { - } -#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 GeoDecayFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoDecayFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -61,11 +51,7 @@ internal GeoDecayFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public Elastic.Clients.Elasticsearch.QueryDsl.MultiValueMode? MultiValueMode { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.DecayPlacement Placement { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.DecayPlacement Placement { get; set; } string Elastic.Clients.Elasticsearch.QueryDsl.IDecayFunction.Type => "geo"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDistanceFeatureQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDistanceFeatureQuery.g.cs index 395a6fc4907..1d7e0353d65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDistanceFeatureQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDistanceFeatureQuery.g.cs @@ -33,17 +33,11 @@ public GeoDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Field field, Elasti Origin = origin; Pivot = pivot; } -#if NET7_0_OR_GREATER - public GeoDistanceFeatureQuery() - { - } -#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 GeoDistanceFeatureQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +62,7 @@ internal GeoDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.Jso /// have an doc_values mapping parameter value of true, which is the default. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -82,11 +72,7 @@ internal GeoDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.Jso /// If the field value is a geo_point field, the origin value must be a geopoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GeoLocation Origin { get; set; } + public required Elastic.Clients.Elasticsearch.GeoLocation Origin { get; set; } /// /// @@ -94,11 +80,7 @@ internal GeoDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.Jso /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Pivot { get; set; } + public required string Pivot { get; set; } public string? QueryName { get; set; } string Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery.Type => "geo"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDistanceQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDistanceQuery.g.cs index 98d9e9039cb..b91bffcfa22 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDistanceQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoDistanceQuery.g.cs @@ -33,17 +33,11 @@ public GeoDistanceQuery(string distance, Elastic.Clients.Elasticsearch.Field fie Field = field; Location = location; } -#if NET7_0_OR_GREATER - public GeoDistanceQuery() - { - } -#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 GeoDistanceQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoDistanceQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +60,7 @@ internal GeoDistanceQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Points which fall into this circle are considered to be matches. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Distance { get; set; } + public required string Distance { get; set; } /// /// @@ -79,11 +69,7 @@ internal GeoDistanceQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public Elastic.Clients.Elasticsearch.GeoDistanceType? DistanceType { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -92,11 +78,7 @@ internal GeoDistanceQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public bool? IgnoreUnmapped { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GeoLocation Location { get; set; } + public required Elastic.Clients.Elasticsearch.GeoLocation Location { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoGridQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoGridQuery.g.cs index af62975b0dd..16f133f72dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoGridQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoGridQuery.g.cs @@ -34,11 +34,11 @@ public GeoGridQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER + public GeoGridQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoGridQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +58,7 @@ internal GeoGridQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoPolygonPoints.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoPolygonPoints.g.cs index 103044327bf..f691ef665eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoPolygonPoints.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoPolygonPoints.g.cs @@ -31,28 +31,18 @@ public GeoPolygonPoints(System.Collections.Generic.ICollection Points { get; set; } + public required System.Collections.Generic.ICollection Points { get; set; } } public readonly partial struct GeoPolygonPointsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoPolygonQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoPolygonQuery.g.cs index 8209ea22466..0d33a852b8b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoPolygonQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoPolygonQuery.g.cs @@ -32,17 +32,11 @@ public GeoPolygonQuery(Elastic.Clients.Elasticsearch.Field field, Elastic.Client Field = field; Polygon = polygon; } -#if NET7_0_OR_GREATER - public GeoPolygonQuery() - { - } -#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 GeoPolygonQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoPolygonQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,17 +52,9 @@ internal GeoPolygonQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public bool? IgnoreUnmapped { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.GeoPolygonPoints Polygon { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.GeoPolygonPoints Polygon { get; set; } public string? QueryName { get; set; } public Elastic.Clients.Elasticsearch.QueryDsl.GeoValidationMethod? ValidationMethod { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs index e9eeda42a5a..0e1ba3e55b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.GeoShapeFieldQueryConverter))] public sealed partial class GeoShapeFieldQuery { -#if NET7_0_OR_GREATER public GeoShapeFieldQuery() { } -#endif -#if !NET7_0_OR_GREATER - public GeoShapeFieldQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoShapeFieldQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs index 395b4e0b90f..9324d5fb811 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs @@ -32,17 +32,11 @@ public GeoShapeQuery(Elastic.Clients.Elasticsearch.Field field, Elastic.Clients. Field = field; Shape = shape; } -#if NET7_0_OR_GREATER - public GeoShapeQuery() - { - } -#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 GeoShapeQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GeoShapeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal GeoShapeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -72,11 +62,7 @@ internal GeoShapeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// public bool? IgnoreUnmapped { get; set; } public string? QueryName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.GeoShapeFieldQuery Shape { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.GeoShapeFieldQuery Shape { get; set; } } public readonly partial struct GeoShapeQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/HasChildQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/HasChildQuery.g.cs index 3fdee95b67d..2aad0558a3c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/HasChildQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/HasChildQuery.g.cs @@ -32,17 +32,11 @@ public HasChildQuery(Elastic.Clients.Elasticsearch.QueryDsl.Query query, string Query = query; Type = type; } -#if NET7_0_OR_GREATER - public HasChildQuery() - { - } -#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 HasChildQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HasChildQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -95,11 +89,7 @@ internal HasChildQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// If a child document matches the search, the query returns the parent document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } public string? QueryName { get; set; } /// @@ -114,11 +104,7 @@ internal HasChildQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Name of the child relationship mapped for the join field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } public readonly partial struct HasChildQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/HasParentQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/HasParentQuery.g.cs index 32bf154574f..8930f6e286d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/HasParentQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/HasParentQuery.g.cs @@ -32,17 +32,11 @@ public HasParentQuery(string parentType, Elastic.Clients.Elasticsearch.QueryDsl. ParentType = parentType; Query = query; } -#if NET7_0_OR_GREATER - public HasParentQuery() - { - } -#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 HasParentQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HasParentQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +73,7 @@ internal HasParentQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Name of the parent relationship mapped for the join field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ParentType { get; set; } + public required string ParentType { get; set; } /// /// @@ -91,11 +81,7 @@ internal HasParentQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// If a parent document matches the search, the query returns its child documents. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IdsQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IdsQuery.g.cs index d8c2f3cd205..4a65a2a4a12 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IdsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IdsQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.IdsQueryConverter))] public sealed partial class IdsQuery { -#if NET7_0_OR_GREATER public IdsQuery() { } -#endif -#if !NET7_0_OR_GREATER - public IdsQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IdsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Intervals.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Intervals.g.cs index 7f1c8fd92a9..b4ddd236288 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Intervals.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Intervals.g.cs @@ -28,16 +28,11 @@ public sealed partial class Intervals { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Intervals() - { - } -#endif -#if !NET7_0_OR_GREATER + public Intervals() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Intervals(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs index 4391055909e..d18439facdb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs @@ -31,17 +31,11 @@ public IntervalsAllOf(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Intervals { get; set; } + public required System.Collections.Generic.ICollection Intervals { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs index c5c4fc679af..2c62affe27b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs @@ -31,17 +31,11 @@ public IntervalsAnyOf(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Intervals { get; set; } + public required System.Collections.Generic.ICollection Intervals { get; set; } } public readonly partial struct IntervalsAnyOfDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsFilter.g.cs index 7ae8b963cbe..9a0e2f17040 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsFilter.g.cs @@ -28,16 +28,11 @@ public sealed partial class IntervalsFilter { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public IntervalsFilter() - { - } -#endif -#if !NET7_0_OR_GREATER + public IntervalsFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntervalsFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsFuzzy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsFuzzy.g.cs index def68ef46f5..98ecca55ac8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsFuzzy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsFuzzy.g.cs @@ -31,17 +31,11 @@ public IntervalsFuzzy(string term) { Term = term; } -#if NET7_0_OR_GREATER - public IntervalsFuzzy() - { - } -#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 IntervalsFuzzy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntervalsFuzzy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +68,7 @@ internal IntervalsFuzzy(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// The term to match. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Term { get; set; } + public required string Term { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsMatch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsMatch.g.cs index afcb658cab2..54c7af5729d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsMatch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsMatch.g.cs @@ -31,17 +31,11 @@ public IntervalsMatch(string query) { Query = query; } -#if NET7_0_OR_GREATER - public IntervalsMatch() - { - } -#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 IntervalsMatch() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntervalsMatch(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +76,7 @@ internal IntervalsMatch(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Text you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsPrefix.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsPrefix.g.cs index 5ab48750adb..2fd03b3de0b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsPrefix.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsPrefix.g.cs @@ -31,17 +31,11 @@ public IntervalsPrefix(string prefix) { Prefix = prefix; } -#if NET7_0_OR_GREATER - public IntervalsPrefix() - { - } -#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 IntervalsPrefix() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntervalsPrefix(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal IntervalsPrefix(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Beginning characters of terms you wish to find in the top-level field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Prefix { get; set; } + public required string Prefix { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsQuery.g.cs index 0fc4de2cebf..ef80d1bc924 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsQuery.g.cs @@ -34,11 +34,11 @@ public IntervalsQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER + public IntervalsQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntervalsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -98,11 +98,7 @@ internal IntervalsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsRange.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsRange.g.cs index 73350bdc880..8c56d39a099 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsRange.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsRange.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.IntervalsRangeConverter))] public sealed partial class IntervalsRange { -#if NET7_0_OR_GREATER public IntervalsRange() { } -#endif -#if !NET7_0_OR_GREATER - public IntervalsRange() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntervalsRange(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsRegexp.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsRegexp.g.cs index d83c92e7cdd..cb99dca1ab2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsRegexp.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsRegexp.g.cs @@ -31,17 +31,11 @@ public IntervalsRegexp(string pattern) { Pattern = pattern; } -#if NET7_0_OR_GREATER - public IntervalsRegexp() - { - } -#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 IntervalsRegexp() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntervalsRegexp(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal IntervalsRegexp(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Regex pattern. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Pattern { get; set; } + public required string Pattern { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsWildcard.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsWildcard.g.cs index 077b33427de..72ef42f9e14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsWildcard.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsWildcard.g.cs @@ -31,17 +31,11 @@ public IntervalsWildcard(string pattern) { Pattern = pattern; } -#if NET7_0_OR_GREATER - public IntervalsWildcard() - { - } -#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 IntervalsWildcard() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IntervalsWildcard(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal IntervalsWildcard(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Wildcard pattern used to find matching terms. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Pattern { get; set; } + public required string Pattern { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LikeDocument.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LikeDocument.g.cs index 047f4850a55..208370c11ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LikeDocument.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LikeDocument.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.LikeDocumentConverter))] public sealed partial class LikeDocument { -#if NET7_0_OR_GREATER public LikeDocument() { } -#endif -#if !NET7_0_OR_GREATER - public LikeDocument() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LikeDocument(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchAllQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchAllQuery.g.cs index de03f41e090..7dc3ce32123 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchAllQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchAllQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.MatchAllQueryConverter))] public sealed partial class MatchAllQuery { -#if NET7_0_OR_GREATER public MatchAllQuery() { } -#endif -#if !NET7_0_OR_GREATER - public MatchAllQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchAllQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchBoolPrefixQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchBoolPrefixQuery.g.cs index 5eca227a015..81d1aab8b79 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchBoolPrefixQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchBoolPrefixQuery.g.cs @@ -38,11 +38,11 @@ public MatchBoolPrefixQuery(Elastic.Clients.Elasticsearch.Field field, string qu Field = field; Query = query; } -#if NET7_0_OR_GREATER + public MatchBoolPrefixQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchBoolPrefixQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +65,7 @@ internal MatchBoolPrefixQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -133,11 +129,7 @@ internal MatchBoolPrefixQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The last term is used in a prefix query. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchNoneQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchNoneQuery.g.cs index d2d7e4bd6cd..17a925ea477 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchNoneQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchNoneQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.MatchNoneQueryConverter))] public sealed partial class MatchNoneQuery { -#if NET7_0_OR_GREATER public MatchNoneQuery() { } -#endif -#if !NET7_0_OR_GREATER - public MatchNoneQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchNoneQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchPhrasePrefixQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchPhrasePrefixQuery.g.cs index 087e7099f35..13239608819 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchPhrasePrefixQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchPhrasePrefixQuery.g.cs @@ -38,11 +38,11 @@ public MatchPhrasePrefixQuery(Elastic.Clients.Elasticsearch.Field field, string Field = field; Query = query; } -#if NET7_0_OR_GREATER + public MatchPhrasePrefixQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchPhrasePrefixQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +65,7 @@ internal MatchPhrasePrefixQuery(Elastic.Clients.Elasticsearch.Serialization.Json /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -83,11 +79,7 @@ internal MatchPhrasePrefixQuery(Elastic.Clients.Elasticsearch.Serialization.Json /// Text you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchPhraseQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchPhraseQuery.g.cs index 8ecf96406b1..b0dc384f083 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchPhraseQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchPhraseQuery.g.cs @@ -38,11 +38,11 @@ public MatchPhraseQuery(Elastic.Clients.Elasticsearch.Field field, string query) Field = field; Query = query; } -#if NET7_0_OR_GREATER + public MatchPhraseQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchPhraseQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,22 +65,14 @@ internal MatchPhraseQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// /// Query terms that are analyzed and turned into a phrase query. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchQuery.g.cs index 4d243f037d5..8e6a1e44de2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchQuery.g.cs @@ -38,11 +38,11 @@ public MatchQuery(Elastic.Clients.Elasticsearch.Field field, object query) Field = field; Query = query; } -#if NET7_0_OR_GREATER + public MatchQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +74,7 @@ internal MatchQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS public float? Boost { get; set; } [System.Obsolete("Deprecated in '7.3.0'.")] public double? CutoffFrequency { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -141,11 +137,7 @@ internal MatchQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Text, number, boolean value or date you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object Query { get; set; } + public required object Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs index c3feb83efb3..4af8182801b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs @@ -31,17 +31,11 @@ public MoreLikeThisQuery(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Like { get; set; } + public required System.Collections.Generic.ICollection Like { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MultiMatchQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MultiMatchQuery.g.cs index c0a1c9981b1..834b99f6fea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MultiMatchQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MultiMatchQuery.g.cs @@ -31,17 +31,11 @@ public MultiMatchQuery(string query) { Query = query; } -#if NET7_0_OR_GREATER - public MultiMatchQuery() - { - } -#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 MultiMatchQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MultiMatchQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -144,11 +138,7 @@ internal MultiMatchQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Text, number, boolean value or date you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NestedQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NestedQuery.g.cs index cb5bc7bcfe0..7a793f5ccb1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NestedQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NestedQuery.g.cs @@ -32,17 +32,11 @@ public NestedQuery(Elastic.Clients.Elasticsearch.Field path, Elastic.Clients.Ela Path = path; Query = query; } -#if NET7_0_OR_GREATER - public NestedQuery() - { - } -#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 NestedQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NestedQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -78,22 +72,14 @@ internal NestedQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Path to the nested object you wish to search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Path { get; set; } + public required Elastic.Clients.Elasticsearch.Field Path { get; set; } /// /// /// Query you wish to run on nested objects in the path. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs index 24a5c87ba8c..86c5d0ed938 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs @@ -31,11 +31,11 @@ public NumberRangeQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER + public NumberRangeQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NumberRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,11 +51,7 @@ internal NumberRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumericDecayFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumericDecayFunction.g.cs index 026125a6342..cb63b643acf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumericDecayFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumericDecayFunction.g.cs @@ -32,28 +32,18 @@ public NumericDecayFunction(Elastic.Clients.Elasticsearch.Field field, Elastic.C Field = field; Placement = placement; } -#if NET7_0_OR_GREATER - public NumericDecayFunction() - { - } -#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 NumericDecayFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NumericDecayFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -61,11 +51,7 @@ internal NumericDecayFunction(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// public Elastic.Clients.Elasticsearch.QueryDsl.MultiValueMode? MultiValueMode { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.DecayPlacement Placement { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.DecayPlacement Placement { get; set; } string Elastic.Clients.Elasticsearch.QueryDsl.IDecayFunction.Type => "numeric"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ParentIdQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ParentIdQuery.g.cs index 74a88cdb3e2..686cb249498 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ParentIdQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ParentIdQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.ParentIdQueryConverter))] public sealed partial class ParentIdQuery { -#if NET7_0_OR_GREATER public ParentIdQuery() { } -#endif -#if !NET7_0_OR_GREATER - public ParentIdQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ParentIdQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PercolateQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PercolateQuery.g.cs index e9951208f3c..88b9860ba10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PercolateQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PercolateQuery.g.cs @@ -31,17 +31,11 @@ public PercolateQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public PercolateQuery() - { - } -#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 PercolateQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PercolateQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -77,11 +71,7 @@ internal PercolateQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Field that holds the indexed queries. The field must use the percolator mapping type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PinnedDoc.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PinnedDoc.g.cs index 9ed2cbcf468..d8d8c621cb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PinnedDoc.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PinnedDoc.g.cs @@ -31,17 +31,11 @@ public PinnedDoc(Elastic.Clients.Elasticsearch.Id id) { Id = id; } -#if NET7_0_OR_GREATER - public PinnedDoc() - { - } -#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 PinnedDoc() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PinnedDoc(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal PinnedDoc(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// The unique document ID. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PinnedQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PinnedQuery.g.cs index 65e39ccd4f8..44bc4520a0d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PinnedQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PinnedQuery.g.cs @@ -34,17 +34,11 @@ public PinnedQuery(Elastic.Clients.Elasticsearch.QueryDsl.Query organic) { Organic = organic; } -#if NET7_0_OR_GREATER - public PinnedQuery() - { - } -#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 PinnedQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PinnedQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -82,11 +76,7 @@ internal PinnedQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Any choice of query used to rank documents which will be ranked below the "pinned" documents. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Organic { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Organic { get; set; } public string? QueryName { get; set; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PrefixQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PrefixQuery.g.cs index e7858f1b7e2..2bed726528c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PrefixQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PrefixQuery.g.cs @@ -38,11 +38,11 @@ public PrefixQuery(Elastic.Clients.Elasticsearch.Field field, string value) Field = field; Value = value; } -#if NET7_0_OR_GREATER + public PrefixQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PrefixQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal PrefixQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// public bool? CaseInsensitive { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } /// @@ -85,11 +81,7 @@ internal PrefixQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Beginning characters of terms you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Value { get; set; } + public required string Value { get; set; } } public readonly partial struct PrefixQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs index 3c9bee3ebb9..eaf2685fe53 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs @@ -28,16 +28,11 @@ public partial class Query { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Query() - { - } -#endif -#if !NET7_0_OR_GREATER + public Query() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Query(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/QueryStringQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/QueryStringQuery.g.cs index 272436c5e3a..a3938a9a0e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/QueryStringQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/QueryStringQuery.g.cs @@ -31,17 +31,11 @@ public QueryStringQuery(string query) { Query = query; } -#if NET7_0_OR_GREATER - public QueryStringQuery() - { - } -#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 QueryStringQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryStringQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -185,11 +179,7 @@ internal QueryStringQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Query string you wish to parse and use for search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RandomScoreFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RandomScoreFunction.g.cs index fb0512a1007..41b7a663020 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RandomScoreFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RandomScoreFunction.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.RandomScoreFunctionConverter))] public sealed partial class RandomScoreFunction { -#if NET7_0_OR_GREATER public RandomScoreFunction() { } -#endif -#if !NET7_0_OR_GREATER - public RandomScoreFunction() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RandomScoreFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionLinear.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionLinear.g.cs index f3f60e5a0f3..1f39c1db2d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionLinear.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionLinear.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.RankFeatureFunctionLinearConverter))] public sealed partial class RankFeatureFunctionLinear { -#if NET7_0_OR_GREATER public RankFeatureFunctionLinear() { } -#endif -#if !NET7_0_OR_GREATER - public RankFeatureFunctionLinear() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankFeatureFunctionLinear(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionLogarithm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionLogarithm.g.cs index 3373580d6c3..a8b1231a00d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionLogarithm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionLogarithm.g.cs @@ -31,17 +31,11 @@ public RankFeatureFunctionLogarithm(float scalingFactor) { ScalingFactor = scalingFactor; } -#if NET7_0_OR_GREATER - public RankFeatureFunctionLogarithm() - { - } -#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 RankFeatureFunctionLogarithm() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankFeatureFunctionLogarithm(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal RankFeatureFunctionLogarithm(Elastic.Clients.Elasticsearch.Serializatio /// Configurable scaling factor. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - float ScalingFactor { get; set; } + public required float ScalingFactor { get; set; } } public readonly partial struct RankFeatureFunctionLogarithmDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionSaturation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionSaturation.g.cs index a358a097325..5ff196ab77a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionSaturation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionSaturation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.RankFeatureFunctionSaturationConverter))] public sealed partial class RankFeatureFunctionSaturation { -#if NET7_0_OR_GREATER public RankFeatureFunctionSaturation() { } -#endif -#if !NET7_0_OR_GREATER - public RankFeatureFunctionSaturation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankFeatureFunctionSaturation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionSigmoid.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionSigmoid.g.cs index db1bfc0adf7..d2f66e45b67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionSigmoid.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureFunctionSigmoid.g.cs @@ -32,17 +32,11 @@ public RankFeatureFunctionSigmoid(float exponent, float pivot) Exponent = exponent; Pivot = pivot; } -#if NET7_0_OR_GREATER - public RankFeatureFunctionSigmoid() - { - } -#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 RankFeatureFunctionSigmoid() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankFeatureFunctionSigmoid(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal RankFeatureFunctionSigmoid(Elastic.Clients.Elasticsearch.Serialization. /// Configurable Exponent. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - float Exponent { get; set; } + public required float Exponent { get; set; } /// /// /// Configurable pivot value so that the result will be less than 0.5. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - float Pivot { get; set; } + public required float Pivot { get; set; } } public readonly partial struct RankFeatureFunctionSigmoidDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureQuery.g.cs index 9c099f7f76d..d90797632cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RankFeatureQuery.g.cs @@ -31,17 +31,11 @@ public RankFeatureQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public RankFeatureQuery() - { - } -#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 RankFeatureQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RankFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal RankFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// rank_feature or rank_features field used to boost relevance scores. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RegexpQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RegexpQuery.g.cs index f8639ee62eb..19978335afe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RegexpQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RegexpQuery.g.cs @@ -38,11 +38,11 @@ public RegexpQuery(Elastic.Clients.Elasticsearch.Field field, string value) Field = field; Value = value; } -#if NET7_0_OR_GREATER + public RegexpQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RegexpQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal RegexpQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// public bool? CaseInsensitive { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -99,11 +95,7 @@ internal RegexpQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Regular expression for terms you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Value { get; set; } + public required string Value { get; set; } } public readonly partial struct RegexpQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RuleQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RuleQuery.g.cs index 8579f52e73d..7bf24fd71f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RuleQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RuleQuery.g.cs @@ -32,17 +32,11 @@ public RuleQuery(object matchCriteria, Elastic.Clients.Elasticsearch.QueryDsl.Qu MatchCriteria = matchCriteria; Organic = organic; } -#if NET7_0_OR_GREATER - public RuleQuery() - { - } -#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 RuleQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RuleQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,16 +52,8 @@ internal RuleQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - object MatchCriteria { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Organic { get; set; } + public required object MatchCriteria { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Organic { get; set; } public string? QueryName { get; set; } public string? RulesetId { get; set; } public System.Collections.Generic.ICollection? RulesetIds { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptQuery.g.cs index 6c02c597dae..5aecf3f2b71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptQuery.g.cs @@ -31,17 +31,11 @@ public ScriptQuery(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public ScriptQuery() - { - } -#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 ScriptQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +59,7 @@ internal ScriptQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// This script must return a boolean value, true or false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } } public readonly partial struct ScriptQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs index 1212e51ecb5..1670f4c515f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs @@ -31,17 +31,11 @@ public ScriptScoreFunction(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public ScriptScoreFunction() - { - } -#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 ScriptScoreFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptScoreFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal ScriptScoreFunction(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// A script that computes a score. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } } public readonly partial struct ScriptScoreFunctionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs index 51bffa42352..764b3e043e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs @@ -32,17 +32,11 @@ public ScriptScoreQuery(Elastic.Clients.Elasticsearch.QueryDsl.Query query, Elas Query = query; Script = script; } -#if NET7_0_OR_GREATER - public ScriptScoreQuery() - { - } -#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 ScriptScoreQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptScoreQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -71,11 +65,7 @@ internal ScriptScoreQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Query used to return documents. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } public string? QueryName { get; set; } /// @@ -84,11 +74,7 @@ internal ScriptScoreQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// Important: final relevance scores from the script_score query cannot be negative. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } } public readonly partial struct ScriptScoreQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SemanticQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SemanticQuery.g.cs index 66832354a95..4e4ace4b92d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SemanticQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SemanticQuery.g.cs @@ -32,17 +32,11 @@ public SemanticQuery(string field, string query) Field = field; Query = query; } -#if NET7_0_OR_GREATER - public SemanticQuery() - { - } -#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 SemanticQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SemanticQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,22 +58,14 @@ internal SemanticQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The field to query, which must be a semantic_text field type /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } + public required string Field { get; set; } /// /// /// The query text /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs index 8748b88b3da..e383b0966be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.ShapeFieldQueryConverter))] public sealed partial class ShapeFieldQuery { -#if NET7_0_OR_GREATER public ShapeFieldQuery() { } -#endif -#if !NET7_0_OR_GREATER - public ShapeFieldQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShapeFieldQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ShapeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ShapeQuery.g.cs index 32c2ce138cb..12553e6853f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ShapeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/ShapeQuery.g.cs @@ -32,17 +32,11 @@ public ShapeQuery(Elastic.Clients.Elasticsearch.Field field, Elastic.Clients.Ela Field = field; Shape = shape; } -#if NET7_0_OR_GREATER - public ShapeQuery() - { - } -#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 ShapeQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShapeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal ShapeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -71,11 +61,7 @@ internal ShapeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// public bool? IgnoreUnmapped { get; set; } public string? QueryName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.ShapeFieldQuery Shape { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.ShapeFieldQuery Shape { get; set; } } public readonly partial struct ShapeQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs index 536aa39db04..e5eeb3241ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs @@ -31,17 +31,11 @@ public SimpleQueryStringQuery(string query) { Query = query; } -#if NET7_0_OR_GREATER - public SimpleQueryStringQuery() - { - } -#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 SimpleQueryStringQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimpleQueryStringQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -143,11 +137,7 @@ internal SimpleQueryStringQuery(Elastic.Clients.Elasticsearch.Serialization.Json /// Query string in the simple query string syntax you wish to parse and use for search. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanContainingQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanContainingQuery.g.cs index 241460dedf5..1b303eca1db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanContainingQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanContainingQuery.g.cs @@ -32,17 +32,11 @@ public SpanContainingQuery(Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery big, Big = big; Little = little; } -#if NET7_0_OR_GREATER - public SpanContainingQuery() - { - } -#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 SpanContainingQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanContainingQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal SpanContainingQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Matching spans from big that contain matches from little are returned. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Big { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Big { get; set; } /// /// @@ -77,11 +67,7 @@ internal SpanContainingQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Matching spans from big that contain matches from little are returned. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Little { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Little { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanFieldMaskingQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanFieldMaskingQuery.g.cs index d8d051c26c8..a1247aff794 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanFieldMaskingQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanFieldMaskingQuery.g.cs @@ -32,17 +32,11 @@ public SpanFieldMaskingQuery(Elastic.Clients.Elasticsearch.Field field, Elastic. Field = field; Query = query; } -#if NET7_0_OR_GREATER - public SpanFieldMaskingQuery() - { - } -#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 SpanFieldMaskingQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanFieldMaskingQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,16 +52,8 @@ internal SpanFieldMaskingQuery(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Query { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Query { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanFirstQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanFirstQuery.g.cs index 8453a5c7980..b56e2adcf3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanFirstQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanFirstQuery.g.cs @@ -32,17 +32,11 @@ public SpanFirstQuery(int end, Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery End = end; Match = match; } -#if NET7_0_OR_GREATER - public SpanFirstQuery() - { - } -#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 SpanFirstQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanFirstQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,22 +58,14 @@ internal SpanFirstQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// Controls the maximum end position permitted in a match. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int End { get; set; } + public required int End { get; set; } /// /// /// Can be any other span type query. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Match { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Match { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanMultiTermQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanMultiTermQuery.g.cs index b348d29452f..7730469c8d1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanMultiTermQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanMultiTermQuery.g.cs @@ -31,17 +31,11 @@ public SpanMultiTermQuery(Elastic.Clients.Elasticsearch.QueryDsl.Query match) { Match = match; } -#if NET7_0_OR_GREATER - public SpanMultiTermQuery() - { - } -#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 SpanMultiTermQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanMultiTermQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal SpanMultiTermQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.Query Match { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.Query Match { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNearQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNearQuery.g.cs index bdc4c8a3089..6846ef4d7b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNearQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNearQuery.g.cs @@ -31,17 +31,11 @@ public SpanNearQuery(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Clauses { get; set; } + public required System.Collections.Generic.ICollection Clauses { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNotQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNotQuery.g.cs index cc348aa4045..68f90f5e1cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNotQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNotQuery.g.cs @@ -32,17 +32,11 @@ public SpanNotQuery(Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery exclude, El Exclude = exclude; Include = include; } -#if NET7_0_OR_GREATER - public SpanNotQuery() - { - } -#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 SpanNotQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanNotQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -72,22 +66,14 @@ internal SpanNotQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// Span query whose matches must not overlap those returned. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Exclude { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Exclude { get; set; } /// /// /// Span query whose matches are filtered. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Include { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Include { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanOrQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanOrQuery.g.cs index 180c62f0dac..ac392c80805 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanOrQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanOrQuery.g.cs @@ -31,17 +31,11 @@ public SpanOrQuery(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Clauses { get; set; } + public required System.Collections.Generic.ICollection Clauses { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanQuery.g.cs index 95c69680276..d40e9c5144c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanQuery.g.cs @@ -28,16 +28,11 @@ public sealed partial class SpanQuery { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public SpanQuery() - { - } -#endif -#if !NET7_0_OR_GREATER + public SpanQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanTermQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanTermQuery.g.cs index 6c18a3593a2..d561f395808 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanTermQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanTermQuery.g.cs @@ -38,11 +38,11 @@ public SpanTermQuery(Elastic.Clients.Elasticsearch.Field field, Elastic.Clients. Field = field; Value = value; } -#if NET7_0_OR_GREATER + public SpanTermQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanTermQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,17 +58,9 @@ internal SpanTermQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.FieldValue Value { get; set; } + public required Elastic.Clients.Elasticsearch.FieldValue Value { get; set; } } public readonly partial struct SpanTermQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanWithinQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanWithinQuery.g.cs index 2b115a67fd4..96bf00404de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanWithinQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanWithinQuery.g.cs @@ -32,17 +32,11 @@ public SpanWithinQuery(Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery big, Ela Big = big; Little = little; } -#if NET7_0_OR_GREATER - public SpanWithinQuery() - { - } -#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 SpanWithinQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpanWithinQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal SpanWithinQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Matching spans from little that are enclosed within big are returned. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Big { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Big { get; set; } /// /// @@ -77,11 +67,7 @@ internal SpanWithinQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Matching spans from little that are enclosed within big are returned. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Little { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.SpanQuery Little { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SparseVectorQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SparseVectorQuery.g.cs index 809b18c5d46..9514eed45ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SparseVectorQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SparseVectorQuery.g.cs @@ -34,17 +34,11 @@ public SparseVectorQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public SparseVectorQuery() - { - } -#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 SparseVectorQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SparseVectorQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -78,11 +72,7 @@ internal SparseVectorQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// This field must be a mapped sparse_vector field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermQuery.g.cs index f7df3b0cd21..cf30c95d894 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermQuery.g.cs @@ -38,11 +38,11 @@ public TermQuery(Elastic.Clients.Elasticsearch.Field field, Elastic.Clients.Elas Field = field; Value = value; } -#if NET7_0_OR_GREATER + public TermQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -66,11 +66,7 @@ internal TermQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// /// public bool? CaseInsensitive { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } /// @@ -78,11 +74,7 @@ internal TermQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// Term you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.FieldValue Value { get; set; } + public required Elastic.Clients.Elasticsearch.FieldValue Value { get; set; } } public readonly partial struct TermQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermRangeQuery.g.cs index 5efbb71eb28..2ca58f308e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermRangeQuery.g.cs @@ -31,11 +31,11 @@ public TermRangeQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER + public TermRangeQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,11 +51,7 @@ internal TermRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsLookup.g.cs index 262f87f494c..235e320fa05 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsLookup.g.cs @@ -33,38 +33,20 @@ public TermsLookup(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elastics Index = index; Path = path; } -#if NET7_0_OR_GREATER - public TermsLookup() - { - } -#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 TermsLookup() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermsLookup(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Path { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + public required Elastic.Clients.Elasticsearch.Field Path { get; set; } public Elastic.Clients.Elasticsearch.Routing? Routing { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsQuery.g.cs index 4b76c3407bd..5e8157d413d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsQuery.g.cs @@ -32,17 +32,11 @@ public TermsQuery(Elastic.Clients.Elasticsearch.Field field, Elastic.Clients.Ela Field = field; Terms = terms; } -#if NET7_0_OR_GREATER - public TermsQuery() - { - } -#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 TermsQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,17 +52,9 @@ internal TermsQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField Terms { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField Terms { get; set; } } public readonly partial struct TermsQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs index 1d1af19be58..952785f87b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs @@ -38,11 +38,11 @@ public TermsSetQuery(Elastic.Clients.Elasticsearch.Field field, System.Collectio Field = field; Terms = terms; } -#if NET7_0_OR_GREATER + public TermsSetQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermsSetQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +58,7 @@ internal TermsSetQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -91,11 +87,7 @@ internal TermsSetQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Array of terms you wish to find in the provided field. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Terms { get; set; } + public required System.Collections.Generic.ICollection Terms { get; set; } } public readonly partial struct TermsSetQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs index 523a6270bb2..d834ca1717f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs @@ -39,11 +39,11 @@ public TextExpansionQuery(Elastic.Clients.Elasticsearch.Field field, string mode ModelId = modelId; ModelText = modelText; } -#if NET7_0_OR_GREATER + public TextExpansionQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextExpansionQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,33 +59,21 @@ internal TextExpansionQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// /// The text expansion NLP model to use /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelId { get; set; } + public required string ModelId { get; set; } /// /// /// The query text /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string ModelText { get; set; } + public required string ModelText { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TypeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TypeQuery.g.cs index 844da15009c..6c820a02996 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TypeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TypeQuery.g.cs @@ -31,17 +31,11 @@ public TypeQuery(string value) { Value = value; } -#if NET7_0_OR_GREATER - public TypeQuery() - { - } -#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 TypeQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TypeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal TypeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// public float? Boost { get; set; } public string? QueryName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Value { get; set; } + public required string Value { get; set; } } public readonly partial struct TypeQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs index 74abb193b3b..90cec2ccc0d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs @@ -32,28 +32,18 @@ public UntypedDecayFunction(Elastic.Clients.Elasticsearch.Field field, Elastic.C Field = field; Placement = placement; } -#if NET7_0_OR_GREATER - public UntypedDecayFunction() - { - } -#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 UntypedDecayFunction() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UntypedDecayFunction(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -61,11 +51,7 @@ internal UntypedDecayFunction(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// public Elastic.Clients.Elasticsearch.QueryDsl.MultiValueMode? MultiValueMode { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryDsl.DecayPlacement Placement { get; set; } + public required Elastic.Clients.Elasticsearch.QueryDsl.DecayPlacement Placement { get; set; } string Elastic.Clients.Elasticsearch.QueryDsl.IDecayFunction.Type => "untyped"; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedDistanceFeatureQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedDistanceFeatureQuery.g.cs index 5c037b627f6..c8c5ca7d100 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedDistanceFeatureQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedDistanceFeatureQuery.g.cs @@ -33,17 +33,11 @@ public UntypedDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Field field, ob Origin = origin; Pivot = pivot; } -#if NET7_0_OR_GREATER - public UntypedDistanceFeatureQuery() - { - } -#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 UntypedDistanceFeatureQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UntypedDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -68,11 +62,7 @@ internal UntypedDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization /// have an doc_values mapping parameter value of true, which is the default. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -82,11 +72,7 @@ internal UntypedDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization /// If the field value is a geo_point field, the origin value must be a geopoint. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object Origin { get; set; } + public required object Origin { get; set; } /// /// @@ -94,11 +80,7 @@ internal UntypedDistanceFeatureQuery(Elastic.Clients.Elasticsearch.Serialization /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object Pivot { get; set; } + public required object Pivot { get; set; } public string? QueryName { get; set; } string Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery.Type => "untyped"; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs index 2259aaa98eb..ecc7b61066c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs @@ -31,11 +31,11 @@ public UntypedRangeQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER + public UntypedRangeQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UntypedRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,11 +51,7 @@ internal UntypedRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs index a0fd01e0fc7..e66bb3c5016 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs @@ -38,11 +38,11 @@ public WeightedTokensQuery(Elastic.Clients.Elasticsearch.Field field, System.Col Field = field; Tokens = tokens; } -#if NET7_0_OR_GREATER + public WeightedTokensQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WeightedTokensQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +58,7 @@ internal WeightedTokensQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// public float? Boost { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -77,11 +73,7 @@ internal WeightedTokensQuery(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The tokens representing this query /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection> Tokens { get; set; } + public required System.Collections.Generic.ICollection> Tokens { get; set; } } public readonly partial struct WeightedTokensQueryDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WildcardQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WildcardQuery.g.cs index 4a5e7e77054..86ed688173d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WildcardQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WildcardQuery.g.cs @@ -31,11 +31,11 @@ public WildcardQuery(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER + public WildcardQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WildcardQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +58,7 @@ internal WildcardQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public bool? CaseInsensitive { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WrapperQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WrapperQuery.g.cs index cb3ebc953b8..252e6bae6ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WrapperQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WrapperQuery.g.cs @@ -31,17 +31,11 @@ public WrapperQuery(string query) { Query = query; } -#if NET7_0_OR_GREATER - public WrapperQuery() - { - } -#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 WrapperQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WrapperQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,11 +58,7 @@ internal WrapperQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// The binary data format can be any of JSON, YAML, CBOR or SMILE encodings /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Query { get; set; } + public required string Query { get; set; } public string? QueryName { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRule.g.cs index 2da42d462d6..2e63916cc98 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRule.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRule.g.cs @@ -34,17 +34,11 @@ public QueryRule(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions actio RuleId = ruleId; Type = type; } -#if NET7_0_OR_GREATER - public QueryRule() - { - } -#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 QueryRule() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,11 +51,7 @@ internal QueryRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// The format of this action depends on the rule type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; set; } + public required Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; set; } /// /// @@ -69,11 +59,7 @@ internal QueryRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// If multiple criteria are specified for a rule, all criteria must be met for the rule to be applied. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Criteria { get; set; } + public required System.Collections.Generic.ICollection Criteria { get; set; } public int? Priority { get; set; } /// @@ -81,11 +67,7 @@ internal QueryRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// A unique identifier for the rule. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id RuleId { get; set; } + public required Elastic.Clients.Elasticsearch.Id RuleId { get; set; } /// /// @@ -94,11 +76,7 @@ internal QueryRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// exclude will exclude specific documents from search results. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; set; } + public required Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; set; } } public readonly partial struct QueryRuleDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleActions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleActions.g.cs index 0e00d599438..dee11a7355b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleActions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleActions.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.QueryRules; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryRules.Json.QueryRuleActionsConverter))] public sealed partial class QueryRuleActions { -#if NET7_0_OR_GREATER public QueryRuleActions() { } -#endif -#if !NET7_0_OR_GREATER - public QueryRuleActions() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryRuleActions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs index 332a91b5fbc..a6f2e78e166 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs @@ -31,17 +31,11 @@ public QueryRuleCriteria(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCrite { Type = type; } -#if NET7_0_OR_GREATER - public QueryRuleCriteria() - { - } -#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 QueryRuleCriteria() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryRuleCriteria(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -114,11 +108,7 @@ internal QueryRuleCriteria(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCriteriaType Type { get; set; } + public required Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCriteriaType Type { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs index 92ece0c70bc..9f07572db88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs @@ -34,17 +34,11 @@ public QueryRulesetListItem(System.Collections.Generic.IReadOnlyDictionaryrule_criteria_types_counts may be larger than the value of rule_total_count because a rule may have multiple criteria. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary RuleCriteriaTypesCounts { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary RuleCriteriaTypesCounts { get; set; } /// /// /// A unique identifier for the ruleset. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RulesetId { get; set; } + public required string RulesetId { get; set; } /// /// /// The number of rules associated with the ruleset. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int RuleTotalCount { get; set; } + public required int RuleTotalCount { get; set; } /// /// /// A map of rule type (for example, pinned) to the number of rules of that type. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary RuleTypeCounts { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary RuleTypeCounts { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs index 0d444cd3425..eabdd33af4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs @@ -32,17 +32,11 @@ public QueryRulesetMatchedRule(string ruleId, string rulesetId) RuleId = ruleId; RulesetId = rulesetId; } -#if NET7_0_OR_GREATER - public QueryRulesetMatchedRule() - { - } -#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 QueryRulesetMatchedRule() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryRulesetMatchedRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal QueryRulesetMatchedRule(Elastic.Clients.Elasticsearch.Serialization.Jso /// Rule unique identifier within that ruleset /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RuleId { get; set; } + public required string RuleId { get; set; } /// /// /// Ruleset unique identifier /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string RulesetId { get; set; } + public required string RulesetId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryVectorBuilder.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryVectorBuilder.g.cs index ab4e2b04577..0bb2a08ed52 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryVectorBuilder.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryVectorBuilder.g.cs @@ -28,16 +28,11 @@ public sealed partial class QueryVectorBuilder { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public QueryVectorBuilder() - { - } -#endif -#if !NET7_0_OR_GREATER + public QueryVectorBuilder() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetriever.g.cs index 1525a1fc3f3..24313e157f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetriever.g.cs @@ -31,17 +31,11 @@ public RRFRetriever(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection> Retrievers { get; set; } + public required System.Collections.Generic.ICollection> Retrievers { get; set; } } public readonly partial struct RrfRetrieverDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetrieverComponent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetrieverComponent.g.cs index 3c4b96d2ae7..a40100870c3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetrieverComponent.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetrieverComponent.g.cs @@ -36,17 +36,11 @@ public RRFRetrieverComponent(Elastic.Clients.Elasticsearch.Retriever retriever) { Retriever = retriever; } -#if NET7_0_OR_GREATER - public RRFRetrieverComponent() - { - } -#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 RRFRetrieverComponent() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RRFRetrieverComponent(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal RRFRetrieverComponent(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The nested retriever configuration. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + public required Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rank.g.cs index 0d9899e42dd..8a934bcf5d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rank.g.cs @@ -28,16 +28,11 @@ public sealed partial class Rank { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Rank() - { - } -#endif -#if !NET7_0_OR_GREATER + public Rank() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Rank(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RecoveryStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RecoveryStats.g.cs index cfb8452def4..598cb5adfec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RecoveryStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RecoveryStats.g.cs @@ -33,37 +33,19 @@ public RecoveryStats(long currentAsSource, long currentAsTarget, System.TimeSpan CurrentAsTarget = currentAsTarget; ThrottleTimeInMillis = throttleTimeInMillis; } -#if NET7_0_OR_GREATER - public RecoveryStats() - { - } -#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 RecoveryStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RecoveryStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long CurrentAsSource { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CurrentAsTarget { get; set; } + public required long CurrentAsSource { get; set; } + public required long CurrentAsTarget { get; set; } public Elastic.Clients.Elasticsearch.Duration? ThrottleTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ThrottleTimeInMillis { get; set; } + public required System.TimeSpan ThrottleTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RefreshStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RefreshStats.g.cs index a9ffc9173ab..c34efd634b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RefreshStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RefreshStats.g.cs @@ -35,47 +35,21 @@ public RefreshStats(long externalTotal, System.TimeSpan externalTotalTimeInMilli Total = total; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public RefreshStats() - { - } -#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 RefreshStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RefreshStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long ExternalTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ExternalTotalTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Listeners { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long ExternalTotal { get; set; } + public required System.TimeSpan ExternalTotalTimeInMillis { get; set; } + public required long Listeners { get; set; } + public required long Total { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RelocationFailureInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RelocationFailureInfo.g.cs index e9a16a7894d..0f27888c56a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RelocationFailureInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RelocationFailureInfo.g.cs @@ -31,26 +31,16 @@ public RelocationFailureInfo(int failedAttempts) { FailedAttempts = failedAttempts; } -#if NET7_0_OR_GREATER - public RelocationFailureInfo() - { - } -#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 RelocationFailureInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RelocationFailureInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int FailedAttempts { get; set; } + public required int FailedAttempts { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RequestCacheStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RequestCacheStats.g.cs index 7eb62c566c0..d4512ed8ad7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RequestCacheStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RequestCacheStats.g.cs @@ -34,42 +34,20 @@ public RequestCacheStats(long evictions, long hitCount, long memorySizeInBytes, MemorySizeInBytes = memorySizeInBytes; MissCount = missCount; } -#if NET7_0_OR_GREATER - public RequestCacheStats() - { - } -#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 RequestCacheStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RequestCacheStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Evictions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long HitCount { get; set; } + public required long Evictions { get; set; } + public required long HitCount { get; set; } public string? MemorySize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MemorySizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MissCount { get; set; } + public required long MemorySizeInBytes { get; set; } + public required long MissCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescoreVector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescoreVector.g.cs index 4e82de6268d..de90fc8ed72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescoreVector.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescoreVector.g.cs @@ -31,17 +31,11 @@ public RescoreVector(float oversample) { Oversample = oversample; } -#if NET7_0_OR_GREATER - public RescoreVector() - { - } -#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 RescoreVector() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RescoreVector(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal RescoreVector(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Applies the specified oversample factor to k on the approximate kNN search /// /// - public -#if NET7_0_OR_GREATER - required -#endif - float Oversample { get; set; } + public required float Oversample { get; set; } } public readonly partial struct RescoreVectorDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescorerRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescorerRetriever.g.cs index 4851f518398..ff6e93956f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescorerRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescorerRetriever.g.cs @@ -32,17 +32,11 @@ public RescorerRetriever(System.Collections.Generic.ICollection /// public string? Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Rescore { get; set; } + public required System.Collections.Generic.ICollection Rescore { get; set; } /// /// /// Inner retriever. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + public required Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } } public readonly partial struct RescorerRetrieverDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retries.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retries.g.cs index 63fef8c5913..890bf67644e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retries.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retries.g.cs @@ -32,17 +32,11 @@ public Retries(long bulk, long search) Bulk = bulk; Search = search; } -#if NET7_0_OR_GREATER - public Retries() - { - } -#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 Retries() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Retries(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal Retries(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// The number of bulk actions retried. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Bulk { get; set; } + public required long Bulk { get; set; } /// /// /// The number of search actions retried. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Search { get; set; } + public required long Search { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retriever.g.cs index 1ba053aaba2..a00524e63db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retriever.g.cs @@ -28,16 +28,11 @@ public sealed partial class Retriever { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Retriever() - { - } -#endif -#if !NET7_0_OR_GREATER + public Retriever() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Retriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/DateHistogramGrouping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/DateHistogramGrouping.g.cs index 1eda96fd9f1..11f62bb5538 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/DateHistogramGrouping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/DateHistogramGrouping.g.cs @@ -31,17 +31,11 @@ public DateHistogramGrouping(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public DateHistogramGrouping() - { - } -#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 DateHistogramGrouping() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DateHistogramGrouping(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -71,11 +65,7 @@ internal DateHistogramGrouping(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The date field that is to be rolled up. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/FieldMetric.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/FieldMetric.g.cs index 58b1b2c9733..7bc8e744883 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/FieldMetric.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/FieldMetric.g.cs @@ -32,17 +32,11 @@ public FieldMetric(Elastic.Clients.Elasticsearch.Field field, System.Collections Field = field; Metrics = metrics; } -#if NET7_0_OR_GREATER - public FieldMetric() - { - } -#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 FieldMetric() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldMetric(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal FieldMetric(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The field to collect metrics for. This must be a numeric of some kind. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// /// An array of metrics to collect for the field. At least one metric must be configured. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Metrics { get; set; } + public required System.Collections.Generic.ICollection Metrics { get; set; } } public readonly partial struct FieldMetricDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/Groupings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/Groupings.g.cs index 5dee1da15ca..8c90e4b40bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/Groupings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/Groupings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Rollup; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Rollup.Json.GroupingsConverter))] public sealed partial class Groupings { -#if NET7_0_OR_GREATER public Groupings() { } -#endif -#if !NET7_0_OR_GREATER - public Groupings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Groupings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/HistogramGrouping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/HistogramGrouping.g.cs index 5324e8806aa..7fa4498a71c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/HistogramGrouping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/HistogramGrouping.g.cs @@ -32,17 +32,11 @@ public HistogramGrouping(Elastic.Clients.Elasticsearch.Fields fields, long inter Fields = fields; Interval = interval; } -#if NET7_0_OR_GREATER - public HistogramGrouping() - { - } -#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 HistogramGrouping() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HistogramGrouping(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,11 +50,7 @@ internal HistogramGrouping(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Order does not matter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields Fields { get; set; } + public required Elastic.Clients.Elasticsearch.Fields Fields { get; set; } /// /// @@ -69,11 +59,7 @@ internal HistogramGrouping(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Note that only one interval can be specified in the histogram group, meaning that all fields being grouped via the histogram must share the same interval. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Interval { get; set; } + public required long Interval { get; set; } } public readonly partial struct HistogramGroupingDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/IndexCapabilities.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/IndexCapabilities.g.cs index be9cde75aa2..fbe692e4b43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/IndexCapabilities.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/IndexCapabilities.g.cs @@ -31,26 +31,16 @@ public IndexCapabilities(System.Collections.Generic.IReadOnlyCollection RollupJobs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection RollupJobs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilities.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilities.g.cs index cf9bf2b12a5..0702b33fbdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilities.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilities.g.cs @@ -31,17 +31,11 @@ public RollupCapabilities(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection RollupJobs { get; set; } + public required System.Collections.Generic.IReadOnlyCollection RollupJobs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilitySummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilitySummary.g.cs index 38ba5ff54b3..8e9e7d6f56f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilitySummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilitySummary.g.cs @@ -34,41 +34,19 @@ public RollupCapabilitySummary(System.Collections.Generic.IReadOnlyDictionary> Fields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IndexPattern { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string RollupIndex { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Fields { get; set; } + public required string IndexPattern { get; set; } + public required string JobId { get; set; } + public required string RollupIndex { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupFieldSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupFieldSummary.g.cs index ef8ba043fa5..fc4a6313f39 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupFieldSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupFieldSummary.g.cs @@ -31,28 +31,18 @@ public RollupFieldSummary(string agg) { Agg = agg; } -#if NET7_0_OR_GREATER - public RollupFieldSummary() - { - } -#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 RollupFieldSummary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RollupFieldSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Agg { get; set; } + public required string Agg { get; set; } public Elastic.Clients.Elasticsearch.Duration? CalendarInterval { get; set; } public string? TimeZone { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJob.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJob.g.cs index 574c55cfad1..61906b03122 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJob.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJob.g.cs @@ -33,17 +33,11 @@ public RollupJob(Elastic.Clients.Elasticsearch.Rollup.RollupJobConfiguration con Stats = stats; Status = status; } -#if NET7_0_OR_GREATER - public RollupJob() - { - } -#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 RollupJob() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RollupJob(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal RollupJob(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// The rollup job configuration. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Rollup.RollupJobConfiguration Config { get; set; } + public required Elastic.Clients.Elasticsearch.Rollup.RollupJobConfiguration Config { get; set; } /// /// @@ -68,20 +58,12 @@ internal RollupJob(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// If a node is restarted, these stats are reset. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Rollup.RollupJobStats Stats { get; set; } + public required Elastic.Clients.Elasticsearch.Rollup.RollupJobStats Stats { get; set; } /// /// /// The current status of the indexer for the rollup job. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Rollup.RollupJobStatus Status { get; set; } + public required Elastic.Clients.Elasticsearch.Rollup.RollupJobStatus Status { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobConfiguration.g.cs index 774f3be920a..7256f7b69df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobConfiguration.g.cs @@ -38,61 +38,23 @@ public RollupJobConfiguration(string cron, Elastic.Clients.Elasticsearch.Rollup. RollupIndex = rollupIndex; Timeout = timeout; } -#if NET7_0_OR_GREATER - public RollupJobConfiguration() - { - } -#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 RollupJobConfiguration() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RollupJobConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Cron { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Rollup.Groupings Groups { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IndexPattern { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Metrics { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PageSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string RollupIndex { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration Timeout { get; set; } + public required string Cron { get; set; } + public required Elastic.Clients.Elasticsearch.Rollup.Groupings Groups { get; set; } + public required string Id { get; set; } + public required string IndexPattern { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Metrics { get; set; } + public required long PageSize { get; set; } + public required string RollupIndex { get; set; } + public required Elastic.Clients.Elasticsearch.Duration Timeout { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobStats.g.cs index e5c7e6a5ebd..7f0faa0330e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobStats.g.cs @@ -42,81 +42,27 @@ public RollupJobStats(long documentsProcessed, long indexFailures, System.TimeSp SearchTotal = searchTotal; TriggerCount = triggerCount; } -#if NET7_0_OR_GREATER - public RollupJobStats() - { - } -#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 RollupJobStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RollupJobStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocumentsProcessed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexFailures { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan IndexTimeInMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PagesProcessed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ProcessingTimeInMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ProcessingTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RollupsIndexed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SearchFailures { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan SearchTimeInMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SearchTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TriggerCount { get; set; } + public required long DocumentsProcessed { get; set; } + public required long IndexFailures { get; set; } + public required System.TimeSpan IndexTimeInMs { get; set; } + public required long IndexTotal { get; set; } + public required long PagesProcessed { get; set; } + public required System.TimeSpan ProcessingTimeInMs { get; set; } + public required long ProcessingTotal { get; set; } + public required long RollupsIndexed { get; set; } + public required long SearchFailures { get; set; } + public required System.TimeSpan SearchTimeInMs { get; set; } + public required long SearchTotal { get; set; } + public required long TriggerCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobStatus.g.cs index fe86e9bc59d..ba9f2c9e7b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobStatus.g.cs @@ -31,17 +31,11 @@ public RollupJobStatus(Elastic.Clients.Elasticsearch.Rollup.IndexingJobState job { JobState = jobState; } -#if NET7_0_OR_GREATER - public RollupJobStatus() - { - } -#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 RollupJobStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RollupJobStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,10 +43,6 @@ internal RollupJobStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstru } public System.Collections.Generic.IReadOnlyDictionary? CurrentPosition { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Rollup.IndexingJobState JobState { get; set; } + public required Elastic.Clients.Elasticsearch.Rollup.IndexingJobState JobState { get; set; } public bool? UpgradedDocId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobSummary.g.cs index 782982d379d..9ae55126bc9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobSummary.g.cs @@ -34,41 +34,19 @@ public RollupJobSummary(System.Collections.Generic.IReadOnlyDictionary> Fields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IndexPattern { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string JobId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string RollupIndex { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary> Fields { get; set; } + public required string IndexPattern { get; set; } + public required string JobId { get; set; } + public required string RollupIndex { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobSummaryField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobSummaryField.g.cs index d3806fc95a8..d3b3c4ee64c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobSummaryField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJobSummaryField.g.cs @@ -31,28 +31,18 @@ public RollupJobSummaryField(string agg) { Agg = agg; } -#if NET7_0_OR_GREATER - public RollupJobSummaryField() - { - } -#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 RollupJobSummaryField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RollupJobSummaryField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Agg { get; set; } + public required string Agg { get; set; } public Elastic.Clients.Elasticsearch.Duration? CalendarInterval { get; set; } public string? TimeZone { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/TermsGrouping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/TermsGrouping.g.cs index e547e3a3b21..3a0d461e349 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/TermsGrouping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/TermsGrouping.g.cs @@ -31,17 +31,11 @@ public TermsGrouping(Elastic.Clients.Elasticsearch.Fields fields) { Fields = fields; } -#if NET7_0_OR_GREATER - public TermsGrouping() - { - } -#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 TermsGrouping() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TermsGrouping(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal TermsGrouping(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Order does not matter. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields Fields { get; set; } + public required Elastic.Clients.Elasticsearch.Fields Fields { get; set; } } public readonly partial struct TermsGroupingDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RrfRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RrfRank.g.cs index e40fd96b8bb..79729525145 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RrfRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RrfRank.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.RrfRankConverter))] public sealed partial class RrfRank { -#if NET7_0_OR_GREATER public RrfRank() { } -#endif -#if !NET7_0_OR_GREATER - public RrfRank() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RrfRank(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RuleRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RuleRetriever.g.cs index 6d38fbb4f3f..a95d30c64bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RuleRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RuleRetriever.g.cs @@ -33,17 +33,11 @@ public RuleRetriever(object matchCriteria, Elastic.Clients.Elasticsearch.Retriev Retriever = retriever; RulesetIds = rulesetIds; } -#if NET7_0_OR_GREATER - public RuleRetriever() - { - } -#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 RuleRetriever() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RuleRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal RuleRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The match criteria that will determine if a rule in the provided rulesets should be applied. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - object MatchCriteria { get; set; } + public required object MatchCriteria { get; set; } /// /// @@ -94,22 +84,14 @@ internal RuleRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The retriever whose results rules should be applied to. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + public required Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } /// /// /// The ruleset IDs containing the rules this retriever is evaluating against. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection RulesetIds { get; set; } + public required System.Collections.Generic.ICollection RulesetIds { get; set; } } public readonly partial struct RuleRetrieverDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScoreSort.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScoreSort.g.cs index c7bbba0f795..e159afaaf1a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScoreSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScoreSort.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ScoreSortConverter))] public sealed partial class ScoreSort { -#if NET7_0_OR_GREATER public ScoreSort() { } -#endif -#if !NET7_0_OR_GREATER - public ScoreSort() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScoreSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Script.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Script.g.cs index efc04e8ed82..079de519127 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Script.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Script.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ScriptConverter))] public sealed partial class Script { -#if NET7_0_OR_GREATER public Script() { } -#endif -#if !NET7_0_OR_GREATER - public Script() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Script(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScriptField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScriptField.g.cs index c58d489fff9..47c1dfd60fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScriptField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScriptField.g.cs @@ -31,17 +31,11 @@ public ScriptField(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public ScriptField() - { - } -#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 ScriptField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal ScriptField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor } public bool? IgnoreFailure { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } } public readonly partial struct ScriptFieldDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScriptSort.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScriptSort.g.cs index 24f62171b29..a1c24291ef7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScriptSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ScriptSort.g.cs @@ -31,17 +31,11 @@ public ScriptSort(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public ScriptSort() - { - } -#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 ScriptSort() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ScriptSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,11 +45,7 @@ internal ScriptSort(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS public Elastic.Clients.Elasticsearch.SortMode? Mode { get; set; } public Elastic.Clients.Elasticsearch.NestedSortValue? Nested { get; set; } public Elastic.Clients.Elasticsearch.SortOrder? Order { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } public Elastic.Clients.Elasticsearch.ScriptSortType? Type { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/AnalyticsCollection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/AnalyticsCollection.g.cs index f4336c25c56..290336ca74f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/AnalyticsCollection.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/AnalyticsCollection.g.cs @@ -31,17 +31,11 @@ public AnalyticsCollection(Elastic.Clients.Elasticsearch.SearchApplication.Event { EventDataStream = eventDataStream; } -#if NET7_0_OR_GREATER - public AnalyticsCollection() - { - } -#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 AnalyticsCollection() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalyticsCollection(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,9 +47,5 @@ internal AnalyticsCollection(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Data stream for the collection. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.SearchApplication.EventDataStream EventDataStream { get; set; } + public required Elastic.Clients.Elasticsearch.SearchApplication.EventDataStream EventDataStream { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/EventDataStream.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/EventDataStream.g.cs index 0da0c089497..949d26add04 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/EventDataStream.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/EventDataStream.g.cs @@ -31,26 +31,16 @@ public EventDataStream(string name) { Name = name; } -#if NET7_0_OR_GREATER - public EventDataStream() - { - } -#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 EventDataStream() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EventDataStream(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs index 7f392518216..18878e56aa1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs @@ -33,17 +33,11 @@ public SearchApplication(System.Collections.Generic.IReadOnlyCollection Name = name; UpdatedAtMillis = updatedAtMillis; } -#if NET7_0_OR_GREATER - public SearchApplication() - { - } -#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 SearchApplication() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchApplication(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,22 +56,14 @@ internal SearchApplication(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Indices that are part of the Search Application. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } /// /// /// Search Application name /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// @@ -91,9 +77,5 @@ internal SearchApplication(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Last time the Search Application was updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset UpdatedAtMillis { get; set; } + public required System.DateTimeOffset UpdatedAtMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs index 77b37899274..caf9e601f1d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs @@ -31,17 +31,11 @@ public SearchApplicationParameters(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Indices { get; set; } + public required System.Collections.Generic.ICollection Indices { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationTemplate.g.cs index 4f47f8d35b8..655697d2a65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationTemplate.g.cs @@ -31,17 +31,11 @@ public SearchApplicationTemplate(Elastic.Clients.Elasticsearch.Script script) { Script = script; } -#if NET7_0_OR_GREATER - public SearchApplicationTemplate() - { - } -#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 SearchApplicationTemplate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchApplicationTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal SearchApplicationTemplate(Elastic.Clients.Elasticsearch.Serialization.J /// The associated mustache template. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Script { get; set; } + public required Elastic.Clients.Elasticsearch.Script Script { get; set; } } public readonly partial struct SearchApplicationTemplateDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchStats.g.cs index d301e6309a2..42ff55fe38a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchStats.g.cs @@ -42,88 +42,34 @@ public SearchStats(long fetchCurrent, System.TimeSpan fetchTimeInMillis, long fe SuggestTimeInMillis = suggestTimeInMillis; SuggestTotal = suggestTotal; } -#if NET7_0_OR_GREATER - public SearchStats() - { - } -#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 SearchStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long FetchCurrent { get; set; } + public required long FetchCurrent { get; set; } public Elastic.Clients.Elasticsearch.Duration? FetchTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan FetchTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long FetchTotal { get; set; } + public required System.TimeSpan FetchTimeInMillis { get; set; } + public required long FetchTotal { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Groups { get; set; } public long? OpenContexts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long QueryCurrent { get; set; } + public required long QueryCurrent { get; set; } public Elastic.Clients.Elasticsearch.Duration? QueryTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan QueryTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long QueryTotal { get; set; } + public required System.TimeSpan QueryTimeInMillis { get; set; } + public required long QueryTotal { get; set; } public double? RecentSearchLoad { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ScrollCurrent { get; set; } + public required long ScrollCurrent { get; set; } public Elastic.Clients.Elasticsearch.Duration? ScrollTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ScrollTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ScrollTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SuggestCurrent { get; set; } + public required System.TimeSpan ScrollTimeInMillis { get; set; } + public required long ScrollTotal { get; set; } + public required long SuggestCurrent { get; set; } public Elastic.Clients.Elasticsearch.Duration? SuggestTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan SuggestTimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SuggestTotal { get; set; } + public required System.TimeSpan SuggestTimeInMillis { get; set; } + public required long SuggestTotal { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/MountedSnapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/MountedSnapshot.g.cs index 6230b13f927..fb8fcf0435e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/MountedSnapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/MountedSnapshot.g.cs @@ -33,36 +33,18 @@ public MountedSnapshot(System.Collections.Generic.ICollection indices, E Shards = shards; Snapshot = snapshot; } -#if NET7_0_OR_GREATER - public MountedSnapshot() - { - } -#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 MountedSnapshot() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MountedSnapshot(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Indices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Snapshot { get; set; } + public required System.Collections.Generic.ICollection Indices { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required string Snapshot { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Node.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Node.g.cs index 82c449ba879..20f0248f98d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Node.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Node.g.cs @@ -31,26 +31,16 @@ public Node(Elastic.Clients.Elasticsearch.SearchableSnapshots.Shared sharedCache { SharedCache = sharedCache; } -#if NET7_0_OR_GREATER - public Node() - { - } -#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 Node() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Node(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.SearchableSnapshots.Shared SharedCache { get; set; } + public required Elastic.Clients.Elasticsearch.SearchableSnapshots.Shared SharedCache { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Shared.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Shared.g.cs index 52b26572e61..e6a24841bbf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Shared.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/Shared.g.cs @@ -38,61 +38,23 @@ public Shared(Elastic.Clients.Elasticsearch.ByteSize bytesReadInBytes, Elastic.C SizeInBytes = sizeInBytes; Writes = writes; } -#if NET7_0_OR_GREATER - public Shared() - { - } -#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 Shared() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Shared(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize BytesReadInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize BytesWrittenInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Evictions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int NumRegions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Reads { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize RegionSizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize SizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Writes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize BytesReadInBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize BytesWrittenInBytes { get; set; } + public required long Evictions { get; set; } + public required int NumRegions { get; set; } + public required long Reads { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize RegionSizeInBytes { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize SizeInBytes { get; set; } + public required long Writes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Access.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Access.g.cs index ea057073111..d85588c1466 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Access.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Access.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Security; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.AccessConverter))] public sealed partial class Access { -#if NET7_0_OR_GREATER public Access() { } -#endif -#if !NET7_0_OR_GREATER - public Access() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Access(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs index 61891a058fe..a032c2a79e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs @@ -38,17 +38,11 @@ public ApiKey(System.DateTimeOffset creation, string id, bool invalidated, Syste Type = type; Username = username; } -#if NET7_0_OR_GREATER - public ApiKey() - { - } -#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 ApiKey() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -79,11 +73,7 @@ internal ApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// Creation time for the API key in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Creation { get; set; } + public required System.DateTimeOffset Creation { get; set; } /// /// @@ -97,11 +87,7 @@ internal ApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// Id for the API key /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// @@ -109,11 +95,7 @@ internal ApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// If the key has been invalidated, it has a value of true. Otherwise, it is false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Invalidated { get; set; } + public required bool Invalidated { get; set; } /// /// @@ -136,22 +118,14 @@ internal ApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// Metadata of the API key /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } /// /// /// Name of the API key. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// @@ -165,11 +139,7 @@ internal ApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// Realm name of the principal for which this API key was created. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Realm { get; set; } + public required string Realm { get; set; } /// /// @@ -198,20 +168,12 @@ internal ApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// The type of the API key (e.g. rest or cross_cluster). /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.ApiKeyType Type { get; set; } + public required Elastic.Clients.Elasticsearch.Security.ApiKeyType Type { get; set; } /// /// /// Principal for which this API key was created /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Username { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyAggregation.g.cs index 538953d9235..bf760cf8161 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyAggregation.g.cs @@ -28,16 +28,11 @@ public sealed partial class ApiKeyAggregation { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public ApiKeyAggregation() - { - } -#endif -#if !NET7_0_OR_GREATER + public ApiKeyAggregation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApiKeyAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyFiltersAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyFiltersAggregation.g.cs index efb8bbdc8f1..6320852d137 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyFiltersAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyFiltersAggregation.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Security; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.ApiKeyFiltersAggregationConverter))] public sealed partial class ApiKeyFiltersAggregation { -#if NET7_0_OR_GREATER public ApiKeyFiltersAggregation() { } -#endif -#if !NET7_0_OR_GREATER - public ApiKeyFiltersAggregation() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApiKeyFiltersAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyQuery.g.cs index 3904bb87a41..81ba7380f30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyQuery.g.cs @@ -28,16 +28,11 @@ public sealed partial class ApiKeyQuery { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public ApiKeyQuery() - { - } -#endif -#if !NET7_0_OR_GREATER + public ApiKeyQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApiKeyQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs index 5865a93be21..0f89170d027 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs @@ -31,28 +31,18 @@ public ApplicationGlobalUserPrivileges(Elastic.Clients.Elasticsearch.Security.Ma { Manage = manage; } -#if NET7_0_OR_GREATER - public ApplicationGlobalUserPrivileges() - { - } -#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 ApplicationGlobalUserPrivileges() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApplicationGlobalUserPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.ManageUserPrivileges Manage { get; set; } + public required Elastic.Clients.Elasticsearch.Security.ManageUserPrivileges Manage { get; set; } } public readonly partial struct ApplicationGlobalUserPrivilegesDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivileges.g.cs index f2c3b843bc9..1337d088e52 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivileges.g.cs @@ -33,17 +33,11 @@ public ApplicationPrivileges(string application, System.Collections.Generic.ICol Privileges = privileges; Resources = resources; } -#if NET7_0_OR_GREATER - public ApplicationPrivileges() - { - } -#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 ApplicationPrivileges() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApplicationPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,33 +49,21 @@ internal ApplicationPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The name of the application to which this entry applies. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Application { get; set; } + public required string Application { get; set; } /// /// /// A list of strings, where each element is the name of an application privilege or action. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Privileges { get; set; } + public required System.Collections.Generic.ICollection Privileges { get; set; } /// /// /// A list resources to which the privileges are applied. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Resources { get; set; } + public required System.Collections.Generic.ICollection Resources { get; set; } } public readonly partial struct ApplicationPrivilegesDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs index 08022914aec..46962e4ef51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs @@ -33,17 +33,11 @@ public ApplicationPrivilegesCheck(string application, System.Collections.Generic Privileges = privileges; Resources = resources; } -#if NET7_0_OR_GREATER - public ApplicationPrivilegesCheck() - { - } -#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 ApplicationPrivilegesCheck() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ApplicationPrivilegesCheck(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal ApplicationPrivilegesCheck(Elastic.Clients.Elasticsearch.Serialization. /// The name of the application. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Application { get; set; } + public required string Application { get; set; } /// /// @@ -67,22 +57,14 @@ internal ApplicationPrivilegesCheck(Elastic.Clients.Elasticsearch.Serialization. /// It may be either application privilege names or the names of actions that are granted by those privileges /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Privileges { get; set; } + public required System.Collections.Generic.ICollection Privileges { get; set; } /// /// /// A list of resource names against which the privileges should be checked. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Resources { get; set; } + public required System.Collections.Generic.ICollection Resources { get; set; } } public readonly partial struct ApplicationPrivilegesCheckDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs index 78be9a31fdc..af0b7e5225b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs @@ -32,33 +32,19 @@ public AuthenticateApiKey(string id, Elastic.Clients.Elasticsearch.Security.ApiK Id = id; ManagedBy = managedBy; } -#if NET7_0_OR_GREATER - public AuthenticateApiKey() - { - } -#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 AuthenticateApiKey() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AuthenticateApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } public bool? Internal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy ManagedBy { get; set; } + public required Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy ManagedBy { get; set; } public string? Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.g.cs index a0f8524bd8d..06139ae1629 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.g.cs @@ -31,27 +31,17 @@ public AuthenticateToken(string name) { Name = name; } -#if NET7_0_OR_GREATER - public AuthenticateToken() - { - } -#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 AuthenticateToken() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AuthenticateToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } public string? Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticatedUser.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticatedUser.g.cs index d8e2a047ae9..819e3dbaa43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticatedUser.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticatedUser.g.cs @@ -37,17 +37,11 @@ public AuthenticatedUser(Elastic.Clients.Elasticsearch.Security.UserRealm authen Roles = roles; Username = username; } -#if NET7_0_OR_GREATER - public AuthenticatedUser() - { - } -#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 AuthenticatedUser() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AuthenticatedUser(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,42 +49,14 @@ internal AuthenticatedUser(Elastic.Clients.Elasticsearch.Serialization.JsonConst } public Elastic.Clients.Elasticsearch.Security.AuthenticationProvider? AuthenticationProvider { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.UserRealm AuthenticationRealm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string AuthenticationType { get; set; } + public required Elastic.Clients.Elasticsearch.Security.UserRealm AuthenticationRealm { get; set; } + public required string AuthenticationType { get; set; } public string? Email { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } public string? FullName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.UserRealm LookupRealm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } + public required Elastic.Clients.Elasticsearch.Security.UserRealm LookupRealm { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } public string? ProfileUid { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Username { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Authentication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Authentication.g.cs index f6d901fd6bc..70bca0160bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Authentication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Authentication.g.cs @@ -39,17 +39,11 @@ public Authentication(Elastic.Clients.Elasticsearch.Security.AuthenticationRealm Roles = roles; Username = username; } -#if NET7_0_OR_GREATER - public Authentication() - { - } -#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 Authentication() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Authentication(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,50 +51,14 @@ internal Authentication(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc } public System.Collections.Generic.IReadOnlyDictionary? ApiKey { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.AuthenticationRealm AuthenticationRealm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string AuthenticationType { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string? Email { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string? FullName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.AuthenticationRealm LookupRealm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required Elastic.Clients.Elasticsearch.Security.AuthenticationRealm AuthenticationRealm { get; set; } + public required string AuthenticationType { get; set; } + public required string? Email { get; set; } + public required bool Enabled { get; set; } + public required string? FullName { get; set; } + public required Elastic.Clients.Elasticsearch.Security.AuthenticationRealm LookupRealm { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Token { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Username { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationProvider.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationProvider.g.cs index 610b3df83bc..00d9815c756 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationProvider.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationProvider.g.cs @@ -32,31 +32,17 @@ public AuthenticationProvider(string name, string type) Name = name; Type = type; } -#if NET7_0_OR_GREATER - public AuthenticationProvider() - { - } -#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 AuthenticationProvider() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AuthenticationProvider(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Name { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationRealm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationRealm.g.cs index 041a9eee5f4..71ae1bbee5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationRealm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationRealm.g.cs @@ -32,17 +32,11 @@ public AuthenticationRealm(string name, string type) Name = name; Type = type; } -#if NET7_0_OR_GREATER - public AuthenticationRealm() - { - } -#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 AuthenticationRealm() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AuthenticationRealm(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,14 +44,6 @@ internal AuthenticationRealm(Elastic.Clients.Elasticsearch.Serialization.JsonCon } public string? Domain { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Name { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/BulkError.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/BulkError.g.cs index 3693391e235..28c864c471d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/BulkError.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/BulkError.g.cs @@ -32,17 +32,11 @@ public BulkError(int count, System.Collections.Generic.IReadOnlyDictionary /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// Details about the errors, keyed by role name /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Details { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Details { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ClusterNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ClusterNode.g.cs index 2d1a9b68839..8856a4ea09f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ClusterNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ClusterNode.g.cs @@ -31,26 +31,16 @@ public ClusterNode(string name) { Name = name; } -#if NET7_0_OR_GREATER - public ClusterNode() - { - } -#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 ClusterNode() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ClusterNode(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CreatedStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CreatedStatus.g.cs index e63ac8d6050..b2b64b0a084 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CreatedStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CreatedStatus.g.cs @@ -31,26 +31,16 @@ public CreatedStatus(bool created) { Created = created; } -#if NET7_0_OR_GREATER - public CreatedStatus() - { - } -#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 CreatedStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CreatedStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Created { get; set; } + public required bool Created { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FieldSecurity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FieldSecurity.g.cs index 25f4a8e8d2a..7dcc4a65e6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FieldSecurity.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FieldSecurity.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Security; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.FieldSecurityConverter))] public sealed partial class FieldSecurity { -#if NET7_0_OR_GREATER public FieldSecurity() { } -#endif -#if !NET7_0_OR_GREATER - public FieldSecurity() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldSecurity(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FoundStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FoundStatus.g.cs index 4f852662cbd..cb92de8838f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FoundStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FoundStatus.g.cs @@ -31,26 +31,16 @@ public FoundStatus(bool found) { Found = found; } -#if NET7_0_OR_GREATER - public FoundStatus() - { - } -#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 FoundStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FoundStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GetUserProfileErrors.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GetUserProfileErrors.g.cs index 187c988d7d3..aa138ac77ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GetUserProfileErrors.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GetUserProfileErrors.g.cs @@ -32,31 +32,17 @@ public GetUserProfileErrors(long count, System.Collections.Generic.IReadOnlyDict Count = count; Details = details; } -#if NET7_0_OR_GREATER - public GetUserProfileErrors() - { - } -#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 GetUserProfileErrors() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GetUserProfileErrors(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Details { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Details { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GlobalPrivilege.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GlobalPrivilege.g.cs index a58e9a95426..4f69f864557 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GlobalPrivilege.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GlobalPrivilege.g.cs @@ -31,28 +31,18 @@ public GlobalPrivilege(Elastic.Clients.Elasticsearch.Security.ApplicationGlobalU { Application = application; } -#if NET7_0_OR_GREATER - public GlobalPrivilege() - { - } -#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 GlobalPrivilege() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GlobalPrivilege(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.ApplicationGlobalUserPrivileges Application { get; set; } + public required Elastic.Clients.Elasticsearch.Security.ApplicationGlobalUserPrivileges Application { get; set; } } public readonly partial struct GlobalPrivilegeDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs index 2853acb23e4..5c25ed85822 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs @@ -31,17 +31,11 @@ public GrantApiKey(Elastic.Clients.Elasticsearch.Name name) { Name = name; } -#if NET7_0_OR_GREATER - public GrantApiKey() - { - } -#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 GrantApiKey() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GrantApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,11 +57,7 @@ internal GrantApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// public System.Collections.Generic.IDictionary? Metadata { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Name Name { get; set; } + public required Elastic.Clients.Elasticsearch.Name Name { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/HasPrivilegesUserProfileErrors.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/HasPrivilegesUserProfileErrors.g.cs index b94b92d0550..072b56c188c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/HasPrivilegesUserProfileErrors.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/HasPrivilegesUserProfileErrors.g.cs @@ -32,31 +32,17 @@ public HasPrivilegesUserProfileErrors(long count, System.Collections.Generic.IRe Count = count; Details = details; } -#if NET7_0_OR_GREATER - public HasPrivilegesUserProfileErrors() - { - } -#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 HasPrivilegesUserProfileErrors() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HasPrivilegesUserProfileErrors(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Details { get; set; } + public required long Count { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Details { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Hint.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Hint.g.cs index 5940b6700c8..e8f2677d061 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Hint.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Hint.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Security; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.HintConverter))] public sealed partial class Hint { -#if NET7_0_OR_GREATER public Hint() { } -#endif -#if !NET7_0_OR_GREATER - public Hint() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Hint(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs index df70ae9565d..51dcf7d3733 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs @@ -32,17 +32,11 @@ public IndexPrivilegesCheck(Elastic.Clients.Elasticsearch.Indices names, System. Names = names; Privileges = privileges; } -#if NET7_0_OR_GREATER - public IndexPrivilegesCheck() - { - } -#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 IndexPrivilegesCheck() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexPrivilegesCheck(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,22 +57,14 @@ internal IndexPrivilegesCheck(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// A list of indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Names { get; set; } + public required Elastic.Clients.Elasticsearch.Indices Names { get; set; } /// /// /// A list of the privileges that you want to check for the specified indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Privileges { get; set; } + public required System.Collections.Generic.ICollection Privileges { get; set; } } public readonly partial struct IndexPrivilegesCheckDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs index 34d4f6ddb1c..62342fa9d7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs @@ -32,17 +32,11 @@ public IndicesPrivileges(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Names { get; set; } + public required System.Collections.Generic.ICollection Names { get; set; } /// /// /// The index level privileges that owners of the role have on the specified indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Privileges { get; set; } + public required System.Collections.Generic.ICollection Privileges { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/KibanaToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/KibanaToken.g.cs index 4e29b8f52df..55ca84b1afd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/KibanaToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/KibanaToken.g.cs @@ -32,17 +32,11 @@ public KibanaToken(string name, string value) Name = name; Value = value; } -#if NET7_0_OR_GREATER - public KibanaToken() - { - } -#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 KibanaToken() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal KibanaToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal KibanaToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The name of the bearer token for the elastic/kibana service account. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// @@ -66,9 +56,5 @@ internal KibanaToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// Use this value to authenticate the service account with Elasticsearch. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Value { get; set; } + public required string Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ManageUserPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ManageUserPrivileges.g.cs index 1ca30ed2867..75f356aa840 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ManageUserPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ManageUserPrivileges.g.cs @@ -31,28 +31,18 @@ public ManageUserPrivileges(System.Collections.Generic.ICollection appli { Applications = applications; } -#if NET7_0_OR_GREATER - public ManageUserPrivileges() - { - } -#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 ManageUserPrivileges() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ManageUserPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Applications { get; set; } + public required System.Collections.Generic.ICollection Applications { get; set; } } public readonly partial struct ManageUserPrivilegesDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodeSecurityStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodeSecurityStats.g.cs index 674480527b2..9b553de8406 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodeSecurityStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodeSecurityStats.g.cs @@ -31,17 +31,11 @@ public NodeSecurityStats(Elastic.Clients.Elasticsearch.Security.RolesStats roles { Roles = roles; } -#if NET7_0_OR_GREATER - public NodeSecurityStats() - { - } -#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 NodeSecurityStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodeSecurityStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,9 +47,5 @@ internal NodeSecurityStats(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Role statistics. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.RolesStats Roles { get; set; } + public required Elastic.Clients.Elasticsearch.Security.RolesStats Roles { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodesCredentials.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodesCredentials.g.cs index 67eaf7d91d4..97911fa71d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodesCredentials.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodesCredentials.g.cs @@ -32,17 +32,11 @@ public NodesCredentials(System.Collections.Generic.IReadOnlyDictionary /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary FileTokens { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary FileTokens { get; set; } /// /// /// General status showing how nodes respond to the above collection request /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.NodeStatistics Nodes { get; set; } + public required Elastic.Clients.Elasticsearch.NodeStatistics Nodes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodesCredentialsFileToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodesCredentialsFileToken.g.cs index e8763bbb7dc..d4096bfb0e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodesCredentialsFileToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/NodesCredentialsFileToken.g.cs @@ -31,26 +31,16 @@ public NodesCredentialsFileToken(System.Collections.Generic.IReadOnlyCollection< { Nodes = nodes; } -#if NET7_0_OR_GREATER - public NodesCredentialsFileToken() - { - } -#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 NodesCredentialsFileToken() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NodesCredentialsFileToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Nodes { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Nodes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/PrivilegeActions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/PrivilegeActions.g.cs index f9d93fe4957..5ca82dd2c8b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/PrivilegeActions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/PrivilegeActions.g.cs @@ -31,28 +31,18 @@ public PrivilegeActions(System.Collections.Generic.ICollection actions) { Actions = actions; } -#if NET7_0_OR_GREATER - public PrivilegeActions() - { - } -#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 PrivilegeActions() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PrivilegeActions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Actions { get; set; } + public required System.Collections.Generic.ICollection Actions { get; set; } public string? Application { get; set; } public System.Collections.Generic.IDictionary? Metadata { get; set; } public Elastic.Clients.Elasticsearch.Name? Name { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/PrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/PrivilegesCheck.g.cs index 7d52ab2ab1b..f51c8959074 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/PrivilegesCheck.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/PrivilegesCheck.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Security; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.PrivilegesCheckConverter))] public sealed partial class PrivilegesCheck { -#if NET7_0_OR_GREATER public PrivilegesCheck() { } -#endif -#if !NET7_0_OR_GREATER - public PrivilegesCheck() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PrivilegesCheck(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs index ada7eee887f..bbed10e1eb1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs @@ -31,17 +31,11 @@ public QueryRole(string name) { Name = name; } -#if NET7_0_OR_GREATER - public QueryRole() - { - } -#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 QueryRole() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal QueryRole(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -95,11 +89,7 @@ internal QueryRole(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// Name of the role. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryUser.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryUser.g.cs index ed8f2e14b35..43a6b413265 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryUser.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryUser.g.cs @@ -34,17 +34,11 @@ public QueryUser(bool enabled, System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } public string? ProfileUid { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } public System.Collections.Generic.IReadOnlyCollection? Sort { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Username { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RealmInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RealmInfo.g.cs index 5627dfa0d08..4a16b4873c3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RealmInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RealmInfo.g.cs @@ -32,31 +32,17 @@ public RealmInfo(string name, string type) Name = name; Type = type; } -#if NET7_0_OR_GREATER - public RealmInfo() - { - } -#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 RealmInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RealmInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Name { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteClusterPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteClusterPrivileges.g.cs index 3666ddf1460..500b5399ca3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteClusterPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteClusterPrivileges.g.cs @@ -37,17 +37,11 @@ public RemoteClusterPrivileges(Elastic.Clients.Elasticsearch.Names clusters, Sys Clusters = clusters; Privileges = privileges; } -#if NET7_0_OR_GREATER - public RemoteClusterPrivileges() - { - } -#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 RemoteClusterPrivileges() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoteClusterPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,22 +53,14 @@ internal RemoteClusterPrivileges(Elastic.Clients.Elasticsearch.Serialization.Jso /// A list of cluster aliases to which the permissions in this entry apply. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Clusters { get; set; } + public required Elastic.Clients.Elasticsearch.Names Clusters { get; set; } /// /// /// The cluster level privileges that owners of the role have on the remote cluster. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Privileges { get; set; } + public required System.Collections.Generic.ICollection Privileges { get; set; } } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs index 2f552fa7d1e..c8db80be42c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs @@ -38,17 +38,11 @@ public RemoteIndicesPrivileges(Elastic.Clients.Elasticsearch.Names clusters, Sys Names = names; Privileges = privileges; } -#if NET7_0_OR_GREATER - public RemoteIndicesPrivileges() - { - } -#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 RemoteIndicesPrivileges() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoteIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +61,7 @@ internal RemoteIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization.Jso /// A list of cluster aliases to which the permissions in this entry apply. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Names Clusters { get; set; } + public required Elastic.Clients.Elasticsearch.Names Clusters { get; set; } /// /// @@ -85,22 +75,14 @@ internal RemoteIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization.Jso /// A list of indices (or index name patterns) to which the permissions in this entry apply. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Names { get; set; } + public required System.Collections.Generic.ICollection Names { get; set; } /// /// /// The index level privileges that owners of the role have on the specified indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Privileges { get; set; } + public required System.Collections.Generic.ICollection Privileges { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteUserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteUserIndicesPrivileges.g.cs index 0f4264c01d5..b0f432e8cf3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteUserIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteUserIndicesPrivileges.g.cs @@ -34,17 +34,11 @@ public RemoteUserIndicesPrivileges(bool allowRestrictedIndices, System.Collectio Names = names; Privileges = privileges; } -#if NET7_0_OR_GREATER - public RemoteUserIndicesPrivileges() - { - } -#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 RemoteUserIndicesPrivileges() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RemoteUserIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,16 +50,8 @@ internal RemoteUserIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool AllowRestrictedIndices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Clusters { get; set; } + public required bool AllowRestrictedIndices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Clusters { get; set; } /// /// @@ -79,22 +65,14 @@ internal RemoteUserIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization /// A list of indices (or index name patterns) to which the permissions in this entry apply. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Names { get; set; } + public required System.Collections.Generic.ICollection Names { get; set; } /// /// /// The index level privileges that owners of the role have on the specified indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Privileges { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Privileges { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ReplicationAccess.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ReplicationAccess.g.cs index 7b53b1fc55f..a6a420a40d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ReplicationAccess.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ReplicationAccess.g.cs @@ -31,17 +31,11 @@ public ReplicationAccess(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Names { get; set; } + public required System.Collections.Generic.ICollection Names { get; set; } } public readonly partial struct ReplicationAccessDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs index a1fa523860a..7fe54924ebf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs @@ -31,17 +31,11 @@ public Restriction(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Workflows { get; set; } + public required System.Collections.Generic.ICollection Workflows { get; set; } } public readonly partial struct RestrictionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs index 1eacebba2f2..6151d796a60 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Security; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.RoleDescriptorConverter))] public sealed partial class RoleDescriptor { -#if NET7_0_OR_GREATER public RoleDescriptor() { } -#endif -#if !NET7_0_OR_GREATER - public RoleDescriptor() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RoleDescriptor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs index 2a48f080c66..dbf9445306d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs @@ -32,17 +32,11 @@ public RoleDescriptorRead(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Cluster { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Cluster { get; set; } /// /// @@ -86,11 +76,7 @@ internal RoleDescriptorRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// A list of indices permissions entries. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorWrapper.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorWrapper.g.cs index fd5fe2bd974..d2cc6acc3f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorWrapper.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorWrapper.g.cs @@ -31,26 +31,16 @@ public RoleDescriptorWrapper(Elastic.Clients.Elasticsearch.Security.RoleDescript { RoleDescriptor = roleDescriptor; } -#if NET7_0_OR_GREATER - public RoleDescriptorWrapper() - { - } -#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 RoleDescriptorWrapper() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RoleDescriptorWrapper(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.RoleDescriptorRead RoleDescriptor { get; set; } + public required Elastic.Clients.Elasticsearch.Security.RoleDescriptorRead RoleDescriptor { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleInfo.g.cs index 3da2cf84ec9..9b430a05038 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleInfo.g.cs @@ -34,45 +34,23 @@ public RoleInfo(System.Collections.Generic.IReadOnlyCollection Applications { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Cluster { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Applications { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Cluster { get; set; } public string? Description { get; set; } public System.Collections.Generic.IReadOnlyDictionary>>>? Global { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } public System.Collections.Generic.IReadOnlyCollection? RemoteCluster { get; set; } public System.Collections.Generic.IReadOnlyCollection? RemoteIndices { get; set; } public System.Collections.Generic.IReadOnlyCollection? RoleTemplates { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleMapping.g.cs index 5adaa1a4067..8933f33e275 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleMapping.g.cs @@ -33,38 +33,20 @@ public RoleMapping(bool enabled, System.Collections.Generic.IReadOnlyDictionary< Metadata = metadata; Rules = rules; } -#if NET7_0_OR_GREATER - public RoleMapping() - { - } -#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 RoleMapping() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RoleMapping(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } + public required bool Enabled { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } public System.Collections.Generic.IReadOnlyCollection? Roles { get; set; } public System.Collections.Generic.IReadOnlyCollection? RoleTemplates { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.RoleMappingRule Rules { get; set; } + public required Elastic.Clients.Elasticsearch.Security.RoleMappingRule Rules { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleMappingRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleMappingRule.g.cs index f03082dd85c..7a18afc833d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleMappingRule.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleMappingRule.g.cs @@ -28,16 +28,11 @@ public sealed partial class RoleMappingRule { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public RoleMappingRule() - { - } -#endif -#if !NET7_0_OR_GREATER + public RoleMappingRule() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RoleMappingRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleQuery.g.cs index 41235ad2169..afbe307edac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleQuery.g.cs @@ -28,16 +28,11 @@ public sealed partial class RoleQuery { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public RoleQuery() - { - } -#endif -#if !NET7_0_OR_GREATER + public RoleQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RoleQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplate.g.cs index f1612235e7c..4722a44c21a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplate.g.cs @@ -31,17 +31,11 @@ public RoleTemplate(Elastic.Clients.Elasticsearch.Script template) { Template = template; } -#if NET7_0_OR_GREATER - public RoleTemplate() - { - } -#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 RoleTemplate() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RoleTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,11 +43,7 @@ internal RoleTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo } public Elastic.Clients.Elasticsearch.Security.TemplateFormat? Format { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Script Template { get; set; } + public required Elastic.Clients.Elasticsearch.Script Template { get; set; } } public readonly partial struct RoleTemplateDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RolesStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RolesStats.g.cs index 4aa5be9f68a..9f6830d0e72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RolesStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RolesStats.g.cs @@ -31,17 +31,11 @@ public RolesStats(Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDls dls) { Dls = dls; } -#if NET7_0_OR_GREATER - public RolesStats() - { - } -#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 RolesStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RolesStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,9 +47,5 @@ internal RolesStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Document-level security (DLS) statistics. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDls Dls { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDls Dls { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SearchAccess.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SearchAccess.g.cs index e3a97122924..b34b9218803 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SearchAccess.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SearchAccess.g.cs @@ -31,17 +31,11 @@ public SearchAccess(System.Collections.Generic.ICollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Names { get; set; } + public required System.Collections.Generic.ICollection Names { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SecuritySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SecuritySettings.g.cs index c68b87e683c..2a2b0465a04 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SecuritySettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SecuritySettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Security; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.SecuritySettingsConverter))] public sealed partial class SecuritySettings { -#if NET7_0_OR_GREATER public SecuritySettings() { } -#endif -#if !NET7_0_OR_GREATER - public SecuritySettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SecuritySettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ServiceToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ServiceToken.g.cs index e1f8974928a..adc7c1fe289 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ServiceToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ServiceToken.g.cs @@ -32,31 +32,17 @@ public ServiceToken(string name, string value) Name = name; Value = value; } -#if NET7_0_OR_GREATER - public ServiceToken() - { - } -#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 ServiceToken() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ServiceToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Value { get; set; } + public required string Name { get; set; } + public required string Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/TotalUserProfiles.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/TotalUserProfiles.g.cs index c4ccac81b80..4ca2f7b56e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/TotalUserProfiles.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/TotalUserProfiles.g.cs @@ -32,31 +32,17 @@ public TotalUserProfiles(string relation, long value) Relation = relation; Value = value; } -#if NET7_0_OR_GREATER - public TotalUserProfiles() - { - } -#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 TotalUserProfiles() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TotalUserProfiles(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Relation { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Value { get; set; } + public required string Relation { get; set; } + public required long Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/User.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/User.g.cs index 9e91fa79203..d0049ebef61 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/User.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/User.g.cs @@ -34,17 +34,11 @@ public User(bool enabled, System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Metadata { get; set; } public string? ProfileUid { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Username { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs index 9f69f053dad..469593e0d38 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs @@ -33,17 +33,11 @@ public UserIndicesPrivileges(bool allowRestrictedIndices, System.Collections.Gen Names = names; Privileges = privileges; } -#if NET7_0_OR_GREATER - public UserIndicesPrivileges() - { - } -#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 UserIndicesPrivileges() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UserIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal UserIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool AllowRestrictedIndices { get; set; } + public required bool AllowRestrictedIndices { get; set; } /// /// @@ -73,22 +63,14 @@ internal UserIndicesPrivileges(Elastic.Clients.Elasticsearch.Serialization.JsonC /// A list of indices (or index name patterns) to which the permissions in this entry apply. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Names { get; set; } + public required System.Collections.Generic.ICollection Names { get; set; } /// /// /// The index level privileges that owners of the role have on the specified indices. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Privileges { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Privileges { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfile.g.cs index 7081a403616..26080defd6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfile.g.cs @@ -34,42 +34,20 @@ public UserProfile(System.Collections.Generic.IReadOnlyDictionary Data { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Data { get; set; } public bool? Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Labels { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Uid { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.UserProfileUser User { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Labels { get; set; } + public required string Uid { get; set; } + public required Elastic.Clients.Elasticsearch.Security.UserProfileUser User { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileHitMetadata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileHitMetadata.g.cs index 067ea362739..265f942d0fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileHitMetadata.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileHitMetadata.g.cs @@ -32,31 +32,17 @@ public UserProfileHitMetadata(long primaryTerm, long seqNo) PrimaryTerm = primaryTerm; SeqNo = seqNo; } -#if NET7_0_OR_GREATER - public UserProfileHitMetadata() - { - } -#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 UserProfileHitMetadata() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UserProfileHitMetadata(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long PrimaryTerm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SeqNo { get; set; } + public required long PrimaryTerm { get; set; } + public required long SeqNo { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileUser.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileUser.g.cs index 5e44710da72..10f940ec441 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileUser.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileUser.g.cs @@ -33,17 +33,11 @@ public UserProfileUser(string realmName, System.Collections.Generic.IReadOnlyCol Roles = roles; Username = username; } -#if NET7_0_OR_GREATER - public UserProfileUser() - { - } -#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 UserProfileUser() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UserProfileUser(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,19 +47,7 @@ internal UserProfileUser(Elastic.Clients.Elasticsearch.Serialization.JsonConstru public string? Email { get; set; } public string? FullName { get; set; } public string? RealmDomain { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string RealmName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Username { get; set; } + public required string RealmName { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Roles { get; set; } + public required string Username { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileWithMetadata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileWithMetadata.g.cs index f5b5fe7b4b1..39f979acb23 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileWithMetadata.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserProfileWithMetadata.g.cs @@ -36,52 +36,22 @@ public UserProfileWithMetadata(System.Collections.Generic.IReadOnlyDictionary Data { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.UserProfileHitMetadata Doc { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Data { get; set; } + public required Elastic.Clients.Elasticsearch.Security.UserProfileHitMetadata Doc { get; set; } public bool? Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Labels { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long LastSynchronized { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Uid { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Security.UserProfileUser User { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Labels { get; set; } + public required long LastSynchronized { get; set; } + public required string Uid { get; set; } + public required Elastic.Clients.Elasticsearch.Security.UserProfileUser User { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserQuery.g.cs index 090062634ac..0d3ad2f37c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserQuery.g.cs @@ -28,16 +28,11 @@ public sealed partial class UserQuery { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public UserQuery() - { - } -#endif -#if !NET7_0_OR_GREATER + public UserQuery() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UserQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserRealm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserRealm.g.cs index f3da588efd7..2897bd3f343 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserRealm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserRealm.g.cs @@ -32,31 +32,17 @@ public UserRealm(string name, string type) Name = name; Type = type; } -#if NET7_0_OR_GREATER - public UserRealm() - { - } -#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 UserRealm() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal UserRealm(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Name { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SegmentsStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SegmentsStats.g.cs index b6440256065..7f9395ae6fb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SegmentsStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SegmentsStats.g.cs @@ -43,17 +43,11 @@ public SegmentsStats(int count, long docValuesMemoryInBytes, System.Collections. TermVectorsMemoryInBytes = termVectorsMemoryInBytes; VersionMapMemoryInBytes = versionMapMemoryInBytes; } -#if NET7_0_OR_GREATER - public SegmentsStats() - { - } -#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 SegmentsStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -65,11 +59,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total number of segments across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// @@ -83,11 +73,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used for doc values across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long DocValuesMemoryInBytes { get; set; } + public required long DocValuesMemoryInBytes { get; set; } /// /// @@ -95,11 +81,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// To get information on segment files, use the node stats API. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary FileSizes { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary FileSizes { get; set; } /// /// @@ -114,11 +96,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount of memory, in bytes, used by fixed bit sets across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long FixedBitSetMemoryInBytes { get; set; } + public required long FixedBitSetMemoryInBytes { get; set; } /// /// @@ -132,22 +110,14 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used by all index writers across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long IndexWriterMemoryInBytes { get; set; } + public required long IndexWriterMemoryInBytes { get; set; } /// /// /// Unix timestamp, in milliseconds, of the most recently retried indexing request. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MaxUnsafeAutoIdTimestamp { get; set; } + public required long MaxUnsafeAutoIdTimestamp { get; set; } /// /// @@ -161,11 +131,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used for segments across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MemoryInBytes { get; set; } + public required long MemoryInBytes { get; set; } /// /// @@ -179,11 +145,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used for normalization factors across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long NormsMemoryInBytes { get; set; } + public required long NormsMemoryInBytes { get; set; } /// /// @@ -197,11 +159,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used for points across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long PointsMemoryInBytes { get; set; } + public required long PointsMemoryInBytes { get; set; } /// /// @@ -215,11 +173,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used for stored fields across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long StoredFieldsMemoryInBytes { get; set; } + public required long StoredFieldsMemoryInBytes { get; set; } /// /// @@ -233,11 +187,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used for terms across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TermsMemoryInBytes { get; set; } + public required long TermsMemoryInBytes { get; set; } /// /// @@ -251,11 +201,7 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used for term vectors across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TermVectorsMemoryInBytes { get; set; } + public required long TermVectorsMemoryInBytes { get; set; } /// /// @@ -269,9 +215,5 @@ internal SegmentsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// Total amount, in bytes, of memory used by all version maps across all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long VersionMapMemoryInBytes { get; set; } + public required long VersionMapMemoryInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardFailure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardFailure.g.cs index 12cc062592f..933dd325fab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardFailure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardFailure.g.cs @@ -31,17 +31,11 @@ public ShardFailure(Elastic.Clients.Elasticsearch.ErrorCause reason) { Reason = reason; } -#if NET7_0_OR_GREATER - public ShardFailure() - { - } -#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 ShardFailure() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardFailure(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,11 +45,7 @@ internal ShardFailure(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo public string? Index { get; set; } public string? Node { get; set; } public bool? Primary { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ErrorCause Reason { get; set; } + public required Elastic.Clients.Elasticsearch.ErrorCause Reason { get; set; } public int? Shard { get; set; } public string? Status { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs index 3e659526bd1..2464dc92600 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs @@ -33,17 +33,11 @@ public ShardStatistics(int failed, int successful, int total) Successful = successful; Total = total; } -#if NET7_0_OR_GREATER - public ShardStatistics() - { - } -#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 ShardStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal ShardStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The number of shards the operation or search attempted to run on but failed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Failed { get; set; } + public required int Failed { get; set; } public System.Collections.Generic.IReadOnlyCollection? Failures { get; set; } public int? Skipped { get; set; } @@ -68,20 +58,12 @@ internal ShardStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The number of shards the operation or search succeeded on. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Successful { get; set; } + public required int Successful { get; set; } /// /// /// The number of shards the operation or search will run on overall. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Total { get; set; } + public required int Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/IngestDocumentSimulation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/IngestDocumentSimulation.g.cs index b4bc548abc1..c911c10a91e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/IngestDocumentSimulation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/IngestDocumentSimulation.g.cs @@ -43,17 +43,11 @@ public IngestDocumentSimulation(System.Collections.Generic.IReadOnlyCollection /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection ExecutedPipelines { get; set; } + public required System.Collections.Generic.IReadOnlyCollection ExecutedPipelines { get; set; } /// /// /// Identifier for the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// @@ -107,11 +93,7 @@ internal IngestDocumentSimulation(Elastic.Clients.Elasticsearch.Serialization.Js /// Name of the index that the document would be indexed into if this were not a simulation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } + public required string Index { get; set; } /// /// @@ -125,14 +107,6 @@ internal IngestDocumentSimulation(Elastic.Clients.Elasticsearch.Serialization.Js /// JSON body for the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Source { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Source { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/SimulateIngestDocumentResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/SimulateIngestDocumentResult.g.cs index 3b689ff96a0..25bfeadac92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/SimulateIngestDocumentResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/SimulateIngestDocumentResult.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Simulate; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Simulate.Json.SimulateIngestDocumentResultConverter))] public sealed partial class SimulateIngestDocumentResult { -#if NET7_0_OR_GREATER public SimulateIngestDocumentResult() { } -#endif -#if !NET7_0_OR_GREATER - public SimulateIngestDocumentResult() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SimulateIngestDocumentResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SlicedScroll.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SlicedScroll.g.cs index 39fe6abd24b..017674ca3b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SlicedScroll.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SlicedScroll.g.cs @@ -32,17 +32,11 @@ public SlicedScroll(Elastic.Clients.Elasticsearch.Id id, int max) Id = id; Max = max; } -#if NET7_0_OR_GREATER - public SlicedScroll() - { - } -#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 SlicedScroll() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlicedScroll(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,16 +44,8 @@ internal SlicedScroll(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo } public Elastic.Clients.Elasticsearch.Field? Field { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Max { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required int Max { get; set; } } public readonly partial struct SlicedScrollDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/AzureRepository.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/AzureRepository.g.cs index 553e3379d0b..328f3809701 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/AzureRepository.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/AzureRepository.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Snapshot; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Snapshot.Json.AzureRepositoryConverter))] public sealed partial class AzureRepository : Elastic.Clients.Elasticsearch.Snapshot.IRepository { -#if NET7_0_OR_GREATER public AzureRepository() { } -#endif -#if !NET7_0_OR_GREATER - public AzureRepository() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AzureRepository(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/AzureRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/AzureRepositorySettings.g.cs index 0dc3c79eb39..a2a9699969a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/AzureRepositorySettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/AzureRepositorySettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Snapshot; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Snapshot.Json.AzureRepositorySettingsConverter))] public sealed partial class AzureRepositorySettings { -#if NET7_0_OR_GREATER public AzureRepositorySettings() { } -#endif -#if !NET7_0_OR_GREATER - public AzureRepositorySettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AzureRepositorySettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/BlobDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/BlobDetails.g.cs index 45d337d3fe7..3a3a53b2a20 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/BlobDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/BlobDetails.g.cs @@ -38,17 +38,11 @@ public BlobDetails(string name, bool overwritten, bool readEarly, long readEnd, Size = size; SizeBytes = sizeBytes; } -#if NET7_0_OR_GREATER - public BlobDetails() - { - } -#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 BlobDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BlobDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,11 +54,7 @@ internal BlobDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The name of the blob. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } /// /// @@ -72,69 +62,41 @@ internal BlobDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /** /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Overwritten { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool ReadEarly { get; set; } + public required bool Overwritten { get; set; } + public required bool ReadEarly { get; set; } /// /// /// The position, in bytes, at which read operations completed. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long ReadEnd { get; set; } + public required long ReadEnd { get; set; } /// /// /// A description of every read operation performed on the blob. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ReadBlobDetails Reads { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ReadBlobDetails Reads { get; set; } /// /// /// The position, in bytes, at which read operations started. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long ReadStart { get; set; } + public required long ReadStart { get; set; } /// /// /// The size of the blob. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize Size { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize Size { get; set; } /// /// /// The size of the blob in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long SizeBytes { get; set; } + public required long SizeBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs index 081dd56b421..a4c35bc6be3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs @@ -32,17 +32,11 @@ public CleanupRepositoryResults(long deletedBlobs, long deletedBytes) DeletedBlobs = deletedBlobs; DeletedBytes = deletedBytes; } -#if NET7_0_OR_GREATER - public CleanupRepositoryResults() - { - } -#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 CleanupRepositoryResults() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CleanupRepositoryResults(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,20 +49,12 @@ internal CleanupRepositoryResults(Elastic.Clients.Elasticsearch.Serialization.Js /// A non-zero value indicates that unreferenced blobs were found and subsequently cleaned up. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long DeletedBlobs { get; set; } + public required long DeletedBlobs { get; set; } /// /// /// The number of bytes freed by cleanup operations. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long DeletedBytes { get; set; } + public required long DeletedBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CompactNodeInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CompactNodeInfo.g.cs index 48b95d25da8..e44aae61b9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CompactNodeInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CompactNodeInfo.g.cs @@ -31,17 +31,11 @@ public CompactNodeInfo(string name) { Name = name; } -#if NET7_0_OR_GREATER - public CompactNodeInfo() - { - } -#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 CompactNodeInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CompactNodeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,9 +49,5 @@ internal CompactNodeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The default value is the machine's hostname. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/DetailsInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/DetailsInfo.g.cs index a6a04a38136..3b3bd7170cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/DetailsInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/DetailsInfo.g.cs @@ -36,17 +36,11 @@ public DetailsInfo(Elastic.Clients.Elasticsearch.Snapshot.BlobDetails blob, Elas WriteThrottled = writeThrottled; WriteThrottledNanos = writeThrottledNanos; } -#if NET7_0_OR_GREATER - public DetailsInfo() - { - } -#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 DetailsInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DetailsInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal DetailsInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// A description of the blob that was written and read. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.BlobDetails Blob { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.BlobDetails Blob { get; set; } /// /// @@ -85,53 +75,33 @@ internal DetailsInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The elapsed time spent writing the blob. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration WriteElapsed { get; set; } + public required Elastic.Clients.Elasticsearch.Duration WriteElapsed { get; set; } /// /// /// The elapsed time spent writing the blob, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan WriteElapsedNanos { get; set; } + public required System.TimeSpan WriteElapsedNanos { get; set; } /// /// /// The node which wrote the blob and coordinated the read operations. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo WriterNode { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo WriterNode { get; set; } /// /// /// The length of time spent waiting for the max_snapshot_bytes_per_sec (or indices.recovery.max_bytes_per_sec if the recovery settings for managed services are set) throttle while writing the blob. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration WriteThrottled { get; set; } + public required Elastic.Clients.Elasticsearch.Duration WriteThrottled { get; set; } /// /// /// The length of time spent waiting for the max_snapshot_bytes_per_sec (or indices.recovery.max_bytes_per_sec if the recovery settings for managed services are set) throttle while writing the blob, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan WriteThrottledNanos { get; set; } + public required System.TimeSpan WriteThrottledNanos { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs index 1e1646697ff..f514e55943d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs @@ -32,31 +32,17 @@ public FileCountSnapshotStats(int fileCount, long sizeInBytes) FileCount = fileCount; SizeInBytes = sizeInBytes; } -#if NET7_0_OR_GREATER - public FileCountSnapshotStats() - { - } -#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 FileCountSnapshotStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FileCountSnapshotStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int FileCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } + public required int FileCount { get; set; } + public required long SizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/GcsRepository.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/GcsRepository.g.cs index a23b971c7b1..597393a4b8f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/GcsRepository.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/GcsRepository.g.cs @@ -31,17 +31,11 @@ public GcsRepository(Elastic.Clients.Elasticsearch.Snapshot.GcsRepositorySetting { Settings = settings; } -#if NET7_0_OR_GREATER - public GcsRepository() - { - } -#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 GcsRepository() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GcsRepository(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal GcsRepository(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The repository settings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.GcsRepositorySettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.GcsRepositorySettings Settings { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/GcsRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/GcsRepositorySettings.g.cs index 14f70c824bf..09cd6b49e55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/GcsRepositorySettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/GcsRepositorySettings.g.cs @@ -31,17 +31,11 @@ public GcsRepositorySettings(string bucket) { Bucket = bucket; } -#if NET7_0_OR_GREATER - public GcsRepositorySettings() - { - } -#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 GcsRepositorySettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal GcsRepositorySettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -73,11 +67,7 @@ internal GcsRepositorySettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The name of the bucket to be used for snapshots. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Bucket { get; set; } + public required string Bucket { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs index 7d561a53547..8563cc53c0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs @@ -33,37 +33,19 @@ public IndexDetails(long maxSegmentsPerShard, int shardCount, long sizeInBytes) ShardCount = shardCount; SizeInBytes = sizeInBytes; } -#if NET7_0_OR_GREATER - public IndexDetails() - { - } -#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 IndexDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IndexDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long MaxSegmentsPerShard { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int ShardCount { get; set; } + public required long MaxSegmentsPerShard { get; set; } + public required int ShardCount { get; set; } public Elastic.Clients.Elasticsearch.ByteSize? Size { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } + public required long SizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/InfoFeatureState.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/InfoFeatureState.g.cs index b8d2058e190..abf65c91df9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/InfoFeatureState.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/InfoFeatureState.g.cs @@ -32,31 +32,17 @@ public InfoFeatureState(string featureName, System.Collections.Generic.ICollecti FeatureName = featureName; Indices = indices; } -#if NET7_0_OR_GREATER - public InfoFeatureState() - { - } -#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 InfoFeatureState() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InfoFeatureState(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string FeatureName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.ICollection Indices { get; set; } + public required string FeatureName { get; set; } + public required System.Collections.Generic.ICollection Indices { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadBlobDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadBlobDetails.g.cs index 3cb5bc3bf25..5559c0b2438 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadBlobDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadBlobDetails.g.cs @@ -33,17 +33,11 @@ public ReadBlobDetails(System.TimeSpan firstByteTimeNanos, bool found, Elastic.C Found = found; Node = node; } -#if NET7_0_OR_GREATER - public ReadBlobDetails() - { - } -#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 ReadBlobDetails() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReadBlobDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -87,11 +81,7 @@ internal ReadBlobDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// If the blob was not found, this detail is omitted. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan FirstByteTimeNanos { get; set; } + public required System.TimeSpan FirstByteTimeNanos { get; set; } /// /// @@ -99,22 +89,14 @@ internal ReadBlobDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// If the read was started before the write completed or the write was ended before completion, it might be false. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Found { get; set; } + public required bool Found { get; set; } /// /// /// The node that performed the read operation. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo Node { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo Node { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadOnlyUrlRepository.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadOnlyUrlRepository.g.cs index 51d393abf33..88ec74f84e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadOnlyUrlRepository.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadOnlyUrlRepository.g.cs @@ -31,17 +31,11 @@ public ReadOnlyUrlRepository(Elastic.Clients.Elasticsearch.Snapshot.ReadOnlyUrlR { Settings = settings; } -#if NET7_0_OR_GREATER - public ReadOnlyUrlRepository() - { - } -#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 ReadOnlyUrlRepository() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReadOnlyUrlRepository(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal ReadOnlyUrlRepository(Elastic.Clients.Elasticsearch.Serialization.JsonC /// The repository settings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ReadOnlyUrlRepositorySettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ReadOnlyUrlRepositorySettings Settings { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadOnlyUrlRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadOnlyUrlRepositorySettings.g.cs index 7f09e1cb1a4..e1858783a50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadOnlyUrlRepositorySettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadOnlyUrlRepositorySettings.g.cs @@ -31,17 +31,11 @@ public ReadOnlyUrlRepositorySettings(string url) { Url = url; } -#if NET7_0_OR_GREATER - public ReadOnlyUrlRepositorySettings() - { - } -#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 ReadOnlyUrlRepositorySettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReadOnlyUrlRepositorySettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -149,11 +143,7 @@ internal ReadOnlyUrlRepositorySettings(Elastic.Clients.Elasticsearch.Serializati /// You don't need to register URLs using the FTP, HTTP, HTTPS, or JAR protocols in the path.repo setting. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Url { get; set; } + public required string Url { get; set; } } public readonly partial struct ReadOnlyUrlRepositorySettingsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadSummaryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadSummaryInfo.g.cs index 1d0270f4e08..7fc9e0f5db5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadSummaryInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadSummaryInfo.g.cs @@ -41,17 +41,11 @@ public ReadSummaryInfo(int count, Elastic.Clients.Elasticsearch.Duration maxWait TotalWait = totalWait; TotalWaitNanos = totalWaitNanos; } -#if NET7_0_OR_GREATER - public ReadSummaryInfo() - { - } -#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 ReadSummaryInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ReadSummaryInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -63,119 +57,75 @@ internal ReadSummaryInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// The number of read operations performed in the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// The maximum time spent waiting for the first byte of any read request to be received. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration MaxWait { get; set; } + public required Elastic.Clients.Elasticsearch.Duration MaxWait { get; set; } /// /// /// The maximum time spent waiting for the first byte of any read request to be received, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan MaxWaitNanos { get; set; } + public required System.TimeSpan MaxWaitNanos { get; set; } /// /// /// The total elapsed time spent on reading blobs in the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration TotalElapsed { get; set; } + public required Elastic.Clients.Elasticsearch.Duration TotalElapsed { get; set; } /// /// /// The total elapsed time spent on reading blobs in the test, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalElapsedNanos { get; set; } + public required System.TimeSpan TotalElapsedNanos { get; set; } /// /// /// The total size of all the blobs or partial blobs read in the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize TotalSize { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize TotalSize { get; set; } /// /// /// The total size of all the blobs or partial blobs read in the test, in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeBytes { get; set; } + public required long TotalSizeBytes { get; set; } /// /// /// The total time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration TotalThrottled { get; set; } + public required Elastic.Clients.Elasticsearch.Duration TotalThrottled { get; set; } /// /// /// The total time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalThrottledNanos { get; set; } + public required System.TimeSpan TotalThrottledNanos { get; set; } /// /// /// The total time spent waiting for the first byte of each read request to be received. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration TotalWait { get; set; } + public required Elastic.Clients.Elasticsearch.Duration TotalWait { get; set; } /// /// /// The total time spent waiting for the first byte of each read request to be received, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalWaitNanos { get; set; } + public required System.TimeSpan TotalWaitNanos { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/S3Repository.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/S3Repository.g.cs index 3993fd5f945..2758a75a9ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/S3Repository.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/S3Repository.g.cs @@ -31,17 +31,11 @@ public S3Repository(Elastic.Clients.Elasticsearch.Snapshot.S3RepositorySettings { Settings = settings; } -#if NET7_0_OR_GREATER - public S3Repository() - { - } -#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 S3Repository() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal S3Repository(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,11 +52,7 @@ internal S3Repository(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// Conflicts between client and repository settings are resolved by the repository settings taking precedence over client settings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.S3RepositorySettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.S3RepositorySettings Settings { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/S3RepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/S3RepositorySettings.g.cs index 82ddf0cc0f0..07a3387dbb2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/S3RepositorySettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/S3RepositorySettings.g.cs @@ -31,17 +31,11 @@ public S3RepositorySettings(string bucket) { Bucket = bucket; } -#if NET7_0_OR_GREATER - public S3RepositorySettings() - { - } -#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 S3RepositorySettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal S3RepositorySettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -67,11 +61,7 @@ internal S3RepositorySettings(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The bucket name must adhere to Amazon's S3 bucket naming rules. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Bucket { get; set; } + public required string Bucket { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStats.g.cs index e33452fd0b7..2bb2be489c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStats.g.cs @@ -36,17 +36,11 @@ public ShardsStats(long done, long failed, long finalizing, long initializing, l Started = started; Total = total; } -#if NET7_0_OR_GREATER - public ShardsStats() - { - } -#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 ShardsStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -58,64 +52,40 @@ internal ShardsStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The number of shards that initialized, started, and finalized successfully. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Done { get; set; } + public required long Done { get; set; } /// /// /// The number of shards that failed to be included in the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Failed { get; set; } + public required long Failed { get; set; } /// /// /// The number of shards that are finalizing but are not done. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Finalizing { get; set; } + public required long Finalizing { get; set; } /// /// /// The number of shards that are still initializing. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Initializing { get; set; } + public required long Initializing { get; set; } /// /// /// The number of shards that have started but are not finalized. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Started { get; set; } + public required long Started { get; set; } /// /// /// The total number of shards included in the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs index 516f946b824..172c8112c48 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs @@ -34,42 +34,20 @@ public ShardsStatsSummary(Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSumm TimeInMillis = timeInMillis; Total = total; } -#if NET7_0_OR_GREATER - public ShardsStatsSummary() - { - } -#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 ShardsStatsSummary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsStatsSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummaryItem Incremental { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummaryItem Incremental { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? Time { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummaryItem Total { get; set; } + public required System.TimeSpan TimeInMillis { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummaryItem Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs index cf6b124cd2f..212581fe295 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs @@ -32,31 +32,17 @@ public ShardsStatsSummaryItem(long fileCount, long sizeInBytes) FileCount = fileCount; SizeInBytes = sizeInBytes; } -#if NET7_0_OR_GREATER - public ShardsStatsSummaryItem() - { - } -#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 ShardsStatsSummaryItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ShardsStatsSummaryItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long FileCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } + public required long FileCount { get; set; } + public required long SizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SharedFileSystemRepository.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SharedFileSystemRepository.g.cs index 8f49838ce93..c42677fc367 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SharedFileSystemRepository.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SharedFileSystemRepository.g.cs @@ -31,17 +31,11 @@ public SharedFileSystemRepository(Elastic.Clients.Elasticsearch.Snapshot.SharedF { Settings = settings; } -#if NET7_0_OR_GREATER - public SharedFileSystemRepository() - { - } -#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 SharedFileSystemRepository() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SharedFileSystemRepository(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal SharedFileSystemRepository(Elastic.Clients.Elasticsearch.Serialization. /// The repository settings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.SharedFileSystemRepositorySettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.SharedFileSystemRepositorySettings Settings { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SharedFileSystemRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SharedFileSystemRepositorySettings.g.cs index a6879cac397..a22c11adedf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SharedFileSystemRepositorySettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SharedFileSystemRepositorySettings.g.cs @@ -31,17 +31,11 @@ public SharedFileSystemRepositorySettings(string location) { Location = location; } -#if NET7_0_OR_GREATER - public SharedFileSystemRepositorySettings() - { - } -#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 SharedFileSystemRepositorySettings() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SharedFileSystemRepositorySettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -74,11 +68,7 @@ internal SharedFileSystemRepositorySettings(Elastic.Clients.Elasticsearch.Serial /// Unlike path.repo, this setting supports only a single file path. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Location { get; set; } + public required string Location { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs index f03f3278286..386a0fa9ef9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs @@ -33,36 +33,18 @@ public SnapshotIndexStats(System.Collections.Generic.IReadOnlyDictionary Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ShardsStats ShardsStats { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.SnapshotStats Stats { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Shards { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ShardsStats ShardsStats { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.SnapshotStats Stats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotInfo.g.cs index 05ab09e1b5a..cc240941c39 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotInfo.g.cs @@ -33,28 +33,18 @@ public SnapshotInfo(System.Collections.Generic.IReadOnlyCollection dataS Snapshot = snapshot; Uuid = uuid; } -#if NET7_0_OR_GREATER - public SnapshotInfo() - { - } -#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 SnapshotInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } + public required System.Collections.Generic.IReadOnlyCollection DataStreams { get; set; } public Elastic.Clients.Elasticsearch.Duration? Duration { get; set; } public System.TimeSpan? DurationInMillis { get; set; } public System.DateTimeOffset? EndTime { get; set; } @@ -68,19 +58,11 @@ internal SnapshotInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo public string? Reason { get; set; } public string? Repository { get; set; } public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Snapshot { get; set; } + public required string Snapshot { get; set; } public System.DateTimeOffset? StartTime { get; set; } public System.DateTimeOffset? StartTimeInMillis { get; set; } public string? State { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Uuid { get; set; } + public required string Uuid { get; set; } public string? Version { get; set; } public long? VersionId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotNodeInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotNodeInfo.g.cs index 3dda907c92d..cc8c4070cdb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotNodeInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotNodeInfo.g.cs @@ -32,31 +32,17 @@ public SnapshotNodeInfo(string id, string name) Id = id; Name = name; } -#if NET7_0_OR_GREATER - public SnapshotNodeInfo() - { - } -#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 SnapshotNodeInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotNodeInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } + public required string Id { get; set; } + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs index c56d6f4e5d3..b90f3eeb645 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs @@ -31,17 +31,11 @@ public SnapshotResponseItem(string repository) { Repository = repository; } -#if NET7_0_OR_GREATER - public SnapshotResponseItem() - { - } -#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 SnapshotResponseItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotResponseItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,10 +43,6 @@ internal SnapshotResponseItem(Elastic.Clients.Elasticsearch.Serialization.JsonCo } public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Repository { get; set; } + public required string Repository { get; set; } public System.Collections.Generic.IReadOnlyCollection? Snapshots { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotRestore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotRestore.g.cs index 581b7e01d3e..f7a21dc01fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotRestore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotRestore.g.cs @@ -33,36 +33,18 @@ public SnapshotRestore(System.Collections.Generic.IReadOnlyCollection in Shards = shards; Snapshot = snapshot; } -#if NET7_0_OR_GREATER - public SnapshotRestore() - { - } -#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 SnapshotRestore() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotRestore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Indices { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Snapshot { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Indices { get; set; } + public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; } + public required string Snapshot { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs index a937fd9bfab..dcef70fc230 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs @@ -35,47 +35,21 @@ public SnapshotShardFailure(string index, string indexUuid, string reason, int s ShardId = shardId; Status = status; } -#if NET7_0_OR_GREATER - public SnapshotShardFailure() - { - } -#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 SnapshotShardFailure() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotShardFailure(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Index { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string IndexUuid { get; set; } + public required string Index { get; set; } + public required string IndexUuid { get; set; } public string? NodeId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Reason { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int ShardId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Status { get; set; } + public required string Reason { get; set; } + public required int ShardId { get; set; } + public required string Status { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs index 94ae413a4d1..4df5cd3f9ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs @@ -32,31 +32,17 @@ public SnapshotShardsStatus(Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSt Stage = stage; Stats = stats; } -#if NET7_0_OR_GREATER - public SnapshotShardsStatus() - { - } -#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 SnapshotShardsStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotShardsStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsStage Stage { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummary Stats { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsStage Stage { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummary Stats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotStats.g.cs index a0f067289a1..bad955b411a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotStats.g.cs @@ -34,17 +34,11 @@ public SnapshotStats(Elastic.Clients.Elasticsearch.Snapshot.FileCountSnapshotSta TimeInMillis = timeInMillis; Total = total; } -#if NET7_0_OR_GREATER - public SnapshotStats() - { - } -#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 SnapshotStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -57,22 +51,14 @@ internal SnapshotStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// For completed snapshots, this property indicates the number and size of files that were not already in the repository and were copied as part of the incremental snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.FileCountSnapshotStats Incremental { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.FileCountSnapshotStats Incremental { get; set; } /// /// /// The time, in milliseconds, when the snapshot creation process started. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } public Elastic.Clients.Elasticsearch.Duration? Time { get; set; } /// @@ -80,20 +66,12 @@ internal SnapshotStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// The total time, in milliseconds, that it took for the snapshot process to complete. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TimeInMillis { get; set; } + public required System.TimeSpan TimeInMillis { get; set; } /// /// /// The total number and size of files that are referenced by the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.FileCountSnapshotStats Total { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.FileCountSnapshotStats Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SourceOnlyRepository.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SourceOnlyRepository.g.cs index c7fbc270e8d..640d328aa94 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SourceOnlyRepository.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SourceOnlyRepository.g.cs @@ -31,17 +31,11 @@ public SourceOnlyRepository(Elastic.Clients.Elasticsearch.Snapshot.SourceOnlyRep { Settings = settings; } -#if NET7_0_OR_GREATER - public SourceOnlyRepository() - { - } -#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 SourceOnlyRepository() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SourceOnlyRepository(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,11 +47,7 @@ internal SourceOnlyRepository(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// The repository settings. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.SourceOnlyRepositorySettings Settings { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.SourceOnlyRepositorySettings Settings { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SourceOnlyRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SourceOnlyRepositorySettings.g.cs index 89efcc68ff6..0904726092c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SourceOnlyRepositorySettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SourceOnlyRepositorySettings.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Snapshot; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Snapshot.Json.SourceOnlyRepositorySettingsConverter))] public sealed partial class SourceOnlyRepositorySettings { -#if NET7_0_OR_GREATER public SourceOnlyRepositorySettings() { } -#endif -#if !NET7_0_OR_GREATER - public SourceOnlyRepositorySettings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SourceOnlyRepositorySettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/Status.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/Status.g.cs index f44ec675000..20be78af35a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/Status.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/Status.g.cs @@ -38,17 +38,11 @@ public Status(bool includeGlobalState, System.Collections.Generic.IReadOnlyDicti Stats = stats; Uuid = uuid; } -#if NET7_0_OR_GREATER - public Status() - { - } -#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 Status() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Status(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -60,49 +54,29 @@ internal Status(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// Indicates whether the current cluster state is included in the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool IncludeGlobalState { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } + public required bool IncludeGlobalState { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Indices { get; set; } /// /// /// The name of the repository that includes the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Repository { get; set; } + public required string Repository { get; set; } /// /// /// Statistics for the shards in the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ShardsStats ShardsStats { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ShardsStats ShardsStats { get; set; } /// /// /// The name of the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Snapshot { get; set; } + public required string Snapshot { get; set; } /// /// @@ -126,31 +100,19 @@ internal Status(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string State { get; set; } + public required string State { get; set; } /// /// /// Details about the number (file_count) and size (size_in_bytes) of files included in the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.SnapshotStats Stats { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.SnapshotStats Stats { get; set; } /// /// /// The universally unique identifier (UUID) for the snapshot. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Uuid { get; set; } + public required string Uuid { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SummaryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SummaryInfo.g.cs index 7267ed2f54a..32706239852 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SummaryInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SummaryInfo.g.cs @@ -32,17 +32,11 @@ public SummaryInfo(Elastic.Clients.Elasticsearch.Snapshot.ReadSummaryInfo read, Read = read; Write = write; } -#if NET7_0_OR_GREATER - public SummaryInfo() - { - } -#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 SummaryInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SummaryInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal SummaryInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// A collection of statistics that summarise the results of the read operations in the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.ReadSummaryInfo Read { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.ReadSummaryInfo Read { get; set; } /// /// /// A collection of statistics that summarise the results of the write operations in the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Snapshot.WriteSummaryInfo Write { get; set; } + public required Elastic.Clients.Elasticsearch.Snapshot.WriteSummaryInfo Write { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/WriteSummaryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/WriteSummaryInfo.g.cs index 74caa781c20..1caf892d63c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/WriteSummaryInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/WriteSummaryInfo.g.cs @@ -37,17 +37,11 @@ public WriteSummaryInfo(int count, Elastic.Clients.Elasticsearch.Duration totalE TotalThrottled = totalThrottled; TotalThrottledNanos = totalThrottledNanos; } -#if NET7_0_OR_GREATER - public WriteSummaryInfo() - { - } -#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 WriteSummaryInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WriteSummaryInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,75 +53,47 @@ internal WriteSummaryInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The number of write operations performed in the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// The total elapsed time spent on writing blobs in the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration TotalElapsed { get; set; } + public required Elastic.Clients.Elasticsearch.Duration TotalElapsed { get; set; } /// /// /// The total elapsed time spent on writing blobs in the test, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalElapsedNanos { get; set; } + public required System.TimeSpan TotalElapsedNanos { get; set; } /// /// /// The total size of all the blobs written in the test. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ByteSize TotalSize { get; set; } + public required Elastic.Clients.Elasticsearch.ByteSize TotalSize { get; set; } /// /// /// The total size of all the blobs written in the test, in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeBytes { get; set; } + public required long TotalSizeBytes { get; set; } /// /// /// The total time spent waiting due to the max_snapshot_bytes_per_sec throttle. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration TotalThrottled { get; set; } + public required Elastic.Clients.Elasticsearch.Duration TotalThrottled { get; set; } /// /// /// The total time spent waiting due to the max_snapshot_bytes_per_sec throttle, in nanoseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long TotalThrottledNanos { get; set; } + public required long TotalThrottledNanos { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/InProgress.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/InProgress.g.cs index b110df68f3c..418581ffbff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/InProgress.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/InProgress.g.cs @@ -34,41 +34,19 @@ public InProgress(string name, System.DateTimeOffset startTimeMillis, string sta State = state; Uuid = uuid; } -#if NET7_0_OR_GREATER - public InProgress() - { - } -#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 InProgress() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal InProgress(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string State { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Uuid { get; set; } + public required string Name { get; set; } + public required System.DateTimeOffset StartTimeMillis { get; set; } + public required string State { get; set; } + public required string Uuid { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Invocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Invocation.g.cs index 777c5356e0e..417e78cf6ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Invocation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Invocation.g.cs @@ -32,31 +32,17 @@ public Invocation(string snapshotName, System.DateTimeOffset time) SnapshotName = snapshotName; Time = time; } -#if NET7_0_OR_GREATER - public Invocation() - { - } -#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 Invocation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Invocation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string SnapshotName { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Time { get; set; } + public required string SnapshotName { get; set; } + public required System.DateTimeOffset Time { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Retention.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Retention.g.cs index c4f7c814e4b..d87fb808d9a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Retention.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Retention.g.cs @@ -33,17 +33,11 @@ public Retention(Elastic.Clients.Elasticsearch.Duration expireAfter, int maxCoun MaxCount = maxCount; MinCount = minCount; } -#if NET7_0_OR_GREATER - public Retention() - { - } -#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 Retention() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Retention(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,33 +49,21 @@ internal Retention(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe /// Time period after which a snapshot is considered expired and eligible for deletion. SLM deletes expired snapshots based on the slm.retention_schedule. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration ExpireAfter { get; set; } + public required Elastic.Clients.Elasticsearch.Duration ExpireAfter { get; set; } /// /// /// Maximum number of snapshots to retain, even if the snapshots have not yet expired. If the number of snapshots in the repository exceeds this limit, the policy retains the most recent snapshots and deletes older snapshots. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MaxCount { get; set; } + public required int MaxCount { get; set; } /// /// /// Minimum number of snapshots to retain, even if the snapshots have expired. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int MinCount { get; set; } + public required int MinCount { get; set; } } public readonly partial struct RetentionDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SlmConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SlmConfiguration.g.cs index 61041e6ef74..3a1290e9175 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SlmConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SlmConfiguration.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Json.SlmConfigurationConverter))] public sealed partial class SlmConfiguration { -#if NET7_0_OR_GREATER public SlmConfiguration() { } -#endif -#if !NET7_0_OR_GREATER - public SlmConfiguration() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlmConfiguration(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SlmPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SlmPolicy.g.cs index 87dddedf801..2e4707fc40d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SlmPolicy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SlmPolicy.g.cs @@ -33,17 +33,11 @@ public SlmPolicy(string name, string repository, string schedule) Repository = repository; Schedule = schedule; } -#if NET7_0_OR_GREATER - public SlmPolicy() - { - } -#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 SlmPolicy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SlmPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -51,20 +45,8 @@ internal SlmPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe } public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.SlmConfiguration? Config { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Repository { get; set; } + public required string Name { get; set; } + public required string Repository { get; set; } public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Retention? Retention { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Schedule { get; set; } + public required string Schedule { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs index aec78a47b4b..377e0921817 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs @@ -35,17 +35,11 @@ public SnapshotLifecycle(System.DateTimeOffset modifiedDateMillis, System.DateTi Stats = stats; Version = version; } -#if NET7_0_OR_GREATER - public SnapshotLifecycle() - { - } -#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 SnapshotLifecycle() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotLifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal SnapshotLifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public System.DateTimeOffset? ModifiedDate { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ModifiedDateMillis { get; set; } + public required System.DateTimeOffset ModifiedDateMillis { get; set; } /// /// @@ -74,21 +64,9 @@ internal SnapshotLifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public System.DateTimeOffset? NextExecution { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset NextExecutionMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.SlmPolicy Policy { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Statistics Stats { get; set; } + public required System.DateTimeOffset NextExecutionMillis { get; set; } + public required Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.SlmPolicy Policy { get; set; } + public required Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Statistics Stats { get; set; } /// /// @@ -96,9 +74,5 @@ internal SnapshotLifecycle(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// Only the latest version is stored and incremented when the policy is updated. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Version { get; set; } + public required long Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotPolicyStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotPolicyStats.g.cs index 330dbfd6308..ac381ac20b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotPolicyStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotPolicyStats.g.cs @@ -35,46 +35,20 @@ public SnapshotPolicyStats(string policy, long snapshotDeletionFailures, long sn SnapshotsFailed = snapshotsFailed; SnapshotsTaken = snapshotsTaken; } -#if NET7_0_OR_GREATER - public SnapshotPolicyStats() - { - } -#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 SnapshotPolicyStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SnapshotPolicyStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Policy { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SnapshotDeletionFailures { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SnapshotsDeleted { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SnapshotsFailed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SnapshotsTaken { get; set; } + public required string Policy { get; set; } + public required long SnapshotDeletionFailures { get; set; } + public required long SnapshotsDeleted { get; set; } + public required long SnapshotsFailed { get; set; } + public required long SnapshotsTaken { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Statistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Statistics.g.cs index 04c5b268555..1eb6978ab18 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Statistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/Statistics.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Json.StatisticsConverter))] public sealed partial class Statistics { -#if NET7_0_OR_GREATER public Statistics() { } -#endif -#if !NET7_0_OR_GREATER - public Statistics() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Statistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SortOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SortOptions.g.cs index a0b40581575..26f6eed8a6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SortOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SortOptions.g.cs @@ -28,16 +28,11 @@ public sealed partial class SortOptions { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public SortOptions() - { - } -#endif -#if !NET7_0_OR_GREATER + public SortOptions() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SortOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SpecifiedDocument.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SpecifiedDocument.g.cs index 14e7cc59eba..5e18b6835ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SpecifiedDocument.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SpecifiedDocument.g.cs @@ -31,28 +31,18 @@ public SpecifiedDocument(Elastic.Clients.Elasticsearch.Id id) { Id = id; } -#if NET7_0_OR_GREATER - public SpecifiedDocument() - { - } -#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 SpecifiedDocument() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SpecifiedDocument(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Id Id { get; set; } + public required Elastic.Clients.Elasticsearch.Id Id { get; set; } public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Sql/Column.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Sql/Column.g.cs index eddc5021f3d..0fb0dca4151 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Sql/Column.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Sql/Column.g.cs @@ -32,31 +32,17 @@ public Column(string name, string type) Name = name; Type = type; } -#if NET7_0_OR_GREATER - public Column() - { - } -#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 Column() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Column(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Name { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StandardRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StandardRetriever.g.cs index 90892b91eaf..abc8973a78d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StandardRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StandardRetriever.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.StandardRetrieverConverter))] public sealed partial class StandardRetriever { -#if NET7_0_OR_GREATER public StandardRetriever() { } -#endif -#if !NET7_0_OR_GREATER - public StandardRetriever() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StandardRetriever(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoreStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoreStats.g.cs index 46131b6f2d1..d005765b946 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoreStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoreStats.g.cs @@ -32,17 +32,11 @@ public StoreStats(long reservedInBytes, long sizeInBytes) ReservedInBytes = reservedInBytes; SizeInBytes = sizeInBytes; } -#if NET7_0_OR_GREATER - public StoreStats() - { - } -#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 StoreStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StoreStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal StoreStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// A prediction, in bytes, of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long ReservedInBytes { get; set; } + public required long ReservedInBytes { get; set; } /// /// @@ -79,11 +69,7 @@ internal StoreStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// Total size, in bytes, of all shards assigned to selected nodes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } + public required long SizeInBytes { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoredScript.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoredScript.g.cs index 9647c41fe32..767094f6639 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoredScript.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoredScript.g.cs @@ -32,17 +32,11 @@ public StoredScript(Elastic.Clients.Elasticsearch.ScriptLanguage language, strin Language = language; Source = source; } -#if NET7_0_OR_GREATER - public StoredScript() - { - } -#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 StoredScript() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal StoredScript(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal StoredScript(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// For search templates, use mustache. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ScriptLanguage Language { get; set; } + public required Elastic.Clients.Elasticsearch.ScriptLanguage Language { get; set; } public System.Collections.Generic.IDictionary? Options { get; set; } /// @@ -68,11 +58,7 @@ internal StoredScript(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// For search templates, an object containing the search template. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Source { get; set; } + public required string Source { get; set; } } public readonly partial struct StoredScriptDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Streams/LogsStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Streams/LogsStatus.g.cs index c6d0124e0c1..5f203264ae3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Streams/LogsStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Streams/LogsStatus.g.cs @@ -31,17 +31,11 @@ public LogsStatus(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public LogsStatus() - { - } -#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 LogsStatus() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal LogsStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -53,9 +47,5 @@ internal LogsStatus(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS /// If true, the logs stream feature is enabled. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRule.g.cs index 595d4626530..b2d939b2664 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRule.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRule.g.cs @@ -31,17 +31,11 @@ public SynonymRule(string synonyms) { Synonyms = synonyms; } -#if NET7_0_OR_GREATER - public SynonymRule() - { - } -#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 SynonymRule() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SynonymRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -61,11 +55,7 @@ internal SynonymRule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// The synonyms that conform the synonym rule in Solr format. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Synonyms { get; set; } + public required string Synonyms { get; set; } } public readonly partial struct SynonymRuleDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRuleRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRuleRead.g.cs index 82ed624d149..f2ed1df768d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRuleRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRuleRead.g.cs @@ -32,17 +32,11 @@ public SynonymRuleRead(string id, string synonyms) Id = id; Synonyms = synonyms; } -#if NET7_0_OR_GREATER - public SynonymRuleRead() - { - } -#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 SynonymRuleRead() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SynonymRuleRead(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal SynonymRuleRead(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Synonym Rule identifier /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } /// /// /// Synonyms, in Solr format, that conform the synonym rule. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Synonyms { get; set; } + public required string Synonyms { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymsSetItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymsSetItem.g.cs index 8b320f3c709..52e758ba710 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymsSetItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymsSetItem.g.cs @@ -32,17 +32,11 @@ public SynonymsSetItem(int count, string synonymsSet) Count = count; SynonymsSet = synonymsSet; } -#if NET7_0_OR_GREATER - public SynonymsSetItem() - { - } -#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 SynonymsSetItem() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SynonymsSetItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,20 +48,12 @@ internal SynonymsSetItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// Number of synonym rules that the synonym set contains /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// Synonyms set identifier /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string SynonymsSet { get; set; } + public required string SynonymsSet { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TaskFailure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TaskFailure.g.cs index be1232903a6..17ba2c5f744 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TaskFailure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TaskFailure.g.cs @@ -34,41 +34,19 @@ public TaskFailure(string nodeId, Elastic.Clients.Elasticsearch.ErrorCause reaso Status = status; TaskId = taskId; } -#if NET7_0_OR_GREATER - public TaskFailure() - { - } -#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 TaskFailure() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TaskFailure(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string NodeId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.ErrorCause Reason { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TaskId { get; set; } + public required string NodeId { get; set; } + public required Elastic.Clients.Elasticsearch.ErrorCause Reason { get; set; } + public required string Status { get; set; } + public required long TaskId { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/NodeTasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/NodeTasks.g.cs index a9b04b44d5c..e78f6f4477d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/NodeTasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/NodeTasks.g.cs @@ -31,17 +31,11 @@ public NodeTasks(System.Collections.Generic.IReadOnlyDictionary? Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Tasks { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Tasks { get; set; } public string? TransportAddress { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs index 8acd3766d88..466c390536a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs @@ -38,33 +38,19 @@ public ParentTaskInfo(string action, bool cancellable, System.Collections.Generi StartTimeInMillis = startTimeInMillis; Type = type; } -#if NET7_0_OR_GREATER - public ParentTaskInfo() - { - } -#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 ParentTaskInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal ParentTaskInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Action { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Cancellable { get; set; } + public required string Action { get; set; } + public required bool Cancellable { get; set; } public bool? Cancelled { get; set; } public System.Collections.Generic.IReadOnlyCollection? Children { get; set; } @@ -77,33 +63,13 @@ internal ParentTaskInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// public string? Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Headers { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Headers { get; set; } + public required long Id { get; set; } + public required string Node { get; set; } public Elastic.Clients.Elasticsearch.TaskId? ParentTaskId { get; set; } public Elastic.Clients.Elasticsearch.Duration? RunningTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan RunningTimeInNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required System.TimeSpan RunningTimeInNanos { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } /// /// @@ -114,9 +80,5 @@ internal ParentTaskInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// public object? Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfo.g.cs index 081782689f3..46ba4db1910 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfo.g.cs @@ -38,33 +38,19 @@ public TaskInfo(string action, bool cancellable, System.Collections.Generic.IRea StartTimeInMillis = startTimeInMillis; Type = type; } -#if NET7_0_OR_GREATER - public TaskInfo() - { - } -#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 TaskInfo() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TaskInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Action { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Cancellable { get; set; } + public required string Action { get; set; } + public required bool Cancellable { get; set; } public bool? Cancelled { get; set; } /// @@ -76,33 +62,13 @@ internal TaskInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// /// public string? Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Headers { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Id { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Node { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Headers { get; set; } + public required long Id { get; set; } + public required string Node { get; set; } public Elastic.Clients.Elasticsearch.TaskId? ParentTaskId { get; set; } public Elastic.Clients.Elasticsearch.Duration? RunningTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan RunningTimeInNanos { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset StartTimeInMillis { get; set; } + public required System.TimeSpan RunningTimeInNanos { get; set; } + public required System.DateTimeOffset StartTimeInMillis { get; set; } /// /// @@ -113,9 +79,5 @@ internal TaskInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// /// public object? Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextEmbedding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextEmbedding.g.cs index 465897084fe..3dc05a3b1e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextEmbedding.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextEmbedding.g.cs @@ -31,17 +31,11 @@ public TextEmbedding(string modelText) { ModelText = modelText; } -#if NET7_0_OR_GREATER - public TextEmbedding() - { - } -#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 TextEmbedding() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextEmbedding(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal TextEmbedding(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public string? ModelId { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string ModelText { get; set; } + public required string ModelText { get; set; } } public readonly partial struct TextEmbeddingDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextSimilarityReranker.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextSimilarityReranker.g.cs index 8a05cd73751..01f29b35829 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextSimilarityReranker.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextSimilarityReranker.g.cs @@ -33,17 +33,11 @@ public TextSimilarityReranker(string field, string inferenceText, Elastic.Client InferenceText = inferenceText; Retriever = retriever; } -#if NET7_0_OR_GREATER - public TextSimilarityReranker() - { - } -#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 TextSimilarityReranker() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serialization.Json /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Field { get; set; } + public required string Field { get; set; } /// /// @@ -87,11 +77,7 @@ internal TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serialization.Json /// The text snippet used as the basis for similarity comparison. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string InferenceText { get; set; } + public required string InferenceText { get; set; } /// /// @@ -119,11 +105,7 @@ internal TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serialization.Json /// The nested retriever which will produce the first-level results, that will later be used for reranking. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + public required Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } } public readonly partial struct TextSimilarityRerankerDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/FieldStat.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/FieldStat.g.cs index 67faaa5b86e..ce29721e015 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/FieldStat.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/FieldStat.g.cs @@ -33,42 +33,24 @@ public FieldStat(int cardinality, int count, System.Collections.Generic.IReadOnl Count = count; TopHits = topHits; } -#if NET7_0_OR_GREATER - public FieldStat() - { - } -#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 FieldStat() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FieldStat(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Cardinality { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Cardinality { get; set; } + public required int Count { get; set; } public string? Earliest { get; set; } public string? Latest { get; set; } public int? MaxValue { get; set; } public int? MeanValue { get; set; } public int? MedianValue { get; set; } public int? MinValue { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection TopHits { get; set; } + public required System.Collections.Generic.IReadOnlyCollection TopHits { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/MatchedField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/MatchedField.g.cs index 7994eda1e38..32ce5f89dd6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/MatchedField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/MatchedField.g.cs @@ -33,36 +33,18 @@ public MatchedField(int length, string match, int offset) Match = match; Offset = offset; } -#if NET7_0_OR_GREATER - public MatchedField() - { - } -#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 MatchedField() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchedField(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Length { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Match { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Offset { get; set; } + public required int Length { get; set; } + public required string Match { get; set; } + public required int Offset { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/MatchedText.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/MatchedText.g.cs index b06c307ee36..134327ab711 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/MatchedText.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/MatchedText.g.cs @@ -31,17 +31,11 @@ public MatchedText(bool matched) { Matched = matched; } -#if NET7_0_OR_GREATER - public MatchedText() - { - } -#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 MatchedText() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MatchedText(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal MatchedText(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor } public System.Collections.Generic.IReadOnlyDictionary>? Fields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Matched { get; set; } + public required bool Matched { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/TopHit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/TopHit.g.cs index 2363f47b212..cc986874cdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/TopHit.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/TopHit.g.cs @@ -32,31 +32,17 @@ public TopHit(long count, object value) Count = count; Value = value; } -#if NET7_0_OR_GREATER - public TopHit() - { - } -#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 TopHit() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TopHit(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - object Value { get; set; } + public required long Count { get; set; } + public required object Value { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TokenPruningConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TokenPruningConfig.g.cs index 68e7c025713..ebd4b0b1ec3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TokenPruningConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TokenPruningConfig.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.TokenPruningConfigConverter))] public sealed partial class TokenPruningConfig { -#if NET7_0_OR_GREATER public TokenPruningConfig() { } -#endif -#if !NET7_0_OR_GREATER - public TokenPruningConfig() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TokenPruningConfig(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TopLeftBottomRightGeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TopLeftBottomRightGeoBounds.g.cs index 016cbf29c7b..3285a7b3e05 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TopLeftBottomRightGeoBounds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TopLeftBottomRightGeoBounds.g.cs @@ -32,33 +32,19 @@ public TopLeftBottomRightGeoBounds(Elastic.Clients.Elasticsearch.GeoLocation bot BottomRight = bottomRight; TopLeft = topLeft; } -#if NET7_0_OR_GREATER - public TopLeftBottomRightGeoBounds() - { - } -#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 TopLeftBottomRightGeoBounds() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TopLeftBottomRightGeoBounds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GeoLocation BottomRight { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GeoLocation TopLeft { get; set; } + public required Elastic.Clients.Elasticsearch.GeoLocation BottomRight { get; set; } + public required Elastic.Clients.Elasticsearch.GeoLocation TopLeft { get; set; } } public readonly partial struct TopLeftBottomRightGeoBoundsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TopRightBottomLeftGeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TopRightBottomLeftGeoBounds.g.cs index 242dd8f3d49..829883907f7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TopRightBottomLeftGeoBounds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TopRightBottomLeftGeoBounds.g.cs @@ -32,33 +32,19 @@ public TopRightBottomLeftGeoBounds(Elastic.Clients.Elasticsearch.GeoLocation bot BottomLeft = bottomLeft; TopRight = topRight; } -#if NET7_0_OR_GREATER - public TopRightBottomLeftGeoBounds() - { - } -#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 TopRightBottomLeftGeoBounds() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TopRightBottomLeftGeoBounds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GeoLocation BottomLeft { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.GeoLocation TopRight { get; set; } + public required Elastic.Clients.Elasticsearch.GeoLocation BottomLeft { get; set; } + public required Elastic.Clients.Elasticsearch.GeoLocation TopRight { get; set; } } public readonly partial struct TopRightBottomLeftGeoBoundsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/CheckpointStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/CheckpointStats.g.cs index 742ae71a695..e72e6f9c004 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/CheckpointStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/CheckpointStats.g.cs @@ -31,28 +31,18 @@ public CheckpointStats(long checkpoint) { Checkpoint = checkpoint; } -#if NET7_0_OR_GREATER - public CheckpointStats() - { - } -#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 CheckpointStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal CheckpointStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Checkpoint { get; set; } + public required long Checkpoint { get; set; } public Elastic.Clients.Elasticsearch.TransformManagement.TransformProgress? CheckpointProgress { get; set; } public System.DateTimeOffset? Timestamp { get; set; } public System.DateTimeOffset? TimestampMillis { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs index 3b602f5ce51..036aafa767a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs @@ -31,17 +31,11 @@ public Checkpointing(Elastic.Clients.Elasticsearch.TransformManagement.Checkpoin { Last = last; } -#if NET7_0_OR_GREATER - public Checkpointing() - { - } -#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 Checkpointing() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Checkpointing(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -50,11 +44,7 @@ internal Checkpointing(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct public long? ChangesLastDetectedAt { get; set; } public System.DateTimeOffset? ChangesLastDetectedAtString { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TransformManagement.CheckpointStats Last { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.CheckpointStats Last { get; set; } public long? LastSearchTime { get; set; } public System.DateTimeOffset? LastSearchTimeString { get; set; } public Elastic.Clients.Elasticsearch.TransformManagement.CheckpointStats? Next { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Destination.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Destination.g.cs index 099b8244924..f22f14dee89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Destination.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Destination.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.TransformManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.TransformManagement.Json.DestinationConverter))] public sealed partial class Destination { -#if NET7_0_OR_GREATER public Destination() { } -#endif -#if !NET7_0_OR_GREATER - public Destination() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Destination(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Latest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Latest.g.cs index 4ed92032185..0a03792b809 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Latest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Latest.g.cs @@ -32,17 +32,11 @@ public Latest(Elastic.Clients.Elasticsearch.Field sort, Elastic.Clients.Elastics Sort = sort; UniqueKey = uniqueKey; } -#if NET7_0_OR_GREATER - public Latest() - { - } -#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 Latest() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Latest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,22 +48,14 @@ internal Latest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// Specifies the date field that is used to identify the latest documents. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Sort { get; set; } + public required Elastic.Clients.Elasticsearch.Field Sort { get; set; } /// /// /// Specifies an array of one or more fields that are used to group the data. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Fields UniqueKey { get; set; } + public required Elastic.Clients.Elasticsearch.Fields UniqueKey { get; set; } } public readonly partial struct LatestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Pivot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Pivot.g.cs index 43358501090..6a7e51b8450 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Pivot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Pivot.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.TransformManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.TransformManagement.Json.PivotConverter))] public sealed partial class Pivot { -#if NET7_0_OR_GREATER public Pivot() { } -#endif -#if !NET7_0_OR_GREATER - public Pivot() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Pivot(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/PivotGroupBy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/PivotGroupBy.g.cs index 97dc5402aee..5f8853756d0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/PivotGroupBy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/PivotGroupBy.g.cs @@ -28,16 +28,11 @@ public sealed partial class PivotGroupBy { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public PivotGroupBy() - { - } -#endif -#if !NET7_0_OR_GREATER + public PivotGroupBy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal PivotGroupBy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicy.g.cs index 2e6a238c11d..d05c9d425d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicy.g.cs @@ -28,16 +28,11 @@ public sealed partial class RetentionPolicy { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public RetentionPolicy() - { - } -#endif -#if !NET7_0_OR_GREATER + public RetentionPolicy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RetentionPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs index 072d8080f97..49cca59d898 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs @@ -31,16 +31,10 @@ namespace Elastic.Clients.Elasticsearch.TransformManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.TransformManagement.Json.SettingsConverter))] public sealed partial class Settings { -#if NET7_0_OR_GREATER public Settings() { } -#endif -#if !NET7_0_OR_GREATER - public Settings() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Settings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Source.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Source.g.cs index 670b0147418..a0de51fd2e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Source.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Source.g.cs @@ -31,17 +31,11 @@ public Source(Elastic.Clients.Elasticsearch.Indices indices) { Indices = indices; } -#if NET7_0_OR_GREATER - public Source() - { - } -#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 Source() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Source(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -56,11 +50,7 @@ internal Source(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSenti /// any indices are in remote clusters then the master node and at least one transform node must have the remote_cluster_client node role. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Indices Indices { get; set; } + public required Elastic.Clients.Elasticsearch.Indices Indices { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Sync.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Sync.g.cs index 7b375a6d52c..f8e4c925f50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Sync.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Sync.g.cs @@ -28,16 +28,11 @@ public sealed partial class Sync { internal string? VariantType { get; set; } internal object? Variant { get; set; } -#if NET7_0_OR_GREATER - public Sync() - { - } -#endif -#if !NET7_0_OR_GREATER + public Sync() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Sync(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeRetentionPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeRetentionPolicy.g.cs index e74e15b4e81..2869787c549 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeRetentionPolicy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeRetentionPolicy.g.cs @@ -32,17 +32,11 @@ public TimeRetentionPolicy(Elastic.Clients.Elasticsearch.Field field, Elastic.Cl Field = field; MaxAge = maxAge; } -#if NET7_0_OR_GREATER - public TimeRetentionPolicy() - { - } -#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 TimeRetentionPolicy() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TimeRetentionPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,11 +48,7 @@ internal TimeRetentionPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// The date field that is used to calculate the age of the document. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } /// /// @@ -66,11 +56,7 @@ internal TimeRetentionPolicy(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// value are removed from the destination index. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration MaxAge { get; set; } + public required Elastic.Clients.Elasticsearch.Duration MaxAge { get; set; } } public readonly partial struct TimeRetentionPolicyDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeSync.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeSync.g.cs index a0870960550..f705d934a71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeSync.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeSync.g.cs @@ -31,17 +31,11 @@ public TimeSync(Elastic.Clients.Elasticsearch.Field field) { Field = field; } -#if NET7_0_OR_GREATER - public TimeSync() - { - } -#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 TimeSync() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TimeSync(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -62,11 +56,7 @@ internal TimeSync(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// accounts for data transmission delays. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Field Field { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } } public readonly partial struct TimeSyncDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformHealthIssue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformHealthIssue.g.cs index 54b1421db66..6d0fa55723b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformHealthIssue.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformHealthIssue.g.cs @@ -33,17 +33,11 @@ public TransformHealthIssue(int count, string issue, string type) Issue = issue; Type = type; } -#if NET7_0_OR_GREATER - public TransformHealthIssue() - { - } -#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 TransformHealthIssue() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformHealthIssue(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -55,11 +49,7 @@ internal TransformHealthIssue(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Number of times this issue has occurred since it started /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// @@ -81,20 +71,12 @@ internal TransformHealthIssue(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// A description of the issue /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Issue { get; set; } + public required string Issue { get; set; } /// /// /// The type of the issue /// /// - public -#if NET7_0_OR_GREATER - required -#endif - string Type { get; set; } + public required string Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs index bbd6d33e7e6..e78c0a1869a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs @@ -45,17 +45,11 @@ public TransformIndexerStats(long documentsIndexed, long documentsProcessed, Sys SearchTotal = searchTotal; TriggerCount = triggerCount; } -#if NET7_0_OR_GREATER - public TransformIndexerStats() - { - } -#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 TransformIndexerStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformIndexerStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -64,79 +58,19 @@ internal TransformIndexerStats(Elastic.Clients.Elasticsearch.Serialization.JsonC public System.DateTimeOffset? DeleteTimeInMs { get; set; } public long? DocumentsDeleted { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocumentsIndexed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocumentsProcessed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ExponentialAvgCheckpointDurationMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double ExponentialAvgDocumentsIndexed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - double ExponentialAvgDocumentsProcessed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexFailures { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan IndexTimeInMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PagesProcessed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan ProcessingTimeInMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ProcessingTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SearchFailures { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan SearchTimeInMs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SearchTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TriggerCount { get; set; } + public required long DocumentsIndexed { get; set; } + public required long DocumentsProcessed { get; set; } + public required System.TimeSpan ExponentialAvgCheckpointDurationMs { get; set; } + public required double ExponentialAvgDocumentsIndexed { get; set; } + public required double ExponentialAvgDocumentsProcessed { get; set; } + public required long IndexFailures { get; set; } + public required System.TimeSpan IndexTimeInMs { get; set; } + public required long IndexTotal { get; set; } + public required long PagesProcessed { get; set; } + public required System.TimeSpan ProcessingTimeInMs { get; set; } + public required long ProcessingTotal { get; set; } + public required long SearchFailures { get; set; } + public required System.TimeSpan SearchTimeInMs { get; set; } + public required long SearchTotal { get; set; } + public required long TriggerCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformNodeStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformNodeStats.g.cs index f495269f51e..d74af171286 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformNodeStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformNodeStats.g.cs @@ -31,26 +31,16 @@ public TransformNodeStats(Elastic.Clients.Elasticsearch.TransformManagement.Tran { Scheduler = scheduler; } -#if NET7_0_OR_GREATER - public TransformNodeStats() - { - } -#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 TransformNodeStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformNodeStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TransformManagement.TransformSchedulerStats Scheduler { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.TransformSchedulerStats Scheduler { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformProgress.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformProgress.g.cs index f8eeac8aada..0ab1d7a38c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformProgress.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformProgress.g.cs @@ -32,33 +32,19 @@ public TransformProgress(long docsIndexed, long docsProcessed) DocsIndexed = docsIndexed; DocsProcessed = docsProcessed; } -#if NET7_0_OR_GREATER - public TransformProgress() - { - } -#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 TransformProgress() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformProgress(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocsIndexed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocsProcessed { get; set; } + public required long DocsIndexed { get; set; } + public required long DocsProcessed { get; set; } public long? DocsRemaining { get; set; } public double? PercentComplete { get; set; } public long? TotalDocs { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSchedulerStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSchedulerStats.g.cs index 486f5f1d7f8..b9598badb7d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSchedulerStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSchedulerStats.g.cs @@ -31,17 +31,11 @@ public TransformSchedulerStats(int registeredTransformCount) { RegisteredTransformCount = registeredTransformCount; } -#if NET7_0_OR_GREATER - public TransformSchedulerStats() - { - } -#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 TransformSchedulerStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformSchedulerStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -49,9 +43,5 @@ internal TransformSchedulerStats(Elastic.Clients.Elasticsearch.Serialization.Jso } public string? PeekTransform { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int RegisteredTransformCount { get; set; } + public required int RegisteredTransformCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStats.g.cs index a90b2575fa9..018fca7d065 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStats.g.cs @@ -34,44 +34,22 @@ public TransformStats(Elastic.Clients.Elasticsearch.TransformManagement.Checkpoi State = state; Stats = stats; } -#if NET7_0_OR_GREATER - public TransformStats() - { - } -#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 TransformStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TransformManagement.Checkpointing Checkpointing { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.Checkpointing Checkpointing { get; set; } public Elastic.Clients.Elasticsearch.TransformManagement.TransformStatsHealth? Health { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } public Elastic.Clients.Elasticsearch.NodeAttributes? Node { get; set; } public string? Reason { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string State { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TransformManagement.TransformIndexerStats Stats { get; set; } + public required string State { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.TransformIndexerStats Stats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs index 0c48be0428b..a2197b86d14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs @@ -31,17 +31,11 @@ public TransformStatsHealth(Elastic.Clients.Elasticsearch.HealthStatus status) { Status = status; } -#if NET7_0_OR_GREATER - public TransformStatsHealth() - { - } -#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 TransformStatsHealth() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformStatsHealth(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -54,9 +48,5 @@ internal TransformStatsHealth(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// public System.Collections.Generic.IReadOnlyCollection? Issues { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } + public required Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs index ed5f702e6c9..57de8af2c6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs @@ -33,17 +33,11 @@ public TransformSummary(Elastic.Clients.Elasticsearch.Core.Reindex.Destination d Id = id; Source = source; } -#if NET7_0_OR_GREATER - public TransformSummary() - { - } -#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 TransformSummary() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TransformSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -77,17 +71,9 @@ internal TransformSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The destination for the transform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Core.Reindex.Destination Dest { get; set; } + public required Elastic.Clients.Elasticsearch.Core.Reindex.Destination Dest { get; set; } public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Id { get; set; } + public required string Id { get; set; } public Elastic.Clients.Elasticsearch.TransformManagement.Latest? Latest { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; } @@ -111,11 +97,7 @@ internal TransformSummary(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// The source of the data for the transform. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.TransformManagement.Source Source { get; set; } + public required Elastic.Clients.Elasticsearch.TransformManagement.Source Source { get; set; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TranslogStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TranslogStats.g.cs index a2c349933ec..ba521e53fb0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TranslogStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TranslogStats.g.cs @@ -35,48 +35,22 @@ public TranslogStats(long earliestLastModifiedAge, long operations, long sizeInB UncommittedOperations = uncommittedOperations; UncommittedSizeInBytes = uncommittedSizeInBytes; } -#if NET7_0_OR_GREATER - public TranslogStats() - { - } -#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 TranslogStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal TranslogStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long EarliestLastModifiedAge { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Operations { get; set; } + public required long EarliestLastModifiedAge { get; set; } + public required long Operations { get; set; } public string? Size { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SizeInBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int UncommittedOperations { get; set; } + public required long SizeInBytes { get; set; } + public required int UncommittedOperations { get; set; } public string? UncommittedSize { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long UncommittedSizeInBytes { get; set; } + public required long UncommittedSizeInBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/WarmerStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/WarmerStats.g.cs index 720f1905d96..be87050960b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/WarmerStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/WarmerStats.g.cs @@ -33,37 +33,19 @@ public WarmerStats(long current, long total, System.TimeSpan totalTimeInMillis) Total = total; TotalTimeInMillis = totalTimeInMillis; } -#if NET7_0_OR_GREATER - public WarmerStats() - { - } -#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 WarmerStats() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WarmerStats(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Current { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Current { get; set; } + public required long Total { get; set; } public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMillis { get; set; } + public required System.TimeSpan TotalTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/WktGeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/WktGeoBounds.g.cs index 3096a012443..59bc00fb448 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/WktGeoBounds.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/WktGeoBounds.g.cs @@ -31,28 +31,18 @@ public WktGeoBounds(string wkt) { Wkt = wkt; } -#if NET7_0_OR_GREATER - public WktGeoBounds() - { - } -#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 WktGeoBounds() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WktGeoBounds(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string Wkt { get; set; } + public required string Wkt { get; set; } } public readonly partial struct WktGeoBoundsDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Analytics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Analytics.g.cs index 3fa9a49cb5b..d542150e2b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Analytics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Analytics.g.cs @@ -33,36 +33,18 @@ public Analytics(bool available, bool enabled, Elastic.Clients.Elasticsearch.Xpa Enabled = enabled; Stats = stats; } -#if NET7_0_OR_GREATER - public Analytics() - { - } -#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 Analytics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Analytics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.AnalyticsStatistics Stats { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.AnalyticsStatistics Stats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AnalyticsStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AnalyticsStatistics.g.cs index 0ac8e29ec35..3095ce3a738 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AnalyticsStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AnalyticsStatistics.g.cs @@ -38,62 +38,24 @@ public AnalyticsStatistics(long boxplotUsage, long cumulativeCardinalityUsage, l TopMetricsUsage = topMetricsUsage; TTestUsage = tTestUsage; } -#if NET7_0_OR_GREATER - public AnalyticsStatistics() - { - } -#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 AnalyticsStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal AnalyticsStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long BoxplotUsage { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CumulativeCardinalityUsage { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long MovingPercentilesUsage { get; set; } + public required long BoxplotUsage { get; set; } + public required long CumulativeCardinalityUsage { get; set; } + public required long MovingPercentilesUsage { get; set; } public long? MultiTermsUsage { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NormalizeUsage { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long RateUsage { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long StringStatsUsage { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TopMetricsUsage { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TTestUsage { get; set; } + public required long NormalizeUsage { get; set; } + public required long RateUsage { get; set; } + public required long StringStatsUsage { get; set; } + public required long TopMetricsUsage { get; set; } + public required long TTestUsage { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Archive.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Archive.g.cs index 0c7570174f9..05b6d38c691 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Archive.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Archive.g.cs @@ -33,36 +33,18 @@ public Archive(bool available, bool enabled, long indicesCount) Enabled = enabled; IndicesCount = indicesCount; } -#if NET7_0_OR_GREATER - public Archive() - { - } -#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 Archive() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Archive(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndicesCount { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required long IndicesCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Audit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Audit.g.cs index e162139f7c9..358430b8cff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Audit.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Audit.g.cs @@ -31,27 +31,17 @@ public Audit(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public Audit() - { - } -#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 Audit() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Audit(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } public System.Collections.Generic.IReadOnlyCollection? Outputs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Base.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Base.g.cs index be30b18cc2c..9f761c4bc32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Base.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Base.g.cs @@ -32,31 +32,17 @@ public Base(bool available, bool enabled) Available = available; Enabled = enabled; } -#if NET7_0_OR_GREATER - public Base() - { - } -#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 Base() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Base(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/BuildInformation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/BuildInformation.g.cs index f42e0c831c9..21f0b86ad92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/BuildInformation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/BuildInformation.g.cs @@ -32,31 +32,17 @@ public BuildInformation(System.DateTimeOffset date, string hash) Date = date; Hash = hash; } -#if NET7_0_OR_GREATER - public BuildInformation() - { - } -#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 BuildInformation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal BuildInformation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset Date { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Hash { get; set; } + public required System.DateTimeOffset Date { get; set; } + public required string Hash { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ccr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ccr.g.cs index 6233b3201c9..354282e9826 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ccr.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ccr.g.cs @@ -34,41 +34,19 @@ public Ccr(int autoFollowPatternsCount, bool available, bool enabled, int follow Enabled = enabled; FollowerIndicesCount = followerIndicesCount; } -#if NET7_0_OR_GREATER - public Ccr() - { - } -#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 Ccr() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Ccr(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int AutoFollowPatternsCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int FollowerIndicesCount { get; set; } + public required int AutoFollowPatternsCount { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required int FollowerIndicesCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Counter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Counter.g.cs index da07ee488af..af5a48a9fac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Counter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Counter.g.cs @@ -32,31 +32,17 @@ public Counter(long active, long total) Active = active; Total = total; } -#if NET7_0_OR_GREATER - public Counter() - { - } -#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 Counter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Counter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Active { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Active { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataStreams.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataStreams.g.cs index 3a3ecc816fd..27e8178ff0a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataStreams.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataStreams.g.cs @@ -34,41 +34,19 @@ public DataStreams(bool available, long dataStreams2, bool enabled, long indices Enabled = enabled; IndicesCount = indicesCount; } -#if NET7_0_OR_GREATER - public DataStreams() - { - } -#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 DataStreams() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataStreams(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DataStreams2 { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndicesCount { get; set; } + public required bool Available { get; set; } + public required long DataStreams2 { get; set; } + public required bool Enabled { get; set; } + public required long IndicesCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs index c038f1ff8ef..7e35162902f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs @@ -40,71 +40,25 @@ public DataTierPhaseStatistics(long docCount, long indexCount, long nodeCount, l TotalShardCount = totalShardCount; TotalSizeBytes = totalSizeBytes; } -#if NET7_0_OR_GREATER - public DataTierPhaseStatistics() - { - } -#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 DataTierPhaseStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataTierPhaseStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long NodeCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PrimaryShardCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PrimaryShardSizeAvgBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PrimaryShardSizeMadBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PrimaryShardSizeMedianBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long PrimarySizeBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalShardCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long TotalSizeBytes { get; set; } + public required long DocCount { get; set; } + public required long IndexCount { get; set; } + public required long NodeCount { get; set; } + public required long PrimaryShardCount { get; set; } + public required long PrimaryShardSizeAvgBytes { get; set; } + public required long PrimaryShardSizeMadBytes { get; set; } + public required long PrimaryShardSizeMedianBytes { get; set; } + public required long PrimarySizeBytes { get; set; } + public required long TotalShardCount { get; set; } + public required long TotalSizeBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTiers.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTiers.g.cs index eff9ef69278..9bc5ad4b5b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTiers.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTiers.g.cs @@ -36,52 +36,22 @@ public DataTiers(bool available, Elastic.Clients.Elasticsearch.Xpack.DataTierPha DataWarm = dataWarm; Enabled = enabled; } -#if NET7_0_OR_GREATER - public DataTiers() - { - } -#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 DataTiers() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal DataTiers(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataCold { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataContent { get; set; } + public required bool Available { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataCold { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataContent { get; set; } public Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics? DataFrozen { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataHot { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataWarm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataHot { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataWarm { get; set; } + public required bool Enabled { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Datafeed.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Datafeed.g.cs index 4426b5a3d61..35927aef9f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Datafeed.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Datafeed.g.cs @@ -31,26 +31,16 @@ public Datafeed(long count) { Count = count; } -#if NET7_0_OR_GREATER - public Datafeed() - { - } -#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 Datafeed() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Datafeed(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Eql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Eql.g.cs index 934c4452d3d..9683dc8f061 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Eql.g.cs @@ -34,41 +34,19 @@ public Eql(bool available, bool enabled, Elastic.Clients.Elasticsearch.Xpack.Eql Features = features; Queries = queries; } -#if NET7_0_OR_GREATER - public Eql() - { - } -#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 Eql() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Eql(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.EqlFeatures Features { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Queries { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.EqlFeatures Features { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Queries { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeatures.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeatures.g.cs index 5ca67c9f935..9a37181e846 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeatures.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeatures.g.cs @@ -37,56 +37,22 @@ public EqlFeatures(int @event, int join, Elastic.Clients.Elasticsearch.Xpack.Eql Sequence = sequence; Sequences = sequences; } -#if NET7_0_OR_GREATER - public EqlFeatures() - { - } -#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 EqlFeatures() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlFeatures(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Event { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Join { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesJoin Joins { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesKeys Keys { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesPipes Pipes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Sequence { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesSequences Sequences { get; set; } + public required int Event { get; set; } + public required int Join { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesJoin Joins { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesKeys Keys { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesPipes Pipes { get; set; } + public required int Sequence { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesSequences Sequences { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs index c445e385645..bff3f04fde2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs @@ -35,46 +35,20 @@ public EqlFeaturesJoin(int joinQueriesFiveOrMore, int joinQueriesFour, int joinQ JoinQueriesTwo = joinQueriesTwo; JoinUntil = joinUntil; } -#if NET7_0_OR_GREATER - public EqlFeaturesJoin() - { - } -#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 EqlFeaturesJoin() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlFeaturesJoin(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinQueriesFiveOrMore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinQueriesFour { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinQueriesThree { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinQueriesTwo { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinUntil { get; set; } + public required int JoinQueriesFiveOrMore { get; set; } + public required int JoinQueriesFour { get; set; } + public required int JoinQueriesThree { get; set; } + public required int JoinQueriesTwo { get; set; } + public required int JoinUntil { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs index 6df20f07b59..f4c65a87ca1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs @@ -35,46 +35,20 @@ public EqlFeaturesKeys(int joinKeysFiveOrMore, int joinKeysFour, int joinKeysOne JoinKeysThree = joinKeysThree; JoinKeysTwo = joinKeysTwo; } -#if NET7_0_OR_GREATER - public EqlFeaturesKeys() - { - } -#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 EqlFeaturesKeys() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlFeaturesKeys(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinKeysFiveOrMore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinKeysFour { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinKeysOne { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinKeysThree { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int JoinKeysTwo { get; set; } + public required int JoinKeysFiveOrMore { get; set; } + public required int JoinKeysFour { get; set; } + public required int JoinKeysOne { get; set; } + public required int JoinKeysThree { get; set; } + public required int JoinKeysTwo { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs index 4a67f983130..9435e730d65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs @@ -32,31 +32,17 @@ public EqlFeaturesPipes(int pipeHead, int pipeTail) PipeHead = pipeHead; PipeTail = pipeTail; } -#if NET7_0_OR_GREATER - public EqlFeaturesPipes() - { - } -#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 EqlFeaturesPipes() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlFeaturesPipes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int PipeHead { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int PipeTail { get; set; } + public required int PipeHead { get; set; } + public required int PipeTail { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs index eef015f635a..4cf480dab82 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs @@ -36,51 +36,21 @@ public EqlFeaturesSequences(int sequenceMaxspan, int sequenceQueriesFiveOrMore, SequenceQueriesTwo = sequenceQueriesTwo; SequenceUntil = sequenceUntil; } -#if NET7_0_OR_GREATER - public EqlFeaturesSequences() - { - } -#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 EqlFeaturesSequences() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal EqlFeaturesSequences(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int SequenceMaxspan { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int SequenceQueriesFiveOrMore { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int SequenceQueriesFour { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int SequenceQueriesThree { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int SequenceQueriesTwo { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int SequenceUntil { get; set; } + public required int SequenceMaxspan { get; set; } + public required int SequenceQueriesFiveOrMore { get; set; } + public required int SequenceQueriesFour { get; set; } + public required int SequenceQueriesThree { get; set; } + public required int SequenceQueriesTwo { get; set; } + public required int SequenceUntil { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Feature.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Feature.g.cs index 89f98cdda07..1df68adb71d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Feature.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Feature.g.cs @@ -32,33 +32,19 @@ public Feature(bool available, bool enabled) Available = available; Enabled = enabled; } -#if NET7_0_OR_GREATER - public Feature() - { - } -#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 Feature() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Feature(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } + public required bool Available { get; set; } public string? Description { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } public Elastic.Clients.Elasticsearch.Xpack.NativeCodeInformation? NativeCodeInfo { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FeatureToggle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FeatureToggle.g.cs index addab7d001e..5f28b3ad771 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FeatureToggle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FeatureToggle.g.cs @@ -31,26 +31,16 @@ public FeatureToggle(bool enabled) { Enabled = enabled; } -#if NET7_0_OR_GREATER - public FeatureToggle() - { - } -#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 FeatureToggle() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal FeatureToggle(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.Converters.g.cs index 74fe9a7ed1f..4c614a1e899 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.Converters.g.cs @@ -58,14 +58,14 @@ public override Elastic.Clients.Elasticsearch.Xpack.Features Read(ref System.Tex reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propAggregateMetric = default; LocalJsonValue propAnalytics = default; - LocalJsonValue propArchive = default; + LocalJsonValue propArchive = default; LocalJsonValue propCcr = default; LocalJsonValue propDataStreams = default; LocalJsonValue propDataTiers = default; LocalJsonValue propEnrich = default; - LocalJsonValue propEnterpriseSearch = default; + LocalJsonValue propEnterpriseSearch = default; LocalJsonValue propEql = default; - LocalJsonValue propEsql = default; + LocalJsonValue propEsql = default; LocalJsonValue propGraph = default; LocalJsonValue propIlm = default; LocalJsonValue propLogsdb = default; @@ -80,7 +80,7 @@ public override Elastic.Clients.Elasticsearch.Xpack.Features Read(ref System.Tex LocalJsonValue propSpatial = default; LocalJsonValue propSql = default; LocalJsonValue propTransform = default; - LocalJsonValue propUniversalProfiling = default; + LocalJsonValue propUniversalProfiling = default; LocalJsonValue propVotingOnly = default; LocalJsonValue propWatcher = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs index 73be95678c3..347881eac16 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs @@ -27,18 +27,15 @@ namespace Elastic.Clients.Elasticsearch.Xpack; public sealed partial class Features { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public Features(Elastic.Clients.Elasticsearch.Xpack.Feature aggregateMetric, Elastic.Clients.Elasticsearch.Xpack.Feature analytics, Elastic.Clients.Elasticsearch.Xpack.Feature archive, Elastic.Clients.Elasticsearch.Xpack.Feature ccr, Elastic.Clients.Elasticsearch.Xpack.Feature dataStreams, Elastic.Clients.Elasticsearch.Xpack.Feature dataTiers, Elastic.Clients.Elasticsearch.Xpack.Feature enrich, Elastic.Clients.Elasticsearch.Xpack.Feature enterpriseSearch, Elastic.Clients.Elasticsearch.Xpack.Feature eql, Elastic.Clients.Elasticsearch.Xpack.Feature esql, Elastic.Clients.Elasticsearch.Xpack.Feature graph, Elastic.Clients.Elasticsearch.Xpack.Feature ilm, Elastic.Clients.Elasticsearch.Xpack.Feature logsdb, Elastic.Clients.Elasticsearch.Xpack.Feature logstash, Elastic.Clients.Elasticsearch.Xpack.Feature ml, Elastic.Clients.Elasticsearch.Xpack.Feature monitoring, Elastic.Clients.Elasticsearch.Xpack.Feature rollup, Elastic.Clients.Elasticsearch.Xpack.Feature searchableSnapshots, Elastic.Clients.Elasticsearch.Xpack.Feature security, Elastic.Clients.Elasticsearch.Xpack.Feature slm, Elastic.Clients.Elasticsearch.Xpack.Feature spatial, Elastic.Clients.Elasticsearch.Xpack.Feature sql, Elastic.Clients.Elasticsearch.Xpack.Feature transform, Elastic.Clients.Elasticsearch.Xpack.Feature universalProfiling, Elastic.Clients.Elasticsearch.Xpack.Feature votingOnly, Elastic.Clients.Elasticsearch.Xpack.Feature watcher) + public Features(Elastic.Clients.Elasticsearch.Xpack.Feature aggregateMetric, Elastic.Clients.Elasticsearch.Xpack.Feature analytics, Elastic.Clients.Elasticsearch.Xpack.Feature ccr, Elastic.Clients.Elasticsearch.Xpack.Feature dataStreams, Elastic.Clients.Elasticsearch.Xpack.Feature dataTiers, Elastic.Clients.Elasticsearch.Xpack.Feature enrich, Elastic.Clients.Elasticsearch.Xpack.Feature eql, Elastic.Clients.Elasticsearch.Xpack.Feature graph, Elastic.Clients.Elasticsearch.Xpack.Feature ilm, Elastic.Clients.Elasticsearch.Xpack.Feature logsdb, Elastic.Clients.Elasticsearch.Xpack.Feature logstash, Elastic.Clients.Elasticsearch.Xpack.Feature ml, Elastic.Clients.Elasticsearch.Xpack.Feature monitoring, Elastic.Clients.Elasticsearch.Xpack.Feature rollup, Elastic.Clients.Elasticsearch.Xpack.Feature searchableSnapshots, Elastic.Clients.Elasticsearch.Xpack.Feature security, Elastic.Clients.Elasticsearch.Xpack.Feature slm, Elastic.Clients.Elasticsearch.Xpack.Feature spatial, Elastic.Clients.Elasticsearch.Xpack.Feature sql, Elastic.Clients.Elasticsearch.Xpack.Feature transform, Elastic.Clients.Elasticsearch.Xpack.Feature votingOnly, Elastic.Clients.Elasticsearch.Xpack.Feature watcher) { AggregateMetric = aggregateMetric; Analytics = analytics; - Archive = archive; Ccr = ccr; DataStreams = dataStreams; DataTiers = dataTiers; Enrich = enrich; - EnterpriseSearch = enterpriseSearch; Eql = eql; - Esql = esql; Graph = graph; Ilm = ilm; Logsdb = logsdb; @@ -52,156 +49,45 @@ public Features(Elastic.Clients.Elasticsearch.Xpack.Feature aggregateMetric, Ela Spatial = spatial; Sql = sql; Transform = transform; - UniversalProfiling = universalProfiling; VotingOnly = votingOnly; Watcher = watcher; } -#if NET7_0_OR_GREATER - public Features() - { - } -#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 Features() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Features(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature AggregateMetric { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Analytics { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Archive { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Ccr { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature DataStreams { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature DataTiers { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Enrich { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature EnterpriseSearch { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Eql { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Esql { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Graph { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Ilm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Logsdb { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Logstash { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Ml { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Monitoring { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Rollup { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature AggregateMetric { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Analytics { get; set; } + public Elastic.Clients.Elasticsearch.Xpack.Feature? Archive { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Ccr { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature DataStreams { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature DataTiers { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Enrich { get; set; } + public Elastic.Clients.Elasticsearch.Xpack.Feature? EnterpriseSearch { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Eql { get; set; } + public Elastic.Clients.Elasticsearch.Xpack.Feature? Esql { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Graph { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Ilm { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Logsdb { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Logstash { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Ml { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Monitoring { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Rollup { get; set; } public Elastic.Clients.Elasticsearch.Xpack.Feature? RuntimeFields { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature SearchableSnapshots { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Security { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Slm { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Spatial { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Sql { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Transform { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature UniversalProfiling { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature VotingOnly { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Feature Watcher { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature SearchableSnapshots { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Security { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Slm { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Spatial { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Sql { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Transform { get; set; } + public Elastic.Clients.Elasticsearch.Xpack.Feature? UniversalProfiling { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature VotingOnly { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Feature Watcher { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Flattened.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Flattened.g.cs index 1358cda7c1d..99ed1adcfe8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Flattened.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Flattened.g.cs @@ -33,36 +33,18 @@ public Flattened(bool available, bool enabled, int fieldCount) Enabled = enabled; FieldCount = fieldCount; } -#if NET7_0_OR_GREATER - public Flattened() - { - } -#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 Flattened() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Flattened(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int FieldCount { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required int FieldCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/HealthStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/HealthStatistics.g.cs index 274acb9e0d0..a6f96a56ead 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/HealthStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/HealthStatistics.g.cs @@ -33,36 +33,18 @@ public HealthStatistics(bool available, bool enabled, Elastic.Clients.Elasticsea Enabled = enabled; Invocations = invocations; } -#if NET7_0_OR_GREATER - public HealthStatistics() - { - } -#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 HealthStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal HealthStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Invocations Invocations { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Invocations Invocations { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ilm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ilm.g.cs index b5a003e8b71..7d9b1f0e943 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ilm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ilm.g.cs @@ -32,31 +32,17 @@ public Ilm(int policyCount, System.Collections.Generic.IReadOnlyCollection PolicyStats { get; set; } + public required int PolicyCount { get; set; } + public required System.Collections.Generic.IReadOnlyCollection PolicyStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs index 038084fdcd4..9a9b03d1029 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs @@ -32,31 +32,17 @@ public IlmPolicyStatistics(int indicesManaged, Elastic.Clients.Elasticsearch.Xpa IndicesManaged = indicesManaged; Phases = phases; } -#if NET7_0_OR_GREATER - public IlmPolicyStatistics() - { - } -#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 IlmPolicyStatistics() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IlmPolicyStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int IndicesManaged { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Phases Phases { get; set; } + public required int IndicesManaged { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Phases Phases { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Invocations.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Invocations.g.cs index 41fba81c45d..b7d652915d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Invocations.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Invocations.g.cs @@ -31,26 +31,16 @@ public Invocations(long total) { Total = total; } -#if NET7_0_OR_GREATER - public Invocations() - { - } -#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 Invocations() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Invocations(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IpFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IpFilter.g.cs index efdf2278cd3..cbd9172dbc7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IpFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IpFilter.g.cs @@ -32,31 +32,17 @@ public IpFilter(bool http, bool transport) Http = http; Transport = transport; } -#if NET7_0_OR_GREATER - public IpFilter() - { - } -#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 IpFilter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal IpFilter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Http { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Transport { get; set; } + public required bool Http { get; set; } + public required bool Transport { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/JobUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/JobUsage.g.cs index 0a4475d2e44..9d2f268bf21 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/JobUsage.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/JobUsage.g.cs @@ -35,46 +35,20 @@ public JobUsage(int count, System.Collections.Generic.IReadOnlyDictionary CreatedBy { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics Detectors { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlJobForecasts Forecasts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics ModelSize { get; set; } + public required int Count { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary CreatedBy { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics Detectors { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlJobForecasts Forecasts { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics ModelSize { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MachineLearning.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MachineLearning.g.cs index 959a7141cea..4c40fb7ff25 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MachineLearning.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MachineLearning.g.cs @@ -37,62 +37,28 @@ public MachineLearning(bool available, System.Collections.Generic.IReadOnlyDicti Jobs = jobs; NodeCount = nodeCount; } -#if NET7_0_OR_GREATER - public MachineLearning() - { - } -#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 MachineLearning() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MachineLearning(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Datafeeds { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobs DataFrameAnalyticsJobs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlInference Inference { get; set; } + public required bool Available { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Datafeeds { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobs DataFrameAnalyticsJobs { get; set; } + public required bool Enabled { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlInference Inference { get; set; } /// /// /// Job usage statistics. The _all entry is always present and gathers statistics for all jobs. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Jobs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int NodeCount { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Jobs { get; set; } + public required int NodeCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs index b7e0c9b7b78..5627968ef25 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs @@ -35,46 +35,20 @@ public MinimalLicenseInformation(System.DateTimeOffset expiryDateInMillis, Elast Type = type; Uid = uid; } -#if NET7_0_OR_GREATER - public MinimalLicenseInformation() - { - } -#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 MinimalLicenseInformation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MinimalLicenseInformation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.DateTimeOffset ExpiryDateInMillis { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Mode { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.LicenseManagement.LicenseStatus Status { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Type { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Uid { get; set; } + public required System.DateTimeOffset ExpiryDateInMillis { get; set; } + public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Mode { get; set; } + public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseStatus Status { get; set; } + public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Type { get; set; } + public required string Uid { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlCounter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlCounter.g.cs index ce02a952417..89d985cf756 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlCounter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlCounter.g.cs @@ -31,26 +31,16 @@ public MlCounter(long count) { Count = count; } -#if NET7_0_OR_GREATER - public MlCounter() - { - } -#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 MlCounter() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlCounter(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs index a0d5da59a5d..610617c4963 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs @@ -31,28 +31,18 @@ public MlDataFrameAnalyticsJobs(Elastic.Clients.Elasticsearch.Xpack.MlDataFrameA { All = all; } -#if NET7_0_OR_GREATER - public MlDataFrameAnalyticsJobs() - { - } -#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 MlDataFrameAnalyticsJobs() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlDataFrameAnalyticsJobs(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsCount All { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsCount All { get; set; } public Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsAnalysis? AnalysisCounts { get; set; } public Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsMemory? MemoryUsage { get; set; } public Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsCount? Stopped { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs index f361616e135..c514039c430 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Xpack; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Xpack.Json.MlDataFrameAnalyticsJobsAnalysisConverter))] public sealed partial class MlDataFrameAnalyticsJobsAnalysis { -#if NET7_0_OR_GREATER public MlDataFrameAnalyticsJobsAnalysis() { } -#endif -#if !NET7_0_OR_GREATER - public MlDataFrameAnalyticsJobsAnalysis() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlDataFrameAnalyticsJobsAnalysis(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs index 33e402a21f5..3d02921abe7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs @@ -31,26 +31,16 @@ public MlDataFrameAnalyticsJobsCount(long count) { Count = count; } -#if NET7_0_OR_GREATER - public MlDataFrameAnalyticsJobsCount() - { - } -#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 MlDataFrameAnalyticsJobsCount() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlDataFrameAnalyticsJobsCount(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } + public required long Count { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs index 7017f418ea9..ac9ab6b8587 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs @@ -31,26 +31,16 @@ public MlDataFrameAnalyticsJobsMemory(Elastic.Clients.Elasticsearch.MachineLearn { PeakUsageBytes = peakUsageBytes; } -#if NET7_0_OR_GREATER - public MlDataFrameAnalyticsJobsMemory() - { - } -#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 MlDataFrameAnalyticsJobsMemory() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlDataFrameAnalyticsJobsMemory(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics PeakUsageBytes { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics PeakUsageBytes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInference.g.cs index b0de385eed8..b9eca7eb5b4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInference.g.cs @@ -32,17 +32,11 @@ public MlInference(System.Collections.Generic.IReadOnlyDictionary IngestProcessors { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlInferenceTrainedModels TrainedModels { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary IngestProcessors { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlInferenceTrainedModels TrainedModels { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeployments.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeployments.g.cs index 5a90bf95c02..f8fc2e9aa28 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeployments.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeployments.g.cs @@ -34,41 +34,19 @@ public MlInferenceDeployments(int count, Elastic.Clients.Elasticsearch.MachineLe ModelSizesBytes = modelSizesBytes; TimeMs = timeMs; } -#if NET7_0_OR_GREATER - public MlInferenceDeployments() - { - } -#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 MlInferenceDeployments() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlInferenceDeployments(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics InferenceCounts { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics ModelSizesBytes { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlInferenceDeploymentsTimeMs TimeMs { get; set; } + public required int Count { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics InferenceCounts { get; set; } + public required Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics ModelSizesBytes { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlInferenceDeploymentsTimeMs TimeMs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs index b673a9c23f1..d1833d276c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs @@ -31,26 +31,16 @@ public MlInferenceDeploymentsTimeMs(double avg) { Avg = avg; } -#if NET7_0_OR_GREATER - public MlInferenceDeploymentsTimeMs() - { - } -#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 MlInferenceDeploymentsTimeMs() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlInferenceDeploymentsTimeMs(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - double Avg { get; set; } + public required double Avg { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs index bf716225ce4..dc4441180da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs @@ -34,41 +34,19 @@ public MlInferenceIngestProcessor(Elastic.Clients.Elasticsearch.Xpack.MlInferenc Pipelines = pipelines; TimeMs = timeMs; } -#if NET7_0_OR_GREATER - public MlInferenceIngestProcessor() - { - } -#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 MlInferenceIngestProcessor() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlInferenceIngestProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount NumDocsProcessed { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount NumFailures { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlCounter Pipelines { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount TimeMs { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount NumDocsProcessed { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount NumFailures { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlCounter Pipelines { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount TimeMs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs index f0f2efa99bb..ca9d92aaa2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs @@ -33,36 +33,18 @@ public MlInferenceIngestProcessorCount(long max, long min, long sum) Min = min; Sum = sum; } -#if NET7_0_OR_GREATER - public MlInferenceIngestProcessorCount() - { - } -#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 MlInferenceIngestProcessorCount() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlInferenceIngestProcessorCount(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Max { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Min { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Sum { get; set; } + public required long Max { get; set; } + public required long Min { get; set; } + public required long Sum { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs index fd8ed152c87..9208eff48d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs @@ -31,28 +31,18 @@ public MlInferenceTrainedModels(Elastic.Clients.Elasticsearch.Xpack.MlCounter al { All = all; } -#if NET7_0_OR_GREATER - public MlInferenceTrainedModels() - { - } -#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 MlInferenceTrainedModels() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlInferenceTrainedModels(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.MlCounter All { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.MlCounter All { get; set; } public Elastic.Clients.Elasticsearch.Xpack.MlInferenceTrainedModelsCount? Count { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics? EstimatedHeapMemoryUsageBytes { get; set; } public Elastic.Clients.Elasticsearch.MachineLearning.JobStatistics? EstimatedOperations { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs index 5cfe856b667..cbee37f4b7c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs @@ -33,17 +33,11 @@ public MlInferenceTrainedModelsCount(long other, long prepackaged, long total) Prepackaged = prepackaged; Total = total; } -#if NET7_0_OR_GREATER - public MlInferenceTrainedModelsCount() - { - } -#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 MlInferenceTrainedModelsCount() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlInferenceTrainedModelsCount(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -52,22 +46,10 @@ internal MlInferenceTrainedModelsCount(Elastic.Clients.Elasticsearch.Serializati public long? Classification { get; set; } public long? Ner { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Other { get; set; } + public required long Other { get; set; } public long? PassThrough { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Prepackaged { get; set; } + public required long Prepackaged { get; set; } public long? Regression { get; set; } public long? TextEmbedding { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlJobForecasts.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlJobForecasts.g.cs index be2581fc9bf..17c1e1525d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlJobForecasts.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlJobForecasts.g.cs @@ -32,31 +32,17 @@ public MlJobForecasts(long forecastedJobs, long total) ForecastedJobs = forecastedJobs; Total = total; } -#if NET7_0_OR_GREATER - public MlJobForecasts() - { - } -#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 MlJobForecasts() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal MlJobForecasts(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long ForecastedJobs { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long ForecastedJobs { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Monitoring.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Monitoring.g.cs index f37573290a8..7af3993670a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Monitoring.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Monitoring.g.cs @@ -34,41 +34,19 @@ public Monitoring(bool available, bool collectionEnabled, bool enabled, System.C Enabled = enabled; EnabledExporters = enabledExporters; } -#if NET7_0_OR_GREATER - public Monitoring() - { - } -#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 Monitoring() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Monitoring(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool CollectionEnabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary EnabledExporters { get; set; } + public required bool Available { get; set; } + public required bool CollectionEnabled { get; set; } + public required bool Enabled { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary EnabledExporters { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/NativeCodeInformation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/NativeCodeInformation.g.cs index 27f9273b517..9464141bc34 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/NativeCodeInformation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/NativeCodeInformation.g.cs @@ -32,31 +32,17 @@ public NativeCodeInformation(string buildHash, string version) BuildHash = buildHash; Version = version; } -#if NET7_0_OR_GREATER - public NativeCodeInformation() - { - } -#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 NativeCodeInformation() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal NativeCodeInformation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - string BuildHash { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Version { get; set; } + public required string BuildHash { get; set; } + public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phase.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phase.g.cs index 71d68375729..60407a69f64 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phase.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phase.g.cs @@ -32,31 +32,17 @@ public Phase(System.Collections.Generic.IReadOnlyCollection actions, Sys Actions = actions; MinAge = minAge; } -#if NET7_0_OR_GREATER - public Phase() - { - } -#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 Phase() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Phase(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Actions { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan MinAge { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Actions { get; set; } + public required System.TimeSpan MinAge { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phases.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phases.g.cs index 2553e24ed8b..add992f092d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phases.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phases.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Xpack; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Xpack.Json.PhasesConverter))] public sealed partial class Phases { -#if NET7_0_OR_GREATER public Phases() { } -#endif -#if !NET7_0_OR_GREATER - public Phases() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Phases(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Realm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Realm.g.cs index 10761361f44..e438e46b891 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Realm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Realm.g.cs @@ -32,34 +32,20 @@ public Realm(bool available, bool enabled) Available = available; Enabled = enabled; } -#if NET7_0_OR_GREATER - public Realm() - { - } -#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 Realm() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Realm(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } + public required bool Available { get; set; } public System.Collections.Generic.IReadOnlyCollection? Cache { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Enabled { get; set; } public System.Collections.Generic.IReadOnlyCollection? HasAuthorizationRealms { get; set; } public System.Collections.Generic.IReadOnlyCollection? HasDefaultUsernamePattern { get; set; } public System.Collections.Generic.IReadOnlyCollection? HasTruststore { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RealmCache.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RealmCache.g.cs index 89f0948df05..a0cb527d1eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RealmCache.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RealmCache.g.cs @@ -31,26 +31,16 @@ public RealmCache(long size) { Size = size; } -#if NET7_0_OR_GREATER - public RealmCache() - { - } -#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 RealmCache() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RealmCache(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Size { get; set; } + public required long Size { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RoleMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RoleMapping.g.cs index e13e6f498fb..297b4fee84b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RoleMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RoleMapping.g.cs @@ -32,31 +32,17 @@ public RoleMapping(int enabled, int size) Enabled = enabled; Size = size; } -#if NET7_0_OR_GREATER - public RoleMapping() - { - } -#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 RoleMapping() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RoleMapping(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - int Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int Size { get; set; } + public required int Enabled { get; set; } + public required int Size { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs index 98b3c18f373..6de294d90f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs @@ -33,36 +33,18 @@ public RuntimeFieldTypes(bool available, bool enabled, System.Collections.Generi Enabled = enabled; FieldTypes = fieldTypes; } -#if NET7_0_OR_GREATER - public RuntimeFieldTypes() - { - } -#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 RuntimeFieldTypes() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RuntimeFieldTypes(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection FieldTypes { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required System.Collections.Generic.IReadOnlyCollection FieldTypes { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldsType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldsType.g.cs index ccca14e462f..8a23e834733 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldsType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldsType.g.cs @@ -44,91 +44,29 @@ public RuntimeFieldsType(long charsMax, long charsTotal, long count, long docMax SourceMax = sourceMax; SourceTotal = sourceTotal; } -#if NET7_0_OR_GREATER - public RuntimeFieldsType() - { - } -#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 RuntimeFieldsType() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal RuntimeFieldsType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long CharsMax { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long CharsTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocMax { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long DocTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long IndexCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyCollection Lang { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long LinesMax { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long LinesTotal { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - string Name { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ScriptlessCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long ShadowedCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SourceMax { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long SourceTotal { get; set; } + public required long CharsMax { get; set; } + public required long CharsTotal { get; set; } + public required long Count { get; set; } + public required long DocMax { get; set; } + public required long DocTotal { get; set; } + public required long IndexCount { get; set; } + public required System.Collections.Generic.IReadOnlyCollection Lang { get; set; } + public required long LinesMax { get; set; } + public required long LinesTotal { get; set; } + public required string Name { get; set; } + public required long ScriptlessCount { get; set; } + public required long ShadowedCount { get; set; } + public required long SourceMax { get; set; } + public required long SourceTotal { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SearchableSnapshots.g.cs index a6ffc93a712..654aa33d1f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SearchableSnapshots.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SearchableSnapshots.g.cs @@ -33,38 +33,20 @@ public SearchableSnapshots(bool available, bool enabled, int indicesCount) Enabled = enabled; IndicesCount = indicesCount; } -#if NET7_0_OR_GREATER - public SearchableSnapshots() - { - } -#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 SearchableSnapshots() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SearchableSnapshots(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } public int? FullCopyIndicesCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int IndicesCount { get; set; } + public required int IndicesCount { get; set; } public int? SharedCacheIndicesCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Security.g.cs index 30507d89e9f..d97dd305b6d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Security.g.cs @@ -43,87 +43,29 @@ public Security(Elastic.Clients.Elasticsearch.Xpack.FeatureToggle anonymous, Ela Ssl = ssl; TokenService = tokenService; } -#if NET7_0_OR_GREATER - public Security() - { - } -#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 Security() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Security(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Anonymous { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.FeatureToggle ApiKeyService { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Audit Audit { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Fips140 { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.IpFilter Ipfilter { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Base OperatorPrivileges { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Realms { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary RoleMapping { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.SecurityRoles Roles { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Ssl Ssl { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Anonymous { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.FeatureToggle ApiKeyService { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Audit Audit { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Fips140 { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.IpFilter Ipfilter { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Base OperatorPrivileges { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Realms { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary RoleMapping { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.SecurityRoles Roles { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Ssl Ssl { get; set; } public Elastic.Clients.Elasticsearch.Xpack.FeatureToggle? SystemKey { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.FeatureToggle TokenService { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.FeatureToggle TokenService { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRoles.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRoles.g.cs index 31c4459eebb..553f069aaf5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRoles.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRoles.g.cs @@ -33,36 +33,18 @@ public SecurityRoles(Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDls dls, E File = file; Native = native; } -#if NET7_0_OR_GREATER - public SecurityRoles() - { - } -#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 SecurityRoles() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SecurityRoles(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDls Dls { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.SecurityRolesFile File { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.SecurityRolesNative Native { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDls Dls { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.SecurityRolesFile File { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.SecurityRolesNative Native { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDls.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDls.g.cs index bc9d6eff402..f3ec44def65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDls.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDls.g.cs @@ -31,26 +31,16 @@ public SecurityRolesDls(Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDlsBitS { BitSetCache = bitSetCache; } -#if NET7_0_OR_GREATER - public SecurityRolesDls() - { - } -#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 SecurityRolesDls() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SecurityRolesDls(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDlsBitSetCache BitSetCache { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDlsBitSetCache BitSetCache { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs index 596301e929d..116064453fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs @@ -37,17 +37,11 @@ public SecurityRolesDlsBitSetCache(int count, long evictions, long hits, System. Misses = misses; MissesTimeInMillis = missesTimeInMillis; } -#if NET7_0_OR_GREATER - public SecurityRolesDlsBitSetCache() - { - } -#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 SecurityRolesDlsBitSetCache() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SecurityRolesDlsBitSetCache(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { @@ -59,44 +53,28 @@ internal SecurityRolesDlsBitSetCache(Elastic.Clients.Elasticsearch.Serialization /// Number of entries in the cache. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - int Count { get; set; } + public required int Count { get; set; } /// /// /// Total number of cache evictions. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Evictions { get; set; } + public required long Evictions { get; set; } /// /// /// Total number of cache hits. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Hits { get; set; } + public required long Hits { get; set; } /// /// /// Total combined time spent in cache for hits in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan HitsTimeInMillis { get; set; } + public required System.TimeSpan HitsTimeInMillis { get; set; } /// /// @@ -110,31 +88,19 @@ internal SecurityRolesDlsBitSetCache(Elastic.Clients.Elasticsearch.Serialization /// Memory taken up by the cache in bytes. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long MemoryInBytes { get; set; } + public required long MemoryInBytes { get; set; } /// /// /// Total number of cache misses. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - long Misses { get; set; } + public required long Misses { get; set; } /// /// /// Total combined time spent in cache for misses in milliseconds. /// /// - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan MissesTimeInMillis { get; set; } + public required System.TimeSpan MissesTimeInMillis { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesFile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesFile.g.cs index 55e8cb3c009..af1480a83e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesFile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesFile.g.cs @@ -33,36 +33,18 @@ public SecurityRolesFile(bool dls, bool fls, long size) Fls = fls; Size = size; } -#if NET7_0_OR_GREATER - public SecurityRolesFile() - { - } -#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 SecurityRolesFile() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SecurityRolesFile(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Dls { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Fls { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Size { get; set; } + public required bool Dls { get; set; } + public required bool Fls { get; set; } + public required long Size { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesNative.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesNative.g.cs index 6ee57edb7f3..af8b966c7ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesNative.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesNative.g.cs @@ -33,36 +33,18 @@ public SecurityRolesNative(bool dls, bool fls, long size) Fls = fls; Size = size; } -#if NET7_0_OR_GREATER - public SecurityRolesNative() - { - } -#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 SecurityRolesNative() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal SecurityRolesNative(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Dls { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Fls { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Size { get; set; } + public required bool Dls { get; set; } + public required bool Fls { get; set; } + public required long Size { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Slm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Slm.g.cs index b8b66af6008..50a56078f4c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Slm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Slm.g.cs @@ -32,33 +32,19 @@ public Slm(bool available, bool enabled) Available = available; Enabled = enabled; } -#if NET7_0_OR_GREATER - public Slm() - { - } -#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 Slm() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Slm(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } public int? PolicyCount { get; set; } public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Statistics? PolicyStats { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Sql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Sql.g.cs index 55245b7fa5a..5cf3ead0444 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Sql.g.cs @@ -34,41 +34,19 @@ public Sql(bool available, bool enabled, System.Collections.Generic.IReadOnlyDic Features = features; Queries = queries; } -#if NET7_0_OR_GREATER - public Sql() - { - } -#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 Sql() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Sql(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Features { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Queries { get; set; } + public required bool Available { get; set; } + public required bool Enabled { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Features { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Queries { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ssl.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ssl.g.cs index a99ff88fea0..66bd6b8005a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ssl.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ssl.g.cs @@ -32,31 +32,17 @@ public Ssl(Elastic.Clients.Elasticsearch.Xpack.FeatureToggle http, Elastic.Clien Http = http; Transport = transport; } -#if NET7_0_OR_GREATER - public Ssl() - { - } -#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 Ssl() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Ssl(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Http { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Transport { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Http { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Transport { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Vector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Vector.g.cs index d2a6f9ddbb2..3b807c05ff0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Vector.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Vector.g.cs @@ -34,42 +34,20 @@ public Vector(bool available, int denseVectorDimsAvgCount, int denseVectorFields DenseVectorFieldsCount = denseVectorFieldsCount; Enabled = enabled; } -#if NET7_0_OR_GREATER - public Vector() - { - } -#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 Vector() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Vector(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int DenseVectorDimsAvgCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - int DenseVectorFieldsCount { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } + public required bool Available { get; set; } + public required int DenseVectorDimsAvgCount { get; set; } + public required int DenseVectorFieldsCount { get; set; } + public required bool Enabled { get; set; } public int? SparseVectorFieldsCount { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Watcher.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Watcher.g.cs index dbb0fea8cbf..9cdbc594926 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Watcher.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Watcher.g.cs @@ -35,46 +35,20 @@ public Watcher(bool available, Elastic.Clients.Elasticsearch.Xpack.Counter count Execution = execution; Watch = watch; } -#if NET7_0_OR_GREATER - public Watcher() - { - } -#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 Watcher() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal Watcher(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Available { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Counter Count { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - bool Enabled { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.WatcherActions Execution { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.WatcherWatch Watch { get; set; } + public required bool Available { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Counter Count { get; set; } + public required bool Enabled { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.WatcherActions Execution { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.WatcherWatch Watch { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActionTotals.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActionTotals.g.cs index 6bbce079699..85c8c0d1299 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActionTotals.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActionTotals.g.cs @@ -32,31 +32,17 @@ public WatcherActionTotals(Elastic.Clients.Elasticsearch.Duration total, System. Total = total; TotalTimeInMs = totalTimeInMs; } -#if NET7_0_OR_GREATER - public WatcherActionTotals() - { - } -#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 WatcherActionTotals() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WatcherActionTotals(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Duration Total { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.TimeSpan TotalTimeInMs { get; set; } + public required Elastic.Clients.Elasticsearch.Duration Total { get; set; } + public required System.TimeSpan TotalTimeInMs { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActions.g.cs index 6d2c093bb65..10372119195 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActions.g.cs @@ -31,26 +31,16 @@ public WatcherActions(System.Collections.Generic.IReadOnlyDictionary Actions { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Actions { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatch.g.cs index ac9928788d8..e8c1e4cd806 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatch.g.cs @@ -32,17 +32,11 @@ public WatcherWatch(System.Collections.Generic.IReadOnlyDictionary? Action { get; set; } public System.Collections.Generic.IReadOnlyDictionary? Condition { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - System.Collections.Generic.IReadOnlyDictionary Input { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.WatcherWatchTrigger Trigger { get; set; } + public required System.Collections.Generic.IReadOnlyDictionary Input { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.WatcherWatchTrigger Trigger { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs index 2c0b13a7f7a..6c5995a0126 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs @@ -31,27 +31,17 @@ public WatcherWatchTrigger(Elastic.Clients.Elasticsearch.Xpack.Counter all) { All = all; } -#if NET7_0_OR_GREATER - public WatcherWatchTrigger() - { - } -#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 WatcherWatchTrigger() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WatcherWatchTrigger(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Counter All { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Counter All { get; set; } public Elastic.Clients.Elasticsearch.Xpack.WatcherWatchTriggerSchedule? Schedule { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs index 72707500c84..0493a4314a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs @@ -34,41 +34,19 @@ public WatcherWatchTriggerSchedule(long active, Elastic.Clients.Elasticsearch.Xp Cron = cron; Total = total; } -#if NET7_0_OR_GREATER - public WatcherWatchTriggerSchedule() - { - } -#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 WatcherWatchTriggerSchedule() { } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal WatcherWatchTriggerSchedule(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } - public -#if NET7_0_OR_GREATER - required -#endif - long Active { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Counter All { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - Elastic.Clients.Elasticsearch.Xpack.Counter Cron { get; set; } - public -#if NET7_0_OR_GREATER - required -#endif - long Total { get; set; } + public required long Active { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Counter All { get; set; } + public required Elastic.Clients.Elasticsearch.Xpack.Counter Cron { get; set; } + public required long Total { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/XpackUsageQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/XpackUsageQuery.g.cs index 30621757956..48f0661f0a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/XpackUsageQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/XpackUsageQuery.g.cs @@ -26,16 +26,10 @@ namespace Elastic.Clients.Elasticsearch.Xpack; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Xpack.Json.XpackUsageQueryConverter))] public sealed partial class XpackUsageQuery { -#if NET7_0_OR_GREATER public XpackUsageQuery() { } -#endif -#if !NET7_0_OR_GREATER - public XpackUsageQuery() - { - } -#endif + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] internal XpackUsageQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) {